Radio power automatic control method and device, electronic equipment and storage medium

By acquiring the radio configuration file and setting the frequency, calculating the actual power and impedance coefficient, and adjusting the power supply voltage to achieve accurate power output, the problem of inaccurate output power caused by antenna load in frequency band radios is solved, thus improving the reliability and safety of the radio.

CN120454744BActive Publication Date: 2025-12-26BEIJING BBEF SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510947998.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-12-26
Estimated Expiration
2045-07-10

AI Technical Summary

Technical Problem

Because the power control of a frequency band radio is affected by the antenna load, the output power may be inaccurate, especially when the antenna impedance is low, which may damage the power amplifier.

Method used

By acquiring the radio configuration file and changing the set frequency, the actual power and impedance coefficient are calculated, and the power supply voltage is adjusted to achieve accurate power output. An autonomous learning mechanism is used to continuously adjust the power supply voltage until the error value is less than the threshold, and the result is written to the configuration file.

Benefits of technology

It achieves accurate power output under different load conditions, reduces the number of power supply voltage adjustments, and improves the reliability and safety of frequency band radios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120454744B_ABST
    Figure CN120454744B_ABST
Patent Text Reader

Abstract

The application provides a power automatic control method and device of a radio station, electronic equipment and a storage medium, and relates to the technical field of communication. In the method, a configuration file of the radio station and a changed set frequency are acquired, and a voltage signal collected is acquired in the case that an impedance coefficient corresponding to the set frequency does not exist in the configuration file. Actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal. The actual power and the set power are calculated to obtain an error value. In the case that the error value is greater than a preset power threshold value, the power supply voltage is adjusted according to the error value, 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, and the adjustment of the power supply voltage is ended until the error value is less than or equal to the power threshold value. 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, and the output power can be accurately set.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a power automatic control method and device of a radio station, an electronic device and a storage medium. BACKGROUND

[0002] The power control of a radio station in a certain frequency band is realized by controlling the voltage of a power amplifier. Since the power amplifier adopts an "H" type bridge switching amplifier, the output power can be controlled by adjusting the gate voltage of a field effect transistor. The output power is proportional to the square of the gate voltage. If the output load of the power amplifier unit is a 50Ω pure resistor, the voltages corresponding to the same output power of each set frequency are the same. Therefore, a 50Ω pure resistor is generally used as a load during the debugging stage. However, in actual use, an antenna load needs to be connected, which causes the output power of different set frequencies to be different under the same voltage condition, thereby causing the set power of the radio station 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 station, resulting in damage to the power amplifier. The existence of the antenna load causes the output power to be inaccurate. SUMMARY

[0003] The present application provides a power automatic control method and device of a radio station, an electronic device and a storage medium, which can accurately set the output power and are not affected by the load impedance.

[0004] The technical solutions of the embodiments of the present application are as follows:

[0005] In a first aspect, the present application provides a power automatic control method of a radio station, which comprises the following steps:

[0006] Obtaining a configuration file of the radio station and a changed set frequency, and obtaining a collected voltage signal in the case that the impedance coefficient corresponding to the set frequency does not exist in the configuration file;

[0007] Calculating the actual power according to the voltage signal, and calculating the impedance coefficient by using the actual power and the voltage signal;

[0008] Calculating the error value by comparing the actual power with a set power;

[0009] In the case that the error value is greater than a preset power threshold, adjusting the power supply voltage according to the error value, collecting the voltage signal according to a preset sampling period, performing 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, ending the adjustment of the power supply voltage, and 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.

[0010] In the technical solution, the configuration file and the changed setting frequency of the radio station are acquired first, which can provide support for subsequent searching and writing, and in the case that the impedance coefficient corresponding to the setting frequency does not exist in the configuration file, it indicates that the setting frequency is not used, and subsequent output power adjustment and learning can be needed, the acquired voltage signal is used for subsequent voltage adjustment by using the voltage signal to achieve accurate power output; the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal, which can determine the load resistance value, obtain the resistance value under the changed setting frequency, and the impedance coefficient is constant, so as to facilitate subsequent voltage adjustment; the error value is obtained by calculating the actual power and the setting power, so as to facilitate subsequent reference of the error value for voltage adjustment; in the case that 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, and the adjustment of the power supply voltage is ended, and the setting frequency, the power supply voltage corresponding to the setting frequency and the impedance coefficient corresponding to the setting frequency are written into the configuration file. The power supply voltage is continuously adjusted, and the setting frequency, the power supply voltage corresponding to the setting frequency and the impedance coefficient corresponding to the setting frequency are written into the configuration file, the power supply voltage is set by the above-mentioned self-learning, so as to facilitate subsequent rapid power supply voltage setting, and under the setting frequency, more accurate power can be output.

