Radio frequency gain control method, signal system, terminal equipment and storage medium
By acquiring the quality and relevant peak parameters of the radio frequency signal, a control strategy is generated to dynamically adjust the radio frequency gain, solving the problem that fixed gain and manual adjustment cannot adapt to complex environments, and improving the accuracy and stability of time synchronization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, fixed RF gain cannot adapt to complex and ever-changing electromagnetic environments, resulting in unstable received signals and affecting time synchronization accuracy; manual adjustment relies on human subjective experience and cannot achieve precise time synchronization.
By acquiring the quality parameters and relevant peak parameters of the radio frequency signal, first and second control strategies are generated, and the radio frequency gain is dynamically adjusted by comprehensively considering the signal quality and characteristics.
It enables fine-tuning of RF gain, improves the accuracy and stability of time synchronization, and reduces misjudgments caused by short-term interference or instantaneous fluctuations.
Smart Images

Figure CN121728546A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of signal processing technology, and in particular relates to a radio frequency gain control method, a signal system, a terminal device, and a computer-readable storage medium. Background Technology
[0002] Time synchronization is a core technology in modern infrastructure such as power systems, communication base stations, financial transactions, and railway transportation, relying on global satellite navigation systems. For example, time synchronization is performed using the precise time provided by the BeiDou system as a reference. The stability of radio frequency (RF) gain is a key factor affecting time synchronization. If the RF gain is insufficient, weak signals will be overwhelmed by noise, leading to time synchronization failure (for example, the BeiDou system has difficulty providing time in environments with weak signals); if the gain is too high, the signal will saturate and distort, similarly compromising the accuracy of the synchronization signal.
[0003] In related technologies, a fixed RF gain or manual adjustment is typically used. However, a fixed RF gain cannot adapt to complex and variable electromagnetic environments, easily leading to unstable received signals and affecting time synchronization accuracy. Manual adjustment relies on subjective experience and cannot be precisely controlled, thus failing to achieve accurate time synchronization. Summary of the Invention
[0004] This application provides a radio frequency gain control method, a signal system, a terminal device, and a computer-readable storage medium, which can achieve high-precision adaptive adjustment of radio frequency gain, thereby improving timekeeping accuracy.
[0005] In a first aspect, embodiments of this application provide a radio frequency gain control method, including: Obtain the signal parameters of the radio frequency signal within the current sampling period, wherein the signal parameters include quality parameters and correlation peak parameters; A first control strategy is generated based on the quality parameters; A second control strategy is generated based on the relevant peak parameters; Determine the target control strategy based on the first control strategy and the second control strategy; Adjust the radio frequency gain according to the target control strategy.
[0006] In this embodiment, a first control strategy is generated based on the quality parameters of the radio frequency (RF) signal, which is equivalent to considering the signal quality of the RF signal; a second control strategy is generated based on the correlation peak parameters of the RF signal, which is equivalent to considering the signal characteristics of the RF signal; a target control strategy is determined based on the first and second control strategies, and the RF gain is adjusted according to the target control strategy. Through this method, by comprehensively considering both the signal quality and signal characteristics of the RF signal, fine-grained adjustment of the RF gain is achieved, thereby improving the accuracy of time synchronization.
[0007] In one possible implementation of the first aspect, the quality parameters include the effective number of satellites and the average carrier-to-noise ratio; The step of generating a first control strategy based on the quality parameters includes: The signal quality of the real-time radio frequency signal is determined based on the effective number of satellites and the average carrier-to-noise ratio. The first control strategy is determined based on the signal quality.
[0008] In the above method, the number of effective satellites reflects the "quantity dimension" of the signal, while the average carrier-to-noise ratio reflects the "quality dimension" of the signal. By evaluating the signal quality based on the number of effective satellites and the average carrier-to-noise ratio, the combination of the two can reduce the bias of a single indicator and improve the accuracy of the signal quality evaluation, thereby helping to improve the accuracy of the first control strategy.
[0009] In one possible implementation of the first aspect, the correlation peak parameters include correlation peak width and symmetry parameters; The step of generating a second control strategy based on the relevant peak parameters includes: The shape of the relevant peak is determined based on the relevant peak width and the symmetry parameter; The second control strategy is determined based on the relevant peak morphology.
[0010] In the above method, the correlation peak width reflects the signal's resolution and synchronization accuracy, while symmetry reflects the signal's purity and interference level. By using the correlation peak width and symmetry parameters, the correlation peak shape can be reflected relatively realistically. Furthermore, since the correlation peak shape changes in real time with factors such as the radio frequency environment and interference sources, subtle changes in the signal can be detected promptly based on the correlation peak shape, thereby achieving rapid response and improving the timeliness of the control strategy.
[0011] In one possible implementation of the first aspect, determining the target control strategy based on the first control strategy and the second control strategy includes: Obtain the third control strategy corresponding to each of the M consecutive sampling periods preceding the current sampling period; wherein, the third control strategy is a control strategy generated based on the quality parameters of the radio frequency signal within the sampling period; and M is a positive integer; If all the obtained third control strategies are the same as the first control strategy, then the target control strategy is determined based on the first control strategy and the second control strategy.
[0012] In the above method, it is equivalent to setting a time window (i.e., M sampling periods). The first control strategy is triggered only when the signal within the time window meets the conditions. This can reduce misjudgments caused by short-term interference or instantaneous fluctuations and improve the accuracy of the control strategy.
[0013] In one possible implementation of the first aspect, determining the target control strategy based on the first control strategy and the second control strategy includes: If the first control strategy conflicts with the second control strategy, then the target control strategy is determined according to the first control strategy.
[0014] It is understandable that signal quality is directly related to the stability of time synchronization, while the relevant peak shape focuses on the detailed optimization of signal processing. In the above approach, when control strategies conflict, priority is given to the control strategy generated under the condition of signal quality, which is conducive to improving the stability of time synchronization.
[0015] In one possible implementation of the first aspect, adjusting the RF gain according to the target control strategy includes: Obtain indication information, which is used to indicate whether an interrupt event is triggered; wherein, when the field-programmable gate array detects that the power value of the radio frequency signal exceeds a safety threshold, the field-programmable gate array triggers the interrupt event; the interrupt event is used to indicate adjusting the radio frequency gain to a preset gain value corresponding to the safety threshold; If the indication information indicates that the interrupt event has not been triggered, then the radio frequency gain is adjusted according to the target control strategy.
[0016] In the above method, the field-programmable gate array (FPGA) independently controls the RF gain based on the power value. When the power value exceeds the safety threshold, the RF gain can be adjusted to the preset gain value in a timely manner through an interrupt event without the need for a processor, thereby achieving rapid protection of the system.
[0017] Secondly, embodiments of this application provide a signal system, including: The timing module is used to calculate the quality parameters of the radio frequency signal; Field-programmable gate arrays (FPGAs) are used to calculate the correlation peak parameters of radio frequency signals. A processor for performing the RF gain control method as described in any one of the first aspects; A programmable gain amplifier for adjusting the radio frequency gain according to the target control strategy issued by the processor.
[0018] In one possible implementation of the second aspect, the field-programmable gate array is further used for: Detect the power value of the radio frequency signal within the current sampling period; If the power value exceeds the safety threshold, the interrupt event is triggered, and a preset gain value corresponding to the safety threshold is sent to the programmable gain amplifier. Accordingly, the programmable gain amplifier is also used for: If the interruption event is detected and the preset gain value is received, the radio frequency gain is adjusted to the preset gain value.
[0019] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the radio frequency gain control method as described in any one of the first aspects above.
[0020] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the radio frequency gain control method as described in any one of the first aspects above.
[0021] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the radio frequency gain control method described in any one of the first aspects.
[0022] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram of the signal system provided in an embodiment of this application; Figure 2 This is a schematic diagram of a signal system provided in another embodiment of this application; Figure 3 This is a flowchart illustrating the radio frequency gain control method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the control decision-making process of the processor provided in an embodiment of this application; Figure 5 This is a flowchart illustrating the FPGA fast protection process provided in an embodiment of this application; Figure 6 This is a structural block diagram of the radio frequency gain control device provided in the embodiments of this application; Figure 7 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation
[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0026] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0027] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0028] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0029] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0030] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0031] Time synchronization is a core technology in modern infrastructure such as power systems, communication base stations, financial transactions, and railway transportation, relying on global satellite navigation systems. For example, time synchronization is performed using the precise time provided by the BeiDou system as a reference. The stability of radio frequency (RF) gain is a key factor affecting time synchronization. If the RF gain is insufficient, weak signals will be overwhelmed by noise, leading to time synchronization failure (for example, the BeiDou system has difficulty providing time in environments with weak signals); if the gain is too high, the signal will saturate and distort, similarly compromising the accuracy of the synchronization signal.
[0032] In related technologies, a fixed RF gain or manual adjustment is typically used. However, a fixed RF gain cannot adapt to complex and variable electromagnetic environments, easily leading to unstable received signals and affecting time synchronization accuracy. Manual adjustment relies on subjective experience and cannot be precisely controlled, thus failing to achieve accurate time synchronization.
[0033] Based on this, embodiments of this application provide a radio frequency (RF) gain control method. In these embodiments, a first control strategy is generated based on the quality parameters of the RF signal, which is equivalent to considering the signal quality of the RF signal; a second control strategy is generated based on the correlation peak parameters of the RF signal, which is equivalent to considering the signal characteristics of the RF signal; a target control strategy is determined based on the first and second control strategies, and the RF gain is adjusted according to the target control strategy. Through this method, by comprehensively considering both the signal quality and signal characteristics of the RF signal, fine-grained adjustment of the RF gain is achieved, thereby improving the accuracy of time synchronization.
[0034] See Figure 1 This is a schematic diagram of a signal system provided in an embodiment of this application. It is intended as an example and not a limitation. Figure 1 As shown, the signal system may include: The timing module 11 is used to calculate the quality parameters of the radio frequency signal. For example, the timing module 11 performs acquisition, tracking, bit synchronization, and frame synchronization on the received signal, calculates the quality parameters, and transmits the quality parameters to the processor 13. As another example, the timing module 11 can also calculate the correlation peak data of the received signal (such as the data from the lead, instant, and lag correlators) and send the correlation peak data to the field-programmable gate array 12.
[0035] The field-programmable gate array (FPGA) 12 is used to calculate the correlation peak parameters of the radio frequency signal. For example, the FPGA 12 receives the correlation peak data sent by the timing module 11, calculates the correlation peak parameters based on the correlation peak data, and sends the correlation peak parameters to the processor 13.
[0036] In one example, the steps for calculating the correlation peak parameters may include: obtaining the I-path and Q-path values of the three correlators (E, P, and L) corresponding to the same time and the same satellite channel, where I-path represents the in-phase component and Q-path represents the quadrature component; converting the I-path and Q-path values of the lead (E) correlator into scalar first power values, the I-path and Q-path values of the P correlator into scalar second power values, and the I-path and Q-path values of the L lag correlator into scalar third power values; fitting the correlation peak curve based on the first, second, and third power values; and calculating the correlation peak width and symmetry parameters of the correlation peak curve. For example, the symmetry parameters can be calculated using the differences between the first and second power values, and the differences between the second and third power values.
[0037] Processor 13 is used to execute the radio frequency gain control method described in the embodiments of this application.
[0038] Optionally, the timing module 11 and the processor 13, the timing module 11 and the field programmable gate array 12, and the processor 13 and the field programmable gate array 12 can communicate via a universal asynchronous receiver / transmitter (UART) or a serial peripheral interface (SPI).
[0039] Programmable gain amplifier 14 is used to adjust the radio frequency gain according to the target control strategy issued by the processor.
[0040] In one embodiment, see Figure 2 This is a schematic diagram of a signal system provided in another embodiment of this application. Figure 2 As shown, the signal system may include: Antenna module 21 is used to receive L-band frequencies from satellite navigation systems such as BD1 and BD2. It extracts the specific frequency band through an internal bandpass filter, and then performs a first-stage fixed-gain amplification via a low-frequency amplifier to reduce the system's noise figure. It should be noted that the gain at this stage cannot be changed.
[0041] The first control module 22 includes a programmable gain amplifier (PGA) 221, a downconverter 222, an intermediate frequency (IF) filter 223, an analog-to-digital converter (ADC) 224, and a power detector 225. The PGA 221 amplifies or attenuates the input signal based on the radio frequency (RF) gain. The downconverter 222 converts the high-frequency RF signal into a lower-frequency IF signal. The IF filter 223 filters the IF signal. The ADC 224 converts the analog signal into a digital signal. The power detector 225 detects the power value of the input signal.
[0042] Optionally, the programmable gain amplifier 221 and the field-programmable gate array 232 can communicate via a universal asynchronous receiver / transmitter (UART) or a serial peripheral interface (SPI).
[0043] The second control module 23 includes a timing module 231, a field-programmable gate array 232, and a processor 233.
[0044] Understandable Figure 2 The programmable gain amplifier 221 in the embodiment corresponds to Figure 1 The programmable gain amplifier 14 in the embodiment, Figure 2 The timing module 231 in the embodiment corresponds to Figure 1 The time synchronization module 11 in the embodiment, Figure 2 The field-programmable gate array 232 in the embodiment corresponds to Figure 1 The field-programmable gate array 12 in the embodiment, Figure 2 The processor 233 in the embodiment corresponds to Figure 1 Processor 13 in the embodiment. Figure 2 The embodiment provides a connection method between various modules in a signal system.
[0045] The following is combined Figure 1 and Figure 2 The signal system shown illustrates the radio frequency gain control method of this application embodiment.
[0046] See Figure 3 This is a flowchart illustrating the radio frequency gain control method provided in this application embodiment. The radio frequency gain control method in this application embodiment can be... Figure 1 and Figure 2 The processor shown executes the method. As an example and not a limitation, the method may include the following steps: S101, Obtain the signal parameters of the radio frequency signal within the current sampling period, wherein the signal parameters include quality parameters and correlation peak parameters.
[0047] For example, such as Figure 1 and Figure 2 In the signal system shown, the timing module sends the calculated quality parameters to the processor and the calculated correlation peak data to the FPGA; the FPGA calculates the correlation peak parameters based on the correlation peak data and sends the correlation peak parameters to the processor. Accordingly, the processor obtains the quality parameters and correlation peak parameters of the RF signal.
[0048] S102, Generate a first control strategy based on the quality parameters.
[0049] In one embodiment, the quality parameters include the number of effective satellites and the average carrier-to-noise ratio (CNR). For example, the timing module can send the number of effective satellites and the CNR of each satellite channel to the processor, which then calculates the average CNR based on these parameters. Alternatively, the timing module can calculate the average CNR and send it to the processor.
[0050] Accordingly, S102 may include: The signal quality of the real-time radio frequency signal is determined based on the effective number of satellites and the average carrier-to-noise ratio; the first control strategy is determined based on the signal quality.
[0051] In one implementation, the method for determining the first control strategy may include: If the signal quality indicates that the RF signal is in an excellent state, the first control strategy is to maintain the current RF gain or reduce the RF gain. For example, if C / N0_avg > 40 and N ≥ 6, it indicates that the signal quality is stable and has sufficient margin, thus indicating that the RF signal is in an excellent state. Here, C / N0_avg represents the average carrier-to-noise ratio, and N represents the number of effective satellites.
[0052] If the signal quality indicates that the RF signal is in a normal state, then the first control strategy is to maintain the current RF gain. For example, if 30 ≤ C / N0_avg ≤ 40, it means the system is within the normal range, and the signal quality indicates that the RF signal is in a normal state.
[0053] If the signal quality indicates that the RF signal is in a weak signal state, the first control strategy is to increase the RF gain. For example, if C / N0_avg < 30 and N < 4, it means that the signal is weak, and the signal quality indicates that the RF signal is in a weak signal state.
[0054] In the above method, the number of effective satellites reflects the "quantity dimension" of the signal, while the average carrier-to-noise ratio reflects the "quality dimension" of the signal. By evaluating the signal quality based on the number of effective satellites and the average carrier-to-noise ratio, the combination of the two can reduce the bias of a single indicator and improve the accuracy of the signal quality evaluation, thereby helping to improve the accuracy of the first control strategy.
[0055] S103, Generate a second control strategy based on the relevant peak parameters.
[0056] In one embodiment, the correlation peak parameters include correlation peak width and symmetry parameters. For example, the timing module sends correlation peak data to the FPGA, the FPGA calculates the correlation peak width and symmetry parameters based on the correlation peak data, and sends them to the processor. The method for calculating the correlation peak parameters can be referred to... Figure 2 The description of the FPGA portion in the embodiments will not be repeated here.
[0057] Accordingly, S103 may include: The shape of the relevant peak is determined based on the relevant peak width and the symmetry parameter; The second control strategy is determined based on the relevant peak morphology.
[0058] In one implementation, the method for determining the second control strategy may include: If the correlation peak shape indicates that the peak has become wider and / or blunter, then the second control strategy is to reduce the RF gain. For example, if the correlation peak width is greater than the width threshold, then increasing the width value indicates that the correlation peak shape has become wider and / or blunter.
[0059] If the correlation peak shape indicates peak asymmetry, the second control strategy is to increase the RF gain. For example, if the correlation peak symmetry is less than the lower symmetry threshold, or the correlation peak symmetry is greater than the upper symmetry threshold, then the signal exhibits left-right peak asymmetry, indicating peak asymmetry.
[0060] If the relevant peak shape indicates a normal peak shape, the second control strategy is to maintain the current RF gain. For example, if neither of the above two conditions occurs—that is, the peak shape is neither widened nor blunted, and the peak shape is symmetrical—then the relevant peak shape indicates a normal peak shape. If both of the above conditions occur—that is, the relevant peak shape indicates a widened and / or blunted peak shape, and the relevant peak shape indicates an asymmetrical peak shape—then reducing the RF gain is prioritized, i.e., the second control strategy is determined to be reducing the RF gain.
[0061] In the above method, the correlation peak width reflects the signal's resolution and synchronization accuracy, while symmetry reflects the signal's purity and interference level. By using the correlation peak width and symmetry parameters, the correlation peak shape can be reflected relatively realistically. Furthermore, since the correlation peak shape changes in real time with factors such as the radio frequency environment and interference sources, subtle changes in the signal can be detected promptly based on the correlation peak shape, thereby achieving rapid response and improving the timeliness of the control strategy.
[0062] S104, determine the target control strategy based on the first control strategy and the second control strategy.
[0063] In one embodiment, S104 may include time-filtered anti-shake processing, specifically including the following steps: Obtain the third control strategy corresponding to each of the M consecutive sampling periods preceding the current sampling period; wherein, the third control strategy is a control strategy generated based on the quality parameters of the radio frequency signal within the sampling period; and M is a positive integer; If all the obtained third control strategies are the same as the first control strategy, then the target control strategy is determined based on the first control strategy and the second control strategy.
[0064] For example, if the window length M=5 is set, it is determined whether the third control strategy of each of the four consecutive sampling periods before the current sampling period is the same as the first control strategy. If the third control strategy of each of the four consecutive sampling periods before the current sampling period is the same as the first control strategy, then the target control strategy is determined according to the first control strategy and the second control strategy.
[0065] In another embodiment, the time-filtered stabilization process may include: Obtain the average carrier-to-noise ratio for each of the M consecutive sampling periods preceding the current sampling period; Calculate the average of the M obtained average carrier-to-noise ratios; The first control strategy is redefined based on this average value; The target control strategy is determined based on the newly determined first and second control strategies.
[0066] For example, setting the window length M=5, calculate the average carrier-to-noise ratio of the current sampling period and the previous four consecutive sampling periods, such as... ,in, This is the average value. Let be the average carrier-to-noise ratio of the i-th sampling period; redetermine the first control strategy based on this average value; determine the target control strategy based on the redetermined first and second control strategies.
[0067] In the above method, it is equivalent to setting a time window (i.e., M sampling periods). The first control strategy is triggered only when the signal within the time window meets the conditions. This can reduce misjudgments caused by short-term interference or instantaneous fluctuations and improve the accuracy of the control strategy.
[0068] In one implementation, determining the target control strategy based on the first control strategy and the second control strategy includes: If the first control strategy conflicts with the second control strategy, then the target control strategy is determined according to the first control strategy.
[0069] For example, see Figure 4 This is a schematic diagram illustrating the control decision-making process of the processor provided in an embodiment of this application. Figure 4 As shown, the processor generates a first control decision based on quality parameters; generates a second control decision based on relevant peak parameters; performs time filtering for jitter reduction; and fuses the first and second control decisions to obtain the target control decision.
[0070] It is understandable that signal quality is directly related to the stability of time synchronization, while the relevant peak shape focuses on the detailed optimization of signal processing. In the above approach, when control strategies conflict, priority is given to the control strategy generated under the condition of signal quality, which is conducive to improving the stability of time synchronization.
[0071] S105, adjust the radio frequency gain according to the target control strategy.
[0072] In one embodiment, S105 includes: Obtain indication information, which is used to indicate whether an interrupt event is triggered; wherein, when the field-programmable gate array detects that the power value of the radio frequency signal exceeds a safety threshold, the field-programmable gate array triggers the interrupt event; the interrupt event is used to indicate adjusting the radio frequency gain to a preset gain value corresponding to the safety threshold; If the indication information indicates that the interrupt event has not been triggered, then the radio frequency gain is adjusted according to the target control strategy.
[0073] For example, see Figure 5 This is a schematic diagram of the FPGA fast protection process provided in an embodiment of this application. Figure 5As shown, the FPGA receives the power value of the RF signal sent by the power detector; the FPGA obtains the safety threshold from the safety threshold register and determines whether the power value exceeds the safety threshold; if the power value exceeds the safety threshold, an interrupt event is triggered, the FPGA obtains the preset gain value corresponding to the safety threshold from the safety threshold register, sends the preset gain value to the programmable gain amplifier, and sets the indication information to the first information, where the first information indicates that an interrupt event has been triggered. Correspondingly, the processor polls or receives the indication information; if the indication information indicates that an interrupt event has been triggered, the processor does not issue the target control strategy in the current sampling period; if the indication information indicates that no interrupt event has been triggered, the processor issues the target control strategy. Correspondingly, if the programmable gain amplifier detects an interrupt event and receives the preset gain value sent by the FPGA, it adjusts the RF gain to the preset gain value; if no interrupt event is detected and the target control strategy issued by the processor is received, the target control strategy is executed.
[0074] In the above method, the field-programmable gate array (FPGA) independently controls the RF gain based on the power value. When the power value exceeds the safety threshold, the RF gain can be adjusted to the preset gain value in a timely manner through an interrupt event without the need for a processor, thereby achieving rapid protection of the system.
[0075] Figure 3 In the described embodiment, a first control strategy is generated based on the quality parameters of the radio frequency (RF) signal, which is equivalent to considering the signal quality of the RF signal; a second control strategy is generated based on the correlation peak parameters of the RF signal, which is equivalent to considering the signal characteristics of the RF signal; a target control strategy is determined based on the first and second control strategies, and the RF gain is adjusted according to the target control strategy. Through this method, by comprehensively considering both the signal quality and signal characteristics of the RF signal, fine-grained adjustment of the RF gain is achieved, thereby improving the accuracy of time synchronization.
[0076] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0077] Corresponding to the RF gain control method described in the above embodiments, Figure 6 This is a structural block diagram of the radio frequency gain control device provided in the embodiments of this application. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0078] Reference Figure 6 The device 6 includes: The parameter acquisition unit 61 is used to acquire the signal parameters of the radio frequency signal in the current sampling period, wherein the signal parameters include quality parameters and correlation peak parameters; The first generation unit 62 is used to generate a first control strategy based on the quality parameters; The second generation unit 63 is used to generate a second control strategy based on the relevant peak parameters; The strategy determination unit 64 is used to determine a target control strategy based on the first control strategy and the second control strategy. Gain control unit 65 is used to adjust the radio frequency gain according to the target control strategy.
[0079] Optionally, the quality parameters include the effective number of satellites and the average carrier-to-noise ratio; correspondingly, the first generation unit 62 is further configured to: The signal quality of the real-time radio frequency signal is determined based on the effective number of satellites and the average carrier-to-noise ratio. The first control strategy is determined based on the signal quality.
[0080] Optionally, the correlation peak parameters include correlation peak width and symmetry parameters; correspondingly, the second generation unit 63 is further configured to: The shape of the relevant peak is determined based on the relevant peak width and the symmetry parameter; The second control strategy is determined based on the relevant peak morphology.
[0081] Optionally, the strategy determination unit 64 is also used for: Obtain the third control strategy corresponding to each of the M consecutive sampling periods preceding the current sampling period; wherein, the third control strategy is a control strategy generated based on the quality parameters of the radio frequency signal within the sampling period; and M is a positive integer; If all the obtained third control strategies are the same as the first control strategy, then the target control strategy is determined based on the first control strategy and the second control strategy.
[0082] Optionally, the strategy determination unit 64 is also used for: If the first control strategy conflicts with the second control strategy, then the target control strategy is determined according to the first control strategy.
[0083] Optionally, the gain control unit 65 is also used for: Obtain indication information, which is used to indicate whether an interrupt event is triggered; wherein, when the field-programmable gate array detects that the power value of the radio frequency signal exceeds a safety threshold, the field-programmable gate array triggers the interrupt event; the interrupt event is used to indicate adjusting the radio frequency gain to a preset gain value corresponding to the safety threshold; If the indication information indicates that the interrupt event has not been triggered, then the radio frequency gain is adjusted according to the target control strategy.
[0084] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0085] in addition, Figure 6 The RF gain control device shown can be built into existing terminal equipment (such as...) Figure 1 The software units, hardware units, or combined software and hardware units within the MPU described in the embodiments can also be integrated into the terminal device as independent components, or they can exist as independent terminal devices.
[0086] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0087] Figure 7 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. For example... Figure 7 As shown, the terminal device 7 of this embodiment includes: at least one processor 70 ( Figure 7 (Only one is shown in the diagram) a processor, a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, wherein the processor 70 executes the computer program 72 to implement the steps in any of the above-described RF gain control method embodiments.
[0088] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. This terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that... Figure 7 The example of terminal device 7 is merely an illustration and does not constitute a limitation on terminal device 7. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.
[0089] The processor 70 can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0090] In some embodiments, the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. In other embodiments, the memory 71 may be an external storage device of the terminal device 7, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 7. Furthermore, the memory 71 may include both internal and external storage units of the terminal device 7. The memory 71 is used to store the operating system, applications, boot loader, data, and other programs, such as the program code of the computer program. The memory 71 can also be used to temporarily store data that has been output or will be output.
[0091] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.
[0092] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments.
[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0094] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0095] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0096] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0097] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0098] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A radio frequency gain control method, characterized in that, include: Obtain the signal parameters of the radio frequency signal within the current sampling period, wherein the signal parameters include quality parameters and correlation peak parameters; A first control strategy is generated based on the quality parameters; A second control strategy is generated based on the relevant peak parameters; Determine the target control strategy based on the first control strategy and the second control strategy; Adjust the radio frequency gain according to the target control strategy.
2. The radio frequency gain control method as described in claim 1, characterized in that, The quality parameters include the effective number of satellites and the average carrier-to-noise ratio; The step of generating a first control strategy based on the quality parameters includes: The signal quality of the real-time radio frequency signal is determined based on the effective number of satellites and the average carrier-to-noise ratio. The first control strategy is determined based on the signal quality.
3. The radio frequency gain control method as described in claim 1, characterized in that, The relevant peak parameters include the relevant peak width and symmetry parameters; The step of generating a second control strategy based on the relevant peak parameters includes: The shape of the relevant peak is determined based on the relevant peak width and the symmetry parameter; The second control strategy is determined based on the relevant peak morphology.
4. The radio frequency gain control method as described in claim 1, characterized in that, Determining the target control strategy based on the first control strategy and the second control strategy includes: Obtain the third control strategy corresponding to each of the M consecutive sampling periods preceding the current sampling period; wherein, the third control strategy is a control strategy generated based on the quality parameters of the radio frequency signal within the sampling period; and M is a positive integer; If all the obtained third control strategies are the same as the first control strategy, then the target control strategy is determined based on the first control strategy and the second control strategy.
5. The radio frequency gain control method as described in claim 1, characterized in that, Determining the target control strategy based on the first control strategy and the second control strategy includes: If the first control strategy conflicts with the second control strategy, then the target control strategy is determined according to the first control strategy.
6. The radio frequency gain control method as described in claim 1, characterized in that, The step of adjusting the RF gain according to the target control strategy includes: Obtain indication information, which is used to indicate whether an interrupt event is triggered; wherein, when the field-programmable gate array detects that the power value of the radio frequency signal exceeds a safety threshold, the field-programmable gate array triggers the interrupt event; the interrupt event is used to indicate adjusting the radio frequency gain to a preset gain value corresponding to the safety threshold; If the indication information indicates that the interrupt event has not been triggered, then the radio frequency gain is adjusted according to the target control strategy.
7. A signal system, characterized in that, include: The timing module is used to calculate the quality parameters of the radio frequency signal; Field-programmable gate arrays (FPGAs) are used to calculate the correlation peak parameters of radio frequency signals. A processor for performing the radio frequency gain control method as described in any one of claims 1 to 6; A programmable gain amplifier for adjusting the radio frequency gain according to the target control strategy issued by the processor.
8. The signal system as described in claim 7, characterized in that, The field-programmable gate array is also used for: Detect the power value of the radio frequency signal within the current sampling period; If the power value exceeds the safety threshold, the interrupt event is triggered, and a preset gain value corresponding to the safety threshold is sent to the programmable gain amplifier. Accordingly, the programmable gain amplifier is also used for: If the interruption event is detected and the preset gain value is received, the radio frequency gain is adjusted to the preset gain value.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.