Automatic gain control method and device

Through the closed-loop control system, the voltage signal sampling of the input and output detection modules is used to automatically adjust the RF link gain, which solves the problem of unstable output power of the RF pulse signal and realizes the stability of the RF output signal power.

CN115842525BActive Publication Date: 2025-08-08HUBEI SANJIANG SPACE XIANFENG ELECTRONICS&INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211646793.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-08-08
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

The prior art lacks the function or the accuracy of automatically adjusting the gain of the RF link or is insufficient, resulting in unstable output power of the RF pulse signal.

Method used

The closed-loop control system is adopted to sample voltage value signals by inputting the detection module and output detection module, and the attenuation value of the CNC attenuation module is controlled by the automatic gain control module to maintain the power of the RF output signal.

Benefits of technology

The stability of the RF output signal power is achieved, and the gain can be automatically adjusted within the RF input signal range to ensure the constant output signal power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842525B_ABST
    Figure CN115842525B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic gain control method and device, wherein the device includes an input detection module, a digitally controlled attenuation module, a power amplification module, an output detection module, and an automatic gain control module. The automatic gain control module is respectively connected to the input detection module, the digitally controlled attenuation module, and the output detection module, so as to collect the first sampling voltage value signal output by the input detection module and the second sampling voltage value signal output by the output detection module, and then control the digitally controlled attenuation module through logical operations, so as to ensure that the power of the radio frequency output signal is maintained at a constant value. The automatic gain control method and device provided by the present invention belong to a closed-loop control system. As long as the radio frequency pulse input signal is within a certain input power range, the digitally controlled attenuation module can be controlled by the automatic gain control module to obtain a radio frequency output signal with stable power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of radio frequency technology, and more specifically, to an automatic gain control method and device. Background Art

[0002] In some specific applications, the transmit power of RF pulse signals must remain constant after being amplified by an RF power amplifier. However, because the power of the input RF pulse signals is within a certain range and the gain of different links varies, a solution is needed to automatically adjust the gain of the RF link to maintain a stable output RF signal power.

[0003] However, the existing technology lacks the function of automatically adjusting the link gain, or the accuracy is too poor to meet actual requirements. Summary of the Invention

[0004] In response to at least one defect or improvement need in the prior art, the present invention provides an automatic gain control method and device, which implements automatic gain control of a radio frequency pulse input signal and can obtain a radio frequency output signal with more stable power.

[0005] To achieve the above objectives, according to a first aspect of the present invention, the present invention provides an automatic gain control device, comprising: an input detection module, configured to convert the power of a radio frequency input signal into an input detection voltage signal, and perform ADC sampling on the input detection voltage signal to obtain a first sampled voltage value signal; a digitally controlled attenuation module, configured to determine an attenuation value in response to control by the automatic gain control module to adjust the power of the radio frequency input signal; a power amplification module, configured to perform power amplification on the adjusted radio frequency input signal and output a radio frequency output signal; an output detection module, configured to convert the power of the radio frequency output signal into an output detection voltage signal, and perform ADC sampling on the output detection voltage to obtain a second sampled voltage value signal; and an automatic gain control module, configured to control the attenuation value of the digitally controlled attenuation module based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the radio frequency output signal.

[0006] According to the automatic gain control device provided by the present invention, the attenuation value of the digitally controlled attenuation module is further controlled based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal, specifically including: setting an input detection threshold; when the input detection voltage value of the first sampled voltage value signal is continuously greater than the input detection threshold for a period of time, determining the attenuation value of the digitally controlled attenuation module based on the second sampled voltage value signal and the target output power of the RF output signal; using the attenuation value as a locking parameter of the digitally controlled attenuation module; and controlling the digitally controlled attenuation module using the locking parameter to maintain the power stability of the RF output signal.

[0007] According to the automatic gain control device provided by the present invention, further determining the attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal specifically includes:

[0008] Step 1: Calculating the current actual output power of the RF output signal according to the second sampled voltage value signal;

