A method, device and electronic device for calculating signal-to-noise ratio

By obtaining the multitone signal feedback from the communication device, drawing the frequency spectrum and calculating the signal-to-noise ratio, the problem of inaccurate signal-to-noise ratio calculation in the prior art is solved, and a higher signal-to-noise ratio calculation accuracy is achieved.

CN115134022BActive Publication Date: 2025-03-14SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210699399.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2025-03-14
Estimated Expiration
2042-06-20

AI Technical Summary

Technical Problem

In the prior art, the signal-to-noise ratio of the communication device cannot be accurately calculated, mainly due to the influence of sideband time jitter and frequency response, the signal-to-noise ratio is poor, and the signal-to-noise ratio in the entire band cannot be accurately characterized.

Method used

By obtaining the first multitone signal feedback from the communication device, drawing the first spectrum, characterizing the correspondence between the frequency and amplitude of the signal, and calculating the signal-to-noise ratio based on the spectrum, the purpose of multiple sampling is achieved, and the impact of sideband time jitter and frequency response on the signal-to-noise ratio calculation is reduced.

Benefits of technology

Through spectrum analysis of multitone signals, the signal-to-noise ratio of the communication device can be more accurately calculated, the noise influence can be reduced, and the accuracy of signal-to-noise ratio calculation can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134022B_ABST
    Figure CN115134022B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and computer-readable storage medium for calculating a signal-to-noise ratio, the method comprising: obtaining a first polyphonic signal received by a communication device; drawing a first spectrum based on the first polyphonic signal; and calculating the signal-to-noise ratio of the communication device based on the first spectrum. The present application draws a first spectrum based on the first polyphonic signal fed back by the communication device, and the first spectrum is used to characterize the correspondence between the frequency and amplitude of the first polyphonic signal. Therefore, when calculating the signal-to-noise ratio within the band, it can be calculated based on multiple amplitudes in the first spectrum, thereby achieving the purpose of sampling the first spectrum multiple times during the signal-to-noise ratio calculation process, minimizing the impact of sideband time jitter and frequency response on the signal-to-noise ratio calculation, thereby making the calculated signal-to-noise ratio of the communication device more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of signal-to-noise ratio calculation, and in particular to a method, device, electronic device and computer-readable storage medium for signal-to-noise ratio calculation. [Background technology]

[0002] The fifth generation mobile communication technology (5G) is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection. The downlink signal-to-noise ratio of the 5G access network has very high requirements for the communication device, and a method for accurately calculating the signal-to-noise ratio of the communication device is needed.

[0003] The SNR calculation method in the prior art is to calculate the SNR using the spectrum of a single tone signal. However, due to the influence of sideband time jitter and frequency response, the SNR of the sideband is poor, and thus the SNR of the entire band cannot be accurately characterized.

[0004] Therefore, how to accurately calculate the signal-to-noise ratio of a communication device is a technical problem that needs to be solved in the art. [Summary of the invention]

[0005] In order to solve the problem that the signal-to-noise ratio of a communication device cannot be accurately calculated in the prior art, the present application provides a method, device, electronic device and computer-readable storage medium for calculating a signal-to-noise ratio.

[0006] A method for calculating a signal-to-noise ratio, comprising:

[0007] Acquire a first multi-tone signal fed back by the communication device, where the first multi-tone signal is a received signal having multiple frequencies;

[0008] Draw a first spectrum according to the first polyphonic signal, where the first spectrum is used to characterize a corresponding relationship between a frequency and an amplitude of the first polyphonic signal;

[0009] A signal-to-noise ratio of the communication device is calculated according to the first frequency spectrum.

[0010] Preferably, before acquiring the first multi-tone signal received by the communication device, the method further includes:

[0011] Sending a multi-tone signal transmission instruction to a signal transmitting device, wherein the multi-tone signal transmission instruction is used to instruct the signal transmitting device to transmit a second multi-tone signal having a plurality of preset frequencies;

[0012] A first acquisition instruction is sent to the communication device, where the first acquisition instruction is used to instruct the communication device to feed back the first polyphonic signal, where the first polyphonic signal is a received signal obtained by the communication device receiving the second polyphonic signal.

[0013] Preferably, after calculating the signal-to-noise ratio of the communication device through the frequency spectrum, the method further comprises:

[0014] Training a preset deep learning model using the plurality of preset frequencies as input data and the signal-to-noise ratio of the communication device as output data;

[0015] A true signal-to-noise ratio of the communication device is obtained, and the plurality of preset frequencies are corrected based on the true signal-to-noise ratio using a trained preset deep learning model.

[0016] Preferably, among multiple preset frequencies, the frequency difference corresponding to any two different frequency pairs is different; wherein each frequency pair includes two preset frequencies, and at least one of the two preset frequencies included in different frequency pairs is different; the frequency difference is the difference between the two preset frequencies included in the frequency pair.

[0017] Preferably, any two of the preset frequencies are asymmetric frequencies with respect to the local oscillator.

[0018] Preferably, the number of the preset frequencies is ten.

[0019] Preferably, the method further comprises:

[0020] Determine a first gain index from the preset gain indexes, and send a first switching instruction including the first gain index to the communication device, wherein the first switching instruction is used to instruct the communication device to switch a current gain index to the first gain index;

[0021] The obtaining of the first multi-tone signal fed back by the communication device correspondingly includes:

[0022] Acquire a first multi-tone signal fed back by the communication device under the first gain index;

[0023] Drawing a first spectrum according to the first polyphonic signal correspondingly includes:

[0024] a first frequency spectrum corresponding to the first gain index of a first multi-tone signal fed back by the communication device under the first gain index;

[0025] The calculating the signal-to-noise ratio of the communication device according to the first spectrum correspondingly includes:

[0026] A signal-to-noise ratio of the communication device under the first gain index is calculated according to a first frequency spectrum corresponding to the first gain index.

[0027] A device for calculating a signal-to-noise ratio, comprising:

[0028] A first acquisition module, configured to acquire a first multi-tone signal fed back by a communication device, wherein the first multi-tone signal is a received signal having multiple frequencies;

[0029] A spectrum drawing module, used for drawing a first spectrum according to the first polyphonic signal, wherein the first spectrum is used for characterizing the corresponding relationship between the frequency and the amplitude of the first polyphonic signal;

[0030] The first calculation module is used to calculate the signal-to-noise ratio of the communication device according to the first frequency spectrum.

[0031] An electronic device, comprising:

[0032] A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for calculating the signal-to-noise ratio as described above is implemented.

[0033] A computer-readable storage medium stores a computer program, which implements the above-mentioned method for calculating a signal-to-noise ratio when executed by a processor.

[0034] The method for calculating the signal-to-noise ratio provided in the embodiment of the present application draws a first spectrum based on a first polytone signal fed back by a communication device. The first spectrum is used to characterize the correspondence between the frequency and the amplitude of the first polytone signal. Therefore, when calculating the signal-to-noise ratio within the band, it can be calculated based on multiple amplitudes in the first spectrum, thereby achieving the purpose of sampling the first spectrum multiple times during the signal-to-noise ratio calculation process, minimizing the influence of sideband time jitter and frequency response on the signal-to-noise ratio calculation, thereby making the calculated signal-to-noise ratio of the communication device more accurate.

Brief Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A spectrum diagram drawn using a single tone signal with a 1 MHz offset local oscillation provided in an embodiment of the present application;

[0037] Figure 2 A spectrum diagram drawn using a single tone signal with a 49Mhz offset local oscillation provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a signal-to-noise ratio calculation system provided in an embodiment of the present application;

[0039] Figure 4A flow chart of a method for calculating a signal-to-noise ratio provided in an embodiment of the present application;

[0040] Figure 5 A flowchart of another method for calculating a signal-to-noise ratio provided in an embodiment of the present application;

[0041] Figure 6 A spectrum diagram drawn using a ten-tone signal with unequal frequency intervals provided in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of the structure of a device for calculating a signal-to-noise ratio provided in an embodiment of the present application. [Specific implementation method]

[0043] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0044] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0045] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0046] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0047] For ease of understanding, the following terms are introduced in this application:

[0048] 1) Signal-to-noise ratio (SNR): The ratio of signal to noise in an electronic device or electronic system. The signal here refers to the electronic signal from outside the device that needs to be processed by this device, and the noise refers to the irregular additional signal (or information) that does not exist in the original signal after passing through the device, and this signal does not change with the change of the original signal.

[0049] 2) 5GNR: 5G New Radio (NR) is a global 5G standard with a new air interface design based on Orthogonal Frequency Division Multiplexing (OFDM) technology.

[0050] 3) Gain: Gain is the logarithm of the ratio of output power to input power, used to indicate the degree of power amplification, and the unit is decibel.

[0051] 4) Phase noise: Phase noise is usually for single-tone signals. It is a very important parameter that characterizes the purity of the signal spectrum and measures the short-term stability of the signal frequency. Phase noise is a parameter in the frequency domain. There is also a corresponding parameter in the time domain - random jitter. There is a certain mathematical relationship between the two, and they can be converted to each other. Phase noise can be understood as the phase modulation of a single-tone signal by broadband random noise. Therefore, the spectrum of a single-tone signal has two symmetrical left and right sidebands.

[0052] 5) Time jitter: Time jitter refers to the short-term fluctuation of the rising or falling edge of the carrier signal on the time axis. Random jitter is the irregular random fluctuation of the edge caused by broadband noise, which corresponds one to one with phase noise. The fluctuation of the edge is the comprehensive manifestation of the phase noise at each frequency deviation.

