Radio frequency gain control method and system and storage medium

By using prediction modules and control algorithm modules in the RF gain control system, the RF signal power estimates are obtained and the gain coefficients are updated and regulated, the signal instability caused by frequent adjustment of RF gain is solved, and accurate detection and smooth adjustment of RF gain is achieved.

CN120049850APending Publication Date: 2025-05-27WUHAN BOCHANG COMM EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411912540.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In the prior art, frequent adjustment of RF gain leads to unstable signal, easy to generate gain jitter, and inaccurate adjustments due to inaccurate detection.

Method used

By introducing prediction modules and control algorithm modules into the RF gain control system, the power estimate value of the RF signal output by the digital amplifier is obtained, and whether the gain coefficient is updated and regulated based on the preset power interval is determined to avoid frequent adjustments.

Benefits of technology

Accurate detection and smooth adjustment of RF gain are achieved, avoiding the generation of gain jitter and ensuring signal stability and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120049850A_ABST
    Figure CN120049850A_ABST
Patent Text Reader

Abstract

The invention discloses a radio frequency gain control method and system and a storage medium, and the method comprises the steps: obtaining a current radio frequency signal outputted by a digital amplifier at a current moment based on a prediction module, and determining a power estimation value corresponding to the current radio frequency signal; judging whether the power estimation value is in a preset power interval or not based on a control algorithm module, and if the power estimation value is in the preset power interval, keeping a gain coefficient in a preset control period corresponding to the current moment unchanged; and if the power estimation value is not in the preset power interval, updating a gain coefficient based on the power estimation value, and regulating and controlling the gain of the current radio frequency signal by using the updated gain coefficient based on the digital amplifier. The power estimation value corresponding to the current radio frequency signal is accurately determined through the prediction module, the gain of the radio frequency signal is regulated and controlled according to the size relation between the power estimation value and the preset power interval, frequent regulation and control over the gain of the radio frequency signal are avoided, and gain jitter is effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of radio frequency technology, and particularly to a radio frequency gain control method, system and storage medium. Background Art

[0002] Radio frequency signals are electromagnetic waves with a certain transmission frequency after modulation, which play a crucial role in modern communication and are widely used in wireless communication, satellite communication, radar, radio broadcasting and other fields. And, for the stability of radio frequency signals, it is usually necessary to perform gain control on radio frequency signals to adjust the power of radio frequency signals to an appropriate range.

[0003] Currently, there are various ways to control radio frequency gain, and the most commonly used one is automatic control. It adjusts the gain by detecting the power of the received radio frequency signal to maintain a constant output power. When the detected radio frequency signal power is very high, the gain is reduced to avoid circuit overload, and when the radio frequency signal power is low, the gain is increased to improve the signal-to-noise ratio. However, such frequent adjustment will make the signal unstable, easily cause gain jitter, and there is also a problem that the adjustment is inaccurate due to inaccurate detection. Therefore, how to smoothly adjust the radio frequency gain with an accurate detection value to avoid gain jitter is one of the technical problems to be solved currently. Summary of the Invention

[0004] The main object of the present invention is to provide a radio frequency gain control method, system and medium, aiming to solve the technical problem of how to smoothly adjust the radio frequency gain with an accurate detection value to avoid gain jitter in the prior art.

[0005] To achieve the above object, the present invention provides a radio frequency gain control method, which is applied to a radio frequency gain control system. The radio frequency gain control system includes a prediction module, a control algorithm module, a digital amplifier and a radio frequency input module;

[0006] Among them, the radio frequency signal input module is used to input radio frequency signals. The radio frequency signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module through the prediction module, and the control algorithm module is also connected to the digital amplifier;

[0007] The radio frequency gain control method includes the steps of:

[0008] Based on the prediction module, obtain the current radio frequency signal output by the digital amplifier at the current moment, and determine the power estimation value corresponding to the current radio frequency signal;

[0009] Based on the control algorithm module, judge whether the power estimation value is within a preset power interval. If it is within the preset power interval, keep the gain coefficient unchanged within the preset control period corresponding to the current moment;

[0010] If the power estimation value is not within the preset power range, the gain coefficient is updated based on the power estimation value, and the gain of the current radio frequency signal is regulated based on the updated gain coefficient by the digital amplifier.

[0011] Preferably, before the step of updating the gain coefficient based on the power estimation value, it includes:

[0012] Obtain the number of times that the power estimation value does not fall within the preset power range in the preset control period corresponding to the current moment;

[0013] Judge whether the number of times is greater than a preset number threshold. If it is greater than the preset number threshold, execute the step of updating the gain coefficient based on the power estimation value;

[0014] If the number of times is not greater than the preset number threshold, execute the step of keeping the gain coefficient within the preset control period corresponding to the current moment unchanged.

[0015] Preferably, the radio frequency gain control system further includes a saturation detection module, and the saturation detection module is respectively connected to the digital amplifier and the control algorithm module;

[0016] After the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module, it includes:

[0017] Judge whether the current radio frequency signal is higher than the saturation threshold value based on the saturation detection module. If it is higher than the saturation threshold value, it is determined that the current radio frequency signal is in a saturated state, and a saturation flag is generated and transmitted to the control algorithm module;

[0018] Based on the recognition of the saturation flag by the control algorithm module, the gain coefficient is adjusted to the initial gain, and the current radio frequency signal is controlled to be transmitted at the initial gain based on the digital amplifier.

[0019] Preferably, the radio frequency gain control system further includes a digital attenuator, and the digital attenuator is connected to the digital amplifier;

[0020] The step of controlling the current radio frequency signal to be transmitted at the initial gain based on the digital amplifier includes:

[0021] Judge whether the current radio frequency signal transmitted at the initial value is greater than a preset reference signal based on the digital attenuator;

[0022] If it is greater than the preset reference signal, the current radio frequency signal is attenuated and regulated based on the magnitude relationship between the radio frequency signal and the preset reference signal.

[0023] Preferably, the radio frequency gain control system further includes a slave algorithm module corresponding to the control algorithm module, and the slave algorithm module is connected between the control algorithm module and the radio frequency signal input module;

[0024] The step of updating the gain coefficient based on the power estimation value if the power estimation value is not within the preset power range includes:

[0025] If the power estimation value is not within the preset power range, it is judged based on the slave algorithm module whether the power estimation value is greater than the upper boundary value of the preset power range;

[0026] If it is greater than the upper boundary value, a boundary difference between the power estimation value and the upper boundary value is generated, and the step of updating the gain coefficient based on the power estimation value is executed based on the boundary difference.

[0027] Preferably, the step of executing the step of updating the gain coefficient based on the power estimation value based on the boundary difference includes:

[0028] Judge whether the boundary difference is greater than a preset limit value. If it is greater than the preset limit value, a coarse increment coefficient corresponding to the boundary difference is determined, and the output radio frequency of the radio frequency signal input module is regulated based on the coarse gain coefficient;

[0029] Execute the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module based on the regulated output radio frequency;

[0030] If the boundary difference is not greater than the preset limit value, execute the step of updating the gain coefficient based on the power estimation value.

[0031] Preferably, the step of determining the power estimation value corresponding to the current radio frequency signal includes:

[0032] Obtain the previous power estimation value of the previous radio frequency signal output by the digital amplifier at the previous moment;

[0033] Estimate the previous power estimation value and the current radio frequency signal based on a preset estimation formula to obtain the power estimation value. The preset estimation formula is:

[0034]

[0035] where P represents the power estimation value, P0 represents the previous power estimation value, k represents the weight value corresponding to the current radio frequency signal, f represents the input frequency of the radio frequency signal input module, and X represents the current radio frequency signal.

[0036] Preferably, the step of updating the gain coefficient based on the power estimation value includes:

[0037] Obtaining a preset reference power, and updating and calculating the gain coefficient based on the preset reference power and the power estimation value;

[0038] Wherein, the calculation formula for the update calculation is: G = G0 - k2 * lg(P 2 / r 2 );

[0039] Wherein, G represents the updated gain coefficient, G0 represents the gain coefficient before update, k2 represents the gain adjustment coefficient, P represents the power estimation value, and r represents the preset reference power.

[0040] Furthermore, to achieve the above object, the present invention further provides a radio frequency gain control system, which includes a prediction module, a control algorithm module, a digital amplifier, and a radio frequency input module;

[0041] Wherein, the radio frequency signal input module is used to input radio frequency signals, the radio frequency signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module through the prediction module, and the control algorithm module is also connected to the digital amplifier;

[0042] The radio frequency gain control system further includes a memory, a processor, a communication bus, and a control program stored on the memory:

[0043] The communication bus is used to realize the connection and communication between the processor and the memory;

[0044] The processor is used to execute the control program to realize the steps of the radio frequency gain control method as described above.

[0045] Furthermore, to achieve the above object, the present invention further provides a storage medium, on which a control program is stored, and when the control program is executed by a processor, it realizes the steps of the radio frequency gain control method as described above.

[0046] The present invention relates to a radio frequency gain control method, system and storage medium. The method is applied to a radio frequency gain control system, which is provided with a prediction module, a control algorithm module, a digital amplifier and a radio frequency input module. Among them, the radio frequency signal input module is used to input radio frequency signals. The radio frequency signal input module is connected to the digital amplifier, and the digital amplifier is connected to the control algorithm module through the prediction module. The control algorithm module is also connected to the digital amplifier. The radio frequency signal input module transmits the input radio frequency signal to the digital amplifier. The prediction module connected to the digital amplifier obtains the current radio frequency signal output by the digital amplifier at the current moment and determines the power estimation value corresponding to the current radio frequency signal. Then, according to the control algorithm module, it is judged whether the power estimation value is within a preset power range. If it is judged that it is within the preset power range, the gain coefficient within the preset control period corresponding to the current moment remains unchanged. If the power estimation value is not within the preset power range, the gain coefficient is updated based on the power estimation value, and the gain of the radio frequency signal is regulated based on the digital amplifier with the updated gain coefficient. In this way, through the prediction module, the power estimation value corresponding to the current radio frequency signal is accurately determined. When the power estimation value is within the preset power range, indicating that the input radio frequency signal changes little, the gain coefficient remains unchanged. When the power estimation value is not within the preset power range, indicating that the input radio frequency signal changes greatly, the gain of the radio frequency signal is regulated, avoiding frequent regulation of the gain of the radio frequency signal, effectively preventing the generation of gain jitter, and realizing stable regulation of the radio frequency gain with accurate detection values. Description of the Drawings

[0047] Figure 1 It is a schematic flowchart of the first embodiment of the radio frequency gain control method of the present invention;

[0048] Figure 2 It is a schematic flowchart of the second embodiment of the radio frequency gain control method of the present invention;

[0049] Figure 3 It is a schematic flowchart of the third embodiment of the radio frequency gain control method of the present invention;

[0050] Figure 4 It is a schematic structural diagram of the hardware operating environment involved in an embodiment of the radio frequency gain control system of the present invention.

[0051] The realization, functional characteristics and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed Embodiment

[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0053] The present invention provides a radio frequency gain control method. Please refer toFigure 1 , Figure 1 This is a schematic flowchart of the first embodiment of the radio frequency gain control method of the present invention.

[0054] The embodiments of the present invention provide embodiments of a radio frequency gain control method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here. Specifically, the radio frequency gain control method in this embodiment is applied to a radio frequency gain control system, which includes a prediction module, a control algorithm module, a digital amplifier, and a radio frequency input module. Among them, the radio frequency signal input module is used to input radio frequency signals, the radio frequency signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module through the prediction module, and the control algorithm module is also connected to the digital amplifier; the radio frequency gain control method includes:

[0055] Step S10, obtain the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module, and determine the power estimation value corresponding to the current radio frequency signal.

[0056] The radio frequency gain control method of this embodiment is applied to a radio frequency gain control system. The radio frequency gain control system includes a prediction module for predicting the power of radio frequency signals, a control algorithm module for calculating the gain, a digital amplifier for adjusting the gain of radio frequency signals, and a radio frequency input module for inputting radio frequency signals. Among them, the output end of the radio frequency signal input module is connected to the input end of the digital amplifier, both ends of the prediction module are respectively connected to the output end of the digital amplifier and the input end of the control algorithm module, and the output end of the digital amplifier is connected to the adjustment end of the digital amplifier.

[0057] After the radio frequency signal is input via the radio frequency signal input module, it is transmitted by the radio frequency signal input module to the digital amplifier. The preset module obtains the current radio frequency signal output by the digital amplifier at the current moment according to the input frequency of the radio frequency signal, and determines the power estimation value representing the power magnitude of the current radio frequency signal. Specifically, the step of determining the power estimation value corresponding to the current radio frequency signal includes:

[0058] Step S11, obtain the previous power estimation value of the previous radio frequency signal output by the digital amplifier at the previous moment;

[0059] Step S12, estimate the previous power estimation value and the current radio frequency signal based on a preset estimation formula to obtain the power estimation value.

[0060] Further, in order to accurately determine the power estimation value corresponding to the current radio frequency signal, the prediction module combines the power estimation value at the previous moment to estimate the power estimation value at the current moment. The power estimation value of the radio frequency signal output by the digital amplifier at the previous moment is obtained, and the obtained power estimation value is used as the previous power estimation value. Moreover, a preset estimation formula is pre-set, and the previous power estimation value and the current radio frequency signal are estimated through this preset estimation formula to obtain the power estimation value corresponding to the current radio frequency signal at the current moment. Among them, the preset estimation formula can be seen in the following formula (1).

[0061]

[0062] Among them, P represents the power estimation value, P0 represents the previous power estimation value, k represents the weight value corresponding to the current radio frequency signal, f represents the input frequency of the radio frequency signal input module, and X represents the current radio frequency signal.

[0063] Step S20: Based on the control algorithm module, determine whether the power estimation value is within a preset power range. If it is within the preset power range, keep the gain coefficient within the preset control period corresponding to the current moment unchanged.