[0009] Step 2: Obtaining a difference between the target output power and the current actual output power, and performing filtering and integration processing on the difference to obtain a processing result;

[0010] Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result;

[0011] Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

[0012] According to the automatic gain control device provided by the present invention, the input detection module includes: an input detection unit, an input detection voltage filtering unit, and a first ADC sampling unit; the input detection unit is used to collect the power value of the RF input signal to convert the RF input signal into an input detection voltage signal; the input detection voltage filtering unit is used to filter the input detection voltage signal; the first ADC sampling unit is used to perform ADC sampling on the input detection voltage signal after filtering to obtain the first sampled voltage value signal; the output detection module includes: an output detection unit, an output detection voltage filtering unit, and a second ADC sampling unit; the output detection unit is used to collect the power value of the RF output signal to convert the RF output signal into an output detection voltage signal; the output detection voltage filtering unit is used to filter the output detection voltage signal; the second ADC sampling unit is used to perform ADC sampling on the output detection voltage signal after filtering to obtain the second sampled voltage value signal.

[0013] According to the automatic gain control device provided by the present invention, the input detection unit includes an input detector, the input detection voltage filtering unit includes an input detection voltage filtering circuit, and the first ADC sampling unit includes a first ADC sampling circuit; the output detection unit includes an output detector, the output detection voltage filtering unit includes an output detection voltage filtering circuit, and the second ADC sampling unit includes a second ADC sampling circuit.

[0014] According to the automatic gain control device provided by the present invention, the digitally controlled attenuation module is a digitally controlled attenuator, and the power amplification module is a power amplifier; the output end of the digitally controlled attenuator is connected to the input end of the power amplifier.

[0015] According to the automatic gain control device provided by the present invention, the automatic gain control module is an FPGA logic control chip; the input detection module, the digital control attenuation module and the output detection module are all communicatively connected to the FPGA logic control chip via an SPI bus.

[0016] According to a second aspect of the present invention, the present invention also provides an automatic gain control method applied to any of the above-mentioned automatic gain control devices, comprising: obtaining a first sampled voltage value signal and a second sampled voltage value signal; wherein the first sampled voltage value signal is obtained using an input detection module, and the second sampled voltage value signal is obtained using an output detection module; and controlling the attenuation value of a digitally controlled attenuation module based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal.

[0017] According to the automatic gain control method provided by the present invention, the attenuation value of the digitally controlled attenuation module is controlled based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal. The method specifically includes: setting an input detection threshold; when the input detection voltage value of the first sampled voltage value signal is continuously greater than the input detection threshold for a period of time, determining the attenuation value of the digitally controlled attenuation module based on the second sampled voltage value signal and the target output power of the RF output signal; using the attenuation value as a locking parameter of the digitally controlled attenuation module; and controlling the digitally controlled attenuation module using the locking parameter to maintain the power stability of the RF output signal.

[0018] According to the automatic gain control method provided by the present invention, determining the attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal specifically includes:

[0019] Step 1: Calculating the current actual output power of the RF output signal according to the second sampled voltage value signal;

[0020] Step 2: Obtaining a difference between the target output power and the current actual output power, and performing filtering and integration processing on the difference to obtain a processing result;

[0021] Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result;

[0022] Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

[0023] In general, compared with the prior art, the above technical solution conceived by the present invention belongs to a closed-loop control system. As long as the RF input signal is within a certain input power range, the automatic gain control module can perform logical operations on the collected first sampled voltage value signal and the second sampled voltage value signal to achieve control of the digital control attenuation module, thereby obtaining a RF output signal with stable power. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0025] Figure 1 It is a structural schematic diagram of the automatic gain control device provided by the present invention;

[0026] Figure 2 It is a timing diagram of the input detection voltage signal and the output detection voltage signal provided by the present invention;

[0027] Figure 3 This is the first pulse AGC working timing diagram provided by the present invention;

[0028] Figure 4 This is the N+1th pulse AGC working timing diagram provided by the present invention;