[0053] See also Figure 1 , which is a spectrum diagram drawn using a single-tone signal with a 1 MHz offset local oscillator, provided in an embodiment of the present application.

[0054] The 5GNR downlink needs to support up to 100M signal bandwidth, and has very high requirements for the signal-to-noise ratio of the communication device. The signal-to-noise ratio is calculated based on the effective power of the signal and the effective power of the noise. Therefore, in the prior art, a single-tone signal is usually transmitted through testing, and then the corresponding spectrum is drawn according to the single-tone signal received by the communication device. The effective power of the single-tone signal is determined by the energy of the single-tone signal that is 1Mhz away from the local oscillator in the spectrum, and the effective power of the noise is determined by the energy of the frequencies other than the frequency spectrum that is 1Mhz away from the local oscillator.

[0055] However, if Figure 1 As shown in the figure, due to the physical characteristics of frequency response, the frequency response at the signal sideband is lower than that at the middle channel. In addition, due to the influence of time jitter on the signal sideband, the noise power at the signal sideband is lower than the normal noise power. The single-tone signal with a deviation of 1 MHz from the local oscillator is located in the middle of the signal and will not be affected. This results in the signal-to-noise ratio calculated based on the single-tone signal being better than the actual signal-to-noise ratio.

[0056] See also Figure 2 , which is a spectrum diagram drawn using a single tone signal with a 49Mhz offset local oscillation provided in an embodiment of the present application, such as Figure 2 As shown in the figure, if the signal-to-noise ratio is calculated using a single-tone signal with a deviation of 49 MHz from the local oscillator, the single-tone signal with a deviation of 49 MHz from the local oscillator is at the sideband position of the signal, and will be affected by the low sideband frequency response and the sideband time jitter, resulting in a reduction in signal energy, which in turn leads to a low effective power of the determined single-tone signal, making the signal-to-noise ratio calculated based on the single-tone signal worse than the actual signal-to-noise ratio;

[0057] It can be seen that the spectrum of a single tone signal in the prior art cannot accurately characterize the signal-to-noise ratio in the entire signal band. Therefore, the present application provides a method for calculating the signal-to-noise ratio to solve the above problem.

[0058] Embodiment 1

[0059] Please refer to Figure 3 , is a schematic diagram of a signal-to-noise ratio calculation system provided in an embodiment of the present application, the system comprising a signal transmitting device 10, a communication device 20 and a signal-to-noise ratio calculation device 30, wherein:

[0060] The signal transmitting device 10 is used to transmit a second polyphonic signal, so that the communication device 20 receives the second polyphonic signal to obtain a corresponding first polyphonic signal;

[0061] The communication device 20 is used to receive the second multi-tone signal transmitted by the signal transmitting device 10 to obtain the first multi-tone signal;

[0062] The signal-to-noise ratio calculation device 30 is used to obtain the first polyphonic signal received by the communication device 20, and draw a first spectrum based on the first polyphonic signal, in which the frequency corresponding to the amplitude in the first spectrum corresponds to the frequency of the first polyphonic signal; and calculate the signal-to-noise ratio of the communication device 20 based on the first spectrum.

[0063] In a specific embodiment, before obtaining the first polyphonic signal received by the communication device 10, the signal-to-noise ratio calculation device 30 may also send a polyphonic signal transmission instruction to the signal transmitting device 10, and the polyphonic signal transmission instruction is used to instruct the signal transmitting device 10 to transmit a second polyphonic signal having multiple preset frequencies; the signal transmitting device 10 determines the multiple preset frequencies corresponding to the polyphonic signal transmission instruction, and transmits a second polyphonic signal having the multiple preset frequencies, so that the communication device 20 receives the second polyphonic signal.

[0064] The signal-to-noise ratio calculation device 30 sends a first receiving instruction to the communication device 20. After receiving the first receiving instruction, the communication device 20 receives the second polyphonic signal to obtain a corresponding first polyphonic signal.

[0065] The signal-to-noise ratio calculation device 30 sends a first acquisition instruction to the communication device 20. After receiving the first acquisition instruction, the communication device 20 feeds back the received first polyphonic signal to the signal-to-noise ratio calculation device 30. The signal-to-noise ratio calculation device 30 draws the first spectrum according to the first polyphonic signal.

[0066] Embodiment 2

[0067] Please refer to Figure 4 , is a flow chart of a method for calculating a signal-to-noise ratio provided in an embodiment of the present application, the method is applied to Figure 3 The signal-to-noise ratio calculation device 30 of the signal-to-noise ratio calculation system shown includes the following steps:

[0068] Step S01: Acquire a first multi-tone signal received by a communication device.

[0069] In the embodiment of the present application, the single-tone signal is a radio frequency signal of a single frequency, which appears as a sine wave in the time domain and as a peak in the spectrum diagram. In the prior art, the effective power of the single-tone signal is calculated based on the amplitude at the peak, but there is a problem that the signal-to-noise ratio in the entire signal band cannot be accurately characterized.

[0070] The first polyphonic signal is a received signal with multiple frequencies, which is expressed as a superposition of multiple sine waves in the time domain and as having multiple peaks in the spectrum diagram. Therefore, when calculating the signal-to-noise ratio within the band, it can be calculated based on the amplitudes corresponding to the multiple peaks, thereby achieving the purpose of performing multiple sampling in the signal-to-noise ratio calculation process, minimizing the influence of sideband time jitter and frequency response on the signal-to-noise ratio calculation, and thus making the calculated signal-to-noise ratio of the communication device more accurate.

[0071] In a specific embodiment, the signal-to-noise ratio calculation device sends a first acquisition instruction to the communication device. When the communication device receives the first acquisition instruction, the first polyphonic signal received by the communication device is fed back to the signal-to-noise ratio calculation device, so that the signal-to-noise ratio calculation device draws a corresponding frequency spectrum based on the first polyphonic signal.

[0072] In a specific embodiment, the first polyphonic signal may be a signal obtained by the communication device when receiving a second polyphonic signal transmitted by a preset signal transmitting device, or may be a signal obtained by the communication device when receiving a polyphonic signal transmitted by other signal sources. The present application does not specifically limit the source of the first polyphonic signal received by the communication device, as long as the purpose of obtaining the first polyphonic signal received by the communication device can be achieved.

[0073] Step S02: draw a first spectrum according to the first polyphonic signal.

[0074] The first spectrum in the embodiment of the present application is obtained by drawing based on the first polyphonic signal, and the first spectrum is used to characterize the corresponding relationship between the frequency and the amplitude of the first polyphonic signal.

[0075] In a specific embodiment, since the frequency of the first polyphonic signal is determined based on the frequency of the polyphonic signal emitted by a signal transmitting device or other signal source, the frequency of the polyphonic signal emitted by the signal transmitting device or other signal source can be modified by setting the signal transmitting device or other signal source, and the frequency of the first polyphonic signal will also change accordingly, thereby ultimately achieving the modification of the frequency corresponding to the amplitude in the first spectrum.

[0076] In a specific embodiment, when the communication device receives a polyphonic signal transmitted by a signal transmitting device or other signal, the polyphonic signal enters the RF chip through the antenna port of the communication device for processing, and the first polyphonic signal is obtained after processing by the RF chip. At this time, the signal-to-noise ratio calculation device obtains the first polyphonic signal stored in the communication device, and draws a first spectrum based on the first polyphonic signal.

[0077] In a specific embodiment, the signal-to-noise ratio calculation device may draw the first spectrum according to the first multi-tone signal by using MATLAB tools or other spectrum drawing tools such as TFD Scope, QT, etc.

[0078] Step S03: calculating a signal-to-noise ratio of the communication device according to the first frequency spectrum.

[0079] In a specific embodiment, after drawing a first spectrum based on the first polytone signal, the signal-to-noise ratio of the communication device is calculated based on the first spectrum, which can specifically be to calculate the effective power of the signal based on multiple amplitudes corresponding to multiple frequencies of the first polytone signal in the first spectrum diagram, determine the effective power of the noise based on the energy of the frequencies other than the frequency of the first polytone signal in the first spectrum diagram, and determine the signal-to-noise ratio of the communication device based on the quotient of the effective power of the signal and the effective power of the noise.

[0080] Based on the actual signal transmission process, when two or more frequency radio waves propagate in a nonlinear RF device, or when they propagate in the air and encounter a metal object, intermodulation interference signals of other frequencies may be generated. Since a single-tone signal has only one frequency, no intermodulation interference will be generated during the transmission process, resulting in the existing signal-to-noise ratio calculated by the single-tone signal being unable to calculate the noise impact caused by the intermodulation interference. Since a multi-tone signal has multiple frequencies, intermodulation interference will occur between the frequencies. Therefore, the present application calculates the signal-to-noise ratio by calculating the first spectrum drawn based on the first multi-tone signal, which can take into account the noise impact caused by the intermodulation interference, making the calculated signal-to-noise ratio more accurate.

[0081] The method for calculating the signal-to-noise ratio provided in the embodiment of the present application draws a first spectrum based on a first polytone signal fed back by a communication device. The first spectrum is used to characterize the correspondence between the frequency and the amplitude of the first polytone signal. Therefore, when calculating the signal-to-noise ratio within the band, it can be calculated based on multiple amplitudes in the first spectrum, thereby achieving the purpose of sampling the first spectrum multiple times during the signal-to-noise ratio calculation process, minimizing the influence of sideband time jitter and frequency response on the signal-to-noise ratio calculation, thereby making the calculated signal-to-noise ratio of the communication device more accurate.

