CN117580143A - Automatic gain control method and system based on dual-mode communication unit - Google Patents

Automatic gain control method and system based on dual-mode communication unit Download PDF

Info

Publication number
CN117580143A
CN117580143A CN202410053807.5A CN202410053807A CN117580143A CN 117580143 A CN117580143 A CN 117580143A CN 202410053807 A CN202410053807 A CN 202410053807A CN 117580143 A CN117580143 A CN 117580143A
Authority
CN
China
Prior art keywords
signal
gain
real
power
syncflag
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.)
Granted
Application number
CN202410053807.5A
Other languages
Chinese (zh)
Other versions
CN117580143B (en
Inventor
仲跻高
卢顺祥
潘雷
仲蘅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Siyu Electric Technology Co ltd
Original Assignee
Nanjing Siyu Electric 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 Nanjing Siyu Electric Technology Co ltd filed Critical Nanjing Siyu Electric Technology Co ltd
Priority to CN202410053807.5A priority Critical patent/CN117580143B/en
Publication of CN117580143A publication Critical patent/CN117580143A/en
Application granted granted Critical
Publication of CN117580143B publication Critical patent/CN117580143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/52TPC using AGC [Automatic Gain Control] circuits or amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/04Control of transmission; Equalising

Landscapes

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

Abstract

The invention belongs to the technical field of communication, and discloses an automatic gain control method and an automatic gain control system based on a dual-mode communication unit; initializing a signal parameter to 0, and initializing an output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state, a signal state and a signal counter; calculating real-time power with n as periodN real-time powers are calculatedMean of (2)According to the mean valueCalculating a running average powerAccording to the mean valueAnd a running average powerDetecting signals; judging whether to calculate the gain value according to the signal state, the signal counter and the average valueThe method comprises the steps of carrying out a first treatment on the surface of the Gain rapid adjustment processing is carried out according to the saturation degree of the signal; based on initial synchronization state, state variables and real-time powerJudging whether to adjust the output gain GaindB; the method has high accuracy and high efficiency, and can adapt to various interference signals.

Description

Automatic gain control method and system based on dual-mode communication unit
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an automatic gain control method and system based on a dual-mode communication unit.
Background
The local communication is one of key and core technologies of the intelligent power grid electricity consumption information acquisition system; one way of performing local communication in the current smart grid electricity consumption information collection field is wireless communication; the signal will attenuate with the increase of distance in the transmission process, so the automatic gain control (Automatic Gain Control, AGC) must exist at the receiving end, and the subsequent signal processing can be more accurate by the adjustment and amplification of AGC; or the receiving end has the conditions of over-strong signal and saturation distortion in digital quantization due to over-high transmitting power, and the subsequent signal reaches a reasonable quantization range by means of adjustment and shrinkage of AGC, so that clipping distortion is avoided;
in order to solve the two problems, an intelligent automatic gain control method exists in the prior art; for example, patent with the grant publication number CN116419383B discloses an automatic gain control method, circuit and device, including a radio frequency transceiver and a baseband module, which realizes the expansion of the dynamic range of the automatic gain control circuit and ensures the stability of the output signal; for another example, patent application publication No. CN116346148A discloses a multimode automatic gain control method and system based on SoC, including: taking the analog signal output by the program-controlled attenuator as an ADC input signal, converting the analog signal into a digital signal through the ADC, obtaining a gain adjustment value, and inputting the gain adjustment value to the program-controlled attenuator; in the digital AGC part, the IQ signal is used as an input signal, a required gain value is obtained through calculation, and the input signal is adjusted to control the gain of the short wave and ultrashort wave signals received by the antenna so as to achieve the target power;
however, in addition to the two problems described above, there is a third problem in that the preamble signal for automatic gain control is too short; since the automatic gain control requires an adjustment time, the amplitude of the signal tends to fluctuate dramatically during this time; the leading signal is used for synchronization on one hand, and is used for frequency offset estimation and channel estimation on the other hand, so that the leading signal plays a great role in the signal receiving process; however, the preamble signal can last for an unstable period of time, so that the accuracy of signal synchronization, frequency offset estimation and channel estimation is greatly affected; the prior art does not consider how to realize gain control as soon as possible, so that the preamble signal is stabilized in a fixed gain state;
in view of the above, the present invention proposes an automatic gain control method and system based on a dual-mode communication unit to solve the above-mentioned problems.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides the following technical scheme for achieving the purposes: an automatic gain control method based on a dual mode communication unit, comprising:
s1: initializing a signal parameter to 0, and initializing an output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter;
s2: calculating real-time power with n as periodN real-time powers are calculated>Mean>According to the mean valueCalculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals;
s3: based on signal state SigOnFlag, signal counter Sigcounter and mean valueJudging whether to calculate gain value +.>
S4: in calculating gain valuesMeanwhile, gain rapid adjustment is carried out according to the saturation degree of the signal, and gain adjustment quantity is increased;
s5: judging whether to repeatedly carry out the steps S2-S5 according to the initial synchronous state SyncFlag;
s6: based on the initial synchronization state SyncFlag, state variable UltraHighFlag and real-time powerJudging whether to adjust the output gain gaindB, and outputting the gain gaindB to complete the automatic gain control of the primary signal.
Further, real-time powerThe calculation method of (2) is as follows:
in the method, in the process of the invention,for the input sampling signal, +.>For the number of sampling points, +.>
Further, the average valueThe calculation mode of (2) is as follows:
in the method, in the process of the invention,
further, the power of the sliding averageThe calculation method of (2) is as follows:
in the method, in the process of the invention,is the size of the sliding window.
Further, the signal detection method comprises the following steps:
per calculationSecond->Then signal detection is carried out once;
if it isWhen the signal existence threshold SigOnThld is larger than the signal existence threshold SigOnThld and the initial synchronization state SyncFlag is 0, setting SigOnFlag to 1;
if it isLess than the end of signal threshold SigOffThld and the initial synchronization state SyncFlag is 1, sigOnFlag is set to 0.
Further, it is determined whether to calculate the gain valueThe method of (1) comprises:
if no signal is detected, i.e. SigOnFlag is 0, calculating the required gain value according to the real-time power and target power corresponding to the signal
In the method, in the process of the invention,is the target power;
if the first occurrence of the signal is detected, starting to count the signal counter, and judging whether the signal counter is larger than a preset threshold or not;
if SigCounter is smaller than or equal to the preset threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
If SigCounter is greater than the preset threshold, judging the current average valueWhether greater than the abnormal power threshold, if the average value +.>If the power is larger than the abnormal power threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
Further, the method for quickly adjusting the gain comprises the following steps:
if the real-time power isGreater than the first saturation threshold, the gain value +.>Minus MinusdB1 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously, the initial synchronous state SyncFlag is adjusted to be 1;
if the real-time power isGreater than the second saturation threshold and less than or equal to the first saturation threshold, the gain value is then setMinus MinusdB2 as new gain value +.>
If the real-time power isGreater than the third saturation threshold and less than or equal to the second saturation threshold, the gain value is then setMinus MinusdB3 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously setting a state variable UltraHighFlag to be 1, otherwise, setting the state variable UltraHighFlag to be 0;
wherein the first saturation threshold > the second saturation threshold > the third saturation threshold.
Further, the method for judging whether to repeatedly perform the steps S2-S5 comprises the following steps:
if the initial synchronization status SyncFlag is 0, letRecalculating real-time power +.>Repeating the steps S2-S5;
if the initial synchronization status SyncFlag is 1, the steps S2-S5 are not repeated.
Further, the method for judging whether to adjust the output gain GaindB includes:
if the initial synchronization state SyncFlag is 1 and the state variable UltraHighFlag is 1, the real-time power is simultaneouslyLess than->When the gain is increased, the plus dB is added to the output gain GaindB to be used as a new output gain GaindB;
if there is an initial synchronization status SyncFlag of not 1 or a status variable UltraHighFlag of not 1 or real-time powerGreater than or equal to->When the gain GaindB is not changed.
An automatic gain control system based on a dual mode communication unit implements the automatic gain control method based on the dual mode communication unit, comprising:
the parameter initialization module initializes the signal parameter to 0, and initializes the output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter;
the signal detection module calculates real-time power by taking n as a periodN real-time powers are calculated>Mean>According to mean->Calculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals;
gain calculation module based on signal state SigOnFlag, signal counter Sigcounter and average valueJudging whether to calculate gain value +.>
Gain rapid adjusting module for calculating gain valueMeanwhile, gain rapid adjustment is carried out according to the saturation degree of the signal, and gain adjustment quantity is increased;
the repeated operation module judges whether to repeatedly perform the signal detection module, the gain calculation module and the gain quick adjustment module according to the initial synchronization state SyncFlag;
gain control module for controlling gain according to initial synchronous state SyncFlag and state variable UltraHighFlag and real-time powerJudging whether to adjust the output gain GaindB; and outputs gain GaindB to complete the automatic gain control of the primary signal.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of automatic gain control based on a dual mode communication unit when executing the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the dual mode communication unit based automatic gain control method.
The invention discloses an automatic gain control method and a system based on a dual-mode communication unit, which have the technical effects and advantages that:
1. the calculated power gain and the target gain can be very close, and the accuracy is high.
2. Has high efficiency. Only a few short periods are needed to quickly adjust to the desired target power after a signal is determined to be received.
3. Dynamically adapting to various interference signals to prevent abnormal signals from affecting the judgment of gain; the gain can be recalculated by timely adjustment after the interference signal exists.
Drawings
Fig. 1 is a schematic diagram of an automatic gain control system based on a dual-mode communication unit according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a signal detection process according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a gain fast adjustment process according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram of an automatic gain control method based on a dual-mode communication unit according to embodiment 2 of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, the present embodiment provides an automatic gain control system based on a dual-mode communication unit, which includes a parameter initialization module, a signal detection module, a gain calculation module, a gain fast adjustment module, a repeated operation module, and a gain control module; each module is connected in a wired and/or wireless mode, so that data transmission among the modules is realized;
the parameter initialization module initializes the signal parameter to 0, and initializes the output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter; maxPGA is the maximum value that the automatic gain control system can control;
the signal detection module calculates real-time power by taking n as a periodN real-time powers are calculated>Mean>According to mean->Calculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals; referring specifically to fig. 2;
real-time powerThe calculation method of (2) is as follows:
in the method, in the process of the invention,for the input sampling signal, +.>For the number of sampling points, +.>
Mean value ofThe calculation mode of (2) is as follows:
in the method, in the process of the invention,
sliding average powerThe calculation method of (2) is as follows:
in the method, in the process of the invention,is the size of the sliding window;
the signal detection method comprises the following steps:
per calculationSecond->Then signal detection is carried out once;
if it isWhen the signal existence threshold SigOnThld is larger than the signal existence threshold SigOnThld and the initial synchronization state SyncFlag is 0, setting SigOnFlag to 1;
if it isIf the signal end threshold SigOffThld is smaller and SigOnFlag is 1, setting SigOnFlag to 0;
it should be noted that, under the experimental environment, the signal existence threshold SigOnThld and the signal ending threshold SigOffThld are calculated by the staff when the signal first appears and the signal first disappears respectivelyAnd multiple experiments are performed to calculate +.>Is used as the signal presence threshold SigOnThld, and the multiple signals are first disappeared to calculate +.>The mean value of (a) is used as a signal end threshold SigOffThld;
gain calculation module based on signal state SigOnFlag, signal counter Sigcounter and average valueJudging whether to calculate gain value +.>
Judging whether to countCalculating gain valueThe method of (1) comprises:
if no signal is detected, i.e. SigOnFlag is 0, calculating the required gain value according to the real-time power and target power corresponding to the signal
In the method, in the process of the invention,is the target power;
the gain value isCalculated as dB value, represents the degree of enlargement or reduction of the signal, gain value +.>Is a signed value, i.e. positive or negative; the target power is preset by a person skilled in the art according to the signal processing requirement and by combining own experience;
if the first occurrence of the signal is detected, starting to count the signal counter, and judging whether the signal counter is larger than a preset threshold or not;
if SigCounter is smaller than or equal to the preset threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
If SigCounter is greater than the preset threshold, judging the current average valueWhether greater than the abnormal power threshold, if the average value +.>If the power is larger than the abnormal power threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
The gain value is calculatedAfter that, the new output gain GaindB is the original output gain GaindB plus the gain value +.>
Gain rapid adjusting module for calculating gain valueMeanwhile, specific gain rapid adjustment processing is carried out according to the saturation degree of the signal, and the gain adjustment amount is increased;
the method for quickly adjusting the gain comprises the following steps:
if the real-time power isGreater than the first saturation threshold, the gain value +.>Minus MinusdB1 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously, the initial synchronous state SyncFlag is adjusted to be 1;
if the real-time power isGreater than the second saturation threshold and less than or equal to the first saturation threshold, the gain value is then setMinus MinusdB2 as new gain value +.>
If the real-time power isGreater than the third saturation threshold and less than or equal to the second saturation threshold, the gain value is then setMinus MinusdB3 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously setting a state variable UltraHighFlag to be 1, otherwise, setting the state variable UltraHighFlag to be 0;
referring specifically to fig. 3;
it should be noted that, the preset threshold, the first saturation threshold, the second saturation threshold, the third saturation threshold, the abnormal power threshold, the MinusdB1, the MinusdB2 and the MinusdB3 are all preset by the staff according to experience, and the first saturation threshold > the second saturation threshold > the third saturation threshold > the abnormal power threshold; in this embodiment, the preset threshold is preferably 2, minusdB1 is 9, minusdB2 is 6, and MinusdB3 is 3;
the repeated operation module judges whether to repeatedly perform the signal detection module, the gain calculation module and the gain quick adjustment module according to the initial synchronization state SyncFlag;
the method for judging whether the signal detection module, the gain calculation module and the gain quick adjustment module are repeatedly carried out comprises the following steps:
if the initial synchronization status SyncFlag is 0, the period n is added with 1 as a new period, namelyRecalculating real-time power +.>Repeating the signal detection module, the gain calculation module and the gain quick adjustment module;
if the initial synchronization state SyncFlag is 1, the signal detection module, the gain calculation module and the gain quick adjustment module are not repeated;
gain control module based on initial synchronization status SyncFlag, status variable UltraHighFlag and real-time powerJudging whether to adjust the output gain GaindB; and outputting gain GaindB to complete automatic gain control of the primary signal;
the method for judging whether to adjust the output gain GaindB comprises the following steps:
if the initial synchronization state SyncFlag is 1 and the state variable UltraHighFlag is 1, the real-time power is simultaneouslyLess than->When the gain is increased, the plus dB is added to the output gain GaindB to be used as a new output gain GaindB;
if there is an initial synchronization status SyncFlag of not 1 or a status variable UltraHighFlag of not 1 or real-time powerGreater than or equal to->When the gain GaindB is not changed;
it should be noted that PlusdB is preset by staff according to experience; the preferred PlusdB for this embodiment is 4;
the power gain calculated by the embodiment is very close to the target gain, and the accuracy is high; and has high efficiency; after judging that a signal is received, the power regulator can quickly adjust to the expected target power only by a few shorter periods; meanwhile, various interference signals are dynamically and adaptively adapted, so that abnormal signals are prevented from affecting the judgment of the gain; the gain can be recalculated by timely adjustment after the interference signal exists.
Example 2
Referring to fig. 4, the detailed description of the embodiment is not shown in the description of embodiment 1, and an automatic gain control method based on a dual-mode communication unit is provided, which includes:
s1: initializing a signal parameter to 0, and initializing an output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter;
s2: calculating real-time power with n as periodN real-time powers are calculated>Mean>According to the mean valueCalculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals;
s3: based on signal state SigOnFlag, signal counter Sigcounter and mean valueJudging whether to calculate gain value +.>
S4: in calculating gain valuesMeanwhile, gain rapid adjustment is carried out according to the saturation degree of the signal, and gain adjustment quantity is increased;
s5: judging whether to repeatedly carry out the steps S2-S5 according to the initial synchronous state SyncFlag;
s6: based on the initial synchronization state SyncFlag, state variable UltraHighFlag and real-time powerJudging whether to adjust the output gain gaindB, and outputting the gain gaindB to complete the automatic gain control of the primary signal.
Further, real-time powerThe calculation method of (2) is as follows:
in the method, in the process of the invention,for the input sampling signal, +.>For the number of sampling points, +.>
Further, the average valueThe calculation mode of (2) is as follows:
in the method, in the process of the invention,
further, the power of the sliding averageThe calculation method of (2) is as follows:
in the method, in the process of the invention,is the size of the sliding window.
Further, the signal detection method comprises the following steps:
per calculationSecond->Then signal detection is carried out once;
if it isWhen the signal existence threshold SigOnThld is larger than the signal existence threshold SigOnThld and the initial synchronization state SyncFlag is 0, setting SigOnFlag to 1;
if it isLess than the end of signal threshold SigOffThld and the initial synchronization state SyncFlag is 1, sigOnFlag is set to 0.
Further, it is determined whether to calculate the gain valueThe method of (1) comprises:
if no signal is detected, i.e. SigOnFlag is 0, calculating the required gain value according to the real-time power and target power corresponding to the signal
In the method, in the process of the invention,is the target power;
if the first occurrence of the signal is detected, starting to count the signal counter, and judging whether the signal counter is larger than a preset threshold or not;
if SigCounter is smaller than or equal to the preset threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
If SigCounter is greater than the preset threshold, judging the current average valueWhether greater than the abnormal power threshold, if the average value +.>If the power is larger than the abnormal power threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
Further, the method for quickly adjusting the gain comprises the following steps:
if the real-time power isGreater than the first saturation threshold, the gain value +.>Minus MinusdB1 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously, the initial synchronous state SyncFlag is adjusted to be 1;
if the real-time power isGreater than the second saturation threshold and less than or equal to the first saturation threshold, the gain value is then setMinus MinusdB2 as new gain value +.>
If the real-time power isGreater than the third saturation threshold and less than or equal to the second saturation threshold, the gain value is then setMinus MinusdB3 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously setting a state variable UltraHighFlag to be 1, otherwise, setting the state variable UltraHighFlag to be 0;
wherein the first saturation threshold > the second saturation threshold > the third saturation threshold.
Further, the method for judging whether to repeatedly perform the steps S2-S5 comprises the following steps:
if the initial synchronization status SyncFlag is 0, letRecalculating real-time power +.>Repeating the steps S2-S5;
if the initial synchronization status SyncFlag is 1, the steps S2-S5 are not repeated.
Further, the method for judging whether to adjust the output gain GaindB includes:
if the initial synchronization state SyncFlag is 1 and the state variable UltraHighFlag is 1, the real-time power is simultaneouslyLess than->When the gain is increased, the plus dB is added to the output gain GaindB to be used as a new output gain GaindB;
if there is an initial synchronization state SyncFlag other than 1 or a state variable UltraHighFlagNot 1 or real-time powerGreater than or equal to->When the gain GaindB is not changed.
Example 3
Referring to fig. 5, the present embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements an automatic gain control method based on a dual-mode communication unit provided by the above methods when executing the computer program.
Since the electronic device described in this embodiment is an electronic device used to implement an automatic gain control method based on a dual-mode communication unit in this embodiment, based on an automatic gain control method based on a dual-mode communication unit described in this embodiment, those skilled in the art can understand the specific implementation of the electronic device and various modifications thereof, so how to implement the method in this embodiment of the present application for this electronic device will not be described in detail herein. Any electronic device used by those skilled in the art to implement an automatic gain control method based on a dual mode communication unit in the embodiments of the present application falls within the scope of protection intended by the present application.
Example 4
The embodiment discloses a computer readable storage medium, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes an automatic gain control method based on a dual-mode communication unit provided by the methods when executing the computer program.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center over a wired network or a wireless network. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely one, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Finally: the foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (12)

1. An automatic gain control method based on a dual mode communication unit, comprising:
s1: initializing a signal parameter to 0, and initializing an output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter;
s2: calculating real-time power with n as periodN real-time powers are calculated>Mean>According to mean->Calculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals;
s3: based on signal state SigOnFlag, signal counter Sigcounter and mean valueJudging whether to calculate gain value
S4: in calculating gain valuesMeanwhile, gain rapid adjustment is carried out according to the saturation degree of the signal, and gain adjustment quantity is increased;
s5: judging whether to repeatedly carry out the steps S2-S5 according to the initial synchronous state SyncFlag;
s6: according toInitial synchronization state SyncFlag, state variable UltraHighFlag, and real-time powerJudging whether to adjust the output gain gaindB, and outputting the gain gaindB to complete the automatic gain control of the primary signal.
2. The automatic gain control method based on a dual mode communication unit as claimed in claim 1, wherein the real time powerThe calculation method of (2) is as follows:
in the method, in the process of the invention,for the input sampling signal, +.>For the number of sampling points, +.>
3. The automatic gain control method based on dual mode communication unit as claimed in claim 2, wherein the average value isThe calculation mode of (2) is as follows:
in the method, in the process of the invention,
4. the automatic gain control method of claim 3 wherein the power of the moving average is based on a dual mode communication unitThe calculation method of (2) is as follows:
in the method, in the process of the invention,is the size of the sliding window.
5. The automatic gain control method based on a dual mode communication unit as claimed in claim 4, wherein the method of signal detection comprises:
per calculationSecond->Then signal detection is carried out once;
if it isWhen the signal existence threshold SigOnThld is larger than the signal existence threshold SigOnThld and the initial synchronization state SyncFlag is 0, setting SigOnFlag to 1;
if it isLess than the end of signal threshold SigOffThld and the initial synchronization state SyncFlag is 1, sigOnFlag is set to 0.
6. The automatic gain control method based on dual mode communication unit as claimed in claim 5, whereinJudging whether to calculate the gain valueThe method of (1) comprises:
if no signal is detected, i.e. SigOnFlag is 0, calculating the required gain value according to the real-time power and target power corresponding to the signal
In the method, in the process of the invention,is the target power;
if the first occurrence of the signal is detected, starting to count the signal counter, and judging whether the signal counter is larger than a preset threshold or not;
if SigCounter is smaller than or equal to the preset threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal
If SigCounter is greater than the preset threshold, judging the current average valueWhether greater than the abnormal power threshold, if the average value +.>If the power is larger than the abnormal power threshold, calculating a required gain value according to the real-time power and the target power corresponding to the signal>
7. The automatic gain control method based on a dual mode communication unit as claimed in claim 6, wherein the method for gain fast adjustment processing comprises:
if the real-time power isGreater than the first saturation threshold, the gain value +.>Minus MinusdB1 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously, the initial synchronous state SyncFlag is adjusted to be 1;
if the real-time power isGreater than the second saturation threshold and less than or equal to the first saturation threshold, the gain value is then setMinus MinusdB2 as new gain value +.>
If the real-time power isGreater than the third saturation threshold and less than or equal to the second saturation threshold, the gain value is then setMinus MinusdB3 as a new gain value +.>The method comprises the steps of carrying out a first treatment on the surface of the Simultaneously setting a state variable UltraHighFlag to be 1, otherwise, setting the state variable UltraHighFlag to be 0;
wherein the first saturation threshold > the second saturation threshold > the third saturation threshold.
8. The automatic gain control method based on a dual-mode communication unit as claimed in claim 7, wherein the method for determining whether to repeat steps S2 to S5 comprises:
if the initial synchronization status SyncFlag is 0, letRecalculating real-time power +.>Repeating the steps S2-S5;
if the initial synchronization status SyncFlag is 1, the steps S2-S5 are not repeated.
9. The automatic gain control method of claim 8 wherein the method of determining whether to adjust the output gain GaindB comprises:
if the initial synchronization state SyncFlag is 1 and the state variable UltraHighFlag is 1, the real-time power is simultaneouslyLess than->When the gain is increased, the plus dB is added to the output gain GaindB to be used as a new output gain GaindB;
if there is an initial synchronization status SyncFlag of not 1 or a status variable UltraHighFlag of not 1 or real-time powerGreater than or equal to->When the gain GaindB is not changed.
10. An automatic gain control system based on a dual mode communication unit for implementing an automatic gain control method based on a dual mode communication unit according to any one of claims 1-9, comprising:
the parameter initialization module initializes the signal parameter to 0, and initializes the output gain GaindB to MaxPGA; the signal parameters comprise an initial synchronization state SyncFlag, a signal state SigOnFlag and a signal counter Sigcounter;
the signal detection module calculates real-time power by taking n as a periodN real-time powers are calculated>Mean>According to mean->Calculating the sliding average power +.>According to mean->And a running average power +.>Detecting signals;
gain calculation module based on signal state SigOnFlag, signal counter Sigcounter and average valueJudging whether to calculate gain value +.>
Gain rapid adjusting module for calculating gain valueMeanwhile, gain rapid adjustment is carried out according to the saturation degree of the signal, and gain adjustment quantity is increased;
the repeated operation module judges whether to repeatedly perform the signal detection module, the gain calculation module and the gain quick adjustment module according to the initial synchronization state SyncFlag;
gain control module based on initial synchronization status SyncFlag, status variable UltraHighFlag and real-time powerJudging whether to adjust the output gain GaindB; and outputs gain GaindB to complete the automatic gain control of the primary signal.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a dual mode communication unit based automatic gain control method according to any of claims 1 to 9 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a dual mode communication unit based automatic gain control method according to any of claims 1 to 9.
CN202410053807.5A 2024-01-15 2024-01-15 Automatic gain control method and system based on dual-mode communication unit Active CN117580143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410053807.5A CN117580143B (en) 2024-01-15 2024-01-15 Automatic gain control method and system based on dual-mode communication unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410053807.5A CN117580143B (en) 2024-01-15 2024-01-15 Automatic gain control method and system based on dual-mode communication unit

Publications (2)

Publication Number Publication Date
CN117580143A true CN117580143A (en) 2024-02-20
CN117580143B CN117580143B (en) 2024-03-22

Family

ID=89864694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410053807.5A Active CN117580143B (en) 2024-01-15 2024-01-15 Automatic gain control method and system based on dual-mode communication unit

Country Status (1)

Country Link
CN (1) CN117580143B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223621A1 (en) * 2006-03-21 2007-09-27 M/A-Com, Inc. Method and apparatus for signal power ramp-up in a communication transmission
CN101415271A (en) * 2008-12-02 2009-04-22 北京天碁科技有限公司 Receive gain control method for GSM/TD-SCDMA double-mode terminal
CN102355721A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Hybrid automatic gain control method and device for multimode system
JP2015154306A (en) * 2014-02-17 2015-08-24 ソニー株式会社 Automatic gain controller, automatic gain control method, and receiver
CN104954033A (en) * 2015-05-29 2015-09-30 复旦大学 Rapid automatic gain control circuit and method for OFDM (orthogonal frequency division multiplexing) system
CN107005244A (en) * 2017-02-08 2017-08-01 香港应用科技研究院有限公司 Reduction by overflowing counter counts the gain calibration for the direct modulation synthesizer searched for using look-up table

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223621A1 (en) * 2006-03-21 2007-09-27 M/A-Com, Inc. Method and apparatus for signal power ramp-up in a communication transmission
CN101415271A (en) * 2008-12-02 2009-04-22 北京天碁科技有限公司 Receive gain control method for GSM/TD-SCDMA double-mode terminal
CN102355721A (en) * 2011-06-29 2012-02-15 中兴通讯股份有限公司 Hybrid automatic gain control method and device for multimode system
JP2015154306A (en) * 2014-02-17 2015-08-24 ソニー株式会社 Automatic gain controller, automatic gain control method, and receiver
CN104954033A (en) * 2015-05-29 2015-09-30 复旦大学 Rapid automatic gain control circuit and method for OFDM (orthogonal frequency division multiplexing) system
CN107005244A (en) * 2017-02-08 2017-08-01 香港应用科技研究院有限公司 Reduction by overflowing counter counts the gain calibration for the direct modulation synthesizer searched for using look-up table

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周春良;王连成;迟海明;郝岩;唐晓柯;: "一种OFDM电力线通信***的自动增益控制方法", 信息技术与网络安全, no. 01, 10 January 2020 (2020-01-10) *

Also Published As

Publication number Publication date
CN117580143B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN102187588B (en) Method and device for automatic gain adjustment in wireless receiver
EP2810370A1 (en) Method and apparatus to independently control front end gain and baseband gain
GB2506458A (en) Automatic gain control system for an analogue to digital converter
CN102111166B (en) Method and equipment for regulating gain of radio-frequency amplifier
CN116346148A (en) Multi-mode automatic gain control method and system based on SoC
Zhang et al. Digital automatic gain control design with large dynamic range in wireless communication receivers
CN101969687A (en) Method for implementing digital GSM time slot ALC
CN101588196B (en) Device and method for gain control
CN117580143B (en) Automatic gain control method and system based on dual-mode communication unit
CN116567790B (en) PUSCH power control TPC adjustment method
EP2847864B1 (en) Apparatus and method for matching antenna impedance in wireless communication system
CN104754721A (en) Automatic gain control method and automatic gain control device in time division multiplexing mode
JP2013074610A (en) Reception device, base station device, radio device, and removing method for interference wave
CN103546110A (en) Attenuation control voltage determining method, attenuation control voltage determining device and ALC (automatic level control) circuit
CN113014282B (en) Automatic gain control method, device, receiver and ultra-wideband communication system
CN106505959B (en) AGC control loop of high-gain radio frequency channel of digital microwave system
CN104539253B (en) Three-level automatic gain control equipment and its control method
US8639199B1 (en) System and method for high performance coherent peak compression estimation
CN110290578B (en) Method and terminal for acquiring noise power
JP4460678B2 (en) Frequency analyzer
CN117560023B (en) Rocket-mounted signal processing method, device and equipment of carrier rocket
CN116419383B (en) Automatic gain control method, circuit and equipment
US8767894B2 (en) Wireless device and receiving method
CN118174672A (en) Power self-adaptive adjustment method and device for multistage high-gain power amplifier
CN111313952B (en) Method and device for intelligently adjusting gain of repeater, repeater and storage medium

Legal Events

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