[0011] In some embodiments of the present application, the adjusting the power supply voltage according to the error value comprises:

[0012] selecting an initial voltage in the voltage signal and the power supply voltage range, and calculating a corresponding target function value based on the initial voltage and the error value;

[0013] performing Gaussian fitting on the initial voltage and the target function value to obtain a probability distribution, and calculating an expectation and a variance of the probability distribution;

[0014] determining an optimal voltage according to the expectation, the variance, the actual power and the setting power, and taking the optimal voltage as the power supply voltage.

[0015] In some embodiments of the present application, the determining the optimal voltage according to the expectation, the variance, the actual power and the setting power comprises:

[0016] calculating the expectation, the variance, the actual power and the setting power by using a preset acquisition function, maximizing the value of the acquisition function, and obtaining the optimal voltage;

[0017] The acquisition function is represented by the following formula: ,

[0018] wherein, denotes the desired, denotes the variance, denotes the actual power, denotes the set power, denotes the minimum error, MAX() denotes a maximization function, denotes the cumulative distribution function of a standard normal distribution and denotes the probability density function of a standard normal distribution, denotes the optimal voltage, denotes the initial voltage.

[0019] In some embodiments of the present application, the calculation of the corresponding target function value based on the initial voltage and the error value comprises:

[0020] inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain the target function value;

[0021] The efficiency calculation formula is: ,

[0022] wherein, denotes the target function value, denotes the error value, denotes the initial voltage.

[0023] In some embodiments of the present application, in the case that the impedance coefficient corresponding to the set frequency exists in the configuration file, before the acquisition of the collected voltage signal, the method further comprises:

[0024] acquiring the impedance coefficient in the configuration file;

[0025] in the case that the impedance coefficient is equal to zero, multiplying a preset standard resistance value with the set power and taking the square root to obtain the power supply voltage.

[0026] In some embodiments of the present application, the writing of 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 comprises:

[0027] format conversion of the set frequency to obtain a converted frequency;

[0028] writing the converted frequency, the power supply voltage corresponding to the converted frequency and the impedance coefficient corresponding to the converted frequency into the configuration file.

[0029] In some embodiments of the present application, in the case that the radio station changes the antenna or the index of the antenna, the method further comprises: clearing the content of the configuration file, obtaining a set frequency, and performing the steps of obtaining and collecting the voltage signal to re-learn autonomously.

[0030] In a second aspect, the embodiments of the present application provide a power automatic control device of a radio station, the device comprising:

[0031] a data obtaining and collecting module, configured to obtain a configuration file of the radio station and a changed set frequency, and obtain and collect a voltage signal in the case that the configuration file does not contain an impedance coefficient corresponding to the set frequency;

[0032] an impedance calculating module, configured to calculate an actual power according to the voltage signal, and calculate the impedance coefficient by using the actual power and the voltage signal;

[0033] an error calculating module, configured to calculate the actual power and a set power to obtain an error value;

[0034] an adjusting and writing module, configured to adjust a power supply voltage according to the error value in the case that the error value is greater than a preset power threshold, collect the voltage signal according to a preset sampling period, perform 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.

[0035] In a third aspect, the embodiments of the present application provide 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 connected with the communication bus respectively, the memory is configured to store instructions, the user interface and the network interface are configured to communicate with other devices, and the processor is configured to execute the instructions stored in the memory, so that the electronic device performs the method provided in any one of the first aspect.

[0036] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores instructions, and when the instructions are executed, the method provided in any one of the first aspect is performed.

[0037] In summary, the one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0038] 1、Firstly, the configuration file and the changed setting frequency of the radio station are acquired, so as to provide support for subsequent search and writing. In the case that the impedance coefficient corresponding to the setting frequency does not exist in the configuration file, it indicates that the setting frequency is not used, and subsequent output power adjustment and learning may be needed. The acquired voltage signal is acquired, so as to adjust the voltage by using the voltage signal, and to realize accurate power output. The actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal, so as to determine the load resistance value, to obtain the resistance value under the changed setting frequency, and the impedance coefficient is unchanged, so as to adjust the voltage subsequently. The actual power and the setting power are calculated to obtain an error value, so as to subsequently refer to the error value to determine whether to adjust the voltage. In the case that the error value is greater than a preset power threshold, the power voltage is adjusted according to the error value, 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, the adjustment of the power voltage is ended, and the setting frequency, the power voltage corresponding to the setting frequency and the impedance coefficient corresponding to the setting frequency are written into the configuration file. The power voltage is continuously adjusted, and the setting frequency, the power voltage corresponding to the setting frequency and the impedance coefficient corresponding to the setting frequency are written into the configuration file. The power voltage is set by the above-mentioned self-learning, so as to subsequently quickly set the power voltage, and accurate power can be output under the setting frequency. Therefore, the problem of inaccurate output power caused by the antenna load in the related art is effectively solved.