[0082] Embodiment 3

[0083] Please refer to Figure 5 , is a flowchart of another method for calculating the signal-to-noise ratio provided in an embodiment of the present application, the method is applied to Figure 3 The signal-to-noise ratio calculation device 30 of the signal-to-noise ratio calculation system shown includes the following steps:

[0084] Step S11, sending a multi-tone signal transmission instruction to a signal transmitting device.

[0085] The multi-tone signal transmission instruction in the embodiment of the present application is used to instruct the signal transmitting device to transmit a second multi-tone signal having multiple preset frequencies.

[0086] In a specific embodiment, the signal-to-noise ratio calculation device sends a multi-tone signal transmission instruction to the signal transmitting device, and the signal transmitting device determines the corresponding multiple preset frequencies according to the multi-tone signal transmission instruction, and transmits a second multi-tone signal having the multiple preset frequencies so that the communication device receives the second multi-tone signal.

[0087] On the basis of the above embodiments, in a specific embodiment, if the intervals between the preset frequencies in the second polytone signal are the same, then when the communication device receives the second polytone signal to obtain the first polytone signal, the intermodulation interference between the frequencies in the first polytone signal may fall on other frequencies, causing the signal strength of other frequencies to be affected by the intermodulation interference and increase or decrease, thereby affecting the accuracy of the first spectrum, and being unable to accurately extract the signal component and the noise component based on the first spectrum, affecting the accuracy of the signal-to-noise ratio calculation. Therefore, in order to improve the accuracy of the signal-to-noise ratio calculation, in the embodiment of the present application, among multiple preset frequencies, the frequency difference corresponding to any two different frequency pairs is different; wherein each frequency pair includes two preset frequencies, and at least one of the two preset frequencies included in the different frequency pairs is different; the frequency difference is the difference between the two preset frequencies included in the frequency pair.

[0088] On the basis of the above embodiments, in a specific embodiment, if the preset frequency of the second polyphonic signal is symmetrical about the local oscillator, then when the communication device receives the second polyphonic signal to obtain the first polyphonic signal, mirror interference may occur between the frequencies in the first polyphonic signal, causing the signal strength of each frequency to be affected by the mirror interference and change, thereby affecting the accuracy of the first spectrum, and failing to accurately extract the signal component and the noise component based on the first spectrum, affecting the accuracy of the signal-to-noise ratio calculation. Therefore, in order to improve the accuracy of the signal-to-noise ratio calculation, any two of the preset frequencies in this application are asymmetric frequencies about the local oscillator.

[0089] On the basis of the above-mentioned embodiment, in a specific embodiment, if the number of preset frequencies of the second polyphonic signal is too small, then when the signal-to-noise ratio is calculated based on the amplitude in the first spectrum, too little amplitude cannot accurately characterize the effective power of the signal; and if the number of preset frequencies of the second polyphonic signal is too large, then when the signal-to-noise ratio is calculated based on the amplitude in the first spectrum, too much amplitude will cause the energy of the amplitude to be too low, thereby making the energy of the signal and the noise closer, and the signal component and the noise component cannot be accurately extracted. That is, too many or too few preset frequencies of the second polyphonic signal will affect the accuracy of the signal-to-noise ratio calculation. Therefore, in order to improve the accuracy of the signal-to-noise ratio calculation, the number of preset frequencies described in the present application is ten.

[0090] Step S12: Send a first acquisition instruction to the communication device.

[0091] The first acquisition instruction in the embodiment of the present application is used to instruct the communication device to feed back the first polyphonic signal, where the first polyphonic signal is a received signal obtained by the communication device after receiving the second polyphonic signal.

[0092] In a specific embodiment, the signal-to-noise ratio calculation device sends a first acquisition instruction to the communication device. After receiving the first acquisition instruction, the communication device feeds back the received first polyphonic signal to the signal-to-noise ratio calculation device, and the signal-to-noise ratio calculation device draws the first spectrum based on the first polyphonic signal.

[0093] Step S01: Acquire a first multi-tone signal received by a communication device.

[0094] Step S02: draw a first spectrum according to the first polyphonic signal.

[0095] Step S03: calculating a signal-to-noise ratio of the communication device according to the first frequency spectrum.

[0096] It should be noted that the technical solutions and beneficial effects of steps S01 to S03 in this embodiment are consistent with those of steps S01 to S03 in the first embodiment, and will not be repeated here.