[0029] Figure 5 This is a principle block diagram of the automatic gain control provided by the present invention. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely for the purpose of explaining the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.

[0031] The terms "first," "second," "third," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0032] Figure 1 Schematic diagram of the structure of the automatic gain control device provided by the present invention, such as Figure 1 As shown, the device includes: an input detection module 10 , a digitally controlled attenuation module 20 , a power amplification module 30 , an output detection module 40 and an automatic gain control module 50 .

[0033] It can be understood that the RF input signal (i.e., the RF pulse input signal) first reaches the input detection module 10, then passes through the digitally controlled attenuation module 20 and the power amplification module 30 to obtain the RF output signal, and finally the RF output signal is transmitted through the output detection module 40.

[0034] The input detection module 10 is used to convert the power of the radio frequency input signal into an input detection voltage signal, and perform ADC sampling on the input detection voltage signal to obtain a first sampled voltage value signal.

[0035] Optionally, the input detection module 10 includes: an input detection unit 101 , an input detection voltage filtering unit 102 , and a first ADC sampling unit 103 .

[0036] The input detection unit 101 is used to collect the power value of the RF input signal to convert the power of the RF input signal into an input detection voltage signal; optionally, the present invention selects an input detector as the input detection unit 101.

[0037] The input detection voltage filter unit 102 is configured to filter the input detection voltage signal. Optionally, the present invention uses an input detection voltage filter circuit as the input detection voltage filter unit 102. After filtering the input detection voltage signal through the input detection voltage filter circuit, voltage fluctuations in the input detection voltage signal can be filtered out, making the input detection voltage signal more stable.

[0038] The first ADC sampling unit 103 is configured to perform ADC sampling on the filtered input detection voltage signal to obtain the first sampled voltage value signal. Optionally, the present invention selects a first ADC sampling circuit as the first ADC sampling unit 103. It is understood that the filtered input detection voltage signal is an analog signal. In order to perform digital gain control using the automatic gain control module 50 (which may be a microprocessor), the analog signal needs to be converted into a digital signal. Therefore, the first ADC sampling circuit needs to perform ADC sampling on the input detection voltage signal (analog signal) to convert it into a digital signal, i.e., the first sampled voltage value signal.

[0039] Optionally, the input detection module 10 and the automatic gain control module 50 in the present invention are connected via an SPI bus, so that the input detection module 10 can send the first sampled voltage value signal to the automatic gain control module 50 to facilitate calculation by the automatic gain control module 50.

[0040] It should be noted that SPI is a full-duplex synchronous serial bus used for communication between microprocessor control units and peripheral devices. It is primarily used in EEPROMs, Flash memories, real-time clocks (RTCs), digital-to-analog converters (ADCs), network controllers, MCUs, digital signal processors (DSPs), and digital signal decoders.

[0041] The digitally controlled attenuation module 20 is configured to determine an attenuation value in response to control by the automatic gain control module to adjust the power of the RF input signal. Optionally, the present invention utilizes a digitally controlled attenuator as the digitally controlled attenuation module 20. The digitally controlled attenuator is connected to the automatic gain control module 50 via an SPI bus. The automatic gain control module 50 can automatically control the attenuation value of the digitally controlled attenuation module 20 based on the calculated result.

[0042] The power amplification module 30 is configured to amplify the power of the adjusted RF input signal and output a RF output signal. Optionally, the power amplification module 30 may be a conventional power amplifier to further amplify the power of the RF input signal.

[0043] The output detection module 40 is configured to convert the power of the RF output signal into an output detection voltage signal, and perform ADC sampling on the output detection voltage to obtain a second sampled voltage value signal.

[0044] Optionally, the output detection module 40 includes: an output detection unit 401 , an output detection voltage filtering unit 402 , and a second ADC sampling unit 403 .

[0045] The output detection unit 401 is configured to collect the power value of the RF output signal to convert the power of the RF output signal into an output detection voltage signal. Optionally, the present invention selects an output detector as the output detection unit 401 .

