Radio station power automatic control method and device, electronic equipment and storage medium
By obtaining the voltage signal of the station and calculating the impedance coefficient, adjusting the power supply voltage for independent learning, the problem of inaccurate station output power caused by antenna load is solved, and accurate power control is achieved under different load conditions.
Patent Information
- Application Number
- CN202510947998.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-10
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2045-07-10
AI Technical Summary
In the prior art, due to antenna load, the output power of the radio station is inaccurate, especially when the antenna impedance is low, it may lead to damage to the power amplifier and the output power cannot be accurately controlled.
By obtaining the radio configuration file and the changed set frequency, when there is no impedance coefficient in the configuration file, obtain the voltage signal, calculate the actual power and impedance coefficient, and adjust the power supply voltage according to the error value until the error value is less than the threshold value, and write it to the configuration file to achieve independent learning to accurately set the output power.
It realizes accurate setting of output power under different load conditions, reduces the number of power supply voltage adjustments, improves the power control accuracy of the radio station, and avoids power amplifier damage.
Smart Images

Figure CN120454744A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for automatic power control of a radio station. Background Art
[0002] Power control for radio stations in certain frequency bands is achieved by controlling the voltage of the power amplifier. Because the amplifier uses an H-bridge switching amplifier, output power is controlled by adjusting the gate voltage of the field-effect transistor (FET). Output power is proportional to the square of the gate voltage. If the output load of the amplifier unit is a pure 50Ω resistor, the voltage corresponding to the same output power at each set frequency is the same. Therefore, a pure 50Ω resistor is generally used as a load during the commissioning phase. However, in actual use, the antenna load must be connected, resulting in different output powers at the same voltage at different set frequencies. This can cause the set power of the radio to be inconsistent with the actual power. Especially when the antenna impedance is low, the output power may exceed the set output power of the radio, causing damage to the amplifier. The presence of the antenna load can lead to inaccurate output power. Summary of the Invention
[0003] The present application provides a radio station power automatic control method, device, electronic device and storage medium, which can set the output power more accurately and is not affected by load impedance.
[0004] The technical solutions of the embodiments of this application are as follows: In a first aspect, an embodiment of the present application provides a method for automatic power control of a radio station, the method comprising: Obtaining a configuration file of the radio station and a changed set frequency, and if an impedance coefficient corresponding to the set frequency does not exist in the configuration file, obtaining a collected voltage signal; Calculating actual power according to the voltage signal, and calculating the impedance coefficient using the actual power and the voltage signal; Calculating the actual power and the set power to obtain an error value; When the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power according to the voltage signal is performed until the error value is less than or equal to the power threshold. The adjustment of the power supply voltage is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file.
[0005] In the above technical solution, the configuration file of the radio and the changed set frequency are first obtained, which can provide support for subsequent search and writing. If the impedance coefficient corresponding to the set frequency does not exist in the configuration file, it indicates that the set frequency has not been used, and the output power may need to be adjusted and learned later. The collected voltage signal is first obtained so that the voltage signal can be used to adjust the voltage later to achieve accurate power output; the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated using the actual power and the voltage signal, so that the load resistance can be determined, and the resistance value at the changed set frequency is obtained, and the impedance coefficient remains unchanged, so that voltage adjustment can be performed later; the actual power and the set power are calculated to obtain an error value, so that the voltage adjustment can be performed later based on the error value; if the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power according to the voltage signal is performed until the error value is less than or equal to the power threshold, and the power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is continuously adjusted, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is set through the above-mentioned autonomous learning, so that the power supply voltage can be set quickly later, and more accurate power can be output at the set frequency.
[0006] In some embodiments of the present application, adjusting the power supply voltage according to the error value includes: Selecting an initial voltage within the range of the voltage signal and the power supply voltage, and calculating a corresponding objective function value based on the initial voltage and the error value; Performing Gaussian fitting on the initial voltage and the objective function value to obtain a probability distribution, and calculating the expectation and variance of the probability distribution; An optimal voltage is determined according to the expectation, the variance, the actual power, and the set power, and the optimal voltage is used as the power supply voltage.
[0007] In some embodiments of the present application, determining the optimal voltage according to the expectation, the variance, the actual power, and the set power includes: Calculating the expectation, the variance, the actual power, and the set power using a preset acquisition function, maximizing the value of the acquisition function, and obtaining the optimal voltage; The acquisition function is expressed by the following formula: , in, Expressing the expectation, represents the variance, Indicates the actual power, Indicates the set power, Indicates minimum error, MAX() indicates maximization function, represents the cumulative distribution function of the standard normal distribution and represents the probability density function of the standard normal distribution, represents the optimal voltage, Indicates the initial voltage.
[0008] In some embodiments of the present application, calculating the corresponding objective function value based on the initial voltage and the error value includes: Inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain an objective function value; The efficiency calculation formula is: , in, represents the objective function value, Indicates the error value, Indicates the initial voltage.
[0009] In some embodiments of the present application, when the impedance coefficient corresponding to the set frequency exists in the configuration file, before acquiring the collected voltage signal, the method further includes: Obtaining the impedance coefficient in the configuration file; When the impedance coefficient is zero, the preset standard resistance value is multiplied by the set power and the square root is taken to obtain the power supply voltage.
[0010] In some embodiments of the present application, writing the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency into the configuration file includes: Converting the set frequency into a format to obtain a converted frequency; The switching frequency, the power supply voltage corresponding to the switching frequency, and the impedance coefficient corresponding to the switching frequency are written into the configuration file.
[0011] In some embodiments of the present application, when the radio replaces its antenna or the antenna's indicators change, the method further includes: clearing the contents of the configuration file, obtaining the set frequency, and executing the step of obtaining the collected voltage signal to perform re-autonomous learning.
[0012] In a second aspect, an embodiment of the present application provides a power automatic control device for a radio station, the device comprising: A data acquisition and collection module is used to obtain the configuration file of the radio station and the changed set frequency, and when the impedance coefficient corresponding to the set frequency does not exist in the configuration file, obtain the collected voltage signal; an impedance calculation module, configured to calculate actual power according to the voltage signal, and calculate the impedance coefficient using the actual power and the voltage signal; An error calculation module is used to calculate the actual power and the set power to obtain an error value; An adjustment and writing module is used to adjust the power supply voltage according to the error value when the error value is greater than a preset power threshold, collect the voltage signal according to a preset sampling period, and execute the step of calculating the actual power according to the voltage signal until the error value is less than or equal to the power threshold, and then end the adjustment of the power supply voltage, and write the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency into the configuration file.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a user interface, a communication bus, and a network interface, wherein the processor, the memory, the user interface, and the network interface are respectively connected to the communication bus, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods provided in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the methods provided in the first aspect is executed.
[0015] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Since the configuration file of the radio station and the changed set frequency are first obtained, support can be provided for subsequent search and writing. If the impedance coefficient corresponding to the set frequency does not exist in the configuration file, it indicates that the set frequency has not been used, and the output power may need to be adjusted and learned later. The collected voltage signal is first obtained so that the voltage signal can be used to adjust the voltage later to achieve accurate power output; the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated using the actual power and voltage signal, so that the load resistance value can be determined, and the resistance value under the changed set frequency can be obtained, and the impedance coefficient remains unchanged, so that voltage adjustment can be performed later; the actual power is calculated with the set power to obtain an error value, so that the error value can be used as a reference to determine whether to adjust the voltage later; if the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power according to the voltage signal is executed until the error value is less than or equal to the power threshold, and the power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is continuously adjusted, and the set frequency, the corresponding power supply voltage, and the corresponding impedance coefficient are written to the configuration file. This autonomous learning allows for quick subsequent power supply voltage settings, resulting in more accurate power output at the set frequency. This effectively solves the antenna loading and inaccurate output power issues encountered in related technologies.
[0016] 2. By performing Gaussian fitting, a probability distribution is obtained, and an optimal voltage is determined based on the probability distribution. When the optimal voltage is determined, the power supply voltage is adjusted with the least number of adjustments required.
[0017] 3. The objective function value is not only calculated using the error value, but also can reduce the deviation caused by the error value.
[0018] 4. When the impedance coefficient corresponding to the set frequency exists in the configuration file, the power supply voltage corresponding to the set frequency can be directly read, which can quickly and accurately set the power without the need for continuous tracking, comparison and adjustment of the power supply voltage.
[0019] 5. By converting the frequency format, the storage space can be reduced, making storage and query easier. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a flow chart of a method for automatic power control of a radio station provided by one embodiment of the present application; Figure 2 This is a schematic diagram of a circuit module of a radio station power automatic control method provided by an embodiment of the present application; Figure 3 yes Figure 1A schematic flow chart of a sub-step of step S400; Figure 4 yes Figure 1 Another sub-step flow diagram of step S400; Figure 5 This is a schematic structural diagram of an automatic power control device for a radio station provided in one embodiment of the present application; Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0022] In the description of the embodiments of this application, words such as "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "for example" or "for instance" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "for example" or "for instance" is intended to present the relevant concepts in a concrete manner.
[0023] In the description of the embodiments of the present application, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0024] Embodiments of the present application provide a radio station automatic power control method, apparatus, electronic device, and readable storage medium. The radio station automatic power control method first obtains a radio station configuration file and a changed set frequency, providing support for subsequent search and writing. If the impedance coefficient corresponding to the set frequency does not exist in the configuration file, it indicates that the set frequency has not been used, and output power adjustment and learning may be required. A collected voltage signal is first obtained so that the voltage signal can be used to perform voltage adjustment to achieve accurate power output. Actual power is calculated based on the voltage signal, and an impedance coefficient is calculated using the actual power and voltage signal to determine the load resistance and obtain the resistance value at the changed set frequency. The impedance coefficient remains unchanged for subsequent voltage adjustment. The actual power is calculated with the set power to obtain an error value, which is then used to determine whether to perform voltage adjustment. If the error value is greater than a preset power threshold, the power supply voltage is adjusted based on the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power based on the voltage signal is performed until the error value is less than or equal to the power threshold. The power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written to the configuration file. The power supply voltage is continuously adjusted, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is set through the above-mentioned autonomous learning, so that the power supply voltage can be set quickly later, and more accurate power can be output at the set frequency.
[0025] It should be noted that the automatic power control method of this radio is mainly used for automatic power control of radio stations in certain frequency bands, and can also be used for power control of certain frequency bands of other transmitters. Power control can be achieved using voltage regulation. The radio can set the output power quickly and accurately without being affected by load impedance.
[0026] The technical solutions provided in the embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0027] Reference Figure 1 , Figure 1 The flowchart of the automatic power control method for a radio station provided in an embodiment of the present application is shown. The automatic power control method for a radio station is applied to an automatic power control device for the radio station and is executed by a processor in an electronic device or a readable storage medium. The automatic power control method for the radio station includes steps S100, S200, S300, and S400.
[0028] Step S100 , obtaining a configuration file of the radio station and a changed set frequency, and obtaining a collected voltage signal when the impedance coefficient corresponding to the set frequency does not exist in the configuration file.
[0029] In one embodiment, the radio's configuration file is a pre-set file that can store the set frequency, the impedance coefficient corresponding to the set frequency, the set power supply voltage corresponding to the set frequency, and the output power corresponding to the set frequency. It should be noted that the configuration file is initially empty and is populated through the autonomous learning mode. Therefore, by subsequently reading the configuration file, the corresponding set power supply voltage can be quickly obtained, eliminating the need for power supply voltage adjustment and saving time.
[0030] Because the antenna load is connected, the antenna's resistance varies at different set frequencies. Changing the set frequency often results in inaccurate output power, requiring adjustments to the power supply voltage to meet transmission requirements. By acquiring the changed set frequency and enabling autonomous learning based on it, the system can quickly adjust the power supply voltage to meet different frequencies.
[0031] When the impedance coefficient corresponding to the set frequency does not exist in the configuration file, autonomous learning is required to write the set frequency, the impedance coefficient corresponding to the set frequency, and the set power supply voltage corresponding to the set frequency into the configuration file. The autonomous learning process is described according to the following circuit module.
[0032] Figure 2 A schematic diagram of a circuit module for an automatic power control method for a radio station is shown. The circuit module includes a service unit, a power amplifier unit, a filter unit, a signal switching unit, and a switching power supply. The switching power supply is connected to the power amplifier unit and the service unit, respectively. The power amplifier unit is connected to the service unit and the filter unit, respectively. The filter unit is connected to the signal switching unit, which is connected to the service unit. The signal switching unit is also connected to the antenna. The service unit includes an AD acquisition module and main control software. The signal switching unit includes a directional coupler. The directional coupler is connected to the AD acquisition module and the antenna, respectively. The AD acquisition module is connected to the main control software, which is connected to the switching power supply.
[0033] The module operates as follows: the switching power supply is turned on to provide power voltage. The radio sets a certain frequency, and the output power is controlled by the field-effect transistors in the power amplifier unit. The high-frequency signal in the circuit is filtered through a filter to obtain a smoother DC power, which is then output through a directional coupler and antenna. When the radio transmits, the DC voltage signal is collected by the directional coupler in the radio signal transfer unit. This signal is sent to the AD acquisition module in the service unit, converted into a digital signal, and then sent to the main control software for conversion to actual power. The main control software converts the user-set power into the DC voltage of the power supply based on the proportionality between power and voltage squared, thus regulating the power supply voltage. A directional coupler is used to collect the voltage signal and send it to the AD acquisition module. The main control software then obtains the converted voltage signal from the AD acquisition module so that it can subsequently use the voltage signal for voltage adjustment to achieve accurate power output.
[0034] Step S200: Calculate actual power according to the voltage signal, and calculate impedance coefficient using the actual power and the voltage signal.
[0035] In one embodiment, unlike the prior art in which power is calculated by voltage and current, or voltage and resistance, a directional coupler is used in this embodiment to directly couple the actual power based on the voltage signal, without the need to obtain the current or resistance value. The process of obtaining the actual power through the directional coupler will not be described in detail here. After the construction of the station is completed, the radio station and the broadband antenna connected to it will be fixed, so the impedance of the antenna at each set frequency will no longer change. Since the actual output power is proportional to the square of the voltage signal, the ratio of the actual output power to the square of the voltage signal will no longer change when the impedance remains unchanged. The impedance coefficient is calculated by taking advantage of the fact that the actual power is proportional to the square of the voltage signal, so that the accurate output power can be set through autonomous learning based on the characteristic that the impedance coefficient does not change.
[0036] Step S300: Calculate the actual power and the set power to obtain an error value.
[0037] In one embodiment, the actual power is subtracted from the set power. Specifically, the difference is obtained by subtracting the set power from the actual power, or by subtracting the actual power from the set power. The difference may be less than zero. The absolute value of the difference is calculated to obtain an error value to ensure that the error value is greater than or equal to zero. This facilitates subsequent reference to the error value to determine whether to make voltage adjustments. The set power is a preset power that achieves the normal output power of the radio.
[0038] Step S400: When the error value is greater than the preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to the preset sampling period. The step of calculating the actual power according to the voltage signal is executed until the error value is less than or equal to the power threshold. The power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file.
[0039] In one embodiment, the preset power threshold is a value set by professionals based on experience. The power threshold can be 100W and can be adjusted according to actual conditions, for example, to 90W. The power threshold specifies the upper limit of the output power error, providing support for subsequent accurate setting of the output power. If the error value is greater than the preset power threshold, it indicates that the actual power differs significantly from the set power, and the signal transmission of the radio at the set frequency cannot be guaranteed, and the output power needs to be adjusted. The power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power based on the voltage signal is performed until the error value is less than or equal to the power threshold, and the adjustment of the power supply voltage is terminated. Through the above iterative process, the power supply voltage is continuously adjusted to achieve voltage-regulated power control. The radio can quickly and accurately set the output power without being affected by the load impedance.
[0040] The preset sampling period is a value set by professionals based on experience. The sampling period can be 250ms and can be adjusted according to actual conditions, for example, to 200ms. When the error value is less than or equal to the power threshold, the power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. Specifically, the configuration file is first read, and then written using a preset write function. The set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are used as parameters of the write function, and the write method is appended write. The preset write function is write().
[0041] like Figure 3 As shown, writing the set frequency and the impedance coefficient corresponding to the set frequency into the configuration file includes but is not limited to the following steps: Step S410, converting the set frequency into a format to obtain a converted frequency; Step S420 , writing the switching frequency, the power supply voltage corresponding to the switching frequency, and the impedance coefficient corresponding to the switching frequency into a configuration file.
[0042] In some possible embodiments of the present application, since the radio frequency resolution is 1 Hz, the antenna impedance does not change significantly within the 1000 Hz range during actual use. Therefore, when writing, the set frequency is first formatted and rounded to the nearest kHz to obtain the conversion frequency. The conversion frequency, the corresponding power supply voltage, and the corresponding impedance coefficient are then written to the configuration file. Recording the impedance coefficient at this conversion frequency can reduce the amount of recorded data by 1000 times, facilitating storage and query.
[0043] like Figure 4 As shown, adjusting the power supply voltage according to the error value includes but is not limited to the following steps: In step S430 , an initial voltage is selected within the range of the voltage signal and the power supply voltage, and a corresponding objective function value is calculated based on the initial voltage and the error value.
[0044] In one embodiment, an initial voltage is selected within the range of the voltage signal and the power supply voltage according to a preset interval value. The preset interval value can be 1V or 2V, depending on the range between the voltage signal and the power supply voltage. When the range is small, a smaller interval value is selected; when the range is large, a larger interval value is selected. Alternatively, the initial voltage can be selected randomly within the range of the voltage signal and the power supply voltage. For example, the voltage values between the voltage signal and the power supply voltage are listed and the initial voltage is selected using a random algorithm. After the initial voltage is selected, subsequent Gaussian fitting calculations can be performed based on the initial voltage.
[0045] In another embodiment, calculating the corresponding objective function value based on the initial voltage and the error value includes, but is not limited to: inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain the objective function value; The efficiency calculation formula is: , in, represents the objective function value, Indicates the error value, Indicates the initial voltage.
[0046] In some possible embodiments of the present application, when performing Gaussian fitting optimization, the efficiency can directly reflect the performance of the above-mentioned circuit module and the performance of the system under the current power supply voltage, which can make the voltage regulation closer to the optimal solution. In order to achieve accurate power output, an error value is added when performing efficiency calculation, that is, a power constraint condition is added, which can solve the deviation caused by only using error adjustment and also take into account the overall performance. For example, the initial voltage is expressed as , the actual power is calculated using the square of the initial voltage and the impedance coefficient, and the actual power is calculated with the set power to obtain the error value. According to the voltage selected above, an error value can be obtained. After calculation with the above efficiency formula, the objective function value corresponding to the initial voltage is obtained.
[0047] Among them, the larger the initial voltage, The larger the value of The smaller the value of is, the more the error value plays a constraint role. The smaller the error value, the The smaller the overall value, the closer the final result is to 1. The design goal is to adjust the power supply voltage to make the error value as small as possible. The above formula meets the requirements of ultimately setting the accurate output power.
[0048] Step S440 , performing Gaussian fitting on the initial voltage and the target function value to obtain a probability distribution, and calculating the expectation and variance of the probability distribution.
[0049] In one embodiment, the initial voltage and the objective function value are obtained according to step S430, and a Gaussian fit is performed on the initial voltage and the objective function value using a kernel function. The kernel function may be an RBF kernel function. After fitting, a probability distribution conforming to a normal distribution is obtained, and the expectation and variance, or the expectation and standard deviation, of the probability distribution are calculated. The calculation process is not described in detail. By performing Gaussian fitting and calculating the expectation and variance based on the probability distribution, the optimal voltage can be determined through subsequent optimization. The Gaussian fitting and optimization can minimize the number of power supply voltage adjustments.
[0050] Step S450 , determining an optimal voltage according to the expectation, variance, actual power and set power, and using the optimal voltage as the power supply voltage.
[0051] In one embodiment, determining the optimal voltage based on the expectation, variance, actual power, and set power includes, but is not limited to: calculating the expectation, variance, actual power, and set power using a preset acquisition function, maximizing the value of the acquisition function, and obtaining the optimal voltage; The acquisition function is expressed by the following formula: , in, Expressing the expectation, represents the variance, Indicates the actual power, Indicates the set power, Indicates minimum error, MAX() indicates maximization function, represents the cumulative distribution function of the standard normal distribution and represents the probability density function of the standard normal distribution, represents the optimal voltage, Indicates the initial voltage.
[0052] In some possible embodiments of the present application, the EI acquisition function is calculated using the expectation, variance, cumulative distribution function, and probability density function of the standard normal distribution. This EI acquisition function is then improved by adding a weight based on the power error value. When the error value is small, the weight is increased; when the error value is large, the weight is decreased. By incorporating the error weight into the EI acquisition function, the focus on voltage and power errors can be dynamically adjusted, thereby achieving accurate regulation and precisely setting the output power.
[0053] It should be noted that the power supply voltage can also be adjusted according to the error value using a step-by-step adjustment method. This is illustrated using the case where the power supply voltage is greater than the voltage signal. Specifically, the voltage signal and the power supply voltage are adjusted to an intermediate voltage. This intermediate voltage divides the voltage signal and the power supply voltage into two ranges: the first range is from the voltage signal to the intermediate voltage, and the second range is the intermediate voltage value of the power supply voltage. The intermediate voltage is set as the power supply voltage, and then the voltage signal is collected again. A new error value is calculated using the voltage signal to determine whether the new error value is greater than the power threshold. If the new error value is greater than the preset power threshold, the power threshold is subtracted from the error value and then divided by 2 to obtain the intermediate value. The error value is then subtracted from the intermediate value to obtain the updated error value. Since the square of the voltage is proportional to the power, a smaller error value indicates that the actual power is closer to the set power. When the actual power is greater than the set power, the voltage is adjusted downward, and when the actual power is less than the set power, the voltage is adjusted upward. The new error value is compared with the updated error value. If the actual power is less than the set power, and the updated error value is greater than the new error value, an intermediate voltage is selected from the second range. If the updated error value is less than the new error value, an intermediate voltage is selected from the first range. If the updated error value is less than the new error value, an intermediate voltage is selected from the first range. If the updated error value is less than the new error value, an intermediate voltage is selected from the second range. Adjustments are made continuously according to the above process until the error value is less than or equal to the power threshold, at which point the power supply voltage adjustment ends. If the error value is less than or equal to the preset power threshold, the intermediate voltage is determined to be the power supply voltage. This dichotomy reduces the number of adjustments and allows for quick and accurate power settings.
[0054] In another embodiment, when there is an impedance coefficient corresponding to the set frequency in the configuration file, before obtaining the collected voltage signal, the radio station's automatic power control method also includes but is not limited to: obtaining the impedance coefficient in the configuration file; when the impedance coefficient is equal to zero, multiplying the preset standard resistance value by the set power and taking the square root to obtain the power supply voltage.
[0055] In some possible embodiments of the present application, when there is an impedance coefficient corresponding to a set frequency in the configuration file, it indicates that the set frequency has been used, and the power supply voltage can be directly set by the impedance coefficient. The impedance coefficient in the configuration file is obtained using a preset read function, and the preset read function can be a read() function. When the impedance coefficient is equal to zero, it indicates that there is no antenna load, and the preset standard resistance value is multiplied by the set power and squared to obtain the power supply voltage. Among them, the preset standard resistance value is 50Ω, which is the output load of the power amplifier unit. When the impedance coefficient is not equal to zero, it indicates that there is an antenna load, and the power supply voltage in the configuration file is directly read. By obtaining the power supply voltage and setting it, accurate power output can be guaranteed.
[0056] In one embodiment, when the radio replaces its antenna or the antenna's indicators change, the radio's automatic power control method also includes but is not limited to: clearing the contents of the configuration file, obtaining the set frequency, and executing the step of obtaining the collected voltage signal for re-autonomous learning.
[0057] In some possible embodiments of the present application, when a radio replaces its antenna or its antenna specifications change, an antenna load exists, and the resistance of the antenna load changes, causing the impedance coefficient in the configuration file to change, rendering the contents of the configuration file unusable. A file content deletion function is used to clear the contents of the configuration file, and then the radio's set frequency is obtained, a collected voltage signal is obtained, actual power is calculated based on the voltage signal, and the impedance coefficient is calculated using the actual power and voltage signal. This allows the load resistance to be determined, resulting in a resistance value at the changed set frequency, with the impedance coefficient remaining unchanged, for subsequent voltage adjustment. The actual power is then compared with the set power to obtain an error value, which can then be used to determine whether voltage adjustment is performed. If the error value is greater than a preset power threshold, the power supply voltage is adjusted based on the error value, and voltage signals are collected according to a preset sampling period. The actual power is calculated based on the voltage signal until the error value is less than or equal to the power threshold, at which point the power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written to the configuration file. Through the above iterations, autonomous learning is carried out again, so that after replacing the antenna, as long as the used set frequency is used again, the power supply voltage in the configuration file can be directly read to quickly and accurately set the power.
[0058] like Figure 5As shown, the embodiment of the present application provides a power automatic control device 100 for a radio station. The power automatic control device 100 of the radio station obtains the configuration file of the radio station and the changed set frequency through the data acquisition and collection module 110, which can provide support for subsequent search and writing. In the case that the impedance coefficient corresponding to the set frequency does not exist in the configuration file, it indicates that the set frequency has not been used. Subsequently, the output power may need to be adjusted and learned. The collected voltage signal is first obtained so that the voltage signal can be used to adjust the voltage later to achieve accurate power output; then the impedance calculation module 120 is used to calculate the actual power according to the voltage signal, and the impedance coefficient is calculated using the actual power and the voltage signal, which can be determined. The load resistance value is obtained, and the resistance value at the changed set frequency is obtained, and the impedance coefficient remains unchanged so that voltage adjustment can be performed subsequently; the actual power and the set power are then calculated using the error calculation module 130 to obtain an error value, so that the error value can be used to determine whether voltage adjustment is performed subsequently; finally, the adjustment and writing module 140 is used to adjust the power supply voltage according to the error value when the error value is greater than the preset power threshold, and the voltage signal is collected according to a preset sampling period, and the step of calculating the actual power based on the voltage signal is performed until the error value is less than or equal to the power threshold, at which point the power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is continuously adjusted, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is set through the above-mentioned autonomous learning, so that the power supply voltage can be quickly set later, and a more accurate power output can be achieved at the set frequency.
[0059] It should be noted that the data acquisition and collection module 110 is connected to the impedance calculation module 120 , the impedance calculation module 120 is connected to the error calculation module 130 , and the error calculation module 130 is connected to the adjustment and writing module 140 . The above-mentioned radio automatic power control method is applied to a radio automatic power control device 100. The radio automatic power control device 100 can provide support for subsequent search and writing by obtaining the radio configuration file and the changed set frequency. If the impedance coefficient corresponding to the set frequency does not exist in the configuration file, it indicates that the set frequency has not been used, and the output power may need to be adjusted and learned later. First, the collected voltage signal is obtained so that the voltage signal can be used to adjust the voltage to achieve accurate power output. The actual power is calculated based on the voltage signal, and the impedance coefficient is calculated using the actual power and voltage signal to determine the load resistance and obtain the resistance value at the changed set frequency. The impedance coefficient remains unchanged, so that voltage adjustment can be performed later. The actual power is calculated with the set power to obtain an error value, which can be used to refer to the error value to determine whether to adjust the voltage. If the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power based on the voltage signal is performed until the error value is less than or equal to the power threshold. The power supply voltage adjustment is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written to the configuration file. The power supply voltage is continuously adjusted, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power supply voltage is set through the above-mentioned autonomous learning, so that the power supply voltage can be set quickly later, and more accurate power can be output at the set frequency.
[0060] It should also be noted that the above embodiments provide devices that implement their functions using only the division of the above functional modules as examples. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0061] This application also discloses an electronic device. Figure 6 , Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. The electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0062] The communication bus 502 is used to implement the connection and communication between these components.
[0063] The user interface 503 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0064] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0065] The processor 501 may include one or more processing cores. Using various interfaces and circuits, the processor 501 connects to various components within the server. It executes instructions, programs, code sets, or instruction sets stored in the memory 505, as well as accesses data stored in the memory 505, to perform various server functions and process data. Optionally, the processor 501 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 501 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing content displayed on the display screen; and the modem handles wireless communications. It is understood that the modem may also be implemented as a separate chip, rather than integrated into the processor 501.
[0066] Among them, the memory 505 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. Reference Figure 6 The memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a radio station power automatic control method.
[0067] exist Figure 6 In the electronic device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call an application program stored in the memory 505 for a method for automatic power control of a radio station. When executed by one or more processors 501, the electronic device 500 executes one or more methods in the above-mentioned embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited to the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
[0068] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0069] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic, such as the division of units, which is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0070] Units described as separate components may or may not be physically separate, and 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 these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0071] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0072] 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 memory. Based on this understanding, the technical solution of this application, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the method of this application. The aforementioned memory includes various media that can store program code, such as USB flash drives, mobile hard drives, magnetic disks, or optical disks.
[0073] The above are merely exemplary embodiments of the present disclosure and are not intended to limit the scope of the present disclosure. In other words, any equivalent variations and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the disclosure and the practical implications thereof.
[0074] This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not described herein. The description and examples are to be considered as exemplary only, and the scope and spirit of the present disclosure are to be defined by the claims.
Claims
1. A method for automatic power control of a radio station, characterized in that: The method comprises: Obtaining a configuration file of the radio station and a changed set frequency, and if an impedance coefficient corresponding to the set frequency does not exist in the configuration file, obtaining a collected voltage signal; Calculating actual power according to the voltage signal, and calculating the impedance coefficient using the actual power and the voltage signal; Calculating the actual power and the set power to obtain an error value; When the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, and the voltage signal is collected according to a preset sampling period. The step of calculating the actual power according to the voltage signal is performed until the error value is less than or equal to the power threshold. The adjustment of the power supply voltage is terminated, and the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency are written into the configuration file.
2. The method according to claim 1, characterized in that The adjusting the power supply voltage according to the error value includes: Selecting an initial voltage within the range of the voltage signal and the power supply voltage, and calculating a corresponding objective function value based on the initial voltage and the error value; Performing Gaussian fitting on the initial voltage and the objective function value to obtain a probability distribution, and calculating the expectation and variance of the probability distribution; An optimal voltage is determined according to the expectation, the variance, the actual power, and the set power, and the optimal voltage is used as the power supply voltage.
3. The method according to claim 2, characterized in that The determining the optimal voltage according to the expectation, the variance, the actual power and the set power includes: Calculating the expectation, the variance, the actual power, and the set power using a preset acquisition function, maximizing the value of the acquisition function, and obtaining the optimal voltage; The acquisition function is expressed by the following formula: , in, Expressing the expectation, represents the variance, Indicates the actual power, Indicates the set power, Indicates minimum error, MAX() indicates maximization function, represents the cumulative distribution function of the standard normal distribution and represents the probability density function of the standard normal distribution, represents the optimal voltage, Indicates the initial voltage.
4. The method according to claim 2, characterized in that The calculating a corresponding objective function value based on the initial voltage and the error value includes: Inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain an objective function value; The efficiency calculation formula is: , in, represents the objective function value, Indicates the error value, Indicates the initial voltage.
5. The method according to claim 1, wherein In a case where the impedance coefficient corresponding to the set frequency exists in the configuration file, before acquiring the collected voltage signal, the method further includes: Obtaining the impedance coefficient in the configuration file; When the impedance coefficient is zero, the preset standard resistance value is multiplied by the set power and the square root is taken to obtain the power supply voltage.
6. The method according to claim 1, characterized in that Writing the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency into the configuration file includes: Converting the set frequency into a format to obtain a converted frequency; The switching frequency, the power supply voltage corresponding to the switching frequency, and the impedance coefficient corresponding to the switching frequency are written into the configuration file.
7. The method according to claim 1, characterized in that In the case where the radio replaces the antenna or the antenna index changes, the method further includes: clearing the content of the configuration file, obtaining the set frequency, and executing the step of obtaining the collected voltage signal to perform re-autonomous learning.
8. A power automatic control device for a radio station, characterized in that: The device comprises: A data acquisition and collection module (110) is used to obtain a configuration file of the radio station and a changed set frequency, and to obtain a collected voltage signal when an impedance coefficient corresponding to the set frequency does not exist in the configuration file; an impedance calculation module (120), configured to calculate actual power according to the voltage signal, and calculate the impedance coefficient using the actual power and the voltage signal; an error calculation module (130), configured to calculate the actual power and the set power to obtain an error value; An adjustment and writing module (140) is used to adjust the power supply voltage according to the error value when the error value is greater than a preset power threshold, collect the voltage signal according to a preset sampling period, execute the step of calculating the actual power according to the voltage signal until the error value is less than or equal to the power threshold, end the adjustment of the power supply voltage, and write the set frequency, the power supply voltage corresponding to the set frequency, and the impedance coefficient corresponding to the set frequency into the configuration file.
9. An electronic device, characterized in that: The electronic device (500) comprises a processor (501), a memory (505), a user interface (503), a communication bus (502) and a network interface (504), wherein the processor (501), the memory (505), the user interface (503) and the network interface (504) are respectively connected to the communication bus (502), the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device (500) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Parameter configuration method and device for simulation load and storage medium
CN116299028A
Calibration method, device and equipment of radio frequency power supply under different frequencies and medium
CN117691837A
System and method for tracking maximum power point of photovoltaic module
TW202501195A
Methods and systems for monitoring and adjusting harmonic emission levels of industrial loads
US20240297527A1
Microgrid optimal scheduling method taking into consideration system operation risk and user satisfaction
WO2025118322A1