[0097] On the basis of the above embodiment, in a specific embodiment, after executing step S03, in order to further improve the calculation accuracy of the signal-to-noise ratio, the following steps may be further performed to implement the correction of multiple preset frequencies:

[0098] Step S21, training a preset deep learning model using the plurality of preset frequencies as input data and the signal-to-noise ratio of the communication device as output data;

[0099] Step S22, obtaining a real signal-to-noise ratio of the communication device, and using a trained preset deep learning model to calibrate the multiple preset frequencies based on the real signal-to-noise ratio.

[0100] In a specific embodiment, the real signal-to-noise ratio of the communication device can be obtained by using a professional signal-to-noise ratio measurement tool, or by averaging multiple simulation signal processes. The present application does not specifically limit the source of the real signal-to-noise ratio of the communication device.

[0101] The embodiment of the present application uses a deep learning model to learn the correspondence between the preset frequency and the signal-to-noise ratio, and then uses the acquired real signal-to-noise ratio to correct the preset frequency based on the deep learning model, so that the number and value of the calibrated preset frequencies can make it easier to extract accurate signal components and noise components from the first spectrum drawn according to the first polyphonic signal, thereby further improving the calculation accuracy of the signal-to-noise ratio.

[0102] In a specific embodiment, since each gain may be used when the communication device is in actual use or when testing an instance in the signaling mode, it is necessary to calculate the signal-to-noise ratio of the communication device at different gains, that is, the calculation of the signal-to-noise ratio of the communication device at different gains can also be achieved by performing the following steps:

[0103] Step S31: determine a first gain index from preset gain indexes, and send a first switching instruction including the first gain index to the communication device.

[0104] The first switching instruction in the embodiment of the present application is used to instruct the communication device to switch the current gain index to the first gain index.

[0105] Step S32: Acquire a first multi-tone signal fed back by the communication device under the first gain index.

[0106] Step S33: obtaining a first frequency spectrum corresponding to the first gain index of a first multi-tone signal fed back by the communication device under the first gain index.

[0107] Step S34: calculating a signal-to-noise ratio of the communication device under the first gain index according to a first frequency spectrum corresponding to the first gain index.

[0108] In a specific embodiment, after obtaining the first gain index, the signal-to-noise ratio calculation device sends a first switching instruction containing the first gain index to the communication device, and the communication device switches the current gain index to the first gain index to receive the second polyphonic signal transmitted by the signal transmitting device to obtain the first polyphonic signal corresponding to the first gain index.

[0109] In a specific embodiment, in order to calculate the signal-to-noise ratio of the communication device at each different gain, the step S31 mentioned that a first gain index is determined in the preset gain index, and a first switching instruction including the first gain index is sent to the communication device, which may be specifically:

[0110] A first gain index is determined in a preset order among the preset gain indexes.

[0111] The preset order in the embodiment of the present application may be an order set by the user, or may be obtained by connecting the signal-to-noise ratio calculation device to a specified location, or may be determined by the signal-to-noise ratio calculation device according to a preset logic, and the present application does not make any specific limitation on this.

[0112] On this basis, after step S34, the following steps may also be performed:

[0113] Step S35: determining whether the first gain index is the last first gain index.

[0114] If not, execute step S36.

[0115] Step S36: Update the first gain index to a next first gain index.

[0116] After the first gain index is updated to the next first gain index, the process returns to step S31 to continue sending the first switching instruction including the first gain index to the communication device.

[0117] In the embodiment of the present application, the first gain index is sent to the communication device so that the communication device can switch the first gain index to receive the second polyphonic signal transmitted by the signal transmitting device, obtain the first polyphonic signal corresponding to the first gain index and feed it back to the signal-to-noise ratio calculation device. Then the signal-to-noise ratio calculation device determines whether the first gain index is the last first gain index. If not, the first gain index is updated to the next first gain index, and then the first switching instruction containing the current first gain index is continuously sent to the communication device, so that the communication device continues to receive the first polyphonic signal under the current first gain index.

[0118] On the basis of the above embodiment, the calculation of the signal-to-noise ratio of the communication device at different gains may also be achieved by executing the following steps:

[0119] Step S41: acquiring a switching strategy, and sending a second switching instruction including the switching strategy to the communication device.

[0120] The second switching instruction in the embodiment of the present application is used to instruct the communication device to switch to a different second gain index according to a switching strategy.

[0121] Step S42: Send a second acquisition instruction to the communication device.

[0122] The second acquisition instruction in the embodiment of the present application is used to instruct the communication device to feed back a third multi-tone signal obtained by the communication device receiving the second multi-tone signal under different second gain indexes.

