CN115037261A - Gain calculator and automatic gain control system - Google Patents

Gain calculator and automatic gain control system Download PDF

Info

Publication number
CN115037261A
CN115037261A CN202210774588.0A CN202210774588A CN115037261A CN 115037261 A CN115037261 A CN 115037261A CN 202210774588 A CN202210774588 A CN 202210774588A CN 115037261 A CN115037261 A CN 115037261A
Authority
CN
China
Prior art keywords
gain
signal
polarity
adjustment value
gain coefficient
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.)
Pending
Application number
CN202210774588.0A
Other languages
Chinese (zh)
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.)
Beijing Neuron Network Technology Co ltd
Original Assignee
Beijing Neuron Network Technology 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 Beijing Neuron Network Technology Co ltd filed Critical Beijing Neuron Network Technology Co ltd
Priority to CN202210774588.0A priority Critical patent/CN115037261A/en
Publication of CN115037261A publication Critical patent/CN115037261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers without distortion of the input signal
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices

Abstract

The invention discloses a gain calculator and an automatic gain control system. The gain calculator includes: a gain calculation unit for generating an initial gain coefficient from a gain signal corresponding to an output signal of the variable gain amplifier; the polarity judging unit is used for generating a polarity signal according to a feedback signal of the digital automatic gain controller; the hysteresis control unit is used for generating a gain coefficient adjustment value according to the polarity signal; and the gain adjusting unit is used for generating a gain coefficient according to the initial gain coefficient and the gain coefficient adjusting value. According to the technical scheme of the embodiment, the polarity judgment unit, the hysteresis control unit and the gain adjustment unit are additionally arranged, so that when the signal intensity of the gain signal is detected to be abnormal, the corresponding gain coefficient adjustment value is generated to correct the gain coefficient, the signal intensity of the gain signal is adjusted, the effective correction of the gain coefficient can be realized, and the signal intensity of the gain signal can be ensured to be in a working interval supported by the digital automatic gain controller.

Description