[0039] 2、The probability distribution is obtained by performing Gaussian fitting, and the optimal voltage is determined according to the probability distribution. When the optimal voltage is determined, the number of times of adjustment of the adjusted power voltage is the least.

[0040] 3、The target function value is calculated by using not only the error value, so as to reduce the deviation caused by the error value.

[0041] 4、In the case that the impedance coefficient corresponding to the setting frequency exists in the configuration file, the power voltage corresponding to the setting frequency is directly read, so as to quickly and accurately set the power, and the continuous tracking, comparison and adjustment of the power voltage are not needed.

[0042] 5、The storage space is reduced by performing format conversion on the frequency, and storage and query are facilitated. BRIEF DESCRIPTION OF DRAWINGS

[0043] Figure 1 is a flowchart of a power automatic control method of a radio station provided by an embodiment of the present application;

[0044] Figure 2 is a circuit module schematic diagram of the power automatic control method of the radio station provided by an embodiment of the present application;

[0045] Figure 3 is Figure 1 a flowchart of one sub-step of step S400 in

[0046] Figure 4 is Figure 1 a flowchart of another sub-step of step S400 in

[0047] Figure 5 is a structural diagram of a power automatic control device of a radio station according to an embodiment of the present application;

[0048] Figure 6 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the present specification will be described clearly and completely in the following with reference to the drawings in the embodiments of the present specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments of the present application.

[0050] In the description of the embodiments of the present application, the words such as “for example” or “for instance” are used to represent an example, illustration or description. Any embodiment or design scheme described as “for example” or “for instance” in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. In fact, the words such as “for example” or “for instance” are intended to present the relevant concept in a specific way.

[0051] In the description of the embodiments of the present application, the term “a plurality of” means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. In addition, the terms “first” and “second” are only used for description purposes, and should not be interpreted as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined with “first” and “second” can explicitly or implicitly include one or more of the features. The terms “include”, “contain”, “have” and their variants mean “include but are not limited to”, unless otherwise specifically emphasized.

[0052] The power automatic control method of the radio station provided in the embodiment of the present application firstly acquires the configuration file of the radio station and the changed set frequency, can provide support for subsequent searching 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 is not used, and subsequent output power adjustment and learning can be needed, the acquired voltage signal is firstly acquired, so that the voltage adjustment is performed by using the voltage signal subsequently, to realize accurate power output; the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal, the load resistance value can be determined, the resistance value under the changed set frequency is obtained, and the impedance coefficient is unchanged, so that the voltage adjustment is performed subsequently; the error value is obtained by calculating the actual power and the set power, so that whether the voltage adjustment is performed subsequently is referenced according to the error value; in the case that the error value is greater than the preset power threshold value, the power supply voltage is adjusted according to the error value, the voltage signal is acquired 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 value, the adjustment of the power supply voltage is ended, 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 by using the above-mentioned self-learning, so that the power supply voltage is quickly set subsequently, and relatively accurate power can be output under the set frequency.

[0053] It should be noted that the power automatic control method of the radio station is mainly used for the power automatic control of some frequency band radio stations, and can also be used for the power control of some frequency bands of other transmitters, can use voltage adjustment to realize power control, and the radio station can quickly and accurately set the output power and is not affected by the load impedance.

[0054] The technical solutions provided by the embodiments of the present application will be further described below with reference to the drawings.

[0055] Refer to Figure 1 , Figure 1 is a flowchart of the power automatic control method of the radio station provided in the embodiment of the present application. The power automatic control method of the radio station is applied to the power automatic control device of the radio station, and the power automatic control method of the radio station is executed by the processor in the electronic device or the readable storage medium, the power automatic control method of the radio station comprises steps S100, S200, S300 and S400.

[0056] In step S100, the configuration file of the radio station and the changed set frequency are acquired, and in the case that the impedance coefficient corresponding to the set frequency does not exist in the configuration file, the acquired voltage signal is acquired.

[0057] In an embodiment, the configuration file of the radio station is a pre-set file, which 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 filled through the self-learning mode, so that the corresponding set power supply voltage can be quickly obtained by reading the configuration file in the future, without the need for power supply voltage adjustment, saving time.

[0058] Due to the connection of the antenna load, the resistance of the antenna at different set frequencies is different, and when the set frequency is changed, the output power is often inaccurate, and needs to be adjusted by adjusting the power supply voltage to adjust the output power to meet the transmission requirements. By obtaining the changed set frequency, self-learning is performed according to the set frequency, which is beneficial to subsequent fast adjustment of the power supply voltage at different frequencies.

