Automatic gain control method and device, electronic equipment and storage medium
Through the combined method of logarithmic operation and exponential operation, the stability and power consumption problems of existing automatic gain control technology in signal amplitude adjustment are solved, automatic gain control with fast convergence and low power consumption is achieved, and the system reliability is improved. stability and efficiency.
Patent Information
- Application Number
- CN202311776558.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-10-18
AI Technical Summary
Existing automatic gain control technology is limited by changes in the input signal level when adjusting signal amplitude. It takes a long time to reach a stable state, which can easily cause unstable impact phenomena. Moreover, traditional energy estimation methods such as the RMS method require square operations during calculation. Increases system power consumption and complexity.
Using a combined method of logarithmic operation and exponential operation, the digital signal output by the analog-to-digital converter is received for amplitude limiting and filtering processing. After obtaining the energy estimate, logarithmic operation is performed, the error value is calculated based on the reference signal, and the integration step size is adjusted. The gain value achieves fast convergence and improved stability, avoids square operations, and reduces the bit width requirements of hardware design.
It achieves rapid system convergence, reduces power consumption and complexity, improves the stability and efficiency of automatic gain control, reduces the need for bit width, and the convergence characteristics are not affected by input signals.
Smart Images

Figure CN118801839A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to an automatic gain control method, device, electronic device, and storage medium. Background Art
[0002] In the prior art, automatic gain control (AGC) generally uses a linear adjustment design. This solution is limited by the level change of the input signal. On the one hand, it takes a long time to reach a stable state. On the other hand, it is easy to cause unstable impact and release time, and there is a significant overshoot phenomenon. In addition, the energy estimation method in the traditional automatic gain control circuit is generally the root mean square (RMS) method. Although it is more accurate for the true noise power, it needs to do square calculations during calculation, which greatly increases the bit width required for fixed-point operations. In logarithmic and exponential operations, additional pre-processing and post-processing steps need to be added due to the influence of the convergence domain, which will also increase the power consumption and complexity of the system. Summary of the invention
[0003] In view of the above problems, the present disclosure is proposed. The present disclosure provides an automatic gain control method, device, electronic device, and storage medium.
[0004] According to one aspect of the present disclosure, an automatic gain control method is provided, comprising: receiving a digital signal output by an analog-to-digital converter, limiting the digital signal, and then performing a logarithmic operation; superimposing the digital signal after the logarithmic operation with a reference signal to obtain an error value; obtaining an integral step length, multiplying the error value by the integral step length, and superimposing the result with an initial gain value to obtain a current gain value; saturating the current gain value, and performing an exponential operation on the current gain value to output an actual gain value.
[0005] In addition, according to an aspect of the automatic gain control method of the present disclosure, a digital signal output by an analog-to-digital converter is received, and a logarithmic operation is performed on the digital signal after limiting the digital signal, including: limiting the absolute value of the received digital signal, filtering it, obtaining an energy estimate of the digital signal, and then performing a logarithmic operation.
[0006] In addition, according to an aspect of the automatic gain control method of the present disclosure, the digital signal after logarithmic operation is superimposed with the reference signal to obtain an error value, including: superimposing the digital signal after logarithmic operation with the reference signal, performing filtering processing, and obtaining an error value.
[0007] In addition, according to an automatic gain control method according to one aspect of the present disclosure, obtaining an integral step size includes:
[0008] The digital signal after the logarithmic operation is sampled and pulse processed to obtain sampling data, and the sampling data is accumulated to obtain the accumulated value of the sampling data; it is determined whether the accumulated value exceeds the threshold value; if the accumulated value does not exceed the threshold value, the integration step is zero.
[0009] In addition, according to an automatic gain control method according to one aspect of the present disclosure, obtaining the integral step size also includes: if the threshold value is exceeded, continuing to obtain sampled data; judging whether the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement; if the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement, then the integral step size is zero, and the anti-jitter pulse counter is set to 1.
[0010] In addition, according to an automatic gain control method according to one aspect of the present disclosure, obtaining the integral step also includes: if the threshold of the error value is not greater than the lower limit of the error requirement and less than the upper limit of the error requirement; judging whether the pulse count exceeds the threshold setting; if the pulse count does not exceed the threshold setting, the integral step is zero and the anti-jitter pulse counter value increases; wherein the pulse count is obtained by using a pulse counter to count the pulses of a digital signal after a logarithmic operation.
[0011] In addition, according to an automatic gain control method according to one aspect of the present disclosure, obtaining the integral step also includes: if the pulse count exceeds the threshold setting; judging whether the threshold of the error value is greater than the lower limit of the integral step and less than the upper limit of the integral step; if the threshold of the error value is greater than the lower limit of the integral step and less than the upper limit of the integral step, then the integral step is a first type of step, and the anti-jitter pulse counter remains unchanged; and, if the threshold of the error value is not greater than the lower limit of the integral step and less than the upper limit of the integral step, then the integral step is a second type of step, and the anti-jitter pulse counter remains unchanged; wherein, the second type of step is longer than the first type of step.
[0012] In addition, according to another aspect of the present disclosure, the automatic gain control device includes: a receiving module, configured to receive a digital signal output by an analog-to-digital converter, and perform a logarithmic operation on the digital signal after limiting the digital signal; an acquisition module, configured to superimpose the digital signal after the logarithmic operation with a reference signal to obtain an error value; a processing module, configured to obtain an integral step length, multiply the error value by the integral step length, and superimpose the result with an initial gain value to obtain a current gain value; and an output module, configured to perform saturation processing on the current gain value, and output an actual gain value after performing an exponential operation.
[0013] According to yet another aspect of the present disclosure, an electronic device is provided, including: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions so that the electronic device performs the above automatic gain control method.
[0014] According to another aspect of the present disclosure, a storage medium is provided for storing computer-readable instructions. When the computer-readable instructions are executed by a processor, the processor executes the above automatic gain control method.
[0015] As will be described in detail below, according to an automatic gain control method, device, electronic device, and storage medium of an embodiment of the present disclosure, the present disclosure obtains energy estimation by limiting the received digital signal, and no square operation is required during the calculation process, which greatly reduces the demand for bit width. In addition, the automatic gain control device in the present invention uses a logarithmic loop-based method when adjusting the signal amplitude to achieve rapid system convergence, and the convergence characteristics are not affected by the input signal. In order to achieve signal amplitude adjustment based on the logarithmic loop, the present invention also proposes a low-power and low-complexity logarithmic operation and exponential operation. On the other hand, a variety of measures are taken to improve the stability of automatic gain control.
[0016] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0018] Figure 1 FIG. 4 is a schematic diagram of an automatic gain control architecture according to an embodiment of the present disclosure.
[0019] Figure 2 FIG. 4 is a flowchart illustrating an automatic gain control method according to an embodiment of the present disclosure.
[0020] Figure 3 It is a flowchart illustrating a method for obtaining an integral step length according to an embodiment of the present disclosure.
[0021] Figure 4 is a functional block diagram illustrating an automatic gain control apparatus according to an embodiment of the present disclosure.
[0022] Figure 5 is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure.
[0023] Figure 6 is a schematic diagram illustrating a storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0025] First, refer to Figure 1 and Figure 2 An automatic gain control architecture and an automatic gain control method according to an embodiment of the present disclosure are described. Figure 1 FIG. 4 is a schematic diagram of an automatic gain control architecture according to an embodiment of the present disclosure. Figure 2 is a flow chart illustrating an automatic gain control method according to an embodiment of the present disclosure.
[0026] like Figure 1 As shown in the figure, the general implementation architecture of automatic gain control includes energy estimation, reference value comparison and integration. The energy estimation method in the traditional automatic gain control circuit is generally the RMS method. Although it is more accurate in reflecting the true noise power, it requires square calculation during calculation, which greatly increases the bit width required for fixed-point operations. When performing logarithmic and exponential operations, the need to add additional pre-processing and post-processing steps due to the influence of the convergence domain will also increase the power consumption and complexity of the system.
[0027] Based on the above problems, the present invention proposes a low-power automatic gain control method, which uses the median absolute deviation method in energy estimation, omitting the square operation and reducing the bit width requirement of the hardware design.
[0028] like Figure 2 As shown, the automatic gain control method according to the embodiment of the present disclosure is applied to an automatic gain control device, comprising the following steps:
[0029] In step S201, a digital signal output by an analog-to-digital converter is received, and a logarithmic operation is performed on the digital signal after limiting the amplitude of the digital signal.
[0030] In the automatic gain control method of the embodiment of the present disclosure, before the analog-to-digital converter outputs a digital signal, since the automatic gain control device is just powered on and receives an automatic gain (AGC) enable signal, system parameters need to be initialized.
[0031] After receiving the digital signal output by the analog-to-digital converter, the received digital signal is clipped in absolute value to obtain the energy estimation of the digital signal, and then a logarithmic operation is performed.
[0032] Furthermore, after the absolute value of the received digital signal is limited, filtering is performed to obtain an energy estimate of the digital signal, and a logarithmic operation is performed on the energy estimate of the digital signal.
[0033] Specifically, after the digital signal is absolutely limited, a 128-order cascaded integrator comb filter "CIC filter" can be used to filter the limited digital signal. The order of the CIC filter is not a restrictive condition, and any order of CIC filter can be used as long as the technical solution of the present invention can be implemented.
[0034] The digital signal after filtering is subjected to coordinate rotation digital (cordic) logarithmic operation. The CORDIC (Coordinate Rotation Digital Computer) algorithm is a coordinate rotation digital calculation method, which is mainly used for the calculation of basic functions and is widely used in digital signal processing. Discrete Fourier transform, discrete cosine transform, discrete Hartley transform, Chirp-Z transform, various filters, and singular value decomposition of matrices can all be implemented using the CORDIC algorithm. The CORDIC algorithm is an approximation method for mathematical calculations, which unifies the circular system, linear system, and hyperbolic system into a CORDIC iterative equation. The calculation accuracy is related to the number of iterations. In practical applications, high accuracy is achieved by increasing the number of iterations. The CORDIC algorithm has 6 sub-algorithms, namely, circular CORDIC rotation mode, circular CORDIC vector mode, linear CORDIC rotation mode, linear CORDIC vector mode, hyperbolic CORDIC rotation mode, and hyperbolic CORDIC vector mode. These 6 algorithms can be used to implement trigonometric functions, inverse trigonometric functions, multiplication, square root, division, logarithm, exponential functions, and other functions. Moreover, the CORDIC algorithm is composed of a series of addition, subtraction and shift operations, which is very suitable for hardware implementation. Therefore, very large scale integrated circuit (VLSI) design based on the CORDIC algorithm has high application value.
[0035] In the embodiment of the present disclosure, the cordic logarithmic transformer used is an optimized extended convergence range cordic logarithmic transformer, and its iteration formula is:
[0036] When the iteration number is greater than 0:
[0037]
[0038]
[0039] When the iteration number i≤0, there is:
[0040]
[0041]
[0042] Among them, δ iIndicates the direction of rotation, z i Indicates the rotation angle, x i ,y i Represents coordinates.
[0043] In the disclosed embodiment, the cordic logarithmic converter does not require pre-processing and post-processing, has low hardware implementation complexity, and saves system resources.
[0044] As mentioned above, the MAD method is used in energy estimation, which eliminates the square operation and reduces the bit width requirement of the hardware design.
[0045] In step S202, the digital signal after the logarithmic operation is superimposed on the reference signal to obtain an error value.
[0046] In an embodiment of the present disclosure, after the digital signal after the logarithmic operation is superimposed on the reference signal, the method further includes superimposing the digital signal after the logarithmic operation on the reference signal and performing filtering processing to obtain an error value.
[0047] In one embodiment of the present disclosure, after the digital signal subjected to logarithmic operation is superimposed with the reference signal, a multi-order digital filtering process is performed to obtain an error value.
[0048] Specifically, after the digital signal after the logarithmic operation is superimposed on the reference signal, an 8th-order CIC filter is used to perform filtering processing to obtain an error value.
[0049] In step S203, the integration step length is obtained, the error value is multiplied by the integration step length, and then superimposed with the initial gain value to obtain the current gain value.
[0050] In step S204, the current gain value is saturated and exponentially calculated to output the actual gain value.
[0051] In the embodiment of the present disclosure, the codic index converter used is an optimized cordic index converter with an extended convergence region, and its iteration formula is:
[0052] For i>0, we have:
[0053]
[0054]
[0055] For i≤0, we have:
[0056]
[0057]
[0058] The above describes the automatic gain control method according to the embodiment of the present disclosure. The following further describes the method for obtaining the integral step length. Figure 3 It is a flowchart illustrating a method for obtaining an integral step length according to an embodiment of the present disclosure.
[0059] like Figure 3 As shown, the method for obtaining the integral step length according to an embodiment of the present disclosure includes the following steps:
[0060] In step S301, the digital signal after the logarithmic operation is sampled and pulse processed to obtain sampled data, and the sampled data is accumulated to obtain the accumulated value of the sampled data.
[0061] In step S302, it is determined whether the accumulated value exceeds a threshold value.
[0062] If the accumulated value exceeds the threshold value, the process proceeds to step S303 ; if the accumulated value does not exceed the threshold value, the process proceeds to step S311 .
[0063] In step S311, the integration step is zero.
[0064] In step S303, continue to acquire sampling data.
[0065] In step S304, it is determined whether the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement.
[0066] In the embodiment of the present disclosure, the error value is the error value output after the signal is filtered by the CIC filter.
[0067] If the error value threshold is greater than the error requirement lower limit and less than the error requirement upper limit, then enter step S305.
[0068] In step S305 , the integration step is zero, and the anti-jitter pulse counter is set to 1.
[0069] In step S304, if a negative condition is obtained, that is, the threshold of the error value is not greater than the lower limit of the error requirement and less than the upper limit of the error requirement, the process proceeds to step S306.
[0070] In step S306, it is determined whether the pulse count exceeds a threshold setting.
[0071] If a negative condition is obtained in step S306, that is, the pulse count does not exceed the threshold setting, the process proceeds to step S310.
[0072] In one embodiment of the present disclosure, the pulse count is obtained by using a pulse counter to count the pulses of the digital signal after the logarithmic operation.
[0073] In step S310 , the integration step is zero and the anti-jitter pulse counter value increases.
[0074] In step S306, if a positive condition is obtained, that is, the pulse count exceeds the threshold setting, then the process proceeds to step S307.
[0075] In step S307, it is determined whether the threshold of the error value is greater than the lower limit of the integration step length and less than the upper limit of the integration step length.
[0076] In step S307, if a positive condition is obtained, that is, the threshold of the error value is greater than the lower limit of the integration step length and less than the upper limit of the integration step length, then the process proceeds to step S308.
[0077] In step S308, the integration step is a first-type step, and the anti-jitter pulse counter remains unchanged.
[0078] If a negative condition is obtained in step S307, that is, the error value threshold is not greater than the lower limit of the integration step length and less than the upper limit of the integration step length, then enter step S309.
[0079] In step S309, the integration step is the second type of step, and the anti-jitter pulse counter remains unchanged.
[0080] Among them, the first type of step size is a small step size, with a typical value of 2.0e-3, and the second type of step size is a large step size, with a typical value of 1.25e-2.
[0081] The above integration step lower limit is -0.357, and the integration step upper limit is 1.05.
[0082] The lower limit of error requirement is -0.5, the upper limit of error requirement is 0.5.
[0083] The above describes the method for acquiring the integral step length according to the embodiment of the present disclosure. The following further describes an apparatus for implementing the above automatic gain control method. Figure 4 is a functional block diagram illustrating an automatic gain control apparatus according to an embodiment of the present disclosure.
[0084] like Figure 4 As shown, the automatic gain control device 400 according to the embodiment of the present disclosure includes a receiving module 401, an acquisition module 402, a processing module 403, and an output module 404. Those skilled in the art will readily understand that these unit modules can be implemented in various ways by hardware alone, software alone, or a combination thereof, and the present disclosure is not limited to any of them.
[0085] Specifically, the receiving module 401 is configured to receive the digital signal output by the analog-to-digital converter, limit the digital signal, and then perform a logarithmic operation; the acquisition module 402 is configured to superimpose the digital signal after the logarithmic operation with the reference signal to obtain an error value; the processing module 403 is configured to obtain the integration step length, multiply the error value by the integration step length, and then superimpose it with the initial gain value to obtain the current gain value; the output module 404 is configured to perform saturation processing on the current gain value, and output the actual gain value after performing an exponential operation.
[0086] Specifically, the receiving module 401 is further configured to perform absolute value limiting on the received digital signal, perform filtering processing, and then perform coordinate rotation digital calculation and logarithmic operation to obtain energy estimation of the digital signal.
[0087] Specifically, the acquisition module is further configured to superimpose the digital signal after the logarithmic operation with the reference signal, perform filtering processing, and obtain the error value.
[0088] Specifically, the processing module 403 is also configured to sample and pulse process the digital signal after the logarithmic operation to obtain sampling data, accumulate the sampling data, and obtain the accumulated value of the sampling data; determine whether the accumulated value exceeds the threshold value; if the accumulated value does not exceed the threshold value, the integration step is zero.
[0089] Specifically, the processing module 403 is also configured to continue acquiring sampling data if the threshold value is exceeded; determine whether the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement; if the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement, the integral step is zero, and the anti-jitter pulse counter is set to 1.
[0090] Specifically, the processing module 403 is also configured to determine whether the pulse count exceeds the threshold setting if the error value threshold is not greater than the lower limit of the error requirement and less than the upper limit of the error requirement; if the pulse count does not exceed the threshold setting, the integration step is zero and the anti-jitter pulse counter value increases.
[0091] Specifically, the processing module 403 is also configured to, if the pulse count exceeds the threshold setting; determine whether the threshold of the error value is greater than the lower limit of the integral step and less than the upper limit of the integral step; if the threshold of the error value is greater than the lower limit of the integral step and less than the upper limit of the integral step, then the integral step is a first-class step, and the anti-jitter pulse counter remains unchanged; and, if the error value is not within the error threshold value and is less than the integral threshold, then the integral step is a second-class step, and the anti-jitter pulse counter remains unchanged; wherein the second-class step is longer than the first-class step.
[0092] Figure 51 is a hardware block diagram of an electronic device 500 according to an embodiment of the present disclosure. The electronic device according to an embodiment of the present disclosure includes at least a processor; and a memory for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the automatic gain control method as described above.
[0093] Figure 5 The electronic device 500 shown specifically includes: a central processing unit (CPU) 501, a graphics processing unit (GPU) 502 and a main memory 503. These units are connected to each other via a bus 504. The central processing unit (CPU) 501 and / or the graphics processing unit (GPU) 502 can be used as the above-mentioned processor, and the main memory 503 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 500 may also include a communication unit 505, a storage unit 506, an output unit 507, an input unit 508 and an external device 509, which are also connected to the bus 504.
[0094] Figure 6 Schematic diagram of a storage medium according to an embodiment of the present disclosure. Figure 6 As shown, a storage medium 600 according to an embodiment of the present disclosure has computer-readable instructions 601 stored thereon. When the computer-readable instructions 601 are executed by a processor, the automatic gain control method according to the embodiment of the present disclosure described with reference to the above figures is executed. The storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.
[0095] The automatic gain control method, device, electronic device, and storage medium according to the embodiments of the present disclosure are described above with reference to the accompanying drawings. The present disclosure obtains energy estimation by limiting the received digital signal, and no square operation is required during the calculation process, which greatly reduces the demand for bit width. In addition, the automatic gain control device in the present invention uses a logarithmic loop-based method when adjusting the signal amplitude to achieve rapid system convergence, and the convergence characteristics are not affected by the input signal. In order to achieve signal amplitude adjustment based on the logarithmic loop, the present invention also proposes a low-power and low-complexity logarithmic operation and exponential operation. On the other hand, a variety of measures are taken to improve the stability of automatic gain control.
[0096] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0097] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. An automatic gain control method, characterized in that: include: receiving a digital signal output by an analog-to-digital converter, limiting the digital signal, and then performing a logarithmic operation; Superimposing the digital signal after the logarithmic operation with a reference signal to obtain an error value; Obtain an integration step length, multiply the error value by the integration step length, and then add the result to the initial gain value to obtain a current gain value; The current gain value is saturated and exponentially operated to output the actual gain value.
2. The automatic gain control method according to claim 1, characterized in that: The receiving the digital signal output by the analog-to-digital converter, limiting the digital signal, and then performing a logarithmic operation, comprises: After the received digital signal is clipped in absolute value, filtering is performed to obtain energy estimation of the digital signal, and then logarithmic operation is performed.
3. The automatic gain control method according to claim 1, characterized in that: The step of superimposing the digital signal after the logarithmic operation with a reference signal to obtain an error value includes: The digital signal after logarithmic operation is superimposed with the reference signal, and then filtered to obtain the error value.
4. The automatic gain control method according to claim 1, characterized in that: The step of obtaining the integral step comprises: Sampling and pulse processing the digital signal after logarithmic operation to obtain sampling data, accumulating the sampling data to obtain the accumulated value of the sampling data; Determining whether the accumulated value exceeds a threshold value; If the accumulated value does not exceed the threshold value, the integration step is zero.
5. The automatic gain control method according to claim 4, characterized in that: The step length of obtaining the integral further includes: If the threshold value is exceeded, continue to obtain sampling data; Determine whether the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement; If the threshold of the error value is greater than the lower limit of the error requirement and less than the upper limit of the error requirement, the integration step is zero and the anti-jitter pulse counter is set to 1.
6. The automatic gain control method according to claim 5, characterized in that: The step length of obtaining the integral further includes: If the threshold of the error value is not greater than the lower limit of the error requirement and less than the upper limit of the error requirement; Determine whether the pulse count exceeds the threshold setting; If the pulse count does not exceed the threshold setting, the integral step is zero and the anti-jitter pulse counter value increases; The pulse count is obtained by using a pulse counter to count the pulses of the digital signal after logarithmic operation.
7. The automatic gain control method according to claim 6, characterized in that: The step length of obtaining the integral further includes: If the pulse count exceeds the threshold setting; Determine whether the threshold of the error value is greater than the lower limit of the integral step length and less than the upper limit of the integral step length; If the threshold of the error value is greater than the lower limit of the integral step and less than the upper limit of the integral step, the integral step is a first-class step, and the anti-jitter pulse counter remains unchanged; and If the error value threshold is not greater than the lower limit of the integral step and less than the upper limit of the integral step, the integral step is the second type of step, and the anti-jitter pulse counter remains unchanged. Among them, the second type of step length is longer than the first type of step length.
8. An automatic gain control device, characterized in that: include: A receiving module is configured to receive a digital signal output by the analog-to-digital converter, and perform a logarithmic operation on the digital signal after limiting the amplitude of the digital signal; An acquisition module is configured to superimpose the digital signal after the logarithmic operation with a reference signal to obtain an error value; A processing module is configured to obtain an integration step length, multiply the error value by the integration step length, and then add the result to an initial gain value to obtain a current gain value; The output module is configured to perform saturation processing on the current gain value and output the actual gain value after performing exponential operation.
9. An electronic device, characterized in that: include: a memory for storing computer readable instructions; as well as A processor is used to run the computer-readable instructions so that the electronic device performs the automatic gain control method according to any one of claims 1 to 7.
10. A storage medium for storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the processor is caused to perform the automatic gain control method according to any one of claims 1 to 7.