Gain calculator and automatic gain control system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a gain calculator and an automatic gain control system.
Background
In the wired communication of the vehicle-mounted ethernet, the receiver adjusts the signal strength of the received signal by using an Automatic Gain Control (AGC) technology, so as to ensure the amplitude stability of the received signal.
Currently, the automatic gain control method mainly includes a virtual AGC method and a digital automatic gain controller method. The analog AGC method mainly adjusts the power of a received signal in an analog domain through a variable gain amplifier and has the characteristic of large adjustment step; the digital automatic gain controller method is usually used as a supplement to analog AGC, and adjusts the power of a signal in a manner of directly scaling a received digital signal, and the adjustment is continuous in step. However, for the digital automatic gain controller method, there is a definite operation interval, so in some special scenarios, for example, a gain shift error of the analog AGC method, the signal power of the gain signal may exceed the operation interval supported by the digital automatic gain controller method, thereby causing a loss of the receiver performance.
Disclosure of Invention
The invention provides a gain calculator and an automatic gain control system, which can realize the correction of a gain coefficient of virtual automatic gain control, can ensure that the signal intensity of a gain signal is positioned in a working interval supported by a digital automatic gain controller, and can improve the performance utilization rate of a receiver.
According to an aspect of the present invention, there is provided a gain calculator, including a gain calculation unit, a polarity determination unit, a hysteresis control unit, and a gain adjustment unit;
the gain calculation unit is in communication connection with the gain adjustment unit and is used for generating an initial gain coefficient according to a gain signal corresponding to an output signal of the variable gain amplifier and outputting the initial gain coefficient to the gain adjustment unit;
the polarity judgment unit is in communication connection with the hysteresis control unit and is used for generating a polarity signal according to a feedback signal output by the digital automatic gain controller and outputting the polarity signal to the hysteresis control unit;
the hysteresis control unit is in communication connection with the gain adjustment unit and is used for generating a gain coefficient adjustment value according to the polarity signal and outputting the gain coefficient adjustment value to the gain adjustment unit;
and the gain adjusting unit is used for generating a gain coefficient according to the initial gain coefficient and the gain coefficient adjusting value and outputting the gain coefficient to the variable gain amplifier.
According to another aspect of the present invention, there is provided an automatic gain control system, comprising the gain calculator and the digital automatic gain controller according to any embodiment of the present invention;
the digital automatic gain controller is in communication connection with the gain calculator and is used for generating a feedback signal according to a gain signal corresponding to an output signal of the variable gain amplifier and outputting the feedback signal to the gain calculator;
and the gain calculator is used for generating a gain coefficient according to the feedback signal and the gain signal corresponding to the output signal of the variable gain amplifier and outputting the gain coefficient to the variable gain amplifier.
According to the technical scheme of the embodiment of the invention, an initial gain coefficient is generated by a gain calculation unit according to a gain signal corresponding to an output signal of a variable gain amplifier, a polarity signal is generated by a polarity judgment unit according to a feedback signal output by a digital automatic gain controller, then a gain coefficient adjustment value is generated by a hysteresis control unit according to the polarity signal, and a gain coefficient is generated by a gain adjustment unit according to the initial gain coefficient and the gain coefficient adjustment value; through the addition of the polarity judgment unit, the hysteresis control unit and the gain adjustment unit, when the abnormal signal intensity of the gain signal is detected according to the polarity judgment result of the feedback signal corresponding to the gain signal by the polarity judgment unit, the corresponding gain coefficient adjustment value is generated to correct the current gain coefficient, so that the signal intensity of the gain signal is adjusted, the correction of the gain coefficient of the virtual automatic gain control can be realized, the signal intensity of the gain signal can be ensured to be in the working interval supported by the digital automatic gain controller, and the performance utilization rate of the receiver can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic structural diagram of a gain calculator according to an embodiment of the present invention;
fig. 1B is a schematic structural diagram of a hysteresis control unit according to an embodiment of the present invention;
fig. 1C is a schematic diagram illustrating a process of calculating a gain factor according to an embodiment of the present invention;
fig. 2A is a schematic structural diagram of an automatic gain control system according to a second embodiment of the present invention;
fig. 2B is a schematic structural diagram of another automatic gain control system according to a second embodiment of the present invention;
fig. 2C is a schematic structural diagram of another automatic gain control system according to the second embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," 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 one
Fig. 1A is a block diagram of a gain calculator 100 according to an embodiment of the present invention, which includes a gain calculating unit 110, a polarity determining unit 120, a hysteresis control unit 130, and a gain adjusting unit 140. The gain calculator 100 may be applied to a receiver of an in-vehicle ethernet communication network. In this embodiment, the Gain calculator 100 may be disposed between a digital automatic Gain controller and a Variable Gain Amplifier (VGA) of an analog AGC, and may be configured to determine a Gain coefficient of the VGA according to a difference value between a signal power of a received signal after being subjected to a VGA Gain and a set signal power, so that the signal power of the received signal after being subjected to the VGA Gain may be stabilized at the set signal power.
The gain calculating unit 110 is communicatively connected to the gain adjusting unit 140, and is configured to generate an initial gain coefficient according to a gain signal corresponding to an output signal of the variable gain amplifier, and output the initial gain coefficient to the gain adjusting unit 140.
In this embodiment, the output signal of the variable gain amplifier may be an analog gain signal obtained by gain-amplifying the received signal; correspondingly, the gain signal corresponding to the output signal of the variable gain amplifier may be an analog gain signal obtained by directly gain-amplifying the received signal, or may be a digital gain signal obtained by analog-to-digital converting the analog gain signal.
In a specific example, the gain calculating unit 110 may first calculate an average power of the gain signal within a set time period, then calculate a power difference between the average power and the set average power, and may use the power difference as an initial gain coefficient, and may send the initial gain coefficient to the gain adjusting unit 140.
The polarity determining unit 120 is communicatively connected to the hysteresis control unit 130, and configured to generate a polarity signal according to a feedback signal output by the digital automatic gain controller, and output the polarity signal to the hysteresis control unit 130.
In this embodiment, the digital automatic gain controller may determine the signal strength of the received signal and output a corresponding feedback signal to the polarity determination unit 120 according to the determination result. For example, when the signal strength of the received signal is detected to be too high, a negative feedback signal, e.g., -1, is output, indicating that the gain factor needs to be reduced; when the signal strength of the received signal is detected to be too low, a feedback signal with a positive value, for example, +1, is output, which indicates that the gain factor needs to be increased; and when the signal strength of the received signal is detected to be moderate, outputting a feedback signal 0, which indicates that the gain factor does not need to be adjusted.
Optionally, for the received signals corresponding to different signal strengths, feedback signals corresponding to different magnitudes may also be generated. For example, if the signal strength of the received signal is greater than the set signal strength and exceeds ten percent of the set signal strength, the feedback signal-1 is output, and if the signal strength exceeds twenty percent of the set signal strength, the feedback signal-2 is output.
Specifically, the polarity determining unit 120 may perform polarity determination on a feedback signal output by the digital AGC after receiving the feedback signal, and generate a corresponding polarity signal according to a polarity determination result. For example, if the polarity of the feedback signal is detected to be positive, a polarity signal of +1 may be generated; if the polarity of the feedback signal is detected to be negative, a polarity signal can be generated to be-1; if the polarity of the feedback signal is detected to be non-positive or non-negative, a polarity signal of 0 can be generated.
The hysteresis control unit 130 is communicatively connected to the gain adjustment unit 140, and is configured to generate a gain factor adjustment value according to the polarity signal, and output the gain factor adjustment value to the gain adjustment unit 140.
In this embodiment, the hysteresis control unit 130 may first determine an updated value of the gain coefficient adjustment value according to the polarity signal and the set adjustment step; then, the latest gain coefficient adjustment value can be directly updated by the updating value to obtain the current gain coefficient adjustment value; or, the current polarity signal may be compared with the previous historical polarity signal, and if it is detected that the polarities of a plurality of consecutive historical polarity signals are the same as the polarity of the current polarity signal, the latest gain coefficient adjustment value is updated by using the update value, so as to obtain the current gain coefficient adjustment value.
The gain adjustment unit 140 is configured to generate a gain coefficient according to the initial gain coefficient and the gain coefficient adjustment value, and output the gain coefficient to the variable gain amplifier.
The gain adjustment unit 140 may be an adder. In a specific example, the gain adjustment unit 140 may add the initial gain coefficient and the gain coefficient adjustment value, and take the sum as the gain coefficient. For example, if the initial gain factor is 10dB, the gain factor adjustment value is 1dB, and the current gain factor is 11 dB; for another example, if the initial gain factor is 10dB, the gain factor adjustment value is-1 dB, and the current gain factor is 9 dB.
In this embodiment, after the gain adjustment unit 140 sends the gain coefficient to the VGA, the VGA can gain-amplify the subsequently received signal according to the gain coefficient to adjust the signal strength of the received signal.
Optionally, as shown in fig. 1B, the hysteresis control unit 130 may include an adjustment value updating subunit 131, a storage subunit 132, and an adjustment value operator unit 133;
the adjustment value updating subunit 131 is in communication connection with the adjustment value operator unit 133, and is configured to generate a current gain coefficient updating value according to the current polarity signal, and output the current gain coefficient updating value to the adjustment value operator unit 133. The adjustment value updating subunit 131 may be a multiplier. And the current gain coefficient updating value is used for updating the historical gain coefficient adjusting value.
In a specific example, the adjustment value update subunit 131 may multiply the current polarity signal by the set adjustment step, and use the product as the current gain coefficient update value, and further may send the current gain coefficient update value to the adjustment value operator unit 133. Wherein, the numerical value of adjustment step-by-step can carry out the self-adaptation setting according to the precision demand.
The storage subunit 132 is connected to the adjustment value operator 133 in communication, and is configured to store the historical polarity signal output by the polarity determination unit 120 and the historical gain coefficient adjustment value output by the hysteresis control unit 130. The storage sub-unit 132 may be a Random Access Memory (RAM). In this embodiment, the adjustment value operator unit 133 may generate a mapping relationship between the historical polarity signal and the historical gain coefficient adjustment value to be stored in the storage subunit 132.
The adjustment value operator 133 is configured to generate a current gain coefficient adjustment value according to the current polarity signal, the current gain coefficient update value, and the historical polarity signal and the historical gain coefficient adjustment value stored in the storage subunit 132, and output the current gain coefficient adjustment value to the gain adjustment unit 140.
It should be noted that, when generating the feedback signal, the digital automatic gain controller usually performs statistical averaging on the received signal within a set time window to obtain the signal power, and generates the corresponding feedback signal according to the signal power. Thus, the gain calculator 100 generates a gain factor every set time window. However, when the time window setting is too small, it is easy to cause the polarity of the feedback signal generated by the digital automatic gain controller to flip back and forth, resulting in a high frequency change of the gain factor.
In view of the above problem, the adjustment value operator 133 of the present embodiment may obtain a plurality of historical polarity signals adjacent to the current polarity signal from the storage subunit 132, and if it is determined that the polarities of the plurality of historical polarity signals are the same as the polarity of the current polarity signal, add the current gain coefficient update value and the last output historical gain coefficient adjustment value, and use the sum as the current gain coefficient adjustment value. Alternatively, if a set number of the plurality of historical polarity signals have the same polarity as the current polarity signal, the current gain coefficient update value may be added to the most recently output historical gain coefficient adjustment value, and the sum may be used as the current gain coefficient adjustment value.
The advantage of the above arrangement is that the hysteresis update of the gain coefficient adjustment value can be realized, and the update frequency of the gain coefficient adjustment value can be reduced, so that the update frequency of the gain coefficient can be reduced, and the frequent fluctuation of the signal power of the VGA output signal can be avoided.
Optionally, after generating the current gain coefficient adjustment value, the adjustment value operator 133 may generate a mapping relationship between the current polarity signal and the current gain coefficient adjustment value, and store the mapping relationship in the storage subunit 132.
In a specific implementation manner of this embodiment, the flow of calculating the gain factor of the gain calculator 100 may be as shown in fig. 1C. Specifically, first, an initial gain coefficient is generated from a gain signal corresponding to the output signal of the variable gain amplifier by the gain calculation unit 110, and the initial gain coefficient is output to the adder. Meanwhile, a polarity signal is generated by the polarity judging unit 120 according to the feedback signal output from the digital automatic gain controller, and is output to the multiplier of the hysteresis control unit 130 and the adjustment value calculating operator unit 133. The multiplier multiplies the current polarity signal by the set adjustment step to generate a current gain coefficient update value, and outputs the current gain coefficient update value to the adjustment value calculation operator unit 133. The adjustment value operator 133 generates a current gain coefficient adjustment value according to the current polarity signal, the current gain coefficient update value, and the historical polarity signal and the historical gain coefficient adjustment value stored in the storage subunit 132, and outputs the current gain coefficient adjustment value to the adder. The adder adds the initial gain coefficient and the current gain coefficient adjustment value to obtain the gain coefficient.
In an optional implementation manner of this embodiment, the adjustment value operator unit 133 may be specifically configured to:
acquiring a first preset number of adjacent historical polarity signals corresponding to the current polarity signal from the historical polarity signals stored in the storage subunit 132, and determining whether the polarity of each adjacent historical polarity signal is the same as the polarity of the current polarity signal;
if yes, a current gain coefficient adjustment value is generated according to the current gain coefficient update value and the historical gain coefficient adjustment value output by the hysteresis control unit 130 last time.
The first preset number may be a preset number value, and may be 5, for example. The adjacent history polarity signal may be a polarity signal that is sequentially output by the polarity determination unit 120 before the current polarity signal is output. For example, if the current polarity signal is the 10 th polarity signal output by the polarity determination unit 120, the 9 th polarity signal, the 8 th polarity signal, and the like are sequentially acquired as the adjacent historical polarity signals.
In one scenario, when calculating the current gain coefficient adjustment value, the adjustment value operator 133 may first obtain a first preset number of adjacent historical polarity signals from the storage subunit 132, and when it is successfully detected that the polarity of each adjacent historical polarity signal is the same as the polarity of the current polarity signal, that is, when there are a plurality of consecutive polarity signals with the same polarity, add the current gain coefficient update value to the historical gain coefficient adjustment value that is output by the hysteresis control unit 130 at the latest time, and use the sum as the current gain coefficient adjustment value.
Optionally, after determining whether the polarity of each of the adjacent historical polarity signals is the same as the polarity of the current polarity signal, the adjustment value operator 133 may further be configured to:
if it is detected that there is at least one abnormal adjacent historical polarity signal with a polarity different from the polarity of the current polarity signal, the historical gain coefficient adjustment value output by the hysteresis control unit 130 at the latest time is used as the current gain coefficient adjustment value.
In addition, if it is detected that there are a plurality of abnormal adjacent historical polarity signals having different polarities from the current polarity signal in the first preset number of adjacent historical polarity signals, the historical gain coefficient adjustment value output by the hysteresis control unit 130 at the latest time may be used as the current gain coefficient adjustment value, that is, the last gain coefficient adjustment value is continuously used as the current gain coefficient adjustment value.
In another optional implementation manner of this embodiment, the adjustment value operator unit 133 may be further configured to:
acquiring a second preset number of adjacent historical polarity signals corresponding to the current polarity signal from the historical polarity signals stored in the storage subunit 132, and acquiring the number of target adjacent historical polarity signals having the same polarity as the current polarity signal;
judging whether the number of the target adjacent historical polarity signals is greater than or equal to a preset number threshold value or not; if it is determined that the number of the target adjacent historical polarity signals is greater than or equal to the preset number threshold, a current gain coefficient adjustment value is generated according to the current gain coefficient update value and the historical gain coefficient adjustment value output by the hysteresis control unit 130 last time.
The second preset number may be a preset number value, and may be 7, for example. The preset number threshold may be a preset number value, for example, 5, and is used for determining whether the number of the adjacent historical polarity signals having the same polarity as the current polarity signal meets the number requirement.
In another scenario, a plurality of adjacent historical polarity signals corresponding to the current polarity signal may be obtained first, and as long as a certain number of target adjacent historical polarity signals in the plurality of adjacent historical polarity signals have the same polarity as the current polarity signal, it may be considered that the gain coefficient adjustment value that is output last time needs to be updated currently. Wherein, the target adjacent historical polarity signals may not be adjacent to each other.
Specifically, the adjustment value calculating subunit 133 may first screen a second preset number of adjacent historical polarity signals from the storage subunit 132, and sequentially determine whether the polarity of each adjacent historical polarity signal is the same as the polarity of the current polarity signal, and if so, may determine the adjacent historical polarity signal as the target adjacent historical polarity signal. And after the detection of all the adjacent historical polarity signals is finished, counting the number of the acquired target adjacent historical polarity signals.
Further, whether the number of the target adjacent historical polarity signals is larger than or equal to a preset number threshold value is judged; if it is determined that the number of target adjacent historical polarity signals is greater than or equal to the preset number threshold, the historical gain coefficient adjustment value output by the hysteresis control unit 130 at the last time may be updated by using the current gain coefficient update value, that is, the current gain coefficient update value and the historical gain coefficient adjustment value are added, and the sum value is used as the current gain coefficient adjustment value.
Optionally, after determining whether the number of the target adjacent historical polarity signals is greater than or equal to a preset number threshold, the adjustment value operator 133 may further be configured to:
if it is determined that the number of the target adjacent historical polarity signals is smaller than the preset number threshold, the historical gain coefficient adjustment value output by the hysteresis control unit 130 at the latest time is used as the current gain coefficient adjustment value.
In addition, if it is detected that the number of the target adjacent historical polarity signals is smaller than the preset number threshold, the historical gain coefficient adjustment value output by the hysteresis control unit 130 at the last time may be directly used as the current gain coefficient adjustment value, and the gain coefficient adjustment value does not need to be updated.
According to the technical scheme of the embodiment of the invention, an initial gain coefficient is generated by a gain calculation unit according to a gain signal corresponding to an output signal of a variable gain amplifier, a polarity signal is generated by a polarity judgment unit according to a feedback signal output by a digital automatic gain controller, then a gain coefficient adjustment value is generated by a hysteresis control unit according to the polarity signal, and a gain coefficient is generated by a gain adjustment unit according to the initial gain coefficient and the gain coefficient adjustment value; through the addition of the polarity judgment unit, the hysteresis control unit and the gain adjustment unit, when the abnormal signal intensity of the gain signal is detected according to the polarity judgment result of the feedback signal corresponding to the gain signal by the polarity judgment unit, the corresponding gain coefficient adjustment value is generated to correct the current gain coefficient, so that the signal intensity of the gain signal is adjusted, the correction of the gain coefficient of the virtual automatic gain control can be realized, the signal intensity of the gain signal can be ensured to be in the working interval supported by the digital automatic gain controller, and the performance utilization rate of the receiver can be improved.
Example two
Fig. 2A is a block diagram of an automatic gain control system 200 according to a second embodiment of the present invention, which includes the gain calculator 100 and the digital automatic gain controller 210 according to the first embodiment of the present invention. The automatic gain control system 200 may be applied to a receiver of an in-vehicle ethernet communication network. Wherein the content of the first and second substances,
the digital automatic gain controller 210 is communicatively connected to the gain calculator 100, and is configured to generate a feedback signal according to a gain signal corresponding to an output signal of the variable gain amplifier, and output the feedback signal to the gain calculator 100.
In this embodiment, the digital automatic gain controller 210 may perform an intensity determination on the signal intensity of the gain signal corresponding to the output signal of the variable gain amplifier, generate a corresponding feedback signal according to the intensity determination result, and further send the feedback signal to the gain calculator 100. For example, if the signal strength of the gain signal is moderate, a feedback signal of 0 is generated; if the signal intensity of the gain signal is too low, generating a feedback signal + 1; if the signal strength of the gain signal is too high, a feedback signal-1 is generated.
The gain calculator 100 is configured to generate a gain coefficient according to the feedback signal and the gain signal corresponding to the output signal of the variable gain amplifier, and output the gain coefficient to the variable gain amplifier.
Specifically, after receiving the feedback signal, the gain calculator 100 may process the feedback signal by using the polarity determining unit 120 and the hysteresis control unit 130 to obtain the gain coefficient adjustment value. Meanwhile, a gain signal corresponding to an output signal of the variable gain amplifier may be processed by the gain calculation unit 110 to obtain an initial gain coefficient. Further, the initial gain coefficient and the gain coefficient adjustment value may be added by gain adjustment section 140, and the sum may be used as the gain coefficient.
Optionally, as shown in fig. 2B, the automatic gain control system 200 may further include a variable gain amplifier 220; the variable gain amplifier 220 is communicatively connected to the gain calculator 100, and configured to, when receiving the gain coefficient output by the gain calculator 100, perform gain adjustment on the analog received signal according to the gain coefficient to obtain an analog gain signal, and output the analog gain signal to the gain calculator 100; the gain calculator 100 is specifically configured to generate a gain coefficient according to the feedback signal and the analog gain signal.
In one scenario, VGA220 may directly send the analog gain signal to gain calculator 100 after generating the analog gain signal according to the gain factor. The gain calculator 100 may calculate subsequent gain factors based on the analog gain signal and a feedback signal sent by the digital automatic gain controller 210.
Specifically, after receiving the gain coefficient sent by the gain calculator 100, the VGA220 may perform gain amplification (signal power adjustment) on the subsequently received analog received signal based on the gain coefficient to obtain an analog gain signal, and send the analog gain signal to the gain calculator 100. The gain calculator 100 may calculate subsequent gain coefficients according to the received analog gain signal and the feedback signal.
Optionally, as shown in fig. 2C, the automatic gain control system 200 may further include an analog-to-digital converter 230, where the analog-to-digital converter 230 is respectively connected in communication with the variable gain amplifier 220, the digital automatic gain controller 210, and the gain calculator 100; the variable gain amplifier 220 is further configured to output the analog gain signal to the analog-to-digital converter 230.
The analog-to-digital converter 230 is configured to convert the analog gain signal into a digital gain signal, and output the digital gain signal to the gain calculator 100 and the digital automatic gain controller 210, respectively; the analog-to-digital converter 230 is configured to perform analog-to-digital conversion on an input analog signal and output a converted digital signal.
The digital automatic gain controller 210 is specifically configured to generate a feedback signal according to the digital gain signal, and output the feedback signal to the gain calculator 100; the gain calculator 100 is further configured to generate a gain factor according to the feedback signal and the digital gain signal.
In another scenario, after the VGA220 generates the analog gain signal, the analog gain signal may be first sent to the analog-to-digital converter 230, so as to perform analog-to-digital conversion on the analog gain signal through the analog-to-digital converter 230, and then send the digital gain signal obtained after the analog-to-digital conversion to the gain calculator 100 and the digital automatic gain controller 210.
Further, when receiving the digital gain signal sent by the analog-to-digital converter 230, the digital automatic gain controller 210 may perform an intensity determination on the signal intensity of the digital gain signal, and generate a feedback signal corresponding to the digital gain signal according to a determination result. After receiving the digital gain signal sent by the analog-to-digital converter 230, the gain calculator 100 may calculate a gain coefficient according to the digital gain signal and a feedback signal sent by the digital automatic gain controller 210.
In this embodiment, by performing the gain factor correction according to the feedback signal output by the digital automatic gain controller 210, the quantization noise of the analog-to-digital converter 230 can be reduced while avoiding the signal strength of the gain signal exceeding the working interval supported by the digital automatic gain controller 210.
In an optional implementation manner of this embodiment, the digital automatic gain controller 210 may be specifically configured to:
and acquiring the signal power of the digital gain signal, and generating a feedback signal according to the signal power of the digital gain signal and the lower limit value and the upper limit value of a preset power range.
The preset power range may be a preset power range, and includes a lower power limit value and an upper power limit value. In this embodiment, the preset power range may be set according to the power interval supported by the digital automatic gain controller 210.
Specifically, when the digital automatic gain controller 210 receives the digital gain signal, it may perform statistical averaging on the digital gain signal within a set time window to obtain the signal power of the digital gain signal. Then, the signal power may be numerically compared with a lower limit value and an upper limit value of a preset power range, and a feedback signal may be generated according to the numerical comparison result. For example, if the detected signal power is less than or equal to the lower limit of the preset power range, it may be determined that the signal strength is too low, and a feedback signal +1 is generated; if the detected signal power is larger than or equal to the upper limit value of the preset power range, the signal strength can be determined to be too high, and a feedback signal-1 is generated; if the detected signal power is between the lower limit value and the upper limit value of the preset power range, the signal strength can be determined to be moderate, and a feedback signal 0 is generated.
According to the technical scheme of the embodiment of the invention, the digital automatic gain controller generates the feedback signal according to the gain signal corresponding to the output signal of the variable gain amplifier, the gain calculator generates the gain coefficient according to the feedback signal and the gain signal corresponding to the output signal of the variable gain amplifier, and the gain coefficient is corrected according to the feedback signal output by the digital automatic gain controller, so that the signal intensity of the gain signal is adjusted, the signal intensity of the gain signal can be prevented from exceeding a working interval supported by the digital automatic gain controller, the performance loss of a receiver in a vehicle-mounted Ethernet communication network can be avoided, and the stability of the receiver can be improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A gain calculator is characterized by comprising a gain calculation unit, a polarity judgment unit, a hysteresis control unit and a gain adjustment unit;
the gain calculation unit is in communication connection with the gain adjustment unit and is used for generating an initial gain coefficient according to a gain signal corresponding to an output signal of the variable gain amplifier and outputting the initial gain coefficient to the gain adjustment unit;
the polarity judgment unit is in communication connection with the hysteresis control unit and is used for generating a polarity signal according to a feedback signal output by the digital automatic gain controller and outputting the polarity signal to the hysteresis control unit;
the hysteresis control unit is in communication connection with the gain adjustment unit and is used for generating a gain coefficient adjustment value according to the polarity signal and outputting the gain coefficient adjustment value to the gain adjustment unit;
and the gain adjusting unit is used for generating a gain coefficient according to the initial gain coefficient and the gain coefficient adjusting value and outputting the gain coefficient to the variable gain amplifier.
2. The gain calculator of claim 1, wherein the hysteresis control unit comprises an adjustment value update subunit, a storage subunit, and an adjustment value operator unit;
the adjustment value updating subunit is in communication connection with the adjustment value operator unit and is used for generating a current gain coefficient updating value according to a current polarity signal and outputting the current gain coefficient updating value to the adjustment value operator unit;
the storage subunit is in communication connection with the adjustment value operator unit and is used for storing the historical polarity signal output by the polarity judgment unit and the historical gain coefficient adjustment value output by the hysteresis control unit;
and the adjustment value operator unit is used for generating a current gain coefficient adjustment value according to the current polarity signal, the current gain coefficient update value, and the historical polarity signal and the historical gain coefficient adjustment value stored by the storage subunit, and outputting the current gain coefficient adjustment value to the gain adjustment unit.
3. The gain calculator of claim 2, wherein the adjustment value operator unit is specifically configured to:
acquiring a first preset number of adjacent historical polarity signals corresponding to the current polarity signal from the historical polarity signals stored in the storage subunit, and judging whether the polarity of each adjacent historical polarity signal is the same as that of the current polarity signal;
and if so, generating a current gain coefficient adjustment value according to the current gain coefficient update value and the historical gain coefficient adjustment value output by the hysteresis control unit last time.
4. The gain calculator of claim 3, wherein the adjustment value operator unit, after determining whether the polarity of each of the adjacent historical polarity signals is the same as the polarity of the current polarity signal, is further configured to:
and if the fact that the polarity of at least one abnormal adjacent historical polarity signal is different from the polarity of the current polarity signal is detected, taking the historical gain coefficient adjustment value output last time by the hysteresis control unit as the current gain coefficient adjustment value.
5. The gain calculator of claim 2, wherein the adjustment value operator unit is further configured to:
acquiring a second preset number of adjacent historical polarity signals corresponding to the current polarity signal from the historical polarity signals stored in the storage subunit, and acquiring the number of target adjacent historical polarity signals with the same polarity as the current polarity signal;
judging whether the number of the target adjacent historical polarity signals is greater than or equal to a preset number threshold value or not;
and if the number of the target adjacent historical polar signals is larger than or equal to a preset number threshold value, generating a current gain coefficient adjustment value according to the current gain coefficient update value and the historical gain coefficient adjustment value output by the hysteresis control unit last time.
6. The gain calculator of claim 5, wherein the adjustment value operator unit, after determining whether the number of target adjacent historical polarity signals is greater than or equal to a preset number threshold, is further configured to:
and if the number of the target adjacent historical polarity signals is smaller than a preset number threshold value, taking the historical gain coefficient adjustment value output last time by the hysteresis control unit as the current gain coefficient adjustment value.
7. An automatic gain control system comprising a gain calculator and a digital automatic gain controller according to any of claims 1-6;
the digital automatic gain controller is in communication connection with the gain calculator and is used for generating a feedback signal according to a gain signal corresponding to an output signal of the variable gain amplifier and outputting the feedback signal to the gain calculator;
and the gain calculator is used for generating a gain coefficient according to the feedback signal and the gain signal corresponding to the output signal of the variable gain amplifier and outputting the gain coefficient to the variable gain amplifier.
8. The system of claim 7, further comprising a variable gain amplifier;
the variable gain amplifier is in communication connection with the gain calculator and is used for carrying out gain adjustment on an analog receiving signal according to the gain coefficient when receiving the gain coefficient output by the gain calculator so as to obtain an analog gain signal and outputting the analog gain signal to the gain calculator;
the gain calculator is specifically configured to generate a gain coefficient according to the feedback signal and the analog gain signal.
9. The system of claim 8, further comprising an analog-to-digital converter in communication with the variable gain amplifier, the digital automatic gain controller, and the gain calculator, respectively;
the variable gain amplifier is further used for outputting the analog gain signal to the analog-to-digital converter;
the analog-to-digital converter is used for converting the analog gain signal into a digital gain signal and respectively outputting the digital gain signal to the gain calculator and the digital automatic gain controller;
the digital automatic gain controller is specifically configured to generate a feedback signal according to the digital gain signal, and output the feedback signal to the gain calculator;
the gain calculator is further configured to generate a gain coefficient according to the feedback signal and the digital gain signal.
10. The system of claim 9, wherein the digital automatic gain controller is specifically configured to:
and acquiring the signal power of the digital gain signal, and generating a feedback signal according to the signal power of the digital gain signal and the lower limit value and the upper limit value of a preset power range.
CN202210774588.0A 2022-07-01 2022-07-01 Gain calculator and automatic gain control system Pending CN115037261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210774588.0A CN115037261A (en) 2022-07-01 2022-07-01 Gain calculator and automatic gain control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210774588.0A CN115037261A (en) 2022-07-01 2022-07-01 Gain calculator and automatic gain control system