[0059] In the case where the impedance coefficient corresponding to the set frequency does not exist in the configuration file, self-learning is needed 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 self-learning process is described below according to the circuit module.

[0060] Figure 2 A circuit module schematic diagram of the power automatic control method of the radio station is shown, which includes a business unit, a power amplifier unit, a filter unit, a signal switching unit, and a switching power supply. The switching power supply is connected with the power amplifier unit and the business unit, the power amplifier unit is connected with the business unit and the filter unit, the filter unit is connected with the signal switching unit, the signal switching unit is connected with the business unit, and the signal switching unit is also connected with the antenna. The business unit includes an AD acquisition module and a main control software, the signal switching unit includes a directional coupler, the directional coupler is connected with the AD acquisition module and the antenna, the AD acquisition module is connected with the main control software, and the main control software is connected with the switching power supply.

[0061] The working principle of the above module is to provide power supply voltage for the switch power supply to open, the radio station sets a certain frequency, the field effect tube of the power amplifier unit is used for output power control, and the high frequency signal in the circuit is filtered by the filter to obtain relatively smooth direct current, which is output through the directional coupler and the antenna. When the radio station transmits a signal, the direct current voltage signal is collected through the directional coupler of the radio station signal switching unit, and is sent to the AD acquisition module of the service unit, and is converted into a digital signal, and is sent to the main control software to convert into actual power. The main control software converts the power set by the user into the direct current voltage of the power supply according to the square proportion of the power and the voltage, so that the adjustment of the power supply voltage can be realized. The voltage signal is sent to the AD acquisition module by using the directional coupler to collect the voltage signal, and the main control software obtains the voltage signal converted by the AD acquisition module, so that the voltage signal is used for subsequent voltage adjustment to realize accurate power output.

[0062] In step S200, the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal.

[0063] In an embodiment, unlike the prior art, the power is calculated by voltage and current, or the power is calculated by voltage and resistance. In the embodiment, the directional coupler is used to directly obtain the actual power according to the voltage signal, and the current or resistance value is not needed. The process of obtaining the actual power by the directional coupler is not repeated here. After the station is built, the radio station and the broadband antenna connected thereto 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, when the impedance is constant, the ratio of the actual output power to the square of the voltage signal will no longer change. By using the fact that the actual power is proportional to the square of the voltage signal, the impedance coefficient is calculated, so that the impedance coefficient is not changed according to the characteristic of the subsequent self-learning setting of the accurate output power.

[0064] In step S300, the actual power and the set power are calculated to obtain an error value.

[0065] In an embodiment, the actual power and the set power are subtracted, specifically, the difference value is obtained by using the actual power minus the set power, or the difference value is obtained by using the set power minus the actual power. The difference value may be less than zero, and the absolute value of the difference value is obtained to obtain the error value, so that the error value is greater than or equal to zero, which is convenient for subsequent reference of the error value for voltage adjustment. The set power is a power that is set in advance to realize normal output of the radio station.

[0066] Step S400, in the case that the error value is greater than the preset power threshold, adjusting the power supply voltage according to the error value, collecting the voltage signal according to the preset sampling period, performing 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, ending the adjustment of the power supply voltage, and 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.

[0067] In an embodiment, the preset power threshold is a value set by professionals through experience, which can be 100W, and can also be adjusted according to actual conditions, for example, to 90W. The power threshold defines the upper limit of the error of the output power, which provides support for subsequent accurate setting of the output power. In the case that the error value is greater than the preset power threshold, it indicates that the actual power and the set power are greatly different, which cannot guarantee the signal transmission of the radio station at the set frequency, and the output power needs to be adjusted and set. According to the error value, the power supply voltage is adjusted, and the voltage signal is collected according to the preset sampling period, and 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, ending the adjustment of the power supply voltage. Through the above iterative process, the power supply voltage is continuously adjusted, and the radio station with voltage regulation power control can quickly and accurately set the output power, which is not affected by the load impedance.

[0068] The preset sampling period is a value set by professionals through experience, and the sampling period can be 250ms, and can also be adjusted according to actual conditions, for example, to 200ms. In the case that the error value is less than or equal to the power threshold, the power supply voltage adjustment is ended, 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 the preset write function is used for writing, 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 writing mode is appended writing. The preset write function is write().

[0069] As shown in Figure 3 The set frequency and the impedance coefficient corresponding to the set frequency are written into the configuration file, including but not limited to the following steps:

[0070] Step S410, performing format conversion on the set frequency to obtain a converted frequency;

[0071] Step S420, writing the converted frequency, the power supply voltage corresponding to the converted frequency and the impedance coefficient corresponding to the converted frequency into the configuration file.