[0046] The output detection voltage filter unit 402 is configured to filter the output detection voltage signal. Optionally, the present invention uses an output detection voltage filter circuit as the output detection voltage filter unit 402. After filtering the output detection voltage signal through the output detection voltage filter circuit, voltage fluctuations in the output detection voltage signal can be filtered out, making the output detection voltage signal more stable.

[0047] The second ADC sampling unit 403 is configured to perform ADC sampling on the output detection voltage signal after filtering to obtain the second sampled voltage value signal. Optionally, the present invention selects a second ADC sampling circuit as the second ADC sampling unit 403. It is understood that the output detection voltage signal after filtering is an analog signal. In order to perform digital gain control using the automatic gain control module 50 (which can be a microprocessor), the analog signal needs to be converted into a digital signal. Therefore, the second ADC sampling circuit is required to perform ADC sampling on the input detection voltage signal (analog signal) to convert it into a digital signal, i.e., the second sampled voltage value signal.

[0048] Optionally, the output detection module 40 and the automatic gain control module 50 in the present invention are connected via an SPI bus, so that the output detection module 40 can send the second sampled voltage value signal to the automatic gain control module 50 to facilitate calculation by the automatic gain control module 50.

[0049] The automatic gain control module 50 is configured to control the attenuation value of the digitally controlled attenuation module based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal. Optionally, the automatic gain control module 50 in the present invention is an FPGA logic control chip.

[0050] The automatic gain control module 50 in the present invention can use the first sampled voltage value signal corresponding to the input detection signal and the second sampled voltage value signal corresponding to the output detection signal to control the attenuation value of the digital control attenuation module to achieve digital gain control, thereby maintaining the power stability of the RF output signal.

[0051] Based on the content of the above embodiment, as an optional embodiment, the automatic gain control module in the present invention controls the attenuation value of the digitally controlled attenuation module based on the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal, specifically including: setting an input detection threshold; when the input detection voltage value of the first sampled voltage value signal is continuously greater than the input detection threshold for a period of time, determining the attenuation value of the digitally controlled attenuation module based on the second sampled voltage value signal and the target output power of the RF output signal; using the attenuation value as a locking parameter of the digitally controlled attenuation module; and controlling the digitally controlled attenuation module using the locking parameter to maintain the power stability of the RF output signal. The process of implementing automatic gain control using the automatic gain control device is described below with reference to the accompanying drawings.

[0052] It should be noted that, in practice, the automatic gain control module performs automatic gain control using a first sampled voltage value signal corresponding to the input detection voltage signal and a second sampled voltage value signal corresponding to the output detection voltage signal. Specifically, the first sampled voltage value signal is a digital signal corresponding to the output detection voltage signal, and the second sampled voltage value signal is a digital signal corresponding to the output detection voltage signal. To facilitate explanation of the principles of the present invention, and because converting an analog signal into a digital signal for processing by a processor is a conventional operation in the art, the specific analog-to-digital conversion process will not be further described below.

[0053] Figure 2 This is a timing diagram of the input detection voltage signal and the output detection voltage signal provided by the present invention, such as Figure 2 As shown, the input detection voltage signal and the output detection voltage signal here are both signals after filtering.

[0054] The detection voltages output by the detectors (input detector and output detector) need to pass through filtering circuits (the corresponding input detection voltage filter circuit and output detection voltage filter circuit) to remove spurious signals and jitter. Of course, these filtering circuits can also be replaced by filters, namely, an input detection filter for filtering the input detection voltage signal and an output detection filter for filtering the output detection voltage signal.

[0055] Furthermore, based on the modulation mode and symbol rate of the RF signal, the input detection filter uses a filter capacitor with a smaller capacitance to ensure that the input detection voltage has faster rise and fall times after passing through the input detection filter. The output detection filter uses a filter capacitor with a larger capacitance to ensure that the output detection voltage has a more stable output amplitude and slower rise and fall times after passing through the output detection filter.