[0064] Furthermore, a preset power range representing the magnitude of the power estimation value at the current moment is pre-set. The control algorithm module compares the power estimation value with the preset power range to determine whether the power estimation value is within the preset power range. If it is within the preset power range, it means that the power estimation value is a relatively stable value, which is not much different from the power estimation value at the previous moment. At this time, keep the gain coefficient within the preset control period corresponding to the current moment unchanged. Among them, the preset control period is each pre-divided radio frequency signal gain monitoring period, and corresponding gain coefficients can be pre-set for each preset control period in advance. When it is determined that the power estimation value is within the preset power range, the gain control of the radio frequency signal can be maintained with the preset gain coefficient. It should be noted that if the preset gain coefficient is updated because the power estimation value at a certain moment within the preset control period is not within the preset power range, then the other subsequent moments within the preset control period are updated based on the updated gain coefficient, rather than the preset gain coefficient.

[0065] Step S30: If the power estimation value is not within the preset power range, update the gain coefficient based on the power estimation value, and adjust the gain of the current radio frequency signal based on the updated gain coefficient by the digital amplifier.

[0066] Further, if it is determined through comparison that the power estimation value at the current moment is not within the preset power range, the gain coefficient is updated based on the power estimation value. After the update is completed, the digital amplifier adjusts the gain of the current radio frequency signal by amplifying or reducing it with the updated gain coefficient. Moreover, in order to eliminate the contingency that the power estimation value is not within the preset power range, before updating the gain coefficient, the number of times the power estimation value is not within the preset power range in the preset control period is counted, and it is judged whether there is contingency based on the counted number. Specifically, before the step of updating the gain coefficient based on the power estimation value, the following steps are included:

[0067] Step a1: Obtain the number of times that the power estimation value at the current moment is not within the preset power range in the corresponding preset control period;

[0068] Step a2: Judge whether the number is greater than the preset number threshold. If it is greater than the preset number threshold, execute the step of updating the gain coefficient based on the power estimation value;

[0069] Step a3: If the number is not greater than the preset number threshold, execute the step of keeping the gain coefficient within the corresponding preset control period at the current moment unchanged.

[0070] Furthermore, obtain the number of times that the power estimation value is not within the preset power range in the preset control period where the current moment is located, and compare the obtained number with the preset number threshold set in advance to judge whether the number is greater than the preset number threshold. If it is greater than the preset number threshold, it means that the number of times the power of the radio frequency signal changes too much in the preset control period, and it needs to be adjusted. Therefore, the gain coefficient is updated based on the power estimation value. On the contrary, if it is determined through comparison that the number is not greater than the preset number threshold, it means that the power change of the radio frequency signal is a contingency event. In this case, there is no need to update the gain coefficient, so as to keep the gain coefficient within the preset control period unchanged. Among them, for the update of the gain coefficient, it can be obtained by obtaining the required preset reference power and calculating it in combination with the power estimation value. The calculation formula can refer to the following formula (2).

[0071] G = G0 - k2 * lg(P 2 / r 2 ) (2);

[0072] Wherein, G represents the updated gain coefficient, G0 represents the gain coefficient before update, k2 represents the gain adjustment coefficient corresponding to the preset control period set in advance, P represents the power estimation value, and r represents the preset reference power.

[0073] The radio frequency gain control method of this embodiment is applied to a radio frequency gain control system, which is provided with a prediction module, a control algorithm module, a digital amplifier, and a radio frequency input module. Among them, the radio frequency signal input module is used to input radio frequency signals. The radio frequency signal input module is connected to the digital amplifier, and the digital amplifier is connected to the control algorithm module through the prediction module. The control algorithm module is also connected to the digital amplifier. The radio frequency signal input module transmits the input radio frequency signal to the digital amplifier. The prediction module connected to the digital amplifier obtains the current radio frequency signal output by the digital amplifier at the current moment and determines the power estimation value corresponding to the current radio frequency signal. Furthermore, according to the control algorithm module, it is judged whether the power estimation value is within a preset power range. If it is judged to be within the preset power range, the gain coefficient within the preset control period corresponding to the current moment remains unchanged. If the power estimation value is not within the preset power range, the gain coefficient is updated based on the power estimation value, and the gain of the radio frequency signal is regulated based on the digital amplifier with the updated gain coefficient. In this way, through the prediction module, the power estimation value corresponding to the current radio frequency signal is accurately determined. When the power estimation value is within the preset power range, indicating that the input radio frequency signal changes little, the gain coefficient remains unchanged. When the power estimation value is not within the preset power range, indicating that the input radio frequency signal changes greatly, the gain of the radio frequency signal is regulated, avoiding frequent regulation of the gain of the radio frequency signal, effectively preventing the generation of gain jitter, and realizing stable adjustment of the radio frequency gain with an accurate detection value.

[0074] Further, please refer to Figure 2 , based on the first embodiment of the radio frequency gain control method of the present invention, the second embodiment of the radio frequency gain control method of the present invention is proposed.