[0072] In some possible embodiments of the present application, because the radio frequency resolution is 1 Hz, the antenna impedance change is not large in the range of 1000 Hz in actual use, therefore, when writing, the set frequency is first converted in format, the frequency is rounded to the conversion frequency in kHz, and then the conversion frequency, the power voltage corresponding to the conversion frequency and the impedance coefficient corresponding to the conversion frequency are written into the configuration file. Recording the impedance coefficient with the conversion frequency can reduce the amount of recorded data by 1000 times, facilitating storage and query.

[0073] As shown in Figure 4 adjusting the power voltage according to the error value, including but not limited to the following steps:

[0074] Step S430, selecting an initial voltage in the voltage signal and the power voltage range, and calculating a corresponding target function value based on the initial voltage and the error value.

[0075] In an embodiment, the initial voltage is selected according to a preset interval value in the voltage signal and the power voltage range. The preset interval value can be 1V or 2V, which is set according to the range between the voltage signal and the power voltage. In the case of a smaller range, a smaller interval value is selected; in the case of a larger range, a larger interval value is selected. The initial voltage can also be selected by random selection in the voltage signal and the power voltage range, for example, the voltage values between the voltage signal and the power voltage are listed, and the initial voltage is selected by a random algorithm. After selecting the initial voltage, Gaussian fitting calculation is performed based on the initial voltage.

[0076] In another embodiment, the corresponding target function value is calculated based on the initial voltage and the error value, including but not limited to: inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain the target function value.

[0077] The efficiency calculation formula is: ,

[0078] wherein, represents the target function value, represents the error value, represents the initial voltage.

[0079] In some possible embodiments of the present application, when Gaussian fitting optimization is performed, the efficiency can directly reflect the performance of the above-mentioned circuit module and the performance of the system under the current power voltage, so that the voltage adjustment is closer to the optimal solution. In order to realize accurate power output, the error value is added when the efficiency is calculated, i.e. the power constraint condition is added, which can solve the deviation caused by only using error adjustment and also considers the overall performance. Exemplarily, the initial voltage is represented as , the actual power is calculated by using the square of the initial voltage and the impedance coefficient, the error value is calculated by comparing the actual power with the set power, and according to the selected voltage, one error value can be corresponded, and the target function value corresponding to the initial voltage is obtained by calculating the above efficiency formula.

[0080] wherein, in the case of a larger initial voltage, the value of the error value will be larger, the value of the error value will be smaller, and the error value plays a constraint role, the smaller the error value is, the smaller the whole of is, and the final result is closer to 1. The design goal is to adjust the power supply voltage so that the error value is smaller, and the above formula meets the demand of finally setting the accurate output power.

[0081] In step S440, the initial voltage and the target function value are subjected to Gaussian fitting to obtain a probability distribution, and the expectation and variance of the probability distribution are calculated.

[0082] In an embodiment, the initial voltage and the target function value are obtained according to step S430, and the initial voltage and the target function value are subjected to Gaussian fitting by using a kernel function. The kernel function can be selected as 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, and the calculation process is not described herein. By performing Gaussian fitting and calculating the expectation and variance according to the probability distribution, the optimal voltage can be determined by subsequent optimization, and by Gaussian fitting and optimization, the number of times of adjusting the power supply voltage can be minimized.

[0083] In step S450, the 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.

[0084] In an embodiment, the optimal voltage is determined according to the expectation, the variance, the actual power and the set power, including but not limited to: the expectation, the variance, the actual power and the set power are calculated by using a preset acquisition function, and the value of the acquisition function is maximized to obtain the optimal voltage.

[0085] The acquisition function is represented by the following formula: ,

[0086] wherein, the expectation is represented by the variance is represented by the actual power is represented by the set power is represented by the minimum error is represented by the maximum function is represented by a probability density function representing a standard normal distribution, represents the optimal voltage, represents the initial voltage.

[0087] In some possible embodiments of the present application, the EI acquisition function is improved by calculating the value of the EI acquisition function through expectation, variance, cumulative distribution function and probability density function of the standard normal distribution, adding a weight of the power error value to the EI acquisition function, and the weight is larger when the error value is smaller, and the weight is smaller when the error value is larger. By adding the weight of the error value in the EI acquisition function, the attention to the voltage and power error can be dynamically adjusted, so as to realize accurate adjustment and accurate setting of the output power.