[0056] It should be noted that the input detection voltage value in the present invention is determined based on the first sampled voltage value signal after ADC sampling of the input detection voltage signal; further, it can be understood that the RF input signal in the present invention includes multiple pulse signals, and accordingly, the input detection voltage signal (and the first sampled voltage value signal) also includes corresponding multiple pulse signals.

[0057] By detecting the input detection voltage value of the current pulse signal corresponding to the output detection voltage signal (whether it reaches the input detection threshold), the AGC tracking loop can be started and paused. Figure 3 and Figure 4 Provide further explanation.

[0058] Figure 3 This is the first pulse AGC working timing diagram provided by the present invention, such as Figure 3 As shown, first set the input detection threshold. When the input detection voltage value is continuously greater than the input detection threshold for a certain period of time, the AGC tracking loop starts. When it is lower than the input detection threshold for a certain period of time, the AGC tracking loop stops.

[0059] Therefore, when the first pulse signal (i.e., the current pulse signal) arrives and the input detection voltage value reaches the input detection threshold, the AGC tracking loop starts. After a certain period of time, the AGC tracking loop is locked until the first pulse signal ends, when the input detection voltage value drops quickly below the input detection threshold value. At this time, since the output detection voltage value drops very slowly, and the filtering and integration in the AGC loop also increase the delay time, the digitally controlled attenuation value output by the AGC does not change until the AGC tracking loop is paused. When the AGC tracking loop is paused, the locking parameters of the AGC's digitally controlled attenuator (i.e., the attenuation value of the digitally controlled attenuator) will be temporarily stored, and during the AGC lock protection period of the next pulse, the digitally controlled attenuator will be switched to the locking parameters by the AGC tracking loop for control.

[0060] It should be noted that, first, the present invention ensures that the input detection threshold is less than the actual usable RF input signal power range. Second, when the AGC tracking loop is paused, the lock parameter (the attenuation value of the digitally controlled attenuator) output by the AGC tracking loop does not change. Specifically, as long as the change is less than one digitally controlled attenuator step value, the lock parameter does not change. This means that the change in the lock parameter is less than the digitally controlled attenuator step value, and therefore the digitally controlled attenuation value does not change.

[0061] In addition, the filter capacitor of the output detection filter is a compromise value to ensure the AGC locking time and locking accuracy. Only by ensuring that the AGC tracking loop can lock within one pulse under the most extreme conditions and the locking accuracy is within 1 step value of the digitally controlled attenuator can the output power be stable.

[0062] It's understandable that because the input detection filter's capacitance is smaller than the output detection filter's capacitance, the input detection voltage curve changes faster than the output detection voltage curve. Furthermore, the input voltage detection curve ensures that the lock parameters remain unchanged when the AGC tracking loop is paused, even after it drops to the input detection threshold.

[0063] Figure 4 This is the N+1 pulse AGC working timing diagram provided by the present invention, refer to Figure 4 If the previous pulse signal is locked and the lock parameters are stored, the next pulse will use the lock parameters of the previous pulse to control the digitally controlled attenuator within the AGC lock protection interval. Because the output detection value rises slowly, the AGC tracking loop will briefly lose lock after restarting, but will quickly lock to the target power. The re-lock time is much shorter than the initial lock time and is also shorter than the AGC lock protection time. Therefore, after the AGC lock protection time expires, the control parameters of the digitally controlled attenuator switch from the lock parameters of the previous pulse to the calculated output of the AGC tracking loop, and the output power will remain constant.

[0064] From this we can see that when the first pulse passes, the AGC will lock to the set target power, and the following N pulses will also continue to track and lock to the target power.

[0065] It should be noted that the AGC lock protection time only needs to ensure that the AGC tracking loop can be re-locked at the end of the lock protection time, and the attenuation value of the digitally controlled attenuator remains unchanged. The specific AGC lock protection time can be adjusted according to actual needs.

[0066] Figure 5 This is a block diagram of the principle of the automatic gain control provided by the present invention, such as Figure 5 As shown, the difference between the current actual output power and the target output power is obtained, and then after filtering and integration, the attenuation value of the digital controlled attenuator is controlled. After continuous iteration, the output power is controlled to approach the target power. Specifically, the following steps are included:

[0067] Step 1: Calculate the current actual output power of the RF output signal according to the second sampled voltage value signal.

[0068] It can be understood that the second sampled voltage value signal is obtained by ADC sampling of the output detection voltage signal. The automatic gain control module (which can be a microprocessor) operates on the second sampled voltage value signal to obtain the current actual output power of the RF output signal.

[0069] Step 2: Obtain a difference between the target output power and the current actual output power, and perform filtering and integration processing on the difference to obtain a processing result.

[0070] Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result.

[0071] The processing result may be an integration result. In fact, using the integration result to determine the attenuation value is a closed-loop negative feedback regulation process. The attenuation value of the numerical control attenuation module is determined by the integration result, so that the current actual output power approaches the target output power.

[0072] Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

[0073] After continuous iteration, the current actual output power can continuously approach the target output power. When the difference between the current actual output power and the target output power is less than the preset threshold, it can be regarded as the AGC tracking loop locked, and the final attenuation value is used as the target locking parameter.

[0074] In summary, the automatic gain control device proposed in the present invention is a closed-loop control system that ensures the accuracy of the output power as long as the input signal is within the input range, even if the link gain varies. It can also maintain a constant gain value during the appearance and disappearance of pulses. Once the system is locked, the control system will not lose lock even when the pulse disappears. The input detection voltage signal and the output detection voltage signal are simultaneously used in the automatic gain control, and different rising and falling curves of the input detection voltage signal and the output detection voltage signal are designed to achieve the purpose of output power stability.

[0075] Furthermore, the present invention also provides an automatic gain control method, which is applied to any of the above-mentioned automatic gain control devices, and the method includes:

[0076] Acquire a first sampled voltage value signal and a second sampled voltage value signal; wherein the first sampled voltage value signal is acquired by using the input detection module 10, and the second sampled voltage value signal is acquired by using the output detection module 40;

[0077] The attenuation value of the digital control attenuation module 20 is controlled according to the first sampled voltage value signal and the second sampled voltage value signal to keep the power of the radio frequency output signal stable.

[0078] Optionally, determining the attenuation value of the digitally controlled attenuation module 20 according to the second sampled voltage value signal and the target output power of the RF output signal specifically includes:

[0079] Step 1: Calculating the current actual output power of the RF output signal according to the second sampled voltage value signal;

[0080] Step 2: Obtaining a difference between the target output power and the current actual output power, and performing filtering and integration processing on the difference to obtain a processing result;

[0081] Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result;

[0082] Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

[0083] It is understandable that the execution subject of the above automatic gain control method can be an automatic gain control module in the automatic gain control device. In addition, the implementation process of the method will not be repeated here, and the specific implementation process can be referred to the above embodiment.

[0084] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the automatic gain control method described above. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive, a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0085] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0086] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0087] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0088] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0090] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0091] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure herein, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not recorded in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

[0092] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0093] It will be easily understood by those skilled in the art that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. An automatic gain control device, characterized in that: include: An input detection module is used to convert the power of the RF input signal into an input detection voltage signal, and perform ADC sampling on the input detection voltage signal to obtain a first sampled voltage value signal; a digitally controlled attenuation module, configured to determine an attenuation value in response to control by the automatic gain control module, so as to adjust the power of the radio frequency input signal; a power amplification module, configured to amplify the power of the adjusted RF input signal and output a RF output signal; an output detection module, configured to convert the power of the RF output signal into an output detection voltage signal, and perform ADC sampling on the output detection voltage to obtain a second sampled voltage value signal; an automatic gain control module, configured to control the attenuation value of the digitally controlled attenuation module according to the first sampled voltage value signal and the second sampled voltage value signal, so as to maintain the power stability of the RF output signal; Controlling the attenuation value of the digitally controlled attenuation module according to the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal specifically includes: Set the input detection threshold; determining an attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal when the input detection voltage value of the first sampled voltage value signal is continuously greater than the input detection threshold for a period of time; Using the attenuation value as a locking parameter of the numerically controlled attenuation module; Using the locking parameters to control the digitally controlled attenuation module to maintain the power stability of the radio frequency output signal; Determining the attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal specifically includes: Step 1: Calculating the current actual output power of the RF output signal according to the second sampled voltage value signal; Step 2: Obtaining a difference between the target output power and the current actual output power, and performing filtering and integration processing on the difference to obtain a processing result; Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result; Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