[0123] In a specific embodiment, after acquiring the switching strategy, the signal-to-noise ratio calculation device sends a second switching instruction containing the switching strategy to the communication device. The communication device switches different second gain indexes according to the switching strategy to receive the second polyphonic signal transmitted by the signal transmitting device, and obtains the received signal (i.e., the third polyphonic signal) under different second gain indexes. At this time, the signal-to-noise ratio calculation device sends a second acquisition instruction to the communication device, and the communication device feeds back the third polyphonic signal to the signal-to-noise ratio calculation device.

[0124] Step S43: receiving a third polyphonic signal fed back by the communication device, and drawing a second spectrum according to the third polyphonic signal.

[0125] Step S44: calculating the signal-to-noise ratio of the communication device under different second gain indices according to the second frequency spectrum.

[0126] The embodiment of the present application sends a switching strategy to the communication device so that the communication device can automatically switch to different second gain indexes to receive the second polytone signal transmitted by the signal transmitting device, obtain the corresponding third polytone signal and feed it back to the signal-to-noise ratio calculation device, so that the signal-to-noise ratio calculation device can draw a second spectrum according to the third polytone signal, and calculate the signal-to-noise ratio of the communication device under different second gain indexes according to the second spectrum.

[0127] Embodiment 4

[0128] Please refer to Figure 6 , which is a spectrum diagram drawn using ten-tone signals with unequal frequency intervals provided in an embodiment of the present application.

[0129] like Figure 6As shown, the embodiment of the present application utilizes ten-tone signals with unequal intervals to simulate a 100M modulated signal to calculate the signal-to-noise ratio. In order to avoid image interference between frequencies and intermodulation interference between frequencies falling on other frequencies, which results in the inability to accurately extract signal components and noise components, resulting in a deviation in the calculated signal-to-noise ratio, the ten frequencies cannot be equally spaced and cannot be symmetrical about the local oscillator. Therefore, the embodiment of the present application sets the relative frequencies of the ten tones of the test sound signal with respect to the local oscillator to be 48.64M, 38.012M, 27.184M, 16.156M, 4.928M, -2.928M, -14.156M, -25.184M, -36.012M, and -46.64M, respectively. Here, take the N78 frequency band, the RF path as the middle channel of RX0, and the gain sequence gainindex=10 as an example. Figure 4 As shown, the calculated signal-to-noise ratio is 35.6, which is closer to the actual signal-to-noise ratio of the communication device. The following table shows the results of all gain sequences traversed by the automated program provided in the embodiment of the present application.

[0130]

[0131]

[0132] Embodiment 5

[0133] Please refer to Figure 7 , is a schematic diagram of the structure of a device for calculating a signal-to-noise ratio provided in an embodiment of the present application, the device comprising:

[0134] A first acquisition module 301 is used to acquire a first multi-tone signal received by a communication device, where the first multi-tone signal is a received signal having multiple frequencies;

[0135] A spectrum drawing module 302, configured to draw a first spectrum according to the first polyphonic signal, wherein the first spectrum is used to characterize a correspondence between a frequency and an amplitude of the first polyphonic signal;

[0136] The first calculation module 303 is configured to calculate a signal-to-noise ratio of the communication device according to the first frequency spectrum.

[0137] Based on the above embodiment, in a specific embodiment, the device may further include:

[0138] A first sending module, used for sending a multi-tone signal transmission instruction to a signal transmitting device, wherein the multi-tone signal transmission instruction is used for instructing the signal transmitting device to transmit a second multi-tone signal having a plurality of preset frequencies;

[0139] The second sending module is used to send a first acquisition instruction to the communication device, where the first acquisition instruction is used to instruct the communication device to feed back the first multi-tone signal, where the first multi-tone signal is a received signal obtained by the communication device after receiving the second multi-tone signal.

[0140] Based on the above embodiment, in a specific embodiment, the device may further include:

[0141] A model training module, used to train a preset deep learning model using the plurality of preset frequencies as input data and the signal-to-noise ratio of the communication device as output data;

[0142] The second acquisition module is used to obtain a real signal-to-noise ratio of the communication device, and use a trained preset deep learning model to correct the multiple preset frequencies based on the real signal-to-noise ratio.

[0143] Based on the above embodiments, in a specific embodiment, among multiple preset frequencies, the frequency difference corresponding to any two different frequency pairs is different; wherein each frequency pair includes two preset frequencies, and at least one of the two preset frequencies included in different frequency pairs is different; the frequency difference is the difference between the two preset frequencies included in the frequency pair.

[0144] Based on the above embodiment, in a specific embodiment, any two of the preset frequencies are asymmetric frequencies with respect to the local oscillator.

[0145] Based on the above embodiment, in a specific embodiment, the number of the preset frequencies is ten.

[0146] Based on the above embodiment, in a specific embodiment, the device may further include:

[0147] A third acquisition module, configured to determine a first gain index from the preset gain indexes, and send a first switching instruction including the first gain index to the communication device, wherein the first switching instruction is used to instruct the communication device to switch a current gain index to the first gain index;