[0088] It should be noted that the power supply voltage can also be adjusted layer by layer. Taking the case that the power supply voltage is greater than the voltage signal as an example, the specific method is as follows: taking the middle voltage of the voltage signal and the power supply voltage, the middle voltage divides the voltage signal and the power supply voltage into two ranges, the first range is from the voltage signal to the middle voltage, and the second range is from the middle voltage to the power supply voltage. The middle voltage is set to the power supply voltage, and then the voltage signal is collected again. A new error value is calculated by using the voltage signal. It is judged whether the new error value is greater than the power threshold. In the case that the new error value is greater than the preset power threshold, the error value is divided by 2 after subtracting the power threshold to obtain a middle value. The updated error value is obtained by subtracting the middle value from the error value. Since the square of the voltage is proportional to the power, in the case that the error value is smaller, it 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 to be smaller. When the actual power is smaller than the set power, the voltage is adjusted to be larger. The new error value and the updated error value are compared. When the actual power is smaller than the set power, in the case that the updated error value is greater than the new error value, the middle voltage is selected from the second range again, and in the case that the updated error value is smaller than the new error value, the middle voltage is selected from the first range again. When the actual power is greater than the set power, in the case that the updated error value is greater than the new error value, the middle voltage is selected from the first range again, and in the case that the updated error value is smaller than the new error value, the middle voltage is selected from the second range again. The above process is continuously adjusted until the error value is smaller than or equal to the power threshold, and the adjustment of the power supply voltage is ended. In the case that the error value is smaller than or equal to the preset power threshold, the middle voltage is obtained as the power supply voltage. The above dichotomy method can reduce the adjustment times and quickly and accurately set the power.

[0089] In another embodiment, in the case that the impedance coefficient corresponding to the set frequency exists in the configuration file, before the voltage signal collected is obtained, the power automatic control method of the radio station further includes but is not limited to: obtaining the impedance coefficient in the configuration file; in the case that the impedance coefficient is equal to zero, multiplying the preset standard resistance value with the set power and taking the square root to obtain the power supply voltage.

[0090] In some possible embodiments of the present application, in the case that the impedance coefficient corresponding to the set frequency exists in the configuration file, it indicates that the set frequency has been used, and the power supply voltage can be directly set through the impedance coefficient. The impedance coefficient in the configuration file is obtained by using a preset reading function, which can be a read() function. In the case that the impedance coefficient is equal to zero, it indicates that there is no antenna load, and the power supply voltage is obtained by multiplying the preset standard resistance value with the set power and taking the square root. The preset standard resistance value is 50Ω, which is the output load of the power amplifier unit. In the case that 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 and setting the power supply voltage, accurate power output can be ensured.

[0091] In an embodiment, in the case that the radio station replaces the antenna or the index of the antenna changes, the power automatic control method of the radio station further includes but is not limited to: clearing the content of the configuration file, obtaining the set frequency, and performing the step of obtaining the collected voltage signal to re-learn autonomously.

[0092] In some possible embodiments of the present application, in the case that the radio station replaces the antenna or the index of the antenna changes, that is, there is an antenna load, and the resistance value of the antenna load changes, so that the impedance coefficients in the configuration file all change, and the content recorded in the configuration file cannot be used. The content of the configuration file is cleared by using a file content deletion function, then the set frequency of the radio station is obtained, the collected voltage signal is obtained, the actual power is calculated according to the voltage signal, and the impedance coefficient is calculated according to the actual power and the voltage signal, so that the load resistance value can be determined, the resistance value under the changed set frequency can be obtained, and the impedance coefficient is unchanged, so as to facilitate subsequent voltage adjustment; the actual power and the set power are calculated to obtain an error value, so as to facilitate subsequent reference of the error value for voltage adjustment; in the case that the error value is greater than a preset power threshold, the power supply voltage is adjusted according to the error value, 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 ended, 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. Through the above iteration, re-learn autonomously, so that after the antenna is replaced, when the set frequency that has been used is used again, the power supply voltage in the configuration file is directly read, and the power can be quickly and accurately set.

[0093] As Figure 5 shown, the power automatic control device 100 of the radio station provided by the embodiment of the application acquires the configuration file and the changed set frequency of the radio station 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, and the output power may need to be adjusted and learned subsequently. The acquired voltage signal is acquired first, so that the voltage signal is used for voltage adjustment subsequently, to realize accurate power output. Then the actual power is calculated according to the voltage signal by using the impedance calculation module 120, and the impedance coefficient is calculated according to the actual power and the voltage signal, which can determine the load resistance value, obtain the resistance value under the changed set frequency, and the impedance coefficient is constant, so that the voltage adjustment is performed subsequently. The error calculation module 130 is used to calculate the actual power and the set power, to obtain the error value, so that whether the voltage adjustment is performed subsequently is referred to the error value. Finally, the adjustment and writing module 140 is used to adjust the power voltage according to the error value in the case that the error value is greater than the preset power threshold 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 value, the adjustment of the power voltage is ended, and the set frequency, the power voltage corresponding to the set frequency and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power voltage is adjusted continuously, and the set frequency, the power voltage corresponding to the set frequency and the impedance coefficient corresponding to the set frequency are written into the configuration file. The power voltage is set through the above-mentioned self-learning, so that the power voltage is set quickly subsequently, and relatively accurate power can be output under the set frequency.