[0075] The difference between the second embodiment of the radio frequency gain control method and the first embodiment of the radio frequency gain control method is that the radio frequency gain control system further includes a saturation detection module, and the saturation detection module is respectively connected to the digital amplifier and the control algorithm module;

[0076] After the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module includes:

[0077] Step S40, based on the saturation detection module, judge whether the current radio frequency signal is higher than the saturation threshold value. If it is higher than the saturation threshold value, it is determined that the current radio frequency signal is in a saturated state, and a saturation flag is generated and transmitted to the control algorithm module;

[0078] Step S50, based on the recognition of the saturation flag by the control algorithm module, adjust the gain coefficient to the initial gain, and control the current radio frequency signal to be transmitted with the initial gain based on the digital amplifier.

[0079] Further, the radio frequency gain control system further includes a saturation detection module connected to the digital amplifier and the control algorithm module at both ends, for detecting whether the radio frequency signal output by the digital amplifier is saturated. The saturation of the radio frequency signal means that the output power of the radio frequency signal does not change with the input power. A threshold value representing saturation is preset. The saturation detection module is arranged at the output end of the digital amplifier to detect the current radio frequency signal output at the output end and judge whether it is higher than the saturation threshold value. If it is higher than the saturation threshold value, it indicates that the current radio frequency signal is in a saturated state. At this time, a saturation identifier representing saturation is generated and transmitted to the control algorithm module. On the contrary, if it is judged that it is not higher than the saturation threshold value after comparison, it indicates that the current radio frequency signal is not in a saturated state. At this time, a saturation identifier representing non-saturation is generated and transmitted to the control algorithm module.

[0080] Furthermore, the control algorithm module receives the saturation identifier transmitted by the saturation detection module and identifies it. If it is identified as an identifier representing saturation, the gain coefficient is adjusted to the initial gain, and the digital amplifier controls the radio frequency signal to be transmitted at the initial gain. For the identified identifier representing non-saturation, after receiving the power estimation value predicted by the prediction module, it is judged whether the power estimation value is within a preset power range, and the gain coefficient is kept unchanged or updated according to the judgment result.

[0081] Further, even if the current radio frequency signal is transmitted at the initial gain, it may still be higher than the required preset reference signal. At this time, the current radio frequency signal needs to be attenuated. Therefore, the radio frequency gain control system is set to further include a digital attenuator connected to the digital amplifier. Based on this digital attenuator, the step of controlling the current radio frequency signal to be transmitted at the initial gain by the digital amplifier includes:

[0082] Step S51, based on the digital attenuator, judge whether the current radio frequency signal transmitted at the initial value is greater than the preset reference signal;

[0083] Step S52, if it is greater than the preset reference signal, based on the magnitude relationship between the radio frequency signal and the preset reference signal, perform attenuation regulation on the current radio frequency signal.

[0084] Furthermore, the current radio frequency signal transmitted at the initial value is compared with the preset reference signal through the digital attenuator to judge whether it is greater than the preset reference signal. If it is greater than the preset reference signal, based on the magnitude relationship between the two, perform attenuation regulation on the current radio frequency signal. Specifically, a difference operation can be performed between the radio frequency signal transmitted at the initial value and the preset reference signal, and the attenuation magnitude factor is determined by the difference operation result. Then, based on the attenuation magnitude factor, the current radio frequency signal is attenuated to make the transmitted current radio frequency signal have the required power.

[0085] In this embodiment, by setting a saturation detection module and a digital attenuator to detect the saturation state of the current radio frequency signal and perform screening control, it is beneficial to improve the precise control of the current radio frequency signal, ensuring that the current radio frequency power can better meet the transmission requirements.

[0086] Furthermore, please refer to Figure 3 , based on the first and second embodiments of the radio frequency gain control method of the present invention, a third embodiment of the radio frequency gain control method of the present invention is proposed.

[0087] The difference between the third embodiment of the radio frequency gain control method and the first and second embodiments of the radio frequency gain control method is that the radio frequency gain control system further includes a slave algorithm module corresponding to the control algorithm module, and the slave algorithm module is connected between the control algorithm module and the radio frequency signal input module;

[0088] The step of updating the gain coefficient based on the power estimation value if the power estimation value is not within the preset power range includes:

[0089] Step S31, if the power estimation value is not within the preset power range, then based on the slave algorithm module, determine whether the power estimation value is greater than the upper boundary value of the preset power range;

[0090] Step S32, if it is greater than the upper boundary value, generate a boundary difference between the power estimation value and the upper boundary value, and based on the boundary difference, perform the step of updating the gain coefficient based on the power estimation value.