Publications (1)

Publication Number Publication Date
CN115037261A true CN115037261A (en) 2022-09-09

Family

ID=83129176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210774588.0A Pending CN115037261A (en) 2022-07-01 2022-07-01 Gain calculator and automatic gain control system

Country Status (1)

Country Link
CN (1) CN115037261A (en)

Similar Documents

Publication Publication Date Title
US6968166B2 (en) Method and apparatus of a fast digital automatic gain control circuit
CN100566176C (en) Automatic gain control equipment
US7386285B2 (en) Automatic gain control adaptive for plural modulation schemes
CN110113019B (en) Two-stage audio gain circuit based on analog-to-digital conversion and audio terminal
US7809080B2 (en) Strategically selecting data captures for signal predistortion
CN101366176A (en) Phase compensation for analog gain switching in OFDM modulated physical channel
JP2006523413A (en) Method and apparatus for estimating and controlling initial time slot gain in a wireless communication system
US9059671B2 (en) Automatic gain control device
CN101567672B (en) Method and system for acquiring gain
EP1753144B1 (en) Address generating device and method of generating address
TWI342687B (en) Enhanced automatic gain control mechanism for timeslotted data transmissions
CN115037261A (en) Gain calculator and automatic gain control system
TW201417554A (en) System and method of adjusting volume of receiver of mobile phone
CN112565148B (en) OFDM signal processing method and device and electronic equipment
CN101588196A (en) Device and method for gain control
US7277510B1 (en) Adaptation algorithm based on signal statistics for automatic gain control
CN107295442A (en) speaker control method and device
JP4014429B2 (en) Automatic gain controller
CN110290578B (en) Method and terminal for acquiring noise power
CN104539253A (en) Three-level automatic gain control device and control method thereof
CN115102612B (en) Gain control method, device, gain controller and signal receiving end
KR100625238B1 (en) Apparatus for automatically controlling gain in orthogonal frequency division multiple access system
CN111786691A (en) Automatic gain control method and system of receiver
CN204031125U (en) Three grades of automatic gain control equipments
US9106195B2 (en) Method and apparatus for controlling signal gain in digital signal processing system

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