[0148] The first acquisition module 301 correspondingly includes:

[0149] an acquisition submodule, configured to acquire a first multi-tone signal fed back by the communication device under the first gain index;

[0150] The spectrum drawing module 302 correspondingly includes:

[0151] a first frequency spectrum corresponding to the first gain index of a first multi-tone signal fed back by the communication device under the first gain index;

[0152] The first calculation module 303 correspondingly includes:

[0153] A signal-to-noise ratio of the communication device under the first gain index is calculated according to a first frequency spectrum corresponding to the first gain index.

[0154] Embodiment 6

[0155] This embodiment provides an electronic device, including a processor and a memory, the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for calculating the signal-to-noise ratio is implemented. The execution method and beneficial effects are similar and will not be repeated here.

[0156] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for calculating the signal-to-noise ratio is implemented. The execution method and beneficial effects thereof are similar and will not be described in detail here.

[0157] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for calculating a signal-to-noise ratio, characterized in that: include: Acquire a first multi-tone signal fed back by the communication device, where the first multi-tone signal is a received signal having multiple frequencies; Draw a first spectrum according to the first polyphonic signal, where the first spectrum is used to characterize a corresponding relationship between a frequency and an amplitude of the first polyphonic signal; calculating a signal-to-noise ratio of the communication device according to the first frequency spectrum; Before acquiring the first polyphonic signal received by the communication device, the method further includes: sending a polyphonic signal transmission instruction to the signal transmitting device, the polyphonic signal transmission instruction being used to instruct the signal transmitting device to transmit a second polyphonic signal having a plurality of preset frequencies; A first acquisition instruction is sent to the communication device, where the first acquisition instruction is used to instruct the communication device to feed back the first polyphonic signal, where the first polyphonic signal is a received signal obtained by the communication device receiving the second polyphonic signal.

2. The method according to claim 1, characterized in that After calculating the signal-to-noise ratio of the communication device through the frequency spectrum, the method further includes: Training a preset deep learning model using the plurality of preset frequencies as input data and the signal-to-noise ratio of the communication device as output data; A true signal-to-noise ratio of the communication device is obtained, and the plurality of preset frequencies are corrected based on the true signal-to-noise ratio using a trained preset deep learning model.

3. The method according to claim 1, characterized in that Among multiple preset frequencies, the frequency difference corresponding to any two different frequency pairs is different; wherein each frequency pair includes two preset frequencies, and at least one of the two preset frequencies included in different frequency pairs is different; the frequency difference is the difference between the two preset frequencies included in the frequency pair.

4. The method according to claim 1, characterized in that: Any two of the preset frequencies are asymmetric frequencies with respect to the local oscillator.

5. The method according to claim 1, characterized in that The number of the preset frequencies is ten.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Determine a first gain index from the preset gain indexes, and send a first switching instruction including the first gain index to the communication device, wherein the first switching instruction is used to instruct the communication device to switch a current gain index to the first gain index; The obtaining of the first multi-tone signal fed back by the communication device correspondingly includes: Acquire a first multi-tone signal fed back by the communication device under the first gain index; Drawing a first spectrum according to the first polyphonic signal correspondingly includes: a first frequency spectrum corresponding to the first gain index of a first multi-tone signal fed back by the communication device under the first gain index; The calculating the signal-to-noise ratio of the communication device according to the first spectrum correspondingly includes: A signal-to-noise ratio of the communication device under the first gain index is calculated according to a first frequency spectrum corresponding to the first gain index.

7. A device for calculating a signal-to-noise ratio, characterized in that: include: A first acquisition module, configured to acquire a first multi-tone signal fed back by a communication device, wherein the first multi-tone signal is a received signal having multiple frequencies; A spectrum drawing module, used for drawing a first spectrum according to the first polyphonic signal, wherein the first spectrum is used for characterizing the corresponding relationship between the frequency and the amplitude of the first polyphonic signal; A first calculation module, configured to calculate a signal-to-noise ratio of the communication device according to the first spectrum; A first sending module, used for sending a multi-tone signal transmission instruction to a signal transmitting device, wherein the multi-tone signal transmission instruction is used for instructing the signal transmitting device to transmit a second multi-tone signal having a plurality of preset frequencies; The second sending module is used to send a first acquisition instruction to the communication device, where the first acquisition instruction is used to instruct the communication device to feed back the first multi-tone signal, where the first multi-tone signal is a received signal obtained by the communication device after receiving the second multi-tone signal.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store at least one instruction, and when the instruction is loaded and executed by the processor, the method for calculating the signal-to-noise ratio as described in any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for calculating the signal-to-noise ratio as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Broadband signal spectrum analysis method and device

    CN111416675A