[0094] It should be noted that the data acquisition and collection module 110 is connected with the impedance calculation module 120, the impedance calculation module 120 is connected with the error calculation module 130, and the error calculation module 130 is connected with the adjustment and writing module 140. The power automatic control method of the radio station is applied to the power automatic control device 100 of the radio station. The power automatic control device 100 of the radio station can provide support for subsequent search and writing by acquiring the configuration file of the radio station and the changed set frequency. 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, and subsequent output power adjustment and learning may be needed. The acquired voltage signal is acquired first, so that the voltage adjustment is performed by using the voltage signal in the subsequent process to realize accurate power output. The actual power is calculated according to the voltage signal, and the impedance coefficient is calculated by using the actual power and the voltage signal, so that the load resistance value can be determined, the resistance value under the changed set frequency is obtained, and the impedance coefficient is unchanged, so that the voltage adjustment is performed in the subsequent process. The actual power and the set power are calculated to obtain the error value, so that whether the voltage adjustment is performed is determined by referring to the error value in the subsequent process. In the case that the error value is greater than the preset power threshold value, the power supply voltage is adjusted according to the error value, the voltage signal is collected according to the 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 value, the adjustment of the power supply voltage is ended, 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 by the above-mentioned self-learning, so that the power supply voltage is quickly set in the subsequent process. Under the set frequency, more accurate power can be output.

[0095] It should also be noted that the device provided in the above embodiments is only exemplified by the division of the above functional modules in realizing its functions. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0096] The application also discloses an electronic device. Referring to Figure 6 , Figure 6 is a structural schematic diagram of an electronic device according to an embodiment of the application. The electronic device 500 can 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.

[0097] The communication bus 502 is used to realize the connection and communication between the components.

[0098] The user interface 503 can include a display, a camera, and optionally a standard wired interface and a wireless interface.

[0099] The network interface 504 can optionally include a standard wired interface and a wireless interface (e.g., a WI-FI interface).

[0100] The processor 501 can include one or more processing cores. The processor 501 connects various parts of the server through various interfaces and lines, and performs various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 501 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU is mainly used to process an operating system, a user interface, and an application program. The GPU is used to render and draw the content to be displayed on the display. The modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 501, but can be implemented by a separate chip.

[0101] The memory 505 can include a random access memory (RAM) and a read-only memory (ROM). 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 can include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), and instructions for implementing the above-mentioned various method embodiments. The data storage area can store data involved in the above-mentioned various method embodiments. The memory 505 can optionally be at least one storage device located away from the above-mentioned processor 501.Figure 6 The memory 505, as a computer storage medium, can include an operating system, a network communication module, a user interface module, and an application program of the power automatic control method of the radio station.

[0102] In Figure 6 In the electronic device 500 shown in the figure, the user interface 503 is mainly used to provide an interface for the user to input, and obtain data input by the user; and the processor 501 can be used to call the application program of the power automatic control method of the radio station stored in the memory 505, and when executed by one or more processors 501, make the electronic device 500 execute the method of one or more of the above embodiments. It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all described as a combination of a series of actions, but those skilled in the art should know that the present application is not limited to the action sequence described, because according to the present application, certain steps can be performed in other sequences or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0103] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0104] In the several embodiments provided by the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic. The division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling or direct coupling or communication connection between the units can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical or other forms.

[0105] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0106] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The above integrated unit can be realized in the form of hardware, or in the form of a software functional unit.

[0107] If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned memory includes: a U disk, a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0108] The above are only exemplary embodiments of the present disclosure, and cannot limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and the practical true disclosure.

[0109] The present application is intended to cover any variations, uses or adaptive changes of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not described in the present disclosure. The specification and examples are only considered as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for automatically controlling the power of a radio station, characterized in that, The radio is connected with an antenna load, and the method comprises: obtaining a configuration file of the radio and a set frequency of change, obtaining a collected voltage signal in the case that there is no impedance coefficient corresponding to the set frequency in the configuration file; calculating an actual power according to the voltage signal, and calculating the impedance coefficient by using the actual power and the voltage signal, wherein the actual power is proportional to the square of the voltage signal, so that the impedance coefficient has a constant characteristic, and the actual power is obtained by coupling the voltage signal through a directional coupler; calculating an error value by comparing the actual power with a set power; in the case that the error value is greater than a preset power threshold, adjusting a power supply voltage according to the error value, collecting the voltage signal according to a preset sampling period, performing 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, ending the adjustment of the power supply voltage, and 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, wherein the configuration file is used to quickly obtain the power supply voltage corresponding to the set frequency without the need of adjusting the power supply voltage again; wherein the adjustment of the power supply voltage according to the error value comprises: selecting an initial voltage in the voltage signal and the power supply voltage range, and calculating a corresponding target function value based on the initial voltage and the error value; performing Gaussian fitting on the initial voltage and the target function value to obtain a probability distribution, and calculating an expectation and a variance of the probability distribution; determining an optimal voltage according to the expectation, the variance, the actual power and the set power, and taking the optimal voltage as the power supply voltage; the determination of the optimal voltage according to the expectation, the variance, the actual power and the set power comprises: calculating the expectation, the variance, the actual power and the set power by using a preset collection function, maximizing the value of the collection function, and obtaining the optimal voltage; the collection function is represented by the following formula: , wherein denotes the desired, denotes the variance, denotes the actual power, denotes the set power, denotes the minimum error, MAX() denotes a maximization function, denotes the cumulative distribution function of the standard normal distribution and denotes the probability density function of the standard normal distribution, denotes the optimal voltage, denotes the initial voltage.