[0091] Furthermore, the radio frequency gain control system of this embodiment is also provided with a slave algorithm module corresponding to the control algorithm module, and the slave algorithm module is connected between the control algorithm module and the radio frequency signal input module to quickly perform priority control on the radio frequency signal when the power estimation value changes greatly. Specifically, after it is determined through comparison that the power estimation value is not within the preset power range, the slave algorithm module compares the power estimation value with the upper boundary value of the preset power range to determine whether the power estimation value is greater than the upper boundary value. The upper boundary value is the maximum value in the preset power range. If it is determined through comparison that the power estimation value is greater than the upper boundary value, then perform a difference operation on the power estimation value and the upper boundary value to obtain the operation result as the boundary difference, and then update the gain coefficient based on the size of the boundary difference in combination with the power estimation value. Specifically, the step of performing the step of updating the gain coefficient based on the power estimation value based on the boundary difference includes:

[0092] Step S321: Determine whether the boundary difference is greater than a preset limit value. If it is greater than the preset limit value, determine the coarse increment coefficient corresponding to the boundary difference, and regulate the output radio frequency of the radio frequency signal input module based on the coarse gain coefficient.

[0093] Step S322: Execute the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the regulated output radio frequency by the prediction module.

[0094] Step S323: If the boundary difference is not greater than the preset limit value, execute the step of updating the gain coefficient based on the power estimation value.

[0095] Furthermore, a preset limit value representing the magnitude of the boundary difference is pre-set. Compare the boundary difference with this preset limit value to determine whether the boundary difference is greater than the preset limit value. If it is greater than the preset limit value, it indicates that the power of the current radio frequency signal is too high. At this time, determine the coarse increment coefficient corresponding to the boundary difference, and this coarse increment coefficient can be preset according to the magnitudes of different boundary differences. Then, based on the coarse gain coefficient, coarsely regulate the output radio frequency of the radio frequency signal input module to quickly determine the coarse increment coefficient and quickly lower the too-high radio frequency output by the radio frequency signal input module according to it. Then, the regulated output radio frequency is output by the digital amplifier, and the prediction module obtains it as the current radio frequency signal and determines its power estimation value for fine control.

[0096] Even further, if it is determined through comparison that the boundary difference is not greater than the preset limit value, it indicates that the power of the current radio frequency signal has not reached the range that requires quick control. Therefore, at this time, update the gain coefficient based on the power estimation value to finely regulate the gain of the current radio frequency signal according to the updated gain coefficient.

[0097] In this embodiment, by setting a slave algorithm module corresponding to the control algorithm module in the radio frequency gain control system, the combination of coarse adjustment and fine adjustment is achieved through the two, avoiding the risks brought by too-high radio frequency signals in a timely manner and achieving precise adjustment of radio frequency signals.

[0098] In addition, an embodiment of the present invention further provides a radio frequency gain control system, and this radio frequency gain control system includes a prediction module, a control algorithm module, a digital amplifier, and a radio frequency input module;

[0099] Wherein, the radio frequency signal input module is used to input radio frequency signals, the radio frequency signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module through the prediction module, and the control algorithm module is also connected to the digital amplifier.

[0100] Please refer to Figure 4 , Figure 4The figure is a schematic structural diagram of the hardware operating environment of the device involved in the embodiment of the radio frequency gain control system of the present invention.

[0101] As shown in Figure 4 , the radio frequency gain control system may further include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0102] Those skilled in the art can understand that Figure 4 the hardware structure of the radio frequency gain control system shown in

[0103] As shown in Figure 4 , in the memory 1005 as a storage medium, there may be included an operating system, a network communication module, a user interface module, and a control program. Among them, the operating system is a program for managing and controlling the radio frequency gain control system and software resources, and supports the operation of the network communication module, the user interface module, the control program, and other programs or software; the network communication module is used for managing and controlling the network interface 1004; the user interface module is used for managing and controlling the user interface 1003.

[0104] In Figure 4 the hardware structure of the radio frequency gain control system shown in

[0105] Based on the prediction module, obtain the current radio frequency signal output by the digital amplifier at the current moment, and determine a power estimation value corresponding to the current radio frequency signal;

[0106] Based on the control algorithm module, it is judged whether the power estimation value is within a preset power range. If it is within the preset power range, the gain coefficient within the preset control period corresponding to the current moment is kept unchanged;

[0107] If the power estimation value is not within the preset power range, the gain coefficient is updated based on the power estimation value, and the gain of the current radio frequency signal is regulated based on the updated gain coefficient by the digital amplifier.

[0108] Further, before the step of updating the gain coefficient based on the power estimation value, the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

[0109] Obtain the number of times that the power estimation value is not within the preset power range in the preset control period corresponding to the current moment;

[0110] Judge whether the number of times is greater than a preset number threshold. If it is greater than the preset number threshold, execute the step of updating the gain coefficient based on the power estimation value;

[0111] If the number of times is not greater than the preset number threshold, execute the step of keeping the gain coefficient within the preset control period corresponding to the current moment unchanged.