2. The automatic gain control device according to claim 1, wherein The input detection module includes: an input detection unit, an input detection voltage filtering unit, and a first ADC sampling unit; The input detection unit is used to collect the power value of the radio frequency input signal to convert the radio frequency input signal into an input detection voltage signal; The input detection voltage filtering unit is used to filter the input detection voltage signal; The first ADC sampling unit is configured to perform ADC sampling on the input detection voltage signal after filtering to obtain the first sampled voltage value signal; The output detection module includes: an output detection unit, an output detection voltage filtering unit, and a second ADC sampling unit; The output detection unit is used to collect the power value of the radio frequency output signal to convert the radio frequency output signal into an output detection voltage signal; The output detection voltage filtering unit is used to filter the output detection voltage signal; The second ADC sampling unit is used to perform ADC sampling on the output detection voltage signal after filtering to obtain the second sampled voltage value signal.

3. The automatic gain control device according to claim 2, wherein: The input detection unit includes an input detector, the input detection voltage filtering unit includes an input detection voltage filtering circuit, and the first ADC sampling unit includes a first ADC sampling circuit; The output detection unit includes an output detector, the output detection voltage filtering unit includes an output detection voltage filtering circuit, and the second ADC sampling unit includes a second ADC sampling circuit.

4. The automatic gain control device according to claim 1, wherein The digital control attenuation module is a digital control attenuator, and the power amplification module is a power amplifier; The output end of the digitally controlled attenuator is connected to the input end of the power amplifier.

5. The automatic gain control device according to claim 1, wherein: The automatic gain control module is an FPGA logic control chip; The input detection module, the digital control attenuation module and the output detection module are all communicatively connected to the FPGA logic control chip via an SPI bus.

6. An automatic gain control method applied to an automatic gain control device according to any one of claims 1 to 5, characterized in that: include: Acquire a first sampled voltage value signal and a second sampled voltage value signal; wherein the first sampled voltage value signal is acquired by using an input detection module, and the second sampled voltage value signal is acquired by using an output detection module; The attenuation value of the digitally controlled attenuation module is controlled according to the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the radio frequency output signal.

7. The automatic gain control method according to claim 6, wherein: The controlling the attenuation value of the digital control attenuation module according to the first sampled voltage value signal and the second sampled voltage value signal to maintain the power stability of the RF output signal specifically includes: Set the input detection threshold; determining an attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal when the input detection voltage value of the first sampled voltage value signal is continuously greater than the input detection threshold for a period of time; Using the attenuation value as a locking parameter of the numerically controlled attenuation module; The locking parameter is used to control the digitally controlled attenuation module to maintain the power stability of the radio frequency output signal.

8. The automatic gain control method according to claim 7, wherein: Determining the attenuation value of the digitally controlled attenuation module according to the second sampled voltage value signal and the target output power of the RF output signal specifically includes: Step 1: Calculating the current actual output power of the RF output signal according to the second sampled voltage value signal; Step 2: Obtaining a difference between the target output power and the current actual output power, and performing filtering and integration processing on the difference to obtain a processing result; Step 3: Determine the attenuation value of the numerical control attenuation module according to the processing result; Step 4: Iteratively execute step 1, step 2, and step 3 in sequence, and continuously adjust the attenuation value until the difference is less than a preset threshold.

Citation Information

Patent Citations

  • Closed loop automatic level control method and apparatus for TDD mode communicating system

    CN101252378A

  • Automatic gain control system for proximity signals

    CN113507271A