2. The method of claim 1, wherein, the calculation of the corresponding target function value based on the initial voltage and the error value comprises: inputting the initial voltage and the error value into a preset efficiency calculation formula to obtain the target function value; The efficiency calculation formula is: , wherein, denotes the objective function value, denotes the error value, denotes the initial voltage.

3. The method of claim 1, wherein, in the case that there is the impedance coefficient corresponding to the set frequency in the configuration file, the method further comprises: obtaining the impedance coefficient in the configuration file; in the case that the impedance coefficient is equal to zero, multiplying a preset standard resistance value with the set power and taking the square root to obtain the power supply voltage.

4. The method of claim 1, wherein, the writing of 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 comprises: format-converting the set frequency to obtain a converted frequency; writing the converted frequency, the power supply voltage corresponding to the converted frequency and the impedance coefficient corresponding to the converted frequency into the configuration file.

5. The method of claim 1, wherein, In the case that the radio station changes the antenna or the index of the antenna, the method further comprises: clearing the content of the configuration file, obtaining a set frequency, and performing the steps of obtaining and collecting the voltage signal to re-learn autonomously.

6. A power automatic control device for a radio station, characterized by comprising: The radio station is connected with an antenna load, and the device comprises: a data obtaining and collecting module (110) configured to obtain a configuration file of the radio station and a set frequency to be changed, and obtain and collect a voltage signal in the case that there is no impedance coefficient corresponding to the set frequency in the configuration file; an impedance calculating module (120) configured to calculate an actual power according to the voltage signal, and calculate the impedance coefficient using the actual power and the voltage signal, wherein the actual power is proportional to the square of the voltage signal, so that the impedance coefficient has a constant characteristic, and the actual power is obtained by coupling the voltage signal through a directional coupler; an error calculating module (130) configured to calculate an error value by comparing the actual power with a set power; an adjusting and writing module (140) configured to adjust a power supply voltage according to the error value in the case that the error value is greater than a preset power threshold, collect the voltage signal according to a preset sampling period, perform 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, wherein the configuration file is used to quickly obtain the power supply voltage corresponding to the set frequency without the need to adjust the power supply voltage again; wherein the adjustment of the power supply voltage according to the error value comprises: selecting an initial voltage in the voltage signal and the power supply voltage range, and calculating a corresponding target function value based on the initial voltage and the error value; performing Gaussian fitting on the initial voltage and the target function value to obtain a probability distribution, and calculating an expectation and a variance of the probability distribution; determining an optimal voltage according to the expectation, the variance, the actual power, and the set power, and taking the optimal voltage as the power supply voltage; the determination of the optimal voltage according to the expectation, the variance, the actual power, and the set power comprises: calculating the expectation, the variance, the actual power, and the set power using a preset collection function, maximizing the value of the collection function, and obtaining the optimal voltage; and the collection function is represented by the following formula: , wherein denotes the desired, denotes the variance, denotes the actual power, denotes the set power, denotes the minimum error, MAX() denotes the maximization function, denotes the cumulative distribution function of the standard normal distribution and denotes the probability density function of the standard normal distribution, denotes the optimal voltage, denotes the initial voltage.

7. An electronic device, comprising: The electronic device (500) comprises a processor (501), a memory (505), a user interface (503), a communication bus (502) and a network interface (504), the processor (501), the memory (505), the user interface (503) and the network interface (504) are connected with the communication bus (502) respectively, the memory (505) is used for storing instructions, the user interface (503) and the network interface (504) are used for communicating with other devices, and the processor (501) is used for executing the instructions stored in the memory (505) to make the electronic device (500) execute the method in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores instructions, when the instructions are executed, the method in any one of claims 1-5 is executed.

Citation Information

Patent Citations

  • Parameter configuration method and device for simulation load and storage medium

    CN116299028A