[0112] Further, the radio frequency gain control system further includes a saturation detection module, and the saturation detection module is respectively connected to the digital amplifier and the control algorithm module;

[0113] After the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module includes:

[0114] Based on the saturation detection module, judge whether the current radio frequency signal is higher than the saturation threshold value. If it is higher than the saturation threshold value, it is determined that the current radio frequency signal is in a saturated state, and a saturation flag is generated and transmitted to the control algorithm module;

[0115] Based on the recognition of the saturation flag by the control algorithm module, the gain coefficient is adjusted to the initial gain, and the current radio frequency signal is controlled by the digital amplifier to be transmitted with the initial gain.

[0116] Further, the radio frequency gain control system further includes a digital attenuator, and the digital attenuator is connected to the digital amplifier;

[0117] The step of controlling the current radio frequency signal to be transmitted with the initial gain by the digital amplifier includes:

[0118] Based on the digital attenuator, determine whether the current radio frequency signal transmitted with the initial value is greater than a preset reference signal;

[0119] If it is greater than the preset reference signal, based on the magnitude relationship between the radio frequency signal and the preset reference signal, perform attenuation regulation on the current radio frequency signal.

[0120] Further, the radio frequency gain control system further includes a slave algorithm module corresponding to the control algorithm module, and the slave algorithm module is connected between the control algorithm module and the radio frequency signal input module;

[0121] The step of updating the gain coefficient based on the power estimation value if the power estimation value is not within the preset power range includes:

[0122] If the power estimation value is not within the preset power range, based on the slave algorithm module, determine whether the power estimation value is greater than the upper boundary value of the preset power range;

[0123] If it is greater than the upper boundary value, generate a boundary difference between the power estimation value and the upper boundary value, and based on the boundary difference, perform the step of updating the gain coefficient based on the power estimation value.

[0124] Further, the step of performing the step of updating the gain coefficient based on the power estimation value based on the boundary difference includes:

[0125] Determine whether the boundary difference is greater than a preset limit value. If it is greater than the preset limit value, determine a coarse increment coefficient corresponding to the boundary difference, and based on the coarse gain coefficient, regulate the output radio frequency of the radio frequency signal input module;

[0126] Based on the regulated output radio frequency, perform the step of obtaining the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module;

[0127] If the boundary difference is not greater than the preset limit value, perform the step of updating the gain coefficient based on the power estimation value.

[0128] Further, the step of determining the power estimation value corresponding to the current radio frequency signal includes:

[0129] Obtain the previous power estimation value of the previous radio frequency signal output by the digital amplifier at the previous moment;

[0130] Based on a preset estimation formula, estimate the previous power estimation value and the current radio frequency signal to obtain the power estimation value. The preset estimation formula is:

[0131]

[0132] Among them, P represents the estimated power value, P0 represents the previous estimated power value, k represents the weight value corresponding to the current radio frequency signal, f represents the input frequency of the radio frequency signal input module, and X represents the current radio frequency signal.

[0133] Further, the step of updating the gain coefficient based on the estimated power value includes:

[0134] Obtain a preset reference power, and update and calculate the gain coefficient based on the preset reference power and the estimated power value;

[0135] Among them, the calculation formula for update calculation is: G = G0 - k2 * lg(P 2 / r 2 );

[0136] Among them, G represents the updated gain coefficient, G0 represents the gain coefficient before update, k2 represents the gain adjustment coefficient, P represents the estimated power value, and r represents the preset reference power.

[0137] The specific implementation manner of the radio frequency gain control system of the present invention is basically the same as that of each embodiment of the above radio frequency gain control method, and will not be described in detail here.

[0138] The embodiment of the present invention also proposes a storage medium. A control program is stored on the storage medium, and when the control program is executed by a processor, the steps of the radio frequency gain control method as described above are implemented.

[0139] The storage medium of the present invention may be a computer-readable storage medium, and its implementation manner is basically the same as that of each embodiment of the above radio frequency gain control method, and will not be described in detail here.

[0140] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit and scope protected by the present invention's claims. All those equivalent structural or equivalent process transformations made by using the content of the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, all fall within the protection scope of the present invention.

Claims

1. A radio frequency gain control method, applied to a radio frequency gain control system, characterized in that: The radio frequency gain control system includes a prediction module, a control algorithm module, a digital amplifier and a radio frequency input module; The RF signal input module is used to input RF signals, the RF signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module via the prediction module, and the control algorithm module is also connected to the digital amplifier; The radio frequency gain control method comprises the steps of: Acquire a current radio frequency signal output by the digital amplifier at a current moment based on the prediction module, and determine a power estimation value corresponding to the current radio frequency signal; Determining whether the power estimation value is within a preset power interval based on the control algorithm module, and if it is within the preset power interval, keeping the gain coefficient within the preset control period corresponding to the current moment unchanged; If the power estimation value is not within the preset power range, the gain coefficient is updated based on the power estimation value, and the gain of the current radio frequency signal is adjusted based on the digital amplifier with the updated gain coefficient.

