CN115065370B - Gain control method, device, equipment and medium - Google Patents

Gain control method, device, equipment and medium Download PDF

Info

Publication number
CN115065370B
CN115065370B CN202210345806.9A CN202210345806A CN115065370B CN 115065370 B CN115065370 B CN 115065370B CN 202210345806 A CN202210345806 A CN 202210345806A CN 115065370 B CN115065370 B CN 115065370B
Authority
CN
China
Prior art keywords
radio frequency
signal
gain value
frequency signal
gain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210345806.9A
Other languages
Chinese (zh)
Other versions
CN115065370A (en
Inventor
叶峰
王国英
孙国营
李雪健
许燕文
张夫松
丁欢
陈�光
母正晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202210345806.9A priority Critical patent/CN115065370B/en
Publication of CN115065370A publication Critical patent/CN115065370A/en
Application granted granted Critical
Publication of CN115065370B publication Critical patent/CN115065370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • H04B1/18Input circuits, e.g. for coupling to an antenna or a transmission line
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0079Receiver details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • H04L2027/0024Carrier regulation at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • H04L2027/0024Carrier regulation at the receiver end
    • H04L2027/0026Correction of carrier offset
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Control Of Amplification And Gain Control (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The invention discloses a gain control method, a gain control device, gain control equipment and a gain control medium. The method comprises the following steps: calculating a first saturation ratio of the radio frequency signal and determining a first gain value; determining a second gain value according to the signal-to-noise ratio of the radio frequency signal; and adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value. The embodiment of the invention can expand the gain adjustment range, reduce the probability of signal distortion, and improve the signal adjustment efficiency and accuracy.

Description

Gain control method, device, equipment and medium
Technical Field
The present invention relates to the field of automatic gain control technologies, and in particular, to a gain control method, apparatus, device, medium, and product.
Background
There are mainly 2 models for general automatic gain control algorithms: one is a model based on a linear relationship of received signal strength and target signal strength; the other is a model based on the logarithmic relationship of the received signal strength and the target signal strength.
The former, when the input signal amplitude is smaller, the time for reaching stability is longer; when the input signal amplitude is large, overshoot and oscillation may occur. The latter would cause the input signal to be discontinuous.
Disclosure of Invention
The invention provides a gain control method, a device, equipment, a medium and a product, which improve the signal adjusting efficiency and accuracy, reduce the probability of signal distortion and enlarge the gain adjusting range under the condition that input signals are continuous.
According to an aspect of the present invention, there is provided a gain control method including:
calculating a first saturation ratio of the radio frequency signal and determining a first gain value;
determining a second gain value according to the signal-to-noise ratio of the radio frequency signal;
and adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value.
According to another aspect of the present invention, there is provided a gain control apparatus, comprising:
the first gain value determining module is used for calculating a first saturation rate of the radio frequency signal and determining a first gain value;
the second gain value determining module is used for determining a second gain value according to the signal-to-noise ratio of the radio frequency signal;
and the signal amplitude adjusting module is used for adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the gain control method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a gain control method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the first gain value is determined by calculating the first saturation rate of the radio frequency signal, the second gain value is determined according to the signal-to-noise ratio of the radio frequency signal, so that the amplitude of the radio frequency signal is adjusted according to the first gain value and the second gain value, the first gain value is determined by the first saturation rate, the radio frequency signal distortion after gain control caused by the fact that the first saturation rate of the radio frequency signal is too high is avoided, the probability of signal distortion condition is reduced, the second gain is determined by the signal-to-noise ratio, the influence of the signal-to-noise ratio on radio frequency signal processing is reduced, the stability of the radio frequency signal processing process is improved, the second-stage adjustment is performed by utilizing the first gain and the second gain, the gain adjustment range is enlarged, and the efficiency and the accuracy of signal adjustment are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a gain control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a gain control method according to a second embodiment of the present invention;
fig. 3a is a schematic diagram of an application scenario of a gain control method according to a third embodiment of the present invention;
fig. 3b is a schematic diagram showing an output result of an application scenario of a gain control method according to a third embodiment of the present invention;
fig. 3c is a schematic diagram showing another output result of an application scenario of a gain control method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a gain control apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a gain control method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a gain control method according to an embodiment of the present invention, where the method may be performed by a gain control device, and the gain control device may be implemented in hardware and/or software, and the gain control device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, calculating a first saturation ratio of the radio frequency signal and determining a first gain value.
The radio frequency signal refers to a modulated electric wave having a certain emission frequency. In this embodiment, the information may be conveyed by a radio frequency signal. The first saturation ratio refers to a probability that the radio frequency signal transmitted over a period of time is saturated data. It should be noted that, the radio frequency signal is a continuous signal transmitted for a long time, so as to avoid that the data size is too large, and the saturation rate is calculated and determined as the first saturation rate of the radio frequency signal by selecting the radio frequency signal transmitted in a period from the current time to the historical time. The saturated data refers to the maximum data amount that can be calculated by the device when performing one calculation, and thus, the first saturation rate is used to determine whether the processing amount of the radio frequency signal is greater than the maximum data amount that can be processed by the processor. The first gain value refers to the signal amplification factor corresponding to the first-stage gain control. Specifically, a first saturation rate of the radio frequency signal is calculated, and a first gain corresponding to the first saturation rate is determined according to a corresponding relation between the first saturation rate and the first gain value.
In this embodiment, the radio frequency signal may be selected by setting a first sliding window, where the length of the sliding first sliding window may at least include the length of the radio frequency signal capable of completely describing one piece of information, and the selected digital signal may be set according to the actual situation as one radio frequency signal. The first sliding window is, for example, 11328bit in size. And calculating the first saturation ratio of the 11328bit signal through the 11328bit signal selected by the first sliding window. And determining the first gain value through the degree corresponding relation between the first saturation ratio and the first gain value. When the first saturation rate is greater than 7%, determining a first gain value corresponding to the first saturation rate through a lookup table. When the first saturation ratio is smaller than 7%, the corresponding preset gain value, for example, 1, may also be understood that the first gain control is not performed.
S120, determining a second gain value according to the signal-to-noise ratio of the radio frequency signal.
The signal-to-noise ratio refers to the ratio of signal to noise in an electronic device or system and can be understood as the ratio of normal signal to noise signal power without signal. The signal here refers to an electronic signal from outside the electronic device that needs to be processed by the electronic device, the noise refers to an irregular additional signal (or information) that does not exist in an original signal generated after passing through the electronic device, and the signal does not change with the change of the original signal. The signal to noise ratio is measured in dB and is calculated by 10lg (PS/PN). Wherein PS is the effective power of the signal, PN is the effective power of the noise, and can also be converted into the ratio relation of the voltage amplitude: 20Lg (VS/VN), where VS is the effective voltage of the signal and VN is the effective voltage of the noise. The second gain value refers to the signal amplification factor corresponding to the second-stage gain control.
Specifically, the second gain value is determined by calculating the signal-to-noise ratio of the radio frequency signal according to the relationship between the signal-to-noise ratio and the second gain value. In this embodiment, the signal-to-noise ratio may be calculated by the radio frequency signal selected by the first sliding window, and the second gain value may be determined according to the signal-to-noise ratio.
S130, adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value.
The next radio frequency signal refers to a radio frequency signal input after the current time. The transmission of the radio frequency signal is very fast, and the next radio frequency signal is processed, which is equivalent to the adjustment of the current radio frequency signal, thereby realizing the real-time adjustment of the current radio frequency signal. Specifically, the amplitude of the next radio frequency signal is subjected to first-stage gain control adjustment according to the first gain value, and then after the result of the first-stage gain control adjustment is obtained, the result of the first-stage gain control adjustment is subjected to second-stage gain control adjustment through the second gain value.
According to the technical scheme, the first gain value is determined by calculating the first saturation rate of the radio frequency signal, the second gain value is determined according to the signal-to-noise ratio of the radio frequency signal, so that the amplitude of the radio frequency signal is adjusted according to the first gain value and the second gain value, the first gain value is determined by the first saturation rate, the probability that the signal distortion condition is reduced due to the fact that the radio frequency signal is distorted after gain control is avoided due to the fact that the first saturation rate of the radio frequency signal is too high is avoided, the influence of the signal-to-noise ratio on the radio frequency signal processing is reduced by determining the second gain by the aid of the signal-to-noise ratio, stability of the radio frequency signal processing process is improved, the second-stage adjustment is carried out by means of the first gain and the second gain, the gain adjustment range is enlarged, and the efficiency and the accuracy of signal adjustment are improved.
On the basis of the above embodiment, the determining the first gain value includes: and determining a gain value corresponding to the first saturation rate as a first gain value under the condition that the first saturation rate is larger than a preset first probability value.
The first probability value is a threshold value for determining the first saturation rate. The preset first probability threshold is a preset first probability value according to actual conditions. Specifically, when the first saturation rate is greater than a preset first probability value, determining a first gain value according to a corresponding relation between the first saturation rate and the first gain value. In this embodiment, the correspondence between the first saturation rate and the first gain value is recorded in a table, and when the first saturation rate is greater than a preset first probability value, the first gain value corresponding to the first saturation rate may be determined by means of a lookup table. When the first saturation rate is smaller than a preset first probability value, the first gain value is not set, or is set to be 1.
When the first saturation rate is larger than a preset use probability value, a gain value corresponding to the first saturation rate is determined, the condition that the first saturation rate is too small can be eliminated, the speed of determining the first gain value is improved, and therefore efficiency and accuracy of gain control are improved.
On the basis of the above embodiment, the calculating the first saturation ratio of the radio frequency signal includes: and calculating root mean square according to the first digital signal of the radio frequency signal after analog-digital conversion, and determining the first saturation ratio of the radio frequency signal.
Analog-to-digital conversion refers to converting a continuous analog quantity into a discrete digital quantity by sampling, and in this embodiment, converting an analog signal into a digital signal. Analog-to-digital conversion may be achieved by an analog-to-digital converter. The first digital signal is a digital signal formed by performing analog-to-digital conversion on the radio frequency signal.
Specifically, the radio frequency signal is subjected to analog-to-digital conversion, the analog signal is converted into a digital signal, a first digital signal is obtained, the root mean square is calculated on the first digital signal, and the calculation result of the root mean square is determined as the first saturation ratio of the radio frequency signal. Wherein the root mean square calculation formula isWherein x is rms Is root mean square, n is the number of bits of the digital signal, x i Is the magnitude of the i-th digital signal.
The radio frequency signal is subjected to analog-to-digital conversion to form a digital signal, a first digital signal with the length of 11328bit is selected through a first sliding window with the length of 11328bit, and a first saturation rate of the first digital signal is calculated through a calculation formula of the first saturation rate.
The root mean square is calculated on the first digital signal, and the root mean square calculation result is determined to be the first saturation rate, so that the calculation difficulty of the first saturation rate of the radio frequency signal can be reduced, and the calculation speed of the first saturation rate can be improved.
On the basis of the above embodiment, when it is detected that the frame synchronization results of the plurality of radio frequency signals within the preset time period are all synchronization failure results, the first gain value is updated to a maximum value.
The radio frequency signal within a period of time before the current time can be selected through the preset time length. In the present application, the preset duration is at least greater than the duration of one radio frequency signal. Frame synchronization refers to the fact that the receiver should be able to distinguish the start and end of a frame from the received binary bit stream. The data of one frame is composed of two parts: frame header and frame data. The header includes the location of the recipient host physical address and other network information. The frame data area contains a data body. In this application, frame synchronization refers to distinguishing between the start and end of a frame signal in a radio frequency signal. The frame header may mark the start position of a frame signal, and the frame data is the data describing the valid signal in a frame signal. The specific content of the effective signal transmission can be obtained through the frame data. The synchronization failure result refers to the inability of the receiver to distinguish the start or end position of a frame from the received binary bit stream. In this application, the synchronization failure result refers to that the start or end position of a frame signal, i.e., the frame header or the frame end (the frame header of the next frame) cannot be distinguished from the received radio frequency signal.
The preset duration may be determined by setting a sliding window for autocorrelation calculation and energy calculation, and selecting a radio frequency signal within the preset duration. For radio frequency signals in a preset time length, coarse synchronization is carried out based on a pre-agreed 472bit spread spectrum code, the bits which cannot be synchronized in a sliding window are counted through a counter, and when the number of the accumulated bits which cannot be synchronized in the preset time length is greater than 3, the frame synchronization result of a plurality of radio frequency signals is determined to be a synchronization failure result.
Specifically, frame synchronization detection is performed on the radio frequency signals within a preset duration, and if the frame synchronization detection result of the radio frequency signals is a synchronization failure result, the first stage sets the first gain value as the maximum value. In this embodiment, if the frame synchronization result of the radio frequency signal is a synchronization failure result within a preset duration, it is considered that the gain of the radio frequency signal is too small or no radio frequency signal is input at this time, the first-stage gain control will be reset to the initialized state, and at the same time, the gain value is set to be the maximum, so as to increase the amplitude of the next radio frequency signal, so that the demodulator can identify the outgoing radio frequency signal or process the radio frequency signal, thereby facilitating the detection of the next radio frequency signal.
By carrying out frame synchronization detection on a plurality of radio frequency signals within a preset duration, when the detection results are all synchronization failure results, the first gain value is updated to be the maximum value, abnormal conditions of the emergent radio frequency signals can be detected, useless signals are prevented from being subjected to gain control, and accuracy of radio frequency signal gain control is improved.
Example two
Fig. 2 is a flowchart of a gain control method according to a second embodiment of the present invention, where the gain control method is refined based on the foregoing embodiment, and the gain control method is specifically refined as follows: the determining a second gain value according to the signal-to-noise ratio of the radio frequency signal includes: acquiring a first digital signal of the radio frequency signal after analog-to-digital conversion; selecting a second digital signal from the first digital signals, and calculating a second saturation ratio of the second digital signal; and under the condition that the second saturation rate is larger than a preset second probability value, determining a second gain value according to the signal-to-noise ratio of the radio frequency signal. As shown in fig. 2, the method includes:
s210, calculating a first saturation ratio of the radio frequency signal and determining a first gain value.
S220, acquiring a first digital signal of the radio frequency signal after analog-to-digital conversion.
In this embodiment, the radio frequency signal is subjected to analog-to-digital conversion to form a digital signal, and the digital signal is selected through a first sliding window to obtain a first digital signal.
S230, selecting a second digital signal from the first digital signals, and calculating a second saturation ratio of the second digital signal.
The second digital signal refers to a part of the digital signal in the first digital signal. The second digital signal can be obtained by setting a second sliding window and selecting the first digital signal. The length of the second sliding window is smaller than that of the first sliding window, and the specific length of the second sliding window can be set according to actual conditions. The second saturation ratio is a calculation result obtained by calculating the second digital signal according to the root mean square calculation formula.
Specifically, a second digital signal is selected from the first digital signals according to the second sliding window. Wherein the number of bits of the second digital signal is smaller than the number of bits of the first digital signal. The first digital signal is 11328 bits and the second digital signal is 1000 bits, for example. And calculating the root mean square of the second digital signal according to a calculation formula of the root mean square, and taking the calculation result as a second saturation rate of the second digital signal.
S240, determining a second gain value according to the signal-to-noise ratio of the radio frequency signal under the condition that the second saturation ratio is larger than a preset second probability value.
The second probability value is a threshold value for determining the second saturation ratio. The preset second probability threshold value refers to a second probability value preset according to actual conditions. Specifically, when the second saturation ratio is greater than a preset second probability value, calculating the signal-to-noise ratio of the radio frequency signal according to a calculation formula of the signal-to-noise ratio, and determining the second gain value according to the corresponding relation between the signal-to-noise ratio and the second gain value.
S250, adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value.
According to the technical scheme, the second digital signal is selected for the first digital signal, the second saturation rate is calculated according to the second digital signal, the second gain value is determined according to the signal to noise ratio of the radio frequency signal when the second saturation rate is larger than the preset second probability value, the calculated data quantity of the second saturation rate is reduced by selecting the second digital signal, the efficiency of determining the second gain value is improved, and the accuracy of determining the second gain value is improved when the second saturation rate is larger than the preset second probability value.
On the basis of the foregoing embodiment, the determining, according to a signal-to-noise ratio of the radio frequency signal, a second gain value includes: acquiring a rough synchronization result of the radio frequency signal, and calculating an energy value of the rough synchronization result; determining an energy error according to the energy value of the coarse synchronization result and preset energy; and determining a second gain value according to the energy error.
Coarse synchronization refers to synchronizing carriers in an input signal. Carrier synchronization refers to the generation of a local oscillation in the receiving device that is co-frequency and co-phase with the carrier of the received signal, which is supplied to the demodulator for coherent demodulation. When the received signal contains discrete carrier frequency components, a signal carrier wave needs to be separated from the signal at a receiving end to be used as a local coherent carrier wave; the local coherent carrier frequency thus separated must be the same as the carrier frequency of the received signal, but in order to have the same phase, proper adjustment of the separated carrier phase may be required. The energy value refers to the value that after the coarse synchronization, the square of a frame signal is in the interval (- ≡, + -infinity). The calculation formula of the energy value isWherein f (T) is a signal and T is time. The preset energy is a threshold value for judging the energy value. The preset energy value can be set according to actual conditions. The energy error refers to the difference between the energy value and the preset energy.
Specifically, the radio frequency signals are roughly synchronized, frames in the radio frequency signals are identified, energy values are calculated for the identified frames, and energy errors are determined according to preset energy. And determining a second gain value according to the corresponding relation between the energy error and the second gain value.
And the energy value is calculated for the radio frequency signal coarse synchronization result, and the energy error is determined according to the energy value and preset energy, so that the second gain value is determined, the radio frequency signal is subjected to coarse synchronization, and the accuracy of determining the second gain value is improved.
Example III
Fig. 3a is a schematic diagram of an application scenario of a gain control method according to a third embodiment of the present invention. As shown in fig. 3a, the method comprises: a radio frequency input 301, an analog to digital conversion 302, a first stage gain control 303, a digital demodulation 304, and a second stage gain control 305.
The rf input 301 is configured to input an rf signal, send the rf signal to the analog-to-digital converter 302, and input the rf signal as an analog signal.
Analog-to-digital conversion 302 for receiving a signal transmitted from radio frequency input 301, converting the analog signal to a digital signal, and transmitting the converted digital signal to first stage gain control 303 and digital demodulation 304.
The first stage gain control 303 is configured to select a first digital signal from the digital signal output by the analog-to-digital conversion 302 through a 11328bit first sliding window, calculate a first saturation probability according to a saturation rate formula, determine a first gain value corresponding to the first saturation probability through a lookup table if the first saturation rate is greater than 7%, and feed back the first gain value to the radio frequency input 301 for performing first stage gain control. If the first saturation ratio is less than 7%, the first gain value is set to a preset gain value, such as 1, and the first gain value is fed back to the radio frequency input 301.
Digital demodulation 304 is used to receive the digital signal sent by analog-to-digital conversion 302 and process the digital signal. Including at least frame detection, coarse synchronization correlation demodulation, and fine synchronization. First, frames in the digital signal are identified by frame detection. And then judging whether frames in the digital signal are synchronous or not through coarse synchronization, setting a sliding window for autocorrelation calculation and energy calculation, spreading the digital signal through setting a spreading code, and determining whether the spread signal is synchronous or not through a counter. Spread spectrum is an information processing transmission technique. Spreading is a technique that spreads the spectrum of a transmitted signal with a code that is independent of the data (information) to be transmitted, so that it occupies a bandwidth far exceeding the minimum bandwidth necessary for the transmitted information. If the coarse synchronization result identified by the counter is a synchronization failure result within a certain time, the gain is considered to be too small or no radio frequency signal is input at the moment, the first-stage gain control is reset to an initialized state, namely, the first gain value is set to be the maximum, the first gain value is fed back to the radio frequency input 301, and if the coarse synchronization result identified by the counter is a coarse synchronization success result, the signal is directly output to the related demodulation and the second-stage gain control 305. The correlation demodulation is used for demodulating the spread digital signal and inputting the demodulated digital signal into the fine synchronization. Demodulation refers to the process of recovering a message from a modulated signal carrying the message. The fine synchronization bit-synchronizes the received digital signal. Bit synchronization is a process of indicating symbol time of a digital signal, and is also understood as a process of extracting a clock signal from an information code stream and identifying timing of an information symbol by means of the clock signal in digital transmission.
And a second-stage gain control 305, configured to receive the digital signal sent after the coarse synchronization, determine a start-stop position of the frame after the spreading, set a second sliding window, select a second digital signal from the frame after the spreading, calculate a second saturation rate for the second digital signal, and calculate an energy value for the first digital signal if the second saturation rate is greater than a preset probability value. By comparing the specific energy value with the preset energy, a difference between the energy value and the preset energy is calculated, and the difference is determined as an energy error. A second gain value is determined based on the energy error and fed back into the feedback frequency input 410.
Fig. 3b is a schematic diagram showing an output result of an application scenario of a gain control method according to a third embodiment of the present invention. Fig. 3c is a schematic diagram showing another output result of an application scenario of a gain control method according to a third embodiment of the present invention. As shown in fig. 3b and 3c, the first row signal is a radio frequency input signal. The second row of signals is the signal output after the two-stage gain control. The third row of signals is the signal in the radio frequency input signal describing the useful information.
According to the technical scheme, the first gain value is determined by calculating the first saturation rate of the radio frequency signal, the second gain value is determined according to the signal-to-noise ratio of the radio frequency signal, so that the amplitude of the radio frequency signal is adjusted according to the first gain value and the second gain value, the first gain value is determined by the first saturation rate, the probability that the signal distortion condition is reduced due to the fact that the radio frequency signal is distorted after gain control is avoided due to the fact that the first saturation rate of the radio frequency signal is too high is avoided, the influence of the signal-to-noise ratio on the radio frequency signal processing is reduced by determining the second gain by the aid of the signal-to-noise ratio, stability of the radio frequency signal processing process is improved, the second-stage adjustment is carried out by means of the first gain and the second gain, the gain adjustment range is enlarged, and the efficiency and the accuracy of signal adjustment are improved.
Example IV
Fig. 4 is a schematic structural diagram of a gain control apparatus according to a fourth embodiment of the present invention. As shown in fig. 3, the apparatus includes: a first gain value determination module 401, a second gain value determination module 402, and a signal amplitude adjustment module 403.
The first gain value determining module 401 is configured to calculate a first saturation ratio of the radio frequency signal, and determine a first gain value;
a second gain value determining module 402, configured to determine a second gain value according to a signal-to-noise ratio of the radio frequency signal;
a signal amplitude adjustment module 403, configured to adjust the amplitude of the next radio frequency signal according to the first gain value and the second gain value.
According to the technical scheme, the first gain value is determined by calculating the first saturation rate of the radio frequency signal, the second gain value is determined according to the signal-to-noise ratio of the radio frequency signal, so that the amplitude of the radio frequency signal is adjusted according to the first gain value and the second gain value, the first gain value is determined by the first saturation rate, the radio frequency signal distortion after gain control caused by the fact that the first saturation rate of the radio frequency signal is too high is avoided, the probability of signal distortion condition is reduced, the second gain is determined by the signal-to-noise ratio, the influence of the signal-to-noise ratio on radio frequency signal processing is reduced, the stability of the radio frequency signal processing process is improved, the second-stage adjustment is performed by utilizing the first gain and the second gain, the gain adjustment range is enlarged, and the efficiency and the accuracy of signal adjustment are improved.
Optionally, the first gain value determining module 401 is specifically configured to:
and determining a gain value corresponding to the first saturation rate as a first gain value under the condition that the first saturation rate is larger than a preset first probability value.
Optionally, the first gain value determining module 401 is specifically configured to:
and calculating root mean square according to the first digital signal of the radio frequency signal after analog-digital conversion, and determining the first saturation ratio of the radio frequency signal.
Optionally, the apparatus further comprises:
and the first gain value updating module is used for updating the first gain value to the maximum value under the condition that the frame synchronization results of the plurality of radio frequency signals in the preset time period are all synchronous failure results.
Optionally, the second gain value determining module 402 includes:
the first digital signal acquisition unit is used for acquiring a first digital signal of the radio frequency signal after analog-digital conversion;
a second saturation ratio calculating unit configured to select a second digital signal from the first digital signals, and calculate a second saturation ratio of the second digital signal;
and the second gain value first determining unit is used for determining a second gain value according to the signal-to-noise ratio of the radio frequency signal under the condition that the second saturation rate is larger than a preset second probability value.
Optionally, the second gain value determining module 402 includes:
the energy value calculation unit is used for obtaining a rough synchronization result of the radio frequency signal and calculating an energy value of the rough synchronization result;
the energy error determining unit is used for determining an energy error according to the energy value of the coarse synchronization result and preset energy;
and the second gain value second determining unit is used for determining a second gain value according to the energy error.
The gain control device provided by the embodiment of the invention can execute the gain control method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a gain control method.
In some embodiments, the gain control method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the gain control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the gain control method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method of gain control, comprising:
calculating a first saturation ratio of the radio frequency signal and determining a first gain value; the first gain value refers to signal amplification factor corresponding to first-stage gain control;
determining a second gain value according to the signal-to-noise ratio of the radio frequency signal; the second gain value refers to signal amplification factor corresponding to second-stage gain control;
adjusting the amplitude of the next radio frequency signal according to the first gain value and the second gain value, including: performing first-stage gain control adjustment on the amplitude of the next radio frequency signal according to the first gain value, and performing second-stage gain control adjustment on the first-stage gain control adjustment result through the second gain value after obtaining the first-stage gain control adjustment result;
wherein, the determining a second gain value according to the signal-to-noise ratio of the radio frequency signal includes:
acquiring a rough synchronization result of the radio frequency signal, and calculating an energy value of the rough synchronization result; the coarse synchronization is used for identifying frames in the radio frequency signals, so that energy values are calculated for the identified frames;
determining an energy error according to the energy value of the coarse synchronization result and preset energy;
and determining a second gain value according to the energy error.
2. The method of claim 1, wherein the determining the first gain value comprises:
and determining a gain value corresponding to the first saturation rate as a first gain value under the condition that the first saturation rate is larger than a preset first probability value.
3. The method of claim 1, wherein calculating the first saturation ratio of the radio frequency signal comprises:
and calculating root mean square according to the first digital signal of the radio frequency signal after analog-digital conversion, and determining the first saturation ratio of the radio frequency signal.
4. The method as recited in claim 1, further comprising:
and under the condition that the frame synchronization results of the plurality of radio frequency signals in the preset time period are all synchronous failure results, updating the first gain value to the maximum value.
5. The method of claim 1, wherein said determining a second gain value based on a signal-to-noise ratio of said radio frequency signal comprises:
acquiring a first digital signal of the radio frequency signal after analog-to-digital conversion;
selecting a second digital signal from the first digital signals, and calculating a second saturation ratio of the second digital signal;
and under the condition that the second saturation rate is larger than a preset second probability value, determining a second gain value according to the signal-to-noise ratio of the radio frequency signal.
6. A gain control apparatus, comprising:
the first gain value determining module is used for calculating a first saturation rate of the radio frequency signal and determining a first gain value; the first gain value refers to signal amplification factor corresponding to first-stage gain control;
the second gain value determining module is used for determining a second gain value according to the signal-to-noise ratio of the radio frequency signal; the second gain value refers to signal amplification factor corresponding to second-stage gain control;
the signal amplitude adjustment module is configured to adjust the amplitude of the next radio frequency signal according to the first gain value and the second gain value, and includes: performing first-stage gain control adjustment on the amplitude of the next radio frequency signal according to the first gain value, and performing second-stage gain control adjustment on the first-stage gain control adjustment result through the second gain value after obtaining the first-stage gain control adjustment result;
wherein the second gain value determining module includes:
the energy value calculation unit is used for obtaining a rough synchronization result of the radio frequency signal and calculating an energy value of the rough synchronization result; the coarse synchronization is used for identifying frames in the radio frequency signals, so that energy values are calculated for the identified frames;
the energy error determining unit is used for determining an energy error according to the energy value of the coarse synchronization result and preset energy;
and the second gain value second determining unit is used for determining a second gain value according to the energy error.
7. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the gain control method of any one of claims 1-5.
8. A computer readable storage medium storing computer instructions for causing a processor to implement the gain control method of any one of claims 1-5 when executed.
CN202210345806.9A 2022-03-31 2022-03-31 Gain control method, device, equipment and medium Active CN115065370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210345806.9A CN115065370B (en) 2022-03-31 2022-03-31 Gain control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210345806.9A CN115065370B (en) 2022-03-31 2022-03-31 Gain control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115065370A CN115065370A (en) 2022-09-16
CN115065370B true CN115065370B (en) 2024-04-02

Family

ID=83196714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210345806.9A Active CN115065370B (en) 2022-03-31 2022-03-31 Gain control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115065370B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140938A (en) * 1995-06-02 1997-01-22 摩托罗拉公司 Apparatus and method for optimizing quality of received signal in radio receiver
CN1744441A (en) * 2005-10-09 2006-03-08 北京中星微电子有限公司 Method and device for increasing A/D converter signal noise ratio
CN101895507A (en) * 2010-08-09 2010-11-24 复旦大学 Orthogonal frequency division multiplexing receiver system and automatic gain control method thereof
CN104081661A (en) * 2012-01-31 2014-10-01 美国亚德诺半导体公司 Method and apparatus to independently control front end gain and baseband gain
CN104506469A (en) * 2015-01-19 2015-04-08 北京邮电大学 Automatic gain control and frame detection method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011100920A2 (en) * 2011-04-13 2011-08-25 华为技术有限公司 Method and device for automatic gain adjustment in wireless receiver
GB2533300B (en) * 2014-12-15 2017-03-22 Nordic Semiconductor Asa Packet-based radio receiver with automatic gain control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140938A (en) * 1995-06-02 1997-01-22 摩托罗拉公司 Apparatus and method for optimizing quality of received signal in radio receiver
CN1744441A (en) * 2005-10-09 2006-03-08 北京中星微电子有限公司 Method and device for increasing A/D converter signal noise ratio
CN101895507A (en) * 2010-08-09 2010-11-24 复旦大学 Orthogonal frequency division multiplexing receiver system and automatic gain control method thereof
CN104081661A (en) * 2012-01-31 2014-10-01 美国亚德诺半导体公司 Method and apparatus to independently control front end gain and baseband gain
CN104506469A (en) * 2015-01-19 2015-04-08 北京邮电大学 Automatic gain control and frame detection method and device

Also Published As

Publication number Publication date
CN115065370A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN113132285A (en) Digital demodulation system and method
CN115065370B (en) Gain control method, device, equipment and medium
CN113132075B (en) Frame synchronization method and frame synchronization module
US9130694B2 (en) Method, apparatus, and system for phase jump detection
CN113132076A (en) Frame synchronization method, device, electronic equipment and storage medium
JPH11251960A (en) Path detection method and device for direct spread spectrum communication system
CN112671684A (en) Self-adaptive demodulation method of short-time burst BPSK signal
JP4845819B2 (en) Signal detection apparatus, receiver, and threshold calculation method
CN111181890A (en) Method and device for synchronizing signals and server
CN107517092B (en) Estimation method, the method, apparatus of signal synchronization and demodulation of waveforms detection threshold value
CN111064686A (en) Symbol timing synchronization method and device
CN115314350B (en) Wireless cell search synchronization method, device, equipment and storage medium
JP7101727B2 (en) Wireless communication devices, portable devices and wireless communication systems
US9106195B2 (en) Method and apparatus for controlling signal gain in digital signal processing system
CN103391140A (en) Method and system for detecting power of CDMA (code-division multiple access) 2,000 and EVDO (evolution-data optimized) mixed signals
CN115086126B (en) GMSK signal-based synchronization method, device and computer-readable storage medium
CN117596112B (en) Modulation degree determining method and device
CN117132681A (en) Waveform drawing method, device and equipment of lock-in amplifier and storage medium
CN115333557B (en) Wake-up transceiver system of UWB equipment
CN113726706B (en) Method, device and storage medium for improving demodulation precision of D8PSK signal
CN118265082A (en) Processing method, device, equipment and medium of Internet of vehicles communication signal
CN116017707A (en) Burst data sending method, device, equipment and medium
CN117748649A (en) Signal demodulation method
CN116886772A (en) Data sending and receiving method and device, electronic equipment and medium
CN118265081A (en) Processing method, device, equipment and medium of Internet of vehicles communication signal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant