Signal power adjusting method and device, storage medium and electronic device
By deploying processors and gainers in radio frequency devices to detect and adjust the actual gain parameters of signal power, the problem of signal power fluctuation in 5G communication systems is solved, stable and uniform adjustment of signal power is achieved, and communication quality is improved.
Patent Information
- Application Number
- CN202510451028.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-06-27
AI Technical Summary
In 5G communication systems, the signal power amplifier of the RF device fluctuates in the same frequency band due to nonlinear characteristics and environmental temperature changes, which affects the in-band flatness and communication quality. It is difficult for the prior art to achieve stable adjustment of signal power.
By deploying processors, memory, and gainers in RF devices, the actual gain parameters and deviation status of the gainers are detected, the reference gain parameters are updated according to the standard gain parameters and reference deviation parameters, and adjusted to the target gain parameters to ensure the stability of signal power.
It effectively avoids the problem of in-band flatness degradation due to ambient temperature changes or PA aging or replacement, realizes stable and uniform adjustment of signal power, and improves communication quality.
Smart Images

Figure CN120223111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technologies, and in particular, to a method and apparatus for adjusting signal power, a storage medium, and an electronic device. Background Art
[0002] In a 5G communication system, a radio frequency device amplifies the power of a transmitted signal through a power amplifier (PA). Ideally, the signal power output by the PA within the same frequency band should be consistent. However, due to factors such as the non-linear characteristics of the PA and changes in ambient temperature, the signal power actually output by the PA often fluctuates within the same frequency band, affecting the in-band flatness. During the transmission of a signal, the in-band flatness is one of the key indicators for measuring the stability of signal transmission, and the level of in-band flatness directly affects the communication quality.
[0003] In related technologies, the signal power output by the PA is mainly adjusted through digital pre-distortion compensation DPD (Digital Predistortion) or a digital domain filter to improve the in-band flatness. The DPD technology adjusts the signal power output by the PA by pre-compensating for the non-linear distortion of the PA. However, the compensation method using DPD depends on the characteristics of the PA. If the PA ages or is replaced, the original DPD may no longer be applicable, resulting in a decrease in in-band flatness and thus a lower stability of signal power adjustment; the digital domain filter adjusts the signal power output by the PA through a fixed filter. However, when it is necessary to maintain the flatness of various frequency bands, multiple filters may need to be designed, and it is difficult to use fixed compensation means to adjust the signal power of various frequency bands output by the PA, and thus it is difficult to continuously ensure a high in-band flatness, resulting in a lower stability of signal power adjustment. In view of the problems such as the low stability of signal power adjustment in related technologies, no effective solution has been proposed. Summary of the Invention
[0004] Embodiments of the present application provide a method and apparatus for adjusting signal power, a storage medium, and an electronic device, so as to at least solve the problems such as the low stability of signal power adjustment in related technologies.
[0005] According to an embodiment of the present application, a method for adjusting signal power is provided. A radio frequency device is deployed with a processor, a memory, and a booster. The memory is respectively connected to the processor and the booster. The booster is configured to perform gain on the signal power of a signal according to a reference gain parameter stored in the memory. The method is applied to the processor and includes: detecting an actual gain parameter of the booster for the current signal power, where the actual gain parameter is used to indicate the actual gain magnitude of the booster for the signal power; detecting a deviation state of the booster based on the actual gain parameter and a standard gain parameter of the booster, where the deviation state is used to indicate whether the deviation of the booster for the signal power gain falls within a normal range, and the standard gain parameter is the gain of the booster for the signal power in a normal deviation state; in the case where it is detected that the booster is in an abnormal deviation state, updating the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and a reference deviation parameter, where the reference deviation parameter is used to indicate the theoretical deviation of the booster for the current signal power gain, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0006] In an exemplary embodiment, the updating the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter includes: generating an actual gain deviation according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, where the actual gain deviation is used to indicate the actual deviation of the booster for the signal power gain; updating the reference gain parameter to the target gain parameter according to the actual gain deviation.
[0007] In an exemplary embodiment, the updating the reference gain parameter to the target gain parameter according to the actual gain deviation includes: updating the reference deviation parameter to a target deviation parameter according to the actual gain deviation and a first deviation threshold; generating the target gain parameter according to the target deviation parameter and the reference gain parameter; updating the reference gain parameter to the target gain parameter.
[0008] In an exemplary embodiment, updating the reference deviation parameter to a target deviation parameter according to the actual gain deviation and the first deviation threshold includes: comparing the absolute value of the actual gain deviation with the first deviation threshold; when the absolute value of the actual gain deviation is greater than or equal to the first deviation threshold, updating the reference deviation parameter to a first deviation parameter, where the first deviation parameter is the maximum adjustment value allowed for a single adjustment of the reference deviation parameter, and the target deviation parameter includes the first deviation parameter; when the absolute value of the actual gain deviation is less than the first deviation threshold, updating the reference deviation parameter to the actual gain deviation.
[0009] In an exemplary embodiment, detecting the current deviation state of the gain amplifier according to the actual gain parameter and the standard gain parameter of the gain amplifier includes: determining the difference between the actual gain parameter and the standard gain parameter as the expected gain deviation; when the absolute value of the expected gain deviation is greater than or equal to a second deviation threshold, determining that the gain amplifier is detected to be in the abnormal deviation state; when the absolute value of the expected gain deviation is less than the second deviation threshold, determining that the gain amplifier is detected to be in the normal deviation state.
[0010] In an exemplary embodiment, detecting the actual gain parameter of the gain amplifier for the signal power currently includes: sampling the signal output by the radio frequency device at a preset frequency to obtain a plurality of sampled signals; detecting the sampling gain parameter of each of the plurality of sampled signals to obtain a plurality of the sampling gain parameters, where the sampling gain parameter is used to indicate the actual gain of the signal power of the corresponding sampled signal by the gain amplifier in the radio frequency device; determining the average value of the plurality of sampling gain parameters as the actual gain parameter.
[0011] In an exemplary embodiment, sampling the signal output by the radio frequency device at a preset frequency to obtain a plurality of sampled signals includes: sampling the signal output by the radio frequency device at a preset frequency for multiple rounds to obtain a plurality of initial signal sets, where the plurality of signals included in each initial signal set are obtained in the same round of sampling; detecting the effective signal ratio of the valid signals in each initial signal set, where the effective signal ratio is the ratio of the number of valid signals in the corresponding initial signal set to the total number of signals in the initial signal set; screening out the target signal set with the effective signal ratio greater than a preset ratio threshold from the plurality of initial signal sets; determining the plurality of signals included in the target signal set as the plurality of sampled signals.
[0012] According to another embodiment of the embodiments of the present application, there is also provided an apparatus for adjusting signal power. A radio frequency device is deployed with a processor, a memory, and a booster. The memory is respectively connected to the processor and the booster. The booster is configured to boost the signal power of a signal according to a reference gain parameter stored in the memory. The apparatus is applied to the processor and includes: a first detection module, configured to detect an actual gain parameter of the booster for the signal power currently, where the actual gain parameter is used to indicate an actual gain magnitude of the booster for the signal power; a second detection module, configured to detect a deviation state in which the booster currently is according to the actual gain parameter and a standard gain parameter of the booster, where the deviation state is used to indicate whether a deviation of the booster for boosting the signal power falls within a normal range, and the standard gain parameter is the gain of the booster for the signal power in a normal deviation state; an update module, configured to, when detecting that the booster is in an abnormal deviation state, update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and a reference deviation parameter, where the reference deviation parameter is used to indicate a theoretical deviation of the booster for boosting the signal power currently, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0013] According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the above-mentioned signal power adjustment method when running.
[0014] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the above-mentioned processor executes the above-mentioned signal power adjustment method through the computer program.
[0015] In the embodiments of the present application, by detecting the actual gain parameter of the signal power by the booster currently, and detecting the deviation state where the booster is currently located based on the detected actual gain parameter and the standard gain parameter of the booster, when it is found that the booster is currently in an abnormal deviation state, the reference gain parameter is updated according to the actual gain parameter, the standard gain parameter and the reference deviation parameter, and the reference gain parameter is adjusted to the target gain parameter closer to the standard gain parameter, thereby ensuring that the output signal power is more stable and uniform. By adopting the above technical solution, not only the problem of the in-band flatness decrease caused by factors such as environmental temperature change or PA change (for example, PA aging or replacement) in the related art is avoided, but also the problem of frequently adjusting the hardware when maintaining the in-band flatness of various frequency bands is avoided, and the problems such as the low stability of the signal power adjustment in the related art are solved, and the technical effect of improving the stability of the signal power adjustment is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without creative efforts.
[0018] Figure 1 It is a schematic diagram of the hardware environment of a method for adjusting signal power according to an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a method for adjusting signal power according to an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of a method for automatically calibrating output power based on a power gain configuration parameter file according to an embodiment of the present application;
[0021] Figure 4 It is a flowchart of an optional method for adjusting signal power supporting multiple frequency bands according to an embodiment of the present application;
[0022] Figure 5 It is a structural block diagram of a device for adjusting signal power according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of this application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0025] The method embodiments provided by the embodiments of this application can be executed on a computer terminal, a device terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 is a schematic diagram of the hardware environment of a signal power adjustment method according to an embodiment of this application. As Figure 1 shown, the computer terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above computer terminal. For example, the computer terminal may further include more or fewer components than those Figure 1 shown in the figure, or have the same functions as those Figure 1 shown or different configurations with more functions than those Figure 1 shown.
[0026] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the message pushing sending method in the embodiments of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories may be connected to the computer terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the computer terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method for adjusting signal power is provided. The radio frequency device is deployed with a processor, a memory, and a booster. The memory is respectively connected to the processor and the booster. The booster is configured to boost the signal power of the signal according to the reference gain parameter stored in the memory. The method is applied to the processor. Figure 2 It is a flowchart of a method for adjusting signal power according to an embodiment of the present application, as Figure 2 shown. The process includes the following steps:
[0029] Step S202, detecting the actual gain parameter of the booster for the signal power currently, where the actual gain parameter is used to indicate the actual gain magnitude of the booster for the signal power;
[0030] Step S204, detecting the deviation state of the booster currently according to the actual gain parameter and the standard gain parameter of the booster, where the deviation state is used to indicate whether the deviation of the booster for boosting the signal power falls within the normal range, and the standard gain parameter is the gain of the booster for the signal power in the normal deviation state;
[0031] Step S206, when it is detected that the booster is in an abnormal deviation state, update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, where the reference deviation parameter is used to indicate the theoretical deviation of the current signal power gain of the booster, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0032] Through the above steps, by detecting the actual gain parameter of the current signal power gain of the booster, and based on the detected actual gain parameter and the standard gain parameter of the booster, detect the current deviation state of the booster. When it is found that the booster is currently in an abnormal deviation state, update the reference gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, and adjust the reference gain parameter to a target gain parameter closer to the standard gain parameter, thereby ensuring that the output signal power is more stable and uniform. With the above technical solution, not only the problem of the in-band flatness degradation caused by factors such as environmental temperature changes or PA changes (such as PA aging or replacement) in the related art is avoided, but also the problem of frequently adjusting the hardware when maintaining the in-band flatness of various frequency bands is avoided, solving the problems such as the low stability of the signal power adjustment in the related art, and achieving the technical effect of improving the stability of the signal power adjustment.
[0033] In the technical solution provided in the above step S202, the processor can be but is not limited to being used for adjusting the signal power. For example, the processor can be but is not limited to including a CPU (Central Processing Unit), an FPGA (Field-Programmable Gate Array), etc., which are processors that can adjust the signal power.
[0034] Optionally, in this embodiment, the memory can store but is not limited to standard gain configuration information, where the standard gain configuration information records the frequency bands and standard gain parameters with corresponding relationships.
[0035] Optionally, in this embodiment, the standard gain parameter can be used to indicate the gain value of the signal power gain of the booster in an ideal state, and the standard gain parameter is usually obtained through theoretical calculation, simulation, or experimental calibration.
[0036] Optionally, in this embodiment, since the gain effect of the booster on signals of different frequency bands may be different, different frequency bands may correspond to different standard gain parameters. For example, high-frequency signals may be more likely to cause nonlinear distortion or additional attenuation in the booster than low-frequency signals. Therefore, for different frequency bands, different standard gain parameters are set for the booster during design to compensate for the gain differences caused by the above frequency characteristics and ensure that the booster can achieve a stable and consistent gain effect in each frequency band.
[0037] Optionally, in this embodiment, the booster may be a device capable of boosting the signal power of a signal. For example, a power amplifier.
[0038] In an exemplary embodiment, the actual gain parameter of the booster for the signal power currently can be detected, but not limited to, in the following manner: sampling the signal output by the radio frequency device at a preset frequency to obtain a plurality of sampled signals; detecting the sampling gain parameter of each of the plurality of sampled signals to obtain a plurality of the sampling gain parameters, where the sampling gain parameter is used to indicate the actual gain of the signal power of the corresponding sampled signal by the booster in the radio frequency device; and determining the average value of the plurality of sampling gain parameters as the actual gain parameter.
[0039] Optionally, in this embodiment, the preset frequency can be, but not limited to, set by the user according to requirements. For example, the preset frequency can be 1 time / 100 ms, 1 time / 200 ms, and so on.
[0040] Optionally, in this embodiment, sampling the signal output by the radio frequency device at a preset frequency may include, but not limited to, collecting the signal output power and the signal input power of the sampled signal, where the signal input power is the power of each sampled signal when it enters the radio frequency device, and the signal output power is the power of each sampled signal when it exits the radio frequency device.
[0041] Optionally, in this embodiment, taking the preset frequency of 1 time / 100 ms as an example, the feedback power (equivalent to the signal output power) and the downlink baseband power (equivalent to the signal input power) of the sampled signal can be collected every 100 ms.
[0042] Optionally, in this embodiment, a core link for signal processing and transmission is formed between the RF device and the baseband processing unit. The baseband processing unit is responsible for receiving the data stream processed by the upper-layer protocol, modulating it into a signal format suitable for RF transmission, and transmitting the modulated digital signal to the RF device. The RF device converts the digital signal into an RF signal through steps such as digital-to-analog conversion and power amplification, and finally transmits it through the antenna. The feedback power can be used to indicate the power of the sampled signal when it exits the RF device, and the downlink baseband power can be used to indicate the power of the sampled signal when it enters the RF device.
[0043] Optionally, in this embodiment, the sampling gain parameter can be obtained through the following formula (1):
[0044] Sampling gain parameter = feedback power + k * downlink attenuation power – downlink baseband power Formula (1)
[0045] Wherein, the downlink attenuation power is the power of the sampled signal attenuated inside the RF device. The downlink attenuation power can be obtained through laboratory calibration methods during the production process or before leaving the factory. k is an adjustable weight coefficient. This application does not limit the weight coefficient of the downlink attenuation power. In practical applications, the value of k can be adjusted according to the characteristics of the power amplifier of the RF device, the working environment (such as temperature, humidity, etc.), and the expected accuracy requirements. For example, in some RF devices, the value of k can be set to 5. When k is 5, the above formula (1) is: Sampling gain parameter = feedback power + 5 * downlink attenuation value – downlink baseband power.
[0046] Optionally, in this embodiment, the arithmetic mean of multiple sampling gain parameters can be, but is not limited to, determined as the actual gain parameter. For example, the arithmetic mean of multiple sampling gain parameters can be calculated to obtain the actual gain parameter. Further, in order to reduce the influence of abnormal sampling values on the average result and improve the reliability of the calculation result of the actual gain parameter, a maximum sampling gain parameter and a minimum sampling gain parameter can also be removed from the multiple sampling gain parameters, and then the arithmetic mean of the remaining sampling gain parameters is calculated to obtain the actual gain parameter.
[0047] In an exemplary embodiment, the signal output by the radio frequency device may be sampled at a preset frequency to obtain a plurality of sampled signals, but not limited to, in the following manner: performing multiple rounds of sampling on the signal output by the radio frequency device at the preset frequency to obtain a plurality of initial signal sets, where the plurality of signals included in each initial signal set are obtained in the same round of sampling; detecting the effective signal ratio of the effective signals in each initial signal set, where the effective signal ratio is the ratio of the number of effective signals in the corresponding initial signal set to the total number of signals in the initial signal set; screening out the target signal sets with the effective signal ratio greater than a preset ratio threshold from the plurality of initial signal sets; and determining the plurality of signals included in the target signal sets as the plurality of sampled signals.
[0048] Optionally, in this embodiment, each round of sampling may collect a group of signals to form an initial signal set, and the number of signals included in each initial signal set may be the same. For example, each round of sampling may collect 10 signals. The initial signal set 1 obtained by the first round of sampling includes the 1st - 10th signals, and the initial signal set 2 obtained by the second round of sampling includes the 11th - 20th signals.
[0049] Optionally, in this embodiment, the preset ratio threshold may be defined by the user according to their own needs, but not limited to. For example, the preset ratio threshold is set to 1 or 0.8, etc.
[0050] Optionally, in this embodiment, taking the preset ratio threshold set to 1 as an example, when the preset ratio threshold is set to 1, only when all the signals included in the initial signal set are identified as effective signals, the initial signal set is the target signal set, and the plurality of signals included in the target signal set are the plurality of sampled signals.
[0051] Optionally, in this embodiment, detecting the effective signal ratio of the effective signals in each initial signal set includes: obtaining the signal input power and the downlink attenuation power of each signal in the initial signal set, where the signal input power is the power of each signal when it is input into the radio frequency device, and the downlink attenuation power is the power of each signal attenuated inside the radio frequency device; screening out the effective signals with the signal input power greater than or equal to a first preset power and the downlink attenuation power less than or equal to a second preset power from the initial signal set; and determining the ratio of the number of effective signals to the total number of signals in the initial signal set as the effective signal ratio.
[0052] Optionally, in this embodiment, the first preset power can be used to indicate the lowest threshold for setting the signal input power of the radio frequency device, so as to ensure that the signal strength received by the radio frequency device is sufficient for accurate processing and transmission, which is equivalent to the reference value of the baseband power of the current device. The first preset power can be, but is not limited to, defined by the user according to their own needs. For example, the first preset power can be set to -220 dbm.
[0053] Optionally, in this embodiment, the second preset power can be used to indicate the maximum value of the power at which the signal attenuates inside the radio frequency device, ensuring that the internal attenuation of the sampling signal used to calculate the actual gain parameter is within a controllable range. The second preset power can be, but is not limited to, defined by the user according to their own needs. For example, the second preset power can be 10 db.
[0054] Optionally, in this embodiment, it can be, but is not limited to, taking the preset frequency as 1 time / 100 ms, the preset ratio threshold as 0.8, the first preset power as -220 dbm, the second preset power as 10 db, and an initial signal set including 10 signals as an example. A round of sampling is performed on the signals output by the radio frequency device at the preset frequency of 1 time / 100 ms to obtain an initial signal set.
[0055] The initial signal set records the signal input power and the downlink attenuation power corresponding to each signal. Valid signals with a downlink baseband power (equivalent to the signal input power) greater than or equal to -220 dbm and a downlink attenuation power less than or equal to 10 db are screened out from the initial signal set. For example, this initial signal set includes 10 signals, denoted as S1, S2... S10 for the 10 signals obtained from this round of sampling. The processor will check whether these 10 signals are valid signals. Taking S1 as an example, if the downlink baseband power of S1 is greater than or equal to -220 dbm and the downlink attenuation power is less than or equal to 10 db, then S1 is regarded as a valid signal. Suppose in this round of sampling, except that S4 is determined to be an invalid signal, the remaining signals S1, S2, S3, S5, S6, S7, S8, S9, S10 are all determined to be valid signals. This means that 9 out of 10 signals are valid, the number of valid signals is 9, and the total number of signals is 10. The ratio of the number of valid signals to the total number of signals in the initial signal set is determined as the valid signal ratio, and the calculated valid signal ratio is 0.9. At this time, the valid signal ratio is greater than the preset ratio threshold of 0.8, and this initial signal set is the target signal set. The 10 signals included in the target signal set are determined as 10 sampling signals.
[0056] Optionally, in this embodiment, in addition to sampling the signals output by the RF device at a preset frequency to obtain a plurality of sampled signals as described above, the sampled signals can also be obtained in the following manner: sampling the signals output by the RF device at a preset frequency to obtain an initial signal; obtaining the signal input power and the downlink attenuation power of each signal in the initial signal, where the signal input power is the power of each signal when it is input into the RF device, and the downlink attenuation power is the power of each signal attenuated inside the RF device; detecting whether the initial signal is a valid signal, where a valid signal is used to indicate a signal whose signal input power is greater than or equal to a first preset power and the downlink attenuation power is less than or equal to a second preset power; in the case where the initial signal is a valid signal, storing the initial signal in a cached signal set; detecting whether the number of initial signals in the cached signal set is equal to a preset number threshold; in the case where the number of initial signals is equal to the preset number threshold, determining the plurality of initial signals included in the cached signal set as a plurality of sampled signals.
[0057] Optionally, in this embodiment, the preset frequency can be, but is not limited to, 1 time / 100 ms, the preset number threshold can be 10, the first preset power can be -220 dbm, and the second preset power can be 10 db. Taking the sampling of the signals output by the RF device at a preset frequency of 1 time / 100 ms as an example.
[0058] The initial signal is obtained by sampling at a frequency of 1 time / 100 ms, and it is immediately detected whether the initial signal is a valid signal after each sampling. Taking the initial signal as S1 as an example, if the downlink baseband power of S1 is greater than or equal to -220 dbm and the downlink attenuation power is less than or equal to 10 db, then S1 is regarded as a valid signal. Assuming S1 is a valid signal, the processor will store S1 in the cached signal set. In subsequent samplings, valid signals continue to be collected until the number of valid signals in the cached signal set is 10. Assuming that during the continuous sampling process, the initial signals S1 to S11 are collected, where the initial signal S4 is not a valid signal and is discarded, and the remaining initial signals are all valid signals. Once the number of valid signals in the cached signal set reaches 10 (i.e., S1, S2, S3, S5, S6, S7, S8, S9, 10, S11), these 10 initial signals will be determined as sampled signals.
[0059] In the technical solution provided in step S204 above, when the deviation of the signal power gain by the booster falls within the normal range, it is detected that the booster is in a normal deviation state; when the deviation of the signal power gain by the booster does not fall within the normal range, it is detected that the booster is in an abnormal deviation state.
[0060] Optionally, in this embodiment, when it is detected that the booster is in a normal deviation state, the signal power can be not adjusted.
[0061] Optionally, in this embodiment, the standard gain parameter can be, but is not limited to, recorded in the standard gain configuration information, and can be, but is not limited to, stored in a power gain configuration parameter file (e.g., a csv file). The following parameters need to be configured in the standard gain configuration information: the supported band frequency range and its corresponding standard gain parameter. Among them, the unit of the standard gain parameter is db, the minimum adjustment step of the standard gain parameter is 0.1 db, and the value range can be from -20 to 20, that is, within plus or minus 2 db. The supported band frequency range can be from 500 to 5000 Khz. Different frequency bands correspond to different standard gain parameters. Here, 500 to 5000 Khz is the total range of all supported frequency bands. For example, the power gain configuration parameter file stores standard gain configuration information 1 - N. Among them, standard gain configuration information 1 can be: {frequency band 3450 khz - 3800 khz, standard gain parameter is 0.2 db}, indicating that the standard power gain of the signal with a signal frequency in the frequency band 3450 khz - 3800 khz by the gain amplifier is 0.2 db; standard gain configuration information 2 can be: {frequency band 3700 khz - 3980 khz, standard gain parameter is 0.1 db}, indicating that the standard power gain of the signal with a signal frequency in the frequency band 3700 khz - 3980 khz by the gain amplifier is 0.1 db.
[0062] It should be noted that the value range of the standard gain parameter is limited to the range value specified based on the stable fluctuation, and the minimum adjustment step of the standard gain parameter is specified as 0.1 db for higher adjustment accuracy. The value range of the standard gain parameter and the minimum adjustment step of the standard gain parameter can be adjusted accordingly according to the actual situation.
[0063] Optionally, in this embodiment, the power gain configuration parameter file can be imported into the radio frequency device by uploading. For example, the radio frequency device can also be equipped with a user interaction platform that supports the file upload function. On this basis, the user or system administrator can access this user interface and upload the pre-prepared power gain configuration parameter file (e.g., a csv file) to this interface.
[0064] In an exemplary embodiment, the deviation state in which the current gain device is located can be detected according to the actual gain parameter and the standard gain parameter of the gain device in the following ways, but not limited thereto: determining the difference between the actual gain parameter and the standard gain parameter as the expected gain deviation; in the case where the absolute value of the expected gain deviation is greater than or equal to the second deviation threshold, determining that the gain device is detected to be in the abnormal deviation state; in the case where the absolute value of the expected gain deviation is less than the second deviation threshold, determining that the gain device is detected to be in the normal deviation state.
[0065] Optionally, in this embodiment, the expected gain deviation can be calculated by the following formula (2), but not limited thereto:
[0066] Expected gain deviation = actual gain parameter – standard gain parameter Formula (2)
[0067] Wherein, the actual gain parameter is the actual gain magnitude of the gain device for the signal power, and the standard gain parameter is the gain of the gain device in the normal deviation state for the signal power, that is, the standard gain parameter of the current operating frequency band obtained from the standard gain configuration information.
[0068] Optionally, in this embodiment, the second deviation threshold can be used to determine the trigger condition for adjusting the signal power. Specifically, the second deviation threshold is a standard for evaluating the difference between the actual gain parameter and the standard gain parameter, and is used to determine whether further correction of the signal power output of the radio frequency device is required. The second deviation threshold can be, but not limited to, a threshold defined by the user according to their own needs based on the flatness effect. For example, in some special scenarios, if there is a higher requirement for power flatness, the user can choose to lower the threshold to achieve more precise control. For example, the second deviation threshold can be set to 0.2 db; on the contrary, if more emphasis is placed on the stability of the system and resource conservation, the user can appropriately increase the threshold. For example, the second deviation threshold can be set to 0.5 db.
[0069] Optionally, in this embodiment, before detecting the deviation state in which the current gain device is located according to the actual gain parameter and the standard gain parameter of the gain device, it further includes: obtaining target standard gain configuration information, where the target standard gain configuration information is used to store different frequency bands and the standard gain parameters corresponding to different frequency bands; determining whether the standard gain parameter of the current operating frequency band is stored in the target standard gain configuration information; in the case where the standard gain parameter of the current operating frequency band is stored in the target standard gain configuration information, detecting the deviation state in which the current gain device is located.
[0070] Optionally, in this embodiment, obtaining the target standard gain configuration information may include, but is not limited to: detecting whether to update the power gain configuration parameter file, that is, detecting whether to update the supported band frequency band and its corresponding standard gain parameters, where the standard gain configuration information is stored in the power gain configuration parameter file; in the case of detecting that the supported band frequency band and its corresponding standard gain parameters need to be updated, determining the updated standard gain configuration information as the target standard gain configuration information; in the case of detecting that the supported band frequency band and its corresponding standard gain parameters do not need to be updated, determining the original standard gain configuration information as the target standard gain configuration information. For example, in the case of detecting that the supported band frequency band and its corresponding standard gain parameters need to be updated, updating the original standard gain configuration information {frequency band 3450khz - 3800khz, standard gain parameter is 0.2db} to {frequency band 3700khz - 3980khz, standard gain parameter is 0.1db}.
[0071] In the technical solution provided in step S206 above, the reference deviation parameter can be used to indicate the theoretical deviation of the current signal power gain by the gain amplifier. The reference deviation parameter can be the cumulative deviation between the actual gain parameter and the standard gain parameter of the gain amplifier during the operation of the device, and it is the reference deviation value for power calibration. The initial value of the reference deviation parameter can be 0, that is, in the calibration initialization stage, it is assumed that the working state of the gain amplifier completely coincides with the theoretical working state, and there is no gain deviation. As the device operates, the reference deviation parameter is updated according to the actual situation to gradually reflect the deviation between the real-time working state and the theoretical working state of the gain amplifier.
[0072] Optionally, in this embodiment, the target gain parameter is closer to the standard gain parameter than the reference gain parameter. For example, the standard gain parameter is 0.2db and the reference gain parameter is 3db. After updating the reference gain parameter to the target gain parameter, the target gain parameter should be closer to the standard gain parameter than the reference gain parameter. For example, at this time, the target gain parameter can be 1db. By gradually adjusting the target gain parameter, the power output of the gain amplifier can be dynamically corrected, making the gain of the gain amplifier gradually approach the standard gain parameter, and improving the power output stability and accuracy of the device in a multi-band environment.
[0073] Optionally, in this embodiment, the RF device may also be deployed with a user interaction platform, which is configured with an output power gain control switch. The user or system administrator can choose to turn on or off the output power gain control switch. When the output power gain control switch is turned off, sampling is stopped, the reference deviation parameter is cleared, and the hardware (equivalent to a booster) is configured to terminate power calibration; when the output power gain control switch is turned on, the caches of previous sampling and calculation are cleared, the sampling and calculation processes are restarted, and the hardware (equivalent to a booster) is configured to start power calibration.
[0074] In an exemplary embodiment, the reference gain parameter may be updated to a target gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter in the following ways, but not limited thereto: Generate an actual gain deviation according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, where the actual gain deviation is used to indicate the actual deviation of the booster in gaining the signal power; Update the reference gain parameter to the target gain parameter according to the actual gain deviation.
[0075] Optionally, in this embodiment, the actual gain deviation may be calculated by the following formula (3):
[0076] Actual gain deviation = actual gain parameter – standard gain parameter + reference deviation parameter Formula (3)
[0077] Wherein, the actual gain parameter is the actual gain magnitude of the booster for the signal power, the standard gain parameter is the gain of the booster for the signal power in a normal deviation state, that is, the standard gain parameter of the current operating frequency band obtained from the standard gain configuration information, and the reference deviation parameter is the cumulative deviation between the actual gain parameter and the standard gain parameter of the booster during the operation of the device. It is the reference deviation value for power calibration, and the initial value of the reference deviation parameter is 0.
[0078] Optionally, in this embodiment, after updating the reference gain parameter to the target gain parameter according to the actual gain deviation, a corresponding hardware control instruction may be generated to instruct the booster to configure the output power gain to the target gain parameter, but not limited thereto; after configuring the output power gain, actively delay for 1 second to give the booster enough time to respond to this change, so that the output power reaches a stable state.
[0079] In an exemplary embodiment, the reference gain parameter may be updated to the target gain parameter according to the actual gain deviation in the following ways, but not limited thereto: Update the reference deviation parameter to a target deviation parameter according to the actual gain deviation and a first deviation threshold; Generate the target gain parameter according to the target deviation parameter and the reference gain parameter; Update the reference gain parameter to the target gain parameter.
[0080] Optionally, in this embodiment, when the actual gain deviation is the same as the reference deviation parameter, the reference deviation parameter may not be updated. When the actual gain deviation is different from the reference deviation parameter, the reference deviation parameter is updated to the target deviation parameter.
[0081] Optionally, in this embodiment, taking the target deviation parameter as 0.2 db and the reference gain parameter as 1 db as an example, the target gain parameter should be the difference between the reference gain parameter and the target deviation parameter, that is, the target gain parameter is 0.8 db.
[0082] In an exemplary embodiment, the reference deviation parameter may be updated to the target deviation parameter according to the actual gain deviation and the first deviation threshold in the following manner, but not limited thereto: comparing the absolute value of the actual gain deviation with the first deviation threshold; when the absolute value of the actual gain deviation is greater than or equal to the first deviation threshold, updating the reference deviation parameter to the first deviation parameter, where the first deviation parameter is the maximum adjustment value allowed for a single adjustment of the reference deviation parameter, and the target deviation parameter includes the first deviation parameter; when the absolute value of the actual gain deviation is less than the first deviation threshold, updating the reference deviation parameter to the actual gain deviation.
[0083] Optionally, in this embodiment, the first deviation parameter may be used to indicate the maximum adjustment value allowed for a single adjustment of the reference deviation parameter, ensuring that there is no over-adjustment during calibration, which may cause a drastic fluctuation in the output power. For example, the first deviation parameter is set to 2 db. When the absolute value of the actual gain deviation is greater than or equal to 2 db, the reference deviation parameter is updated to 2 db (equal to the first deviation parameter); when the absolute value of the actual gain deviation (such as 1.5 db) is less than 2 db, the reference deviation parameter is updated to the actual gain deviation (such as 1.5 db).
[0084] To better understand the above process of signal power adjustment, the following further describes the signal power adjustment process in combination with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present application.
[0085] In Das (Distributed Antenna System) and ORAN (Open Radio Access Network) series devices, when the output power of the remote RU (Radio Unit) is in a wide frequency band, there is a problem of in-band inconsistency in the output power of the power amplifier module. In this embodiment, a method for automatically calibrating the output power based on a power gain configuration parameter file is provided.
[0086] Figure 3 It is a schematic diagram of a method for automatically calibrating output power based on a power gain configuration parameter file according to an embodiment of the present application. Taking the preset frequency as 1 time / 100 ms, the first preset power value as -220 dbm, and the second preset power value as 10 db as an example, as Figure 3 shown, it mainly includes the following steps:
[0087] Step S301: Start the output power calibration function;
[0088] Step S302: Poll every 100 ms;
[0089] Step S303: Determine whether calibration is enabled, that is, determine whether the output power gain control switch is turned on. When the output power gain control switch is off, execute Step S302 and continue polling; when the output power gain control switch is on, execute Step S304;
[0090] Step S304: Sample the feedback power (equivalent to the signal output power) and the downlink baseband power (equivalent to the signal input power);
[0091] Step S305: Obtain the initial signal set, and the initial signal set includes multiple signals;
[0092] Step S306: Detect the effective signal ratio of the effective signals in each initial signal set;
[0093] Step S307: Determine whether it is the target signal set, that is, determine whether the effective signal ratio is greater than the preset ratio threshold. When the effective signal ratio is less than or equal to the preset ratio threshold, that is, when the initial signal set is not the target signal set, execute Step S302; when the effective signal ratio is greater than the preset ratio threshold, that is, when the initial signal set is the target signal set, execute Step S308;
[0094] Step S308: Calculate the actual gain (equivalent to the sampled gain parameter);
[0095] Step S309: Calculate the arithmetic mean of the actual gain (equivalent to calculating the actual gain parameter);
[0096] Step S310: Upload the output power gain configuration parameter file;
[0097] Step S311: Read the output power gain configuration parameter file, and the output power gain configuration parameter file stores the supported frequency bands and the standard gain parameters corresponding to the supported frequency bands;
[0098] Step S312: Determine whether the current operating frequency band is supported, that is, determine whether the output power gain configuration parameter file stores the current operating frequency band and its corresponding standard gain parameters; if it is determined that the current operating frequency band is not supported, execute Step S313; if it is determined that the current operating frequency band is supported, execute Step S314;
[0099] Step S313: Discard the current round of cached data;
[0100] Step S314: Calculate the expected output power gain deviation (equivalent to calculating the expected gain deviation);
[0101] Step S315: Determine whether to adjust the deviation, that is, determine whether the absolute value of the expected output power gain deviation is greater than or equal to 0.5 db; if the absolute value of the expected output power gain deviation is less than 0.5 db, execute Step S316; if the absolute value of the expected output power gain deviation is greater than or equal to 0.5 db, execute Step S317;
[0102] Step S316: Discard the current round of cached data;
[0103] Step S317: Configure the hardware output power gain, that is, configure the gain device to perform signal power gain on the signal according to the target gain parameters;
[0104] Step S318: Clear the cache and continue to execute Step S302.
[0105] It should be noted that the above Step S310 can be carried out simultaneously during the execution of any one of Steps S302 to S309, or can be carried out after the execution of Step S309. This application does not make any restrictions on this.
[0106] On high-frequency bands and large-bandwidth radio frequency devices with multiple frequency bands, when there are in-band inconsistencies in the output power of the power amplifier device (equivalent to a booster) of the radio frequency device (the configured output power deviates from the actual output power, especially when the output changes cross multiple frequency bands, and the actual output deviations of each frequency band are different), the general flatness compensation cannot accurately target the differences in each frequency band. At this time, targeted compensation for each frequency band is required. A configuration parameter file for the output power gain for multiple frequency bands can be uploaded (each frequency band has its own gain compensation value (equivalent to the standard gain parameter)), and the power amplifier device (equivalent to a booster) performs gain compensation on the output power according to this configuration file and the actually operating frequency band to ensure that the actual output power is the desired output power. When using this method, during the equipment calibration in the production process, the gain values that need to be compensated for each frequency band of the equipment itself are calculated based on the actual measurements of the equipment. Based on the above solution, in other application scenarios of equipment that supports high-frequency bands and large-bandwidth radio frequency power output with multiple frequency bands, the above solution can be used to adjust the output power for multiple frequency bands specifically, so that the high-frequency band and large-bandwidth radio frequency unit can have higher-precision flatness and reduce external hardware cost expenditures.
[0107] Figure 4 It is a flowchart of an optional method for adjusting the signal power supporting multiple frequency bands according to an embodiment of the present application. As Figure 4 shown, for a radio frequency unit with high-frequency bands and large bandwidth, the method for adjusting the signal power supporting multiple frequency bands includes the following steps:
[0108] Step S401: Read the configuration file (equivalent to the output power gain configuration parameter file). The configuration file includes different frequency bands and the standard gain parameters corresponding to different frequency bands, and obtain the standard gain parameter of the currently operating frequency band from the configuration file;
[0109] Step S402: Read the feedback power (equivalent to the signal output power), and calculate the actual gain according to the formula: actual gain = feedback power + 5 * downlink attenuation value - downlink baseband power (equivalent to the above formula (1): sampling gain parameter = feedback power + k * downlink attenuation power - downlink baseband power, where k takes the value of 5);
[0110] Step S403: Calculate the expected output power gain deviation according to the formula: expected output power gain deviation = average actual gain of this round of sampling - standard gain of this band (equivalent to the above formula (2): expected gain deviation = actual gain parameter - standard gain parameter);
[0111] Step S404: Determine whether the deviation exceeds the threshold, that is, determine whether the absolute value of the expected output power gain deviation (equivalent to the expected gain deviation) is greater than or equal to the second deviation threshold; if the absolute value of the expected output power gain deviation is greater than or equal to the second deviation threshold, execute Step S405; if the absolute value of the expected output power gain deviation is less than the second deviation threshold, execute Step S407;
[0112] Step S405: Calculate the actual output power gain deviation (equivalent to the actual gain deviation) according to the formula: actual output power gain deviation = expected output power gain deviation + current output power deviation (equivalent to the above formula (3): actual gain deviation = actual gain parameter – standard gain parameter + reference deviation parameter);
[0113] Step S406: Adjust the output power, that is, configure the gain amplifier to perform gain on the signal power of the signal according to the target gain parameter;
[0114] Step S407: Clear the sampling buffer.
[0115] It should be noted that the above Step S405 can also be executed before Step S404, and the present application does not limit this.
[0116] Through the above technical solution, each of multiple frequency bands has its corresponding standard gain parameter, which are all stored in the output power gain configuration parameter file. The gain is adjusted according to the frequency band in which the current device is operating, and finally stable and smooth output power can be achieved for all supported frequency bands.
[0117] The following combines a specific scenario to describe how the signal power adjustment method proposed in the present application adjusts the gain according to the frequency band in which the current device is operating, and finally achieves stable and smooth output power for all supported frequency bands:
[0118] Scenario setting: Assume that the device is operating in the 3450 - 3800 KHz frequency band, and the standard gain (equivalent to the standard gain parameter) is 0.2 dB. The initial output power deviation of the device (equivalent to the reference deviation parameter) is 0 dB, the feedback power (equivalent to the signal output power) is -50 dBm, the downlink baseband power (equivalent to the signal input power) is -60 dBm, and the downlink attenuation value (equivalent to the downlink attenuation power) is 8 dB.
[0119] 1) Initial state: Standard gain: 0.2 dB, initial output power deviation: 0 dB, feedback power: -50 dBm, downlink baseband power: -60 dBm, downlink attenuation value: 8 dB, the first round of sampling and adjustment.
[0120] Calculate the actual gain (equivalent to the sampling gain parameter): Actual gain = feedback power + 5 × downlink attenuation value - downlink baseband power = -50 dBm + 5 × 8 dB - (-60 dBm) = 50 dBm (equivalent to the above formula (1): Sampling gain parameter = feedback power + k * downlink attenuation power – downlink baseband power, where k is 5).
[0121] Perform multiple samplings and calculate the average: Assume that the average actual gain (equivalent to the actual gain parameter) of 10 samplings is 54 dBm.
[0122] Calculate the expected output power gain deviation (equivalent to the expected gain deviation): Expected output power gain deviation = average actual gain - standard gain = 54 dBm - 0.2 dB = 53.8 dB (equivalent to the above formula (2): Expected gain deviation = actual gain parameter – standard gain parameter).
[0123] Calculate the actual output power gain deviation (equivalent to the actual gain deviation): Actual output power gain deviation = expected output power gain deviation + current output power deviation = 53.8 dB + 0 dB = 53.8 dB (equivalent to the above formula (3): Actual gain deviation = actual gain parameter – standard gain parameter + reference deviation parameter).
[0124] Limit the actual output power gain deviation: Since 53.8 dB exceeds the allowed range (-2 dB to 2 dB), the device forcibly adjusts the actual output power gain deviation to 2 dB.
[0125] Update the output power deviation and configure the hardware: The device updates the current output power deviation (equivalent to the target deviation parameter) to 2 dB and configures the hardware output power according to the new deviation value.
[0126] The new actual gain (equivalent to the target gain parameter) = average actual gain (equivalent to the actual gain parameter) - new output power deviation (equivalent to the target deviation parameter) = 54 dBm - 2 dB = 52 dBm.
[0127] 2) Second-round sampling and adjustment:
[0128] Assume that after the second-round sampling, the calculated average actual gain is 52 dBm.
[0129] Calculate the expected output power gain deviation: Expected output power gain deviation = 52 dBm - 0.2 dB = 51.8 dB.
[0130] Calculate the actual output power gain deviation: Actual output power gain deviation = 51.8 dB + 2 dB = 53.8 dB.
[0131] Limit the deviation of the actual output power gain: Since 53.8 dB exceeds the allowable range, the device forcibly adjusts the deviation to 2 dB.
[0132] Update the output power deviation and configure the hardware: The device updates the current output power deviation to 2 dB and configures the hardware output power according to the new deviation value.
[0133] The new actual gain = 52 dBm - 2 dB = 50 dBm.
[0134] 3) The third round of sampling and adjustment:
[0135] Assume that after the third round of sampling, the calculated average actual gain is 50 dBm.
[0136] Calculate the desired output power gain deviation: Desired output power gain deviation = 50 dBm - 0.2 dB = 49.8 dB.
[0137] Calculate the actual output power gain deviation: Actual output power gain deviation = 49.8 dB + 2 dB = 51.8 dB.
[0138] Limit the deviation of the actual output power gain: Since 51.8 dB exceeds the allowable range, the device forcibly adjusts the deviation to 2 dB.
[0139] Update the output power deviation and configure the hardware: The device updates the current output power deviation to 2 dB and configures the hardware output power according to the new deviation value.
[0140] The new actual gain = 50 dBm - 2 dB = 48 dBm.
[0141] Obviously, after the second and third rounds of sampling and adjustment, the new actual gain gradually approaches the standard gain. And so on, through multiple rounds of sampling and adjustment, the actual gain of the device can be gradually reduced and gradually approaches the standard gain of 0.2 dB. Assume that after several rounds of adjustment, the actual gain of the device gradually stabilizes at a level close to 0.2 dB.
[0142] In the above process, each adjustment will affect the actual output power of the device because the purpose of the adjustment is to reduce the deviation between the actual gain and the standard gain. By continuously adjusting, the actual output power of the device will gradually approach the ideal state. Specifically:
[0143] Adjustment of the deviation value: The device calculates the deviation between the actual gain and the standard gain and adjusts the output power deviation value. This deviation value directly affects the actual output power of the device.
[0144] Step-by-step approximation: Through multiple rounds of sampling and adjustment, the actual gain of the device will gradually decrease and finally approach the standard gain of 0.2 dB. Each adjustment will make the actual output power of the device closer to the target value.
[0145] Through the above steps, the device can automatically calculate the deviation value that needs to be adjusted, update the hardware configuration, and gradually adjust the actual output power to make it close to the standard gain. Each adjustment will affect the actual output power of the device because the purpose of the adjustment is to reduce the deviation between the actual gain and the standard gain. Through continuous adjustment, the actual output power of the device will gradually approach the ideal state.
[0146] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.
[0147] Figure 5 It is a structural block diagram of an adjustment device for signal power according to an embodiment of the present application. The radio frequency device is deployed with a processor, a memory, and a gain amplifier. The memory is respectively connected to the processor and the gain amplifier. The gain amplifier is set to perform gain on the signal power of the signal according to the reference gain parameter stored in the memory. The device is applied to the processor; as Figure 5 shown, it includes:
[0148] A first detection module 502, configured to detect the actual gain parameter of the signal power by the gain amplifier currently, where the actual gain parameter is used to indicate the actual gain magnitude of the signal power by the gain amplifier;
[0149] A second detection module 504, configured to detect the deviation state of the gain amplifier currently according to the actual gain parameter and the standard gain parameter of the gain amplifier, where the deviation state is used to indicate whether the deviation of the gain of the signal power by the gain amplifier falls within the normal range, and the standard gain parameter is the gain of the signal power by the gain amplifier in a normal deviation state;
[0150] An update module 506, configured to update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and a reference deviation parameter when it is detected that the booster is in an abnormal deviation state, where the reference deviation parameter is used to indicate the theoretical deviation of the current gain of the booster for the signal power, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0151] Through the above embodiments, by detecting the actual gain parameter of the current gain of the booster for the signal power, and detecting the deviation state of the current booster based on the detected actual gain parameter and the standard gain parameter of the booster, when it is found that the booster is currently in an abnormal deviation state, the reference gain parameter is updated according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, and the reference gain parameter is adjusted to a target gain parameter closer to the standard gain parameter, thereby ensuring that the output signal power is more stable and uniform. By adopting the above technical solution, not only the problem of the decrease in in-band flatness caused by factors such as environmental temperature changes or PA changes (for example, PA aging or replacement) in the related art is avoided, but also the problem of frequently adjusting the hardware when maintaining the in-band flatness of various frequency bands is avoided, and the problems such as the low stability of the adjustment of the signal power in the related art are solved, and the technical effect of improving the stability of the adjustment of the signal power is achieved.
[0152] In an exemplary embodiment, the first detection module includes:
[0153] A sampling unit, configured to sample the signal output by the radio frequency device at a preset frequency to obtain a plurality of sampled signals;
[0154] A detection unit, configured to detect the sampling gain parameter of each of the plurality of sampled signals to obtain a plurality of the sampling gain parameters, where the sampling gain parameter is used to indicate the actual gain of the signal power of the corresponding sampled signal by the booster in the radio frequency device;
[0155] A first determination unit, configured to determine the average value of the plurality of sampling gain parameters as the actual gain parameter.
[0156] In an exemplary embodiment, the sampling unit is configured to:
[0157] Perform multiple rounds of sampling on the signal output by the radio frequency device at a preset frequency to obtain a plurality of initial signal sets, where the plurality of signals included in each initial signal set are obtained in the same round of sampling;
[0158] Detect the valid signal ratio of the valid signals in each of the initial signal sets, where the valid signal ratio is the ratio of the number of valid signals in the corresponding initial signal set to the total number of signals in the initial signal set;
[0159] Screen out the target signal sets with the valid signal ratio greater than a preset ratio threshold from the multiple initial signal sets;
[0160] Determine the multiple signals included in the target signal sets as the multiple sampling signals.
[0161] In an exemplary embodiment, the second detection module includes:
[0162] A second determination unit for determining the difference between the actual gain parameter and the standard gain parameter as the expected gain deviation;
[0163] A third determination unit for determining that the gain amplifier is in the abnormal deviation state when the absolute value of the expected gain deviation is greater than or equal to a second deviation threshold;
[0164] A fourth determination unit for determining that the gain amplifier is in the normal deviation state when the absolute value of the expected gain deviation is less than the second deviation threshold.
[0165] In an exemplary embodiment, the update module includes:
[0166] A generation unit for generating an actual gain deviation according to the actual gain parameter, the standard gain parameter and the reference deviation parameter, where the actual gain deviation is used to indicate the actual deviation of the gain amplifier in gain of the signal power;
[0167] An update unit for updating the reference gain parameter to the target gain parameter according to the actual gain deviation.
[0168] In an exemplary embodiment, the update unit is used for:
[0169] Updating the reference deviation parameter to a target deviation parameter according to the actual gain deviation and a first deviation threshold;
[0170] Generating the target gain parameter according to the target deviation parameter and the reference gain parameter;
[0171] Updating the reference gain parameter to the target gain parameter.
[0172] In an exemplary embodiment, the update unit is further used for:
[0173] Compare the absolute value of the actual gain deviation with the first deviation threshold;
[0174] When the absolute value of the actual gain deviation is greater than or equal to the first deviation threshold, update the reference deviation parameter to a first deviation parameter, where the first deviation parameter is the maximum adjustment value allowed for a single adjustment of the reference deviation parameter, and the target deviation parameter includes the first deviation parameter;
[0175] When the absolute value of the actual gain deviation is less than the first deviation threshold, update the reference deviation parameter to the actual gain deviation.
[0176] An embodiment of the present application also provides a storage medium, which includes a stored program. When the above program runs, it executes the method of any one of the above.
[0177] Optionally, in this embodiment, the above storage medium may be set to store program code for executing the following steps:
[0178] S1. Detect the actual gain parameter of the current signal power by the gain amplifier, where the actual gain parameter is used to indicate the actual gain magnitude of the gain amplifier for the signal power;
[0179] S2. Detect the deviation state of the current gain amplifier according to the actual gain parameter and the standard gain parameter of the gain amplifier, where the deviation state is used to indicate whether the deviation of the gain amplifier for the signal power falls within the normal range, and the standard gain parameter is the gain of the gain amplifier for the signal power in the normal deviation state;
[0180] S3. When it is detected that the gain amplifier is in an abnormal deviation state, update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, where the reference deviation parameter is used to indicate the theoretical deviation of the current gain amplifier for the signal power, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0181] An embodiment of the present application also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0182] Optionally, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0183] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0184] S1. Detect the actual gain parameter of the current signal power gain of the booster, where the actual gain parameter is used to indicate the actual gain magnitude of the booster for the signal power;
[0185] S2. Detect the deviation state of the current booster according to the actual gain parameter and the standard gain parameter of the booster, where the deviation state is used to indicate whether the deviation of the booster for signal power gain falls within the normal range, and the standard gain parameter is the gain of the booster for signal power in a normal deviation state;
[0186] S3. In the case where it is detected that the booster is in an abnormal deviation state, update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter, and the reference deviation parameter, where the reference deviation parameter is used to indicate the theoretical deviation of the current signal power gain of the booster, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
[0187] Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM), random access memories (RAM), mobile hard disks, magnetic disks, or optical discs that can store program codes.
[0188] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0189] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0190] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A method for adjusting signal power, characterized in that: The radio frequency device is deployed with a processor, a memory and an amplifier, the memory is connected to the processor and the amplifier respectively, the amplifier is configured to gain the signal power of the signal according to the reference gain parameter stored in the memory, and the method is applied to the processor, including: Detecting an actual gain parameter of the gain device for the signal power, wherein the actual gain parameter is used to indicate an actual gain size of the gain device for the signal power; Detecting the current deviation state of the gainer according to the actual gain parameter and the standard gain parameter of the gainer, wherein the deviation state is used to indicate whether the deviation of the gain of the signal power by the gainer falls within a normal range, and the standard gain parameter is the gain of the signal power by the gainer in a normal deviation state; When it is detected that the gain controller is in an abnormal deviation state, the reference gain parameter is updated to a target gain parameter according to the actual gain parameter, the standard gain parameter and a reference deviation parameter, wherein the reference deviation parameter is used to indicate a theoretical deviation of the gain controller currently performing gain on the signal power, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
2. The method according to claim 1, characterized in that The updating of the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter and the reference deviation parameter comprises: Generate an actual gain deviation according to the actual gain parameter, the standard gain parameter and the reference deviation parameter, wherein the actual gain deviation is used to indicate an actual deviation of the gain performed by the gainer on the signal power; The reference gain parameter is updated to the target gain parameter according to the actual gain deviation.
3. The method according to claim 2, characterized in that The updating the reference gain parameter to the target gain parameter according to the actual gain deviation comprises: Updating the reference deviation parameter to a target deviation parameter according to the actual gain deviation and a first deviation threshold; Generate the target gain parameter according to the target deviation parameter and the reference gain parameter; The reference gain parameter is updated to the target gain parameter.
4. The method according to claim 3, characterized in that: The updating of the reference deviation parameter to a target deviation parameter according to the actual gain deviation and the first deviation threshold comprises: comparing the absolute value of the actual gain deviation with the first deviation threshold; When the absolute value of the actual gain deviation is greater than or equal to the first deviation threshold, updating the reference deviation parameter to a first deviation parameter, wherein the first deviation parameter is a maximum adjustment value allowed for a single adjustment of the reference deviation parameter, and the target deviation parameter includes the first deviation parameter; When the absolute value of the actual gain deviation is smaller than the first deviation threshold, the reference deviation parameter is updated to the actual gain deviation.
5. The method according to claim 1, characterized in that The detecting the current deviation state of the gain device according to the actual gain parameter and the standard gain parameter of the gain device comprises: Determine the difference between the actual gain parameter and the standard gain parameter as the expected gain deviation; When the absolute value of the expected gain deviation is greater than or equal to a second deviation threshold, determining that the gain controller is detected to be in the abnormal deviation state; When the absolute value of the expected gain deviation is smaller than the second deviation threshold, it is determined that the gain controller is detected to be in the normal deviation state.
6. The method according to claim 1, characterized in that The detecting the actual gain parameter of the gain device for the signal power currently comprises: Sampling the signal output by the radio frequency device at a preset frequency to obtain a plurality of sampling signals; detecting a sampling gain parameter of each of the plurality of sampling signals to obtain a plurality of sampling gain parameters, wherein the sampling gain parameter is used to indicate an actual gain of the gainer in the radio frequency device on the signal power of the corresponding sampling signal; An average value of the plurality of sampling gain parameters is determined as the actual gain parameter.
7. The method according to claim 6, characterized in that The sampling of the signal output by the radio frequency device according to the preset frequency to obtain a plurality of sampling signals includes: Perform multiple rounds of sampling on the signal output by the radio frequency device according to a preset frequency to obtain multiple initial signal sets, wherein the multiple signals included in each of the initial signal sets are obtained in the same round of sampling; Detecting the effective signal ratio of effective signals in each of the initial signal sets, wherein the effective signal ratio is the ratio of the number of effective signals in the corresponding initial signal set to the total number of signals in the initial signal set; Filtering out a target signal set whose effective signal ratio is greater than a preset ratio threshold from the multiple initial signal sets; A plurality of signals included in the target signal set are determined as the plurality of sampling signals.
8. A signal power adjustment device, characterized in that: The radio frequency device is deployed with a processor, a memory and an amplifier, the memory is connected to the processor and the amplifier respectively, the amplifier is configured to gain the signal power of the signal according to the reference gain parameter stored in the memory, and the device is applied to the processor, including: A first detection module, used for detecting an actual gain parameter of the amplifier to the signal power, wherein the actual gain parameter is used for indicating the actual gain size of the amplifier to the signal power; A second detection module, used for detecting the current deviation state of the gainer according to the actual gain parameter and the standard gain parameter of the gainer, wherein the deviation state is used to indicate whether the deviation of the gain of the signal power by the gainer falls within a normal range, and the standard gain parameter is the gain of the signal power by the gainer in a normal deviation state; An updating module is used to update the reference gain parameter to a target gain parameter according to the actual gain parameter, the standard gain parameter and a reference deviation parameter when it is detected that the gainer is in an abnormal deviation state, wherein the reference deviation parameter is used to indicate a theoretical deviation of the gain of the signal power currently performed by the gainer, and the target gain parameter is closer to the standard gain parameter than the reference gain parameter.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Cited By
Automatic updating method and device of power equipment data model, equipment and medium
CN120723784A