A large dynamic range automatic gain fast control method, system and electronic equipment
By using a fast adjustment method based on the RF signal power and the average power of the intermediate frequency signal in a wireless communication system, a gain allocation strategy is generated using the RF two-stage threshold and the intermediate frequency four-stage threshold, the receiving channel gain adjustment convergence speed in the prior art is solved. The problem of small range enables fast gain adjustment and stable output within a large dynamic range.
Patent Information
- Application Number
- CN202411514669.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-10-29
AI Technical Summary
The prior art has problems in wireless communication systems that receive channel gain adjustment has a slow convergence speed, a small dynamic range, and is susceptible to environmental influences, making it difficult to adapt to complex communication systems with large dynamic range.
A quick adjustment method based on the RF signal power and the average power of the intermediate frequency signal is adopted, and a gain distribution strategy is generated through the RF two-stage threshold and the intermediate frequency four-stage threshold to quickly adjust the RF and intermediate frequency gain of the receiving channel.
It realizes rapid gain adjustment within a large dynamic range, with fast convergence speed, large dynamic range, and no environmental interference, and is suitable for complex communication systems.
Smart Images

Figure CN119051774B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of gain control, and in particular to a large dynamic range automatic gain fast control method, system and electronic equipment. Background Art
[0002] In wireless communication systems, the gain of the receiving channel and the power of the RF signal determine the power of the intermediate frequency signal. Due to the influence of factors such as transmission distance, weather environment and geography, wireless signals have different degrees of attenuation during spatial propagation, and the strength of the RF signal received by the antenna port will vary greatly. If the gain of the receiving channel remains unchanged, a too strong RF signal will cause the receiving channel to be saturated or blocked, or even damaged, while a too weak RF signal may cause the RF signal to be lost. In order to ensure that the wireless RF signal is within the dynamic range that the channel can receive, the gain of the receiving channel must be dynamically and quickly adjusted in real time to ensure that the intermediate frequency signal is not distorted. The traditional way is to use an analog automatic gain circuit to achieve the amplification or attenuation of the RF channel unit gain. This method has the problems of slow convergence speed of analog automatic gain and the convergence process is easily affected by the environment, which causes the gain of the receiving channel to be adjusted incorrectly; thus, automatic gain adjustment of the gain of the receiving channel appears. This method solves the defects of analog automatic gain circuit adjusting the gain of the receiving channel to a certain extent, but it still has the problems of slow convergence speed and small dynamic range, and it is difficult to adapt to complex communication systems with large dynamic range. Summary of the invention
[0003] The embodiments of the present application provide a large dynamic range automatic gain fast control method, system and electronic device to solve the technical problems existing in the prior art.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to a first aspect of an embodiment of the present application, a large dynamic range automatic gain fast control method is provided, comprising: performing detection processing based on an externally inputted radio frequency signal to generate a radio frequency detection signal, and performing frequency conversion processing to generate an intermediate frequency signal;
[0006] Rapidly adjusting the radio frequency gain of the receiving channel based on the power of the radio frequency signal and the radio frequency two-level threshold, wherein the radio frequency two-level threshold includes a first radio frequency threshold and a second radio frequency threshold whose values are from large to small;
[0007] The intermediate frequency gain of the receiving channel is quickly adjusted based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold, wherein the intermediate frequency four-level threshold includes a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold and a fourth intermediate frequency threshold with values from large to small.
[0008] In some embodiments of the present application, based on the above scheme, the RF gain of the receiving channel is quickly adjusted based on the RF detection signal and the RF two-level threshold, including:
[0009] Generate the power of the radio frequency signal by curve nonlinear fitting of the radio frequency detection signal, compare the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generate a radio frequency gain allocation strategy based on the comparison result;
[0010] The radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency signal gain allocation strategy.
[0011] In some embodiments of the present application, based on the foregoing solution, comparing the power of the RF signal with the first RF threshold and the second RF threshold respectively, and generating a RF gain allocation strategy based on the comparison result, includes:
[0012] When the power of the RF signal is greater than or equal to the first RF threshold, a first RF attenuation step value is generated, and the RF gain of the receiving channel is adjusted based on the first RF attenuation step value until the power of the RF signal is less than the first RF threshold;
[0013] When the power of the RF signal is less than the first RF threshold and greater than or equal to the second RF threshold, generate a second RF attenuation step value, and adjust the RF gain of the receiving channel based on the second RF attenuation step value until the power of the RF signal is less than the second RF threshold;
[0014] When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted.
[0015] In some embodiments of the present application, based on the aforementioned solution, during the detection process, it further includes: generating a radio frequency large signal indication based on the radio frequency signal input from the outside;
[0016] When a radio frequency large signal indication is detected, a radio frequency gain large attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency gain large attenuation value.
[0017] In some embodiments of the present application, based on the above-mentioned solution, the method of quickly adjusting the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold includes:
[0018] Comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold and the fourth intermediate frequency threshold respectively, and generating an intermediate frequency signal gain allocation strategy based on the comparison results;
[0019] The intermediate frequency gain of the receiving channel is quickly adjusted based on the intermediate frequency signal gain allocation strategy.
[0020] In some embodiments of the present application, based on the above scheme, comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold and the fourth intermediate frequency threshold respectively, and generating an intermediate frequency signal gain allocation strategy based on the comparison results, includes:
[0021] When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold;
[0022] When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, generating a second intermediate frequency attenuation step value, and adjusting the intermediate frequency gain of the receiving channel based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold;
[0023] When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold;
[0024] When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold;
[0025] When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
[0026] According to a second aspect of an embodiment of the present application, there is provided a large dynamic range automatic gain fast control system, which is applied to the method as described in the first aspect, comprising: a radio frequency receiving channel unit and an automatic gain control unit;
[0027] The RF receiving channel unit receives an external RF input signal, performs detection processing on the RF input signal to generate a RF detection signal and a RF large signal indication, and performs frequency conversion processing to generate an intermediate frequency signal to output to the automatic gain control unit;
[0028] The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, the RF large signal indication and the RF two-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and the IF four-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel;
[0029] The two-level RF threshold includes a first RF threshold and a second RF threshold whose values are from large to small, and the four-level IF threshold includes a first IF threshold, a second IF threshold, a third IF threshold and a fourth IF threshold whose values are from large to small.
[0030] In some embodiments of the present application, based on the aforementioned solution, the radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain and an intermediate frequency attenuator;
[0031] Wherein, the radio frequency attenuator is connected to the radio frequency detector;
[0032] The radio frequency detector is connected to the frequency conversion chain;
[0033] The frequency conversion chain is connected to the intermediate frequency attenuator;
[0034] The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
[0035] In some embodiments of the present application, based on the aforementioned solution, the automatic gain control unit includes: an intermediate frequency average power unit, a radio frequency power detection unit, an automatic gain control unit and a gain distribution unit;
[0036] Wherein, the intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit respectively;
[0037] The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit respectively;
[0038] The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively;
[0039] The gain distribution unit is connected to the radio frequency attenuator and the intermediate frequency attenuator respectively.
[0040] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the method according to the first aspect.
[0041] According to a fourth aspect of the embodiments of the present application, there is provided an electronic device, including: a memory and a processor;
[0042] The memory is used to store computer instructions;
[0043] The processor is used to call the computer instructions stored in the memory so that the electronic device executes the method as described in the first aspect.
[0044] The technical solution of the present application has the advantages of adaptability to different scenarios, large dynamic range, fast convergence speed and short response time.
[0045] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0047] Figure 1 A schematic diagram of the structure of a large dynamic range automatic gain fast control system according to an embodiment of the present application is shown;
[0048] Figure 2 A schematic flow chart of a large dynamic range automatic gain fast control method according to an embodiment of the present application is shown;
[0049] Figure 3 A schematic diagram of a two-level radio frequency threshold according to an embodiment of the present application is shown;
[0050] Figure 4 A schematic diagram of a four-level intermediate frequency threshold according to an embodiment of the present application is shown;
[0051] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown;
[0052] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0053] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0054] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0055] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0056] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0058] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Some embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0060] See also Figure 1 , showing a schematic structural diagram of a large dynamic range automatic gain fast control system according to an embodiment of the present application.
[0061] like Figure 1 As shown, a large dynamic range automatic gain fast control system is shown, the system comprising: a radio frequency receiving channel unit and an automatic gain control unit;
[0062] The RF receiving channel unit receives an external RF input signal, performs detection processing on the RF input signal to generate a RF detection signal and a RF large signal indication, and performs frequency conversion processing to generate an intermediate frequency signal to output to the automatic gain control unit;
[0063] The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, the RF large signal indication and the RF two-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and the IF four-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel;
[0064] The two-level RF threshold includes a first RF threshold and a second RF threshold whose values are from large to small, and the four-level IF threshold includes a first IF threshold, a second IF threshold, a third IF threshold and a fourth IF threshold whose values are from large to small.
[0065] In some feasible embodiments, based on the above scheme, such as Figure 1 As shown, the radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain and an intermediate frequency attenuator;
[0066] Wherein, the radio frequency attenuator is connected to the radio frequency detector;
[0067] The radio frequency detector is connected to the frequency conversion chain;
[0068] The frequency conversion chain is connected to the intermediate frequency attenuator;
[0069] The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
[0070] In some feasible embodiments, based on the above scheme, such as Figure 1 As shown, the automatic gain control unit includes: an intermediate frequency average power unit, a radio frequency power detection unit, an automatic gain control unit and a gain distribution unit;
[0071] Wherein, the intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit respectively;
[0072] The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit respectively;
[0073] The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively;
[0074] The gain distribution unit is connected to the radio frequency attenuator and the intermediate frequency attenuator respectively.
[0075] See also Figure 1 , the working process of this system is as follows:
[0076] After the RF signal enters the RF receiving channel unit, it first passes through the RF attenuator to reach the RF detector, generating a large signal indication and an RF power detection voltage, and the RF power detection voltage is input into the automatic gain control unit after passing through the RF power detection unit; in addition, the RF signal after passing through the RF detector passes through the receiving channel frequency conversion chain to convert the RF signal into an intermediate frequency signal through mixing; then, the intermediate frequency signal passes through the intermediate frequency attenuator and then the intermediate frequency average power unit and is output to the automatic gain control unit; the automatic gain control unit generates RF gain and intermediate frequency gain based on comprehensive judgments based on current RF detection signal power, intermediate frequency signal average power, RF two-level threshold, intermediate frequency four-level threshold, intermediate / RF attenuation hysteresis interval, automatic / manual automatic gain control mode and other conditions; the gain allocation unit generates RF attenuation and intermediate frequency attenuation values based on the current RF gain and intermediate frequency gain and the gain allocation strategy; finally, the automatic gain control unit performs cyclic iterative control on the gain of the RF receiving channel unit, so that the intermediate frequency signal converges to the dynamic range of the analog-to-digital converter and reaches a stable output state.
[0077] See also Figure 2 , showing a flow chart of a large dynamic range automatic gain fast control method according to an embodiment of the present application.
[0078] like Figure 2 As shown, a large dynamic range automatic gain fast control method is demonstrated. This method can be implemented based on a large dynamic range automatic gain fast control system recorded above, and specifically includes steps S100 to S300.
[0079] See also Figure 2 In step S100, a detection process is performed based on the externally input radio frequency signal to generate a radio frequency detection signal, and a frequency conversion process is performed to generate an intermediate frequency signal.
[0080] It can be understood that the detection process is performed by utilizing Figure 1 The frequency conversion process is achieved by using the RF detector shown in Figure 1The frequency conversion chain shown in is implemented.
[0081] Continue to see Figure 2 , step S200, quickly adjusting the RF gain of the receiving channel based on the RF detection signal and the RF two-level threshold, wherein the RF two-level threshold includes a first RF threshold and a second RF threshold whose values are from large to small.
[0082] It can be understood that the first radio frequency threshold and the second radio frequency threshold are threshold values for performing attenuation control on the radio frequency attenuator.
[0083] In some feasible embodiments, based on the above scheme, the RF gain of the receiving channel is quickly adjusted based on the RF detection signal and the RF two-level threshold, including:
[0084] Generate the power of the radio frequency signal by curve nonlinear fitting of the radio frequency detection signal, compare the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generate a radio frequency gain allocation strategy based on the comparison result;
[0085] The radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency signal gain allocation strategy.
[0086] In some feasible embodiments, based on the above scheme, see Figure 3 , comparing the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generating a radio frequency gain allocation strategy based on the comparison result, including:
[0087] When the power of the RF signal is greater than or equal to the first RF threshold, a first RF attenuation step value is generated, and the RF gain of the receiving channel is adjusted based on the first RF attenuation step value until the power of the RF signal is less than the first RF threshold;
[0088] When the power of the RF signal is less than the first RF threshold and greater than or equal to the second RF threshold, generate a second RF attenuation step value, and adjust the RF gain of the receiving channel based on the second RF attenuation step value until the power of the RF signal is less than the second RF threshold;
[0089] When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted.
[0090] It can be understood that the purpose of the RF signal gain allocation strategy is to adjust the power of the RF signal to below the second RF threshold.
[0091] In some feasible embodiments, based on the above solution, during the detection process, it further includes: generating a radio frequency large signal indication based on the radio frequency signal input from the outside;
[0092] When a radio frequency large signal indication is detected, a radio frequency gain large attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency gain large attenuation value.
[0093] It should be noted that when a large RF signal is input into the RF system, in order to enable the system to detect the RF input signal more quickly and solve the problem of nonlinear interval quantization error, a large RF signal indication discrete line is used to quickly detect the large RF signal. The threshold value is a hardware configuration. When the RF signal power output by the coupler exceeds the threshold value, the large signal indication discrete line is pulled high, otherwise, it is pulled low.
[0094] Continue to see Figure 2 , step S300, quickly adjusting the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold, wherein the intermediate frequency four-level threshold includes a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold and a fourth intermediate frequency threshold with values from large to small.
[0095] It should be noted that the intermediate frequency threshold is the threshold value for starting to attenuate or amplify the intermediate frequency attenuator.
[0096] In some feasible embodiments, based on the above solution, the method of quickly adjusting the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold includes:
[0097] Comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold and the fourth intermediate frequency threshold respectively, and generating an intermediate frequency signal gain allocation strategy based on the comparison results;
[0098] The intermediate frequency gain of the receiving channel is quickly adjusted based on the intermediate frequency signal gain allocation strategy.
[0099] In some feasible embodiments, based on the above scheme, see Figure 4 , comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold and the fourth intermediate frequency threshold respectively, and generating an intermediate frequency signal gain allocation strategy based on the comparison results, including:
[0100] When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold;
[0101] When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, generating a second intermediate frequency attenuation step value, and adjusting the intermediate frequency gain of the receiving channel based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold;
[0102] When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold;
[0103] When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold;
[0104] When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
[0105] It can be understood that the purpose of the intermediate frequency signal gain allocation strategy is to adjust the average power of the intermediate frequency signal to between the second intermediate frequency threshold and the third intermediate frequency threshold.
[0106] It should be noted that in the present application, there are two modes in the process of generating the RF attenuation step value and the intermediate frequency attenuation / amplification step value. One is the manual mode. In the manual mode, the RF attenuation step value and the intermediate frequency attenuation / amplification step value are obtained by manual setting. The other is the automatic mode. In the automatic mode, the RF attenuation step value is automatically calculated by the power of the RF signal and the two-level RF threshold, and the intermediate frequency attenuation / amplification step value is automatically calculated by the average power of the intermediate frequency signal and the four-level intermediate frequency threshold.
[0107] It should be noted that, in the process of detection processing, the corresponding relationship between the output voltage of the RF detector and the power of the RF input signal is curve fitted, and the power of the input RF signal in the linear interval of the RF detector and the power of the RF signal outside the nonlinear interval are quantified to achieve the purpose of quickly detecting the peak power of the RF signal.
[0108] It should be noted that in the process of adjusting the RF gain and IF gain of the receiving channel, the RF and IF signal hysteresis intervals are designed to adjust the RF and IF signal powers to ensure that the RF and IF signals have no oscillation near the RF threshold and IF threshold and are output stably.
[0109] In summary, the technical solution provided by this application has the following advantages:
[0110] 1. The present invention aims at the problems that the traditional analog automatic gain control method has slow convergence speed, small dynamic range, and the convergence process is easily disturbed by the environment, which causes the misadjustment of the receiving channel gain. The automatic gain control of the receiving channel is designed as an automatic gain system. The automatic gain system is divided into two parts: a radio frequency receiving channel unit and an automatic gain control unit. The automatic gain control unit makes a comprehensive judgment on the current radio frequency detection signal power and the average power of the intermediate frequency signal, generates radio frequency gain and intermediate frequency gain and outputs them to the gain distribution unit. The gain distribution unit quickly adjusts the radio frequency attenuator and the intermediate frequency attenuator, so that the intermediate frequency signal quickly converges to the dynamic range of the analog-to-digital converter and reaches a stable output state. It has the advantages of fast convergence speed, large dynamic range, and the convergence process is not disturbed by the environment.
[0111] 2. The present invention aims to solve the problem that the RF detector is in a nonlinear range due to the large change in the RF signal amplitude. The corresponding relationship between the output voltage of the RF detector and the RF input signal power is curve-fitted, and the power of the input RF signal and the RF signal power outside the nonlinear range are accurately quantified by using the linear range of the RF detector, so as to achieve the purpose of quickly detecting the peak power of the RF signal. Compared with analog automatic gain control, the RF power is accurately quantified, the dynamic range of RF detection is increased, and the convergence time is shortened.
[0112] 3. The present invention aims to solve the problem that the RF detector is in a nonlinear range due to large changes in the RF signal amplitude and the quantization error in the nonlinear range of the RF detector. The large signal indication discrete line is used to quickly indicate the large RF signal. After the RF detector integrates the RF signal and exceeds the RF threshold configured by the hardware, the RF large signal indication is pulled up and the gain of the receiving channel is greatly attenuated to reduce the distortion effect of the receiving channel on the large RF signal. Compared with analog automatic gain control, the RF convergence speed is improved and the effect of RF device distortion on the RF signal is greatly reduced.
[0113] 4. The present invention aims at the problem that the amplitude of the quantized intermediate frequency signal changes greatly due to the large change of the intermediate frequency signal envelope, thereby causing false detection. The energy in the intermediate frequency signal passband is used to adopt the power segmented average method, and the signal power in a time window is sampled for smoothing. That is, the intermediate frequency signal is segmented, and the size of each segment is the window size. , and then accumulate the values in the window to get the average value as the smooth output. Compared with analog automatic gain control, the stability of intermediate frequency detection is improved.
[0114] 5. Aiming at the scenarios where the envelope is smooth after the intermediate frequency signal is attenuated and the scenarios where the intermediate frequency signal responds quickly after attenuation, the present invention designs the automatic mode fast large attenuation receiving channel gain and the manual small step attenuation receiving channel gain. Compared with the analog automatic gain control, it is suitable for different intermediate frequency attenuation strategies and improves the flexibility of automatic gain application.
[0115] 6. Aiming at the problem that the envelope of RF and IF signals is not smooth enough, the present invention designs a two-level RF threshold and a four-level IF threshold to accurately quantify the control threshold of RF and IF signals, and uses a combination of coarse stepping and fine stepping to adjust the gain of IF signals to ensure smooth attenuation or amplification of IF signals. Compared with analog automatic gain control, the envelope of IF signals is smoother.
[0116] 7. Aiming at the oscillation problem of the intermediate frequency signal near the intermediate frequency threshold, the present invention designs the intermediate frequency signal hysteresis interval to adjust the intermediate frequency signal amplitude, ensuring that the intermediate frequency signal has no oscillation near the intermediate frequency threshold and outputs stably. Compared with analog automatic gain control, the stability of automatic gain is improved.
[0117] like Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor, and when the processor 520 executes the computer program 511, the steps of the above-mentioned large dynamic range automatic gain fast control method are implemented.
[0118] Since the electronic device introduced in this embodiment is a device used to implement a large dynamic range automatic gain fast control method in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation method of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.
[0119] During the specific implementation process, when the computer program 511 is executed by a processor, any implementation method in the embodiments corresponding to the first aspect can be implemented.
[0120] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0121] It should be noted that Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0122] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the random access memory 603. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other through a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.
[0123] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.
[0124] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit 601, various functions defined in the system of the present application are executed.
[0125] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0126] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0128] As another aspect, the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes a large dynamic range automatic gain fast control method described in the above embodiment.
[0129] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements a large dynamic range automatic gain fast control method described in the above embodiment.
[0130] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0131] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0132] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. It should be understood that the present application is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A large dynamic range automatic gain fast control method, characterized in that: include: Performing detection processing based on the externally inputted radio frequency signal to generate a radio frequency detection signal, and performing frequency conversion processing to generate an intermediate frequency signal; Rapidly adjusting the radio frequency gain of the receiving channel based on the radio frequency detection signal and the radio frequency two-level threshold, wherein the radio frequency two-level threshold includes a first radio frequency threshold and a second radio frequency threshold with values from large to small; Rapidly adjusting the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold, wherein the intermediate frequency four-level threshold includes a first intermediate frequency threshold, a second intermediate frequency threshold, a third intermediate frequency threshold and a fourth intermediate frequency threshold whose values are from large to small; The radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency detection signal and the radio frequency two-level threshold, including: Generate the power of the radio frequency signal by curve nonlinear fitting of the radio frequency detection signal, compare the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generate a radio frequency gain allocation strategy based on the comparison result; Rapidly adjusting the radio frequency gain of the receiving channel based on a radio frequency signal gain allocation strategy; The comparing the power of the radio frequency signal with the first radio frequency threshold and the second radio frequency threshold respectively, and generating a radio frequency gain allocation strategy based on the comparison result, comprises: When the power of the RF signal is greater than or equal to the first RF threshold, a first RF attenuation step value is generated, and the RF gain of the receiving channel is adjusted based on the first RF attenuation step value until the power of the RF signal is less than the first RF threshold; When the power of the RF signal is less than the first RF threshold and greater than or equal to the second RF threshold, generate a second RF attenuation step value, and adjust the RF gain of the receiving channel based on the second RF attenuation step value until the power of the RF signal is less than the second RF threshold; When the power of the radio frequency signal is less than the second radio frequency threshold, the radio frequency gain of the receiving channel is not adjusted; The method of quickly adjusting the intermediate frequency gain of the receiving channel based on the average power of the intermediate frequency signal and the intermediate frequency four-level threshold includes: Comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold and the fourth intermediate frequency threshold respectively, and generating an intermediate frequency signal gain allocation strategy based on the comparison results; Rapidly adjust the intermediate frequency gain of the receiving channel based on the intermediate frequency signal gain allocation strategy; The step of comparing the average power of the intermediate frequency signal with the first intermediate frequency threshold, the second intermediate frequency threshold, the third intermediate frequency threshold, and the fourth intermediate frequency threshold, and generating an intermediate frequency signal gain allocation strategy based on the comparison results includes: When the average power of the intermediate frequency signal is greater than or equal to the first intermediate frequency threshold, a first intermediate frequency attenuation step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the first intermediate frequency threshold; When the average power of the intermediate frequency signal is less than the first intermediate frequency threshold and greater than or equal to the second intermediate frequency threshold, generating a second intermediate frequency attenuation step value, and adjusting the intermediate frequency gain of the receiving channel based on the second intermediate frequency attenuation step value until the average power of the intermediate frequency signal is less than the second intermediate frequency threshold; When the average power of the intermediate frequency signal is less than the fourth intermediate frequency threshold, a first intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the first intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than the fourth intermediate frequency threshold; When the average power of the intermediate frequency signal is less than the third intermediate frequency threshold and greater than or equal to the fourth intermediate frequency threshold, a second intermediate frequency amplification step value is generated, and the intermediate frequency gain of the receiving channel is adjusted based on the second intermediate frequency amplification step value until the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold; When the average power of the intermediate frequency signal is greater than or equal to the third intermediate frequency threshold and less than the second intermediate frequency threshold, the intermediate frequency gain of the receiving channel is not adjusted.
2. The method according to claim 1, characterized in that: The process of performing the detection processing also includes: generating a radio frequency large signal indication based on the radio frequency signal input from the outside; When a radio frequency large signal indication is detected, a radio frequency gain large attenuation value is generated, and the radio frequency gain of the receiving channel is quickly adjusted based on the radio frequency gain large attenuation value.
3. A large dynamic range automatic gain fast control system, applied to the method as described in any one of claims 1-2, characterized in that: include: Radio frequency receiving channel unit and automatic gain control unit; The RF receiving channel unit receives an external RF input signal, performs detection processing on the RF input signal to generate a RF detection signal and a RF large signal indication, and performs frequency conversion processing to generate an intermediate frequency signal to output to the automatic gain control unit; The automatic gain control unit generates an RF gain allocation strategy based on the RF detection signal, the RF large signal indication and the RF two-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the RF gain of the receiving channel; and generates an IF signal gain allocation strategy based on the IF signal and the IF four-level threshold and transmits it back to the RF receiving channel unit to quickly adjust the IF gain of the receiving channel; The two-level RF threshold includes a first RF threshold and a second RF threshold whose values are from large to small, and the four-level IF threshold includes a first IF threshold, a second IF threshold, a third IF threshold and a fourth IF threshold whose values are from large to small.
4. The system according to claim 3, characterized in that The radio frequency receiving channel unit includes: a radio frequency attenuator, a radio frequency detector, a frequency conversion chain and an intermediate frequency attenuator; Wherein, the radio frequency attenuator is connected to the radio frequency detector; The radio frequency detector is connected to the frequency conversion chain; The frequency conversion chain is connected to the intermediate frequency attenuator; The radio frequency detector and the intermediate frequency attenuator are also connected to the automatic gain control unit.
5. The system according to claim 4, characterized in that The automatic gain control unit comprises: an intermediate frequency average power unit, a radio frequency power detection unit, an automatic gain control unit and a gain distribution unit; Wherein, the intermediate frequency average power unit is connected to the intermediate frequency attenuator and the automatic gain control unit respectively; The radio frequency power detection unit is connected to the radio frequency detector and the automatic gain control unit respectively; The automatic gain control unit is connected to the intermediate frequency average power unit, the radio frequency power detection unit and the gain distribution unit respectively; The gain distribution unit is connected to the radio frequency attenuator and the intermediate frequency attenuator respectively.
6. An electronic device, characterized in that: include: Memory and processor; The memory is used to store computer instructions; The processor is used to call the computer instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-2.
Citation Information
Patent Citations
Numerically controlled gain up-converter
CN109462412A
AAGC method and device of broadband receiver
CN110365349A