2. The RF gain control method according to claim 1, wherein: The step of updating the gain coefficient based on the power estimation value includes: Obtaining the number of times that the power estimation value is not within a preset power range in the preset control period corresponding to the current moment; Determine whether the number is greater than a preset number threshold, and if so, execute a step of updating the gain coefficient based on the power estimation value; If the number is not greater than the preset number threshold, the step of keeping the gain coefficient in the preset control period corresponding to the current moment unchanged is executed.

3. The RF gain control method according to claim 1, wherein: The RF gain control system further includes a saturation detection module, which is connected to the digital amplifier and the control algorithm module respectively; After the step of acquiring the current radio frequency signal output by the digital amplifier at the current moment based on the prediction module, the following steps are included: Based on the saturation detection module, determine whether the current RF signal is higher than the saturation threshold value. If higher than the saturation threshold value, determine that the current RF signal is in a saturated state, and generate a saturation flag to transmit to the control algorithm module; Based on the recognition of the saturation flag by the control algorithm module, the gain coefficient is adjusted to an initial gain, and based on the digital amplifier, the current radio frequency signal is controlled to be transmitted with the initial gain.

4. The RF gain control method according to claim 3, wherein: The radio frequency gain control system further comprises a digital attenuator, and the digital attenuator is connected to the digital amplifier; The step of controlling the current RF signal to be transmitted with the initial gain based on the digital amplifier comprises: Determining, based on the digital attenuator, whether the current radio frequency signal transmitted with the initial value is greater than a preset reference signal; If it is greater than the preset reference signal, the current RF signal is attenuated and controlled based on the magnitude relationship between the RF signal and the preset reference signal.

5. The RF gain control method according to claim 1, wherein: The RF gain control system further comprises a slave algorithm module corresponding to the control algorithm module, wherein the slave algorithm module is connected between the control algorithm module and the RF signal input module; If the power estimation value is not within the preset power interval, the step of updating the gain coefficient based on the power estimation value comprises: If the power estimation value is not within the preset power interval, determining whether the power estimation value is greater than an upper boundary value of the preset power interval based on the slave algorithm module; If it is greater than the upper boundary value, a boundary difference between the power estimation value and the upper boundary value is generated, and based on the boundary difference, a step of updating the gain coefficient based on the power estimation value is performed.

6. The RF gain control method according to claim 5, characterized in that: The step of performing the step of updating the gain coefficient based on the power estimation value based on the boundary difference comprises: Determine whether the boundary difference is greater than a preset limit value, and if so, determine a coarse gain coefficient corresponding to the boundary difference value, and adjust the output RF of the RF signal input module based on the coarse gain coefficient; Based on the regulated output radio frequency, a step of acquiring a current radio frequency signal output by the digital amplifier at a current moment based on the prediction module is performed; If the boundary difference is not greater than the preset limit, the step of updating the gain coefficient based on the power estimation value is performed.

7. The RF gain control method according to any one of claims 1 to 6, characterized in that: The step of determining a power estimate corresponding to the current radio frequency signal comprises: Obtaining a previous power estimation value of a previous radio frequency signal output by the digital amplifier at a previous moment; The previous power estimation value and the current radio frequency signal are estimated based on a preset estimation formula to obtain the power estimation value, where the preset estimation formula is: Wherein, P represents a power estimation value, P0 represents a previous power estimation value, k represents a weight value corresponding to a current RF signal, f represents an input frequency of the RF signal input module, and X represents a current RF signal.

8. The RF gain control method according to any one of claims 1 to 6, characterized in that: The step of updating the gain coefficient based on the power estimation value comprises: Acquire a preset reference power, and update and calculate the gain coefficient based on the preset reference power and the power estimation value; The calculation formula for updating calculation is: G = G0-k2*lg(P 2 / r 2 ); Wherein, G represents the updated gain coefficient, G0 represents the gain coefficient before updating, k2 represents the gain adjustment coefficient, P represents the power estimation value, and r represents the preset reference power.

9. A radio frequency gain control system, characterized in that: The radio frequency gain control system includes a prediction module, a control algorithm module, a digital amplifier and a radio frequency input module; The RF signal input module is used to input RF signals, the RF signal input module is connected to the digital amplifier, the digital amplifier is connected to the control algorithm module via the prediction module, and the control algorithm module is also connected to the digital amplifier; The radio frequency gain control system further includes a storage, a processor, a communication bus, and a control program stored in the storage: The communication bus is used to realize the connection and communication between the processor and the storage; The processor is used to execute the control program to implement the steps of the radio frequency gain control method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium stores a control program, and when the control program is executed by the processor, the steps of the RF gain control method according to any one of claims 1 to 8 are implemented.