Invention content
Based on this, it is necessary to be directed to the low problem of output power accuracy of power amplifier, provide a kind of power amplifier output power detection
Method, apparatus, computer equipment and storage medium.
A kind of power amplifier output power detection method, including:
The continuous time slot signal sampled point of first setting quantity is obtained by power amplifier output signal, obtains each time slot signal sampling
The corresponding output power of point;
From the time slot signal sampled point of the first setting quantity, the target of the highest second setting quantity of output power is obtained
Time slot signal sampled point;
The output power corresponding to target time slot signal sampling point for setting quantity according to described second, determines the defeated of power amplifier
Go out power.
The time slot signal sampled point of the first setting quantity is being obtained by power amplifier output signal in one of the embodiments,
Before step, further include:Continuous sampling is carried out to power amplifier output signal, obtains the signal sampling point of the first setting quantity;It determines
Power maximum value corresponding to the signal sampling point of the first setting quantity;It is adopted according to the power maximum value and each signal
The corresponding actual power of sampling point judges whether power amplifier output signal is time slot signal;If time slot signal, then jump to by power amplifier
Output signal obtains the step of time slot signal sampled point of the first setting quantity.
It is described according to the power maximum value and the corresponding practical work(of each signal sampling point in one of the embodiments,
Rate judges that the step of whether power amplifier output signal is time slot signal includes:It counts actual power and is less than the power maximum value
The quantity of the signal sampling point of half;If the actual power is less than the number of the signal sampling point of the half of the power maximum value
Amount, the accounting relative to the first setting quantity are more than setting ratio, it is determined that power amplifier output signal is time slot signal;It is described
The step of obtaining the time slot signal sampled point of the first setting quantity by power amplifier output signal include:Quantity is set by described first
Signal sampling point obtains the time slot signal sampled point of the first setting quantity.
Described the step of continuous sampling is carried out to power amplifier output signal in one of the embodiments, including:According to setting
Sampling rate continuous sampling is carried out to the output signal of the power amplifier;Wherein, the sampling rate need to meet condition:In single
There is at least three sampled point in the time slot signal duration.
It is described from the time slot signal sampled point of the first setting quantity in one of the embodiments, obtain output power
The step of target time slot signal sampling point of highest second setting quantity, including:The time slot letter for setting quantity by described first
The output power of number sampled point is compared, and the sampled point of wherein peak power output is obtained, as target time slot signal sampling
Point;The sampled point that peak power output is obtained from other time slot signal sampled points except target time slot signal sampling point, makees
For target time slot signal sampling point;And so on, until obtaining the target time slot signal sampling point of the second setting quantity.
It is described from the time slot signal sampled point of the first setting quantity in one of the embodiments, obtain output power
The step of target time slot signal sampling point of highest second setting quantity, including:The time slot letter for setting quantity by described first
Number sampled point is compared, and obtains the sampled point of wherein peak power output, the sampled point for recording the peak power output is
Target time slot sampled point, and record the output power of the target time slot sampled point, hereafter adopting the peak power output
The output power of sampling point is revised as setting value;The time slot signal sampled point pair that the setting value sets quantity no more than described first
The output power minimum value answered;Above step is repeated, until obtaining the second setting quantity target time slot sampled point and each target
The output power of slot samples point.
In one of the embodiments, corresponding to the target time slot signal sampling point for setting quantity according to described second
Output power, the step of determining the output power of power amplifier, including:The second setting quantity target time slot signal is calculated to adopt
The average output power of sampling point, using the average output power as the output power of power amplifier.
A kind of power amplifier output power detection device, including:
First output power acquisition module, the continuous time slot for obtaining the first setting quantity by power amplifier output signal are believed
Number sampled point, obtains the corresponding output power of each time slot signal sampled point;
Sampled point acquisition module, for from the time slot signal sampled point of the first setting quantity, obtaining output power highest
Second setting quantity target time slot signal sampling point;
Second output power acquisition module, the target time slot signal sampling point institute for setting quantity according to described second are right
The output power answered determines the output power of power amplifier.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device realizes following steps when executing the computer program:
The continuous time slot signal sampled point of first setting quantity is obtained by power amplifier output signal, each time slot signal is obtained and adopts
The corresponding output power of sampling point;
From the time slot signal sampled point of the first setting quantity, the target of the highest second setting quantity of output power is obtained
Time slot signal sampled point;
The output power corresponding to target time slot signal sampling point for setting quantity according to described second, determines the defeated of power amplifier
Go out power.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
The continuous time slot signal sampled point of first setting quantity is obtained by power amplifier output signal, each time slot signal is obtained and adopts
The corresponding output power of sampling point;
From the time slot signal sampled point of the first setting quantity, the target of the highest second setting quantity of output power is obtained
Time slot signal sampled point;
The output power corresponding to target time slot signal sampling point for setting quantity according to described second, determines the defeated of power amplifier
Go out power.
Above-mentioned power amplifier output power detection method, device, computer equipment and storage medium, from the output signal of power amplifier
After sampling time slot signal sampling point, by the comparison of the output power to time slot signal sampling point, wherein highest output work is obtained
Several target time slot signal sampling points of rate, and according to the output power of target time slot signal sampling point, power amplifier is calculated
Output power, to improve power amplifier output power obtain accuracy.
Specific implementation mode
It is below in conjunction with the accompanying drawings and preferably real further to illustrate the effect of the technological means and acquirement of the invention taken
Example is applied, to the technical solution of the embodiment of the present invention, carries out clear and complete description.
Power amplifier output power detection method provided by the present application, can be applied in application environment as shown in Figure 1, including
Signal detection apparatus 10 and power amplifier 20.Signal sampling equipment 10 with power amplifier 20 by connecting, the time slot signal of sampling power amplifier output,
And by the analysis of the time slot signal sampled point to acquisition, obtain the output power of power amplifier.
As shown in Fig. 2, Fig. 2 is the structural schematic diagram of the signal detection apparatus of an embodiment, including:Processor 110, signal
Input interface 120, memory 130.Processor 110 is one and is used for passing through signal detection for providing calculating and control ability
Basic arithmetic sum logical operation is come the hardware that executes program instructions in equipment.Signal input interface 120 is for inputting power amplifier
Output signal.Memory 130 is one for temporarily or permanently storing calculation procedure or data (for example, program state information)
Physical equipment.
As detailed above, signal detection apparatus can execute the specified operation of power amplifier output power sampling.Signal is examined
Measurement equipment 10 runs the form of software instruction in computer-readable medium to execute these operations by processor 110.It deposits
The software instruction of storage in memory 130 makes processor 110 execute above-mentioned localization method.In addition, by hardware circuit or
Person's hardware circuit combination software instruction also can equally realize the present invention.Therefore, realize that the present invention is not limited to any specific hardwares
The combination of circuit and software.
As shown in figure 3, Fig. 3 is a flow chart for implementing power amplifier output power detection method, include the following steps:
Step S31 obtains the continuous time slot signal sampled point of the first setting quantity, when obtaining each by power amplifier output signal
The corresponding output power of gap signal sampling point.
In above-mentioned steps, first sets quantity as the number of obtained time slot signal sampled point, and time slot signal sampled point is
In one section of power amplifier output signal, continuous sampling first sets quantity time and obtains, and each time slot signal sampled point has corresponding
Output power.
Step S32 obtains the highest second setting number of output power from the time slot signal sampled point of the first setting quantity
The target time slot signal sampling point of amount.
In above-mentioned steps, second sets quantity as the number of the target time slot signal sampling point obtained, and second sets quantity
Less than or equal to the first setting quantity.Wherein, target time slot signal sampling point is output power highest in time slot signal sampled point
Fractional-sample point.
Step S33, the output power corresponding to target time slot signal sampling point for setting quantity according to described second, determines
The output power of power amplifier.
Above-mentioned power amplifier output power detection method passes through after sampling time slot signal sampling point in the output signal of power amplifier
Comparison to the output power of time slot signal sampling point obtains several target time slot signal samplings of wherein maximum power output
Point, and according to the output power of target time slot signal sampling point, the output power of power amplifier is calculated, to improve power amplifier
The accuracy that output power obtains.
Further include before step S31 in one of the embodiments,:Continuous sampling is carried out to power amplifier output signal, is obtained
To the signal sampling point of the first setting quantity;Determine that the power corresponding to the signal sampling point of the first setting quantity is maximum
Value;According to the power maximum value and the corresponding actual power of each signal sampling point, judge power amplifier output signal whether when being
Gap signal;If time slot signal, then jumps to and the time slot signal sampled point of the first setting quantity is obtained by power amplifier output signal
Step.It should be noted that it is different according to the output power of signal, the output signal of power amplifier can be divided into time slot signal and point
Therefore frequency signal after being sampled to the output signal of power amplifier, is needed according to maximum output power in sampled point, to power amplifier
Output signal be detected.In addition, power maximum value is maximum output power in signal sampling point.According to power maximum
Value, is compared the output power of each signal sampling point, so that the number of the signal sampling point of established standards must be reached,
And then the number of the signal sampling point according to established standards, determine whether the output signal of power amplifier is time slot signal.
It is described according to the power maximum value and the corresponding practical work(of each signal sampling point in one of the embodiments,
Rate judges that the step of whether power amplifier output signal is time slot signal includes:It counts actual power and is less than the power maximum value
The quantity of the signal sampling point of half;If the actual power is less than the number of the signal sampling point of the half of the power maximum value
Amount, the accounting relative to the first setting quantity are more than setting ratio, it is determined that power amplifier output signal is time slot signal;It is described
The step of obtaining the time slot signal sampled point of the first setting quantity by power amplifier output signal include:Quantity is set by described first
Signal sampling point obtains the time slot signal sampled point of the first setting quantity.In the present embodiment, power maximum value counts on
Peak power output value in signal sampling point, by the power maximum value ratio of the actual power of each signal sampling point and half
Compared with, while counting quantity of the actual power less than the signal sampling point of a half-power maximum value.When actual power is less than half work(
The ratio of the quantity of the signal sampling point of rate maximum value and the first setting quantity, i.e. actual power are less than the power maximum value
Accounting of the quantity of the signal sampling point of half relative to the first setting quantity, is more than setting ratio, you can determine power amplifier
Output signal be time slot signal, otherwise determine power amplifier output signal be point-frequency signal.In general, when actual power is more than one
The quantity of the signal sampling point of half-power maximum value and the ratio of the first setting quantity are more than 20%, then it is believed that the output of power amplifier
Signal is time slot signal.For example, if 200 signal sampling points of acquisition, wherein actual power are more than the letter of a half-power maximum value
The quantity of number sampled point is 100, then actual power is less than the quantity of the signal sampling point of power maximum value half relative to institute
It states first and sets the accounting of quantity as 50%, be more than setting ratio 20%, it is determined that the output signal of power amplifier is time slot signal.
Fig. 4 is an embodiment power amplifier output power schematic diagram, as shown in figure 4, abscissa line indicates time, coordinate vertical pivot table
Show that output power, each cylindricality indicate that a time slot signal sampled point, two dotted lines in figure are corresponded to respectively in signal sampling point
A power maximum value Max and half-power maximum value Max/2.When the actual power of signal sampling point is more than a half-power maximum value
When, then the corresponding cylindrical height of signal sampling point is more than Max/2 dotted lines, such as signal sampling point C;When the reality of signal sampling point
When border power is less than a half-power maximum value, then the corresponding cylindrical height of signal sampling point is less than Max/2 dotted lines, such as signal
Sampled point B.In addition, point A indicates to start the signaling point of continuous sampling.
Described the step of continuous sampling is carried out to power amplifier output signal in one of the embodiments, including:According to setting
Sampling rate continuous sampling is carried out to the output signal of the power amplifier;Wherein, the sampling rate need to meet condition:In single
There is at least three sampled point in the time slot signal duration.It is 10 microseconds in view of the single time slot signal duration is most short, and wants
Signaling point 3 or more is acquired within each single time slot signal time, then needs ADC sample rates at least more than 300KSa/S.
It is described from the time slot signal sampled point of the first setting quantity in one of the embodiments, obtain output power
The step of target time slot signal sampling point of highest second setting quantity, including:The time slot letter for setting quantity by described first
The output power of number sampled point is compared, and the sampled point of wherein peak power output is obtained, as target time slot signal sampling
Point;The sampled point that peak power output is obtained from other time slot signal sampled points except target time slot signal sampling point, makees
For target time slot signal sampling point;And so on, until obtaining the target time slot signal sampling point of the second setting quantity.In this reality
It applies in example, after the sampled point for obtaining peak power output in time slot signal sampled point, continues to sample from remaining time slot signal
The sampled point of peak power output is obtained in point, and so on, until the quantity of the sampled point of the peak power output obtained
Reach the second setting quantity.
In another embodiment, described from the time slot signal sampled point of the first setting quantity, obtain output power most
The step of target time slot signal sampling point of the second high setting quantity, including:The time slot signal for setting quantity by described first
Sampled point is compared, and obtains the sampled point of wherein peak power output, and the sampled point for recording the peak power output is mesh
Slot samples point is marked, and records the output power of the target time slot sampled point, hereafter by the sampling of the peak power output
The output power of point is revised as setting value;The time slot signal sampled point that the setting value sets quantity no more than described first corresponds to
Output power minimum value;Above step is repeated, until when obtaining the second setting quantity target time slot sampled point and each target
The output power of gap sampled point.
For example, set quantity as 200 when first, second set quantity as 16 when, must from 200 time slot signal sampled points
Detailed process to the sampled point of 16 peak power outputs is as follows:
First, the 1st wheel compares:Any two sampled point in 200 time slot signal sampled points is compared, is exported
High-power sampled point;The sampled point of output power is continued to be compared with other time slot signal sampled points, and with this
Mode by 200 time slot signal sampled points it is completeer after, obtain maximum output power in 200 time slot signal sampled points, then
The first round compares end, and after maximum output power is recorded, the output power of its corresponding time slot signal sampled point is set as
Zero.
2nd wheel compares the mode according to the 1st wheel, obtains the 2nd maximum output power;3rd wheel compares according to the 1st wheel
Mode obtains the 3rd maximum output power;By this method, 16 wheels are carried out always to compare, obtain 16 maximum output works
Rate, therefore obtain the sampled point of 16 peak power outputs.
As shown in figure 5, Fig. 5 is the flow chart of another embodiment power amplifier output power detection method, include the following steps:
Step S51 obtains the continuous time slot signal sampled point of the first setting quantity, when obtaining each by power amplifier output signal
The corresponding output power of gap signal sampling point.
In above-mentioned steps, first sets quantity as the number of obtained time slot signal sampled point, and time slot signal sampled point is
In one section of power amplifier output signal, continuous sampling first sets quantity time and obtains, and each time slot signal sampled point has corresponding
Output power.
Step S52 obtains the highest second setting number of output power from the time slot signal sampled point of the first setting quantity
The target time slot signal sampling point of amount.
In above-mentioned steps, second sets quantity as the number of the target time slot signal sampling point obtained, and second sets quantity
Less than or equal to the first setting quantity.Wherein, target time slot signal sampling point is output power highest in time slot signal sampled point
Fractional-sample point.
Step S53 calculates the average output power of the second setting quantity target time slot signal sampling point, will be described
Output power of the average output power as power amplifier.
Above-mentioned power amplifier output power detection method passes through after sampling time slot signal sampling point in the output signal of power amplifier
Comparison to the output power of time slot signal sampling point obtains several target time slot signal samplings of wherein maximum power output
Point, and according to the output power of target time slot signal sampling point, the output power of power amplifier is calculated, to improve power amplifier
The accuracy that output power obtains.
As shown in fig. 6, Fig. 6 is the structural schematic diagram of an embodiment power amplifier output power sampling apparatus, including:
First output power acquisition module 610, for by power amplifier output signal obtain the first setting quantity it is continuous when
Gap signal sampling point obtains the corresponding output power of each time slot signal sampled point.
Wherein, first quantity is set as the number of obtained time slot signal sampled point, time slot signal sampled point is at one section
In power amplifier output signal, continuous sampling first sets quantity time and obtains, and each time slot signal sampled point has corresponding output work
Rate.
Sampled point acquisition module 620, for from the time slot signal sampled point of the first setting quantity, obtaining output power most
The target time slot signal sampling point of the second high setting quantity.
It should be noted that second sets quantity as the number of the target time slot signal sampling point obtained, wherein when target
Gap signal sampling point is the highest fractional-sample point of output power in time slot signal sampled point.Second setting quantity is less than or equal to
First setting quantity.
Second output power acquisition module 630, the target time slot signal sampling point for setting quantity according to described second
Corresponding output power calculates the output power of power amplifier.
Above-mentioned power amplifier output power sampling apparatus first passes through the first output power acquisition module 610 and believes from the output of power amplifier
In number after sampling time slot signal sampling point;Then by sampled point acquisition module 620, to the output power of time slot signal sampling point
Comparison, obtain several target time slot signal sampling points of wherein maximum power output;It is obtained finally by the second output power
The output power of power amplifier is calculated according to the output power of target time slot signal sampling point in modulus block 630, to improve work(
The accuracy that the output power put obtains.
Power amplifier output power sampling apparatus further includes data sampling module in one of the embodiments, for power amplifier
Output signal carries out continuous sampling, obtains the signal sampling point of the first setting quantity;Determine the signal of the first setting quantity
Power maximum value corresponding to sampled point;According to the power maximum value and the corresponding actual power of each signal sampling point, sentence
Whether disconnected power amplifier output signal is time slot signal;If time slot signal, then jumps to and the first setting is obtained by power amplifier output signal
The step of time slot signal sampled point of quantity.It should be noted that it is different according to the output power of signal, it can be by the defeated of power amplifier
Go out signal and be divided into time slot signal and point-frequency signal, therefore, after being sampled to the output signal of power amplifier, needs according in sampled point
Maximum output power is detected the output signal of power amplifier.In addition, power maximum value is maximum defeated in signal sampling point
Go out power.According to power maximum value, the output power of each signal sampling point is compared, to which established standards must be reached
Signal sampling point number, and then according to the number of the signal sampling of established standards point, determine power amplifier output signal whether
For time slot signal.
The data sampling module in one of the embodiments, it is maximum less than the power for counting actual power
The quantity of the signal sampling point of the half of value;If the actual power is less than the signal sampling point of the half of the power maximum value
Quantity, relative to it is described first setting quantity accounting be more than setting ratio, it is determined that power amplifier output signal be time slot signal;
Described the step of obtaining the time slot signal sampled point of the first setting quantity by power amplifier output signal includes:Number is set by described first
The signal sampling point of amount obtains the time slot signal sampled point of the first setting quantity.In the present embodiment, power maximum value is statistics
To signal sampling point in peak power output value, by the power maximum value of the actual power and half of each signal sampling point
Compare, while counting quantity of the actual power less than the signal sampling point of a half-power maximum value.When actual power is less than half
The ratio of the quantity of the signal sampling point of power maximum value and the first setting quantity, i.e. actual power are less than the power maximum value
Half signal sampling point quantity relative to it is described first setting quantity accounting, be more than setting ratio, you can determine work(
The output signal put is time slot signal, otherwise determines that the output signal of power amplifier is point-frequency signal.In general, when actual power is more than
The quantity of the signal sampling point of one half-power maximum value and the ratio of the first setting quantity are more than 20%, then are believed that the defeated of power amplifier
It is time slot signal to go out signal.For example, if 200 signal sampling points of acquisition, wherein actual power are more than a half-power maximum value
The quantity of signal sampling point be 100, then actual power be less than power maximum value half signal sampling point quantity relative to
Described first sets the accounting of quantity as 50%, is more than setting ratio 20%, it is determined that the output signal of power amplifier is time slot signal.
The data sampling module in one of the embodiments, is used for the sampling rate according to setting to the power amplifier
Output signal carry out continuous sampling;Wherein, the sampling rate need to meet condition:Have within the single time slot signal duration
At least three sampled point.It is 10 microseconds in view of the single time slot signal duration is most short, and will be in each single time slot signal
Interior acquisition signaling point 3 or more, then need ADC sample rates at least more than 300KSa/S.
The sampled point acquisition module 620 in one of the embodiments, the time slot for setting quantity by described first
The output power of signal sampling point is compared, and obtains the sampled point of wherein peak power output, is adopted as target time slot signal
Sampling point;The sampled point of peak power output is obtained from other time slot signal sampled points except target time slot signal sampling point,
As target time slot signal sampling point;And so on, until obtaining the target time slot signal sampling point of the second setting quantity.At this
In embodiment, after the sampled point for obtaining peak power output in time slot signal sampled point, continuation is adopted from remaining time slot signal
The sampled point of peak power output is obtained in sampling point, and so on, until the number of the sampled point of the peak power output obtained
Amount reaches the second setting quantity.
In another embodiment, the sampled point acquisition module 620, the time slot for setting quantity by described first are believed
Number sampled point is compared, and obtains the sampled point of wherein peak power output, the sampled point for recording the peak power output is
Target time slot sampled point, and record the output power of the target time slot sampled point, hereafter adopting the peak power output
The output power of sampling point is revised as setting value;The time slot signal sampled point pair that the setting value sets quantity no more than described first
The output power minimum value answered;Above step is repeated, until obtaining the second setting quantity target time slot sampled point and each target
The output power of slot samples point.
For example, set quantity as 200 when first, second set quantity as 16 when, must from 200 time slot signal sampled points
Detailed process to the sampled point of 16 peak power outputs is as follows:
First, the 1st wheel compares:Any two sampled point in 200 time slot signal sampled points is compared, is exported
High-power sampled point;The sampled point of output power is continued to be compared with other time slot signal sampled points, and with this
Mode by 200 time slot signal sampled points it is completeer after, obtain maximum output power in 200 time slot signal sampled points, then
The first round compares end, and after maximum output power is recorded, the output power of its corresponding time slot signal sampled point is set as
Zero.
2nd wheel compares the mode according to the 1st wheel, obtains the 2nd maximum output power;3rd wheel compares according to the 1st wheel
Mode obtains the 3rd maximum output power;By this method, 16 wheels are carried out always to compare, obtain 16 maximum output works
Rate, therefore obtain the sampled point of 16 peak power outputs.
Second output power acquisition module 630 in one of the embodiments, for calculating the second setting number
The average output power of amount target time slot signal sampling point, using the average output power as the output power of power amplifier.
Specific restriction about power amplifier output power sampling apparatus may refer to sample above for power amplifier output power
The restriction of method, details are not described herein.Modules in above-mentioned power amplifier output power sampling apparatus can be fully or partially through
Software, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in or in the form of hardware independently of the place in computer equipment
It manages in device, can also in a software form be stored in the memory in computer equipment, in order to which processor calls execution or more
The corresponding operation of modules.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 7.The computer equipment includes processor, memory and the network interface connected by system bus.
Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non-easy
The property lost storage medium, built-in storage.The non-volatile memory medium is stored with operating system and computer program.The built-in storage
Operation for operating system and computer program in non-volatile memory medium provides environment.The network of the computer equipment connects
Mouth with external terminal by network connection for being communicated.To realize that a kind of power amplifier is defeated when the computer program is executed by processor
Go out power detecting method.
It will be understood by those skilled in the art that structure shown in Fig. 7, is only tied with the relevant part of application scheme
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
May include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
A kind of computer equipment, including memory and processor are provided in one of the embodiments, are deposited in memory
Computer program is contained, which realizes following steps when executing computer program:First is obtained by power amplifier output signal to set
The continuous slot signal sampling point of fixed number amount, obtains the corresponding output power of each time slot signal sampled point;From the first setting quantity
Time slot signal sampled point in, obtain output power it is highest second setting quantity target time slot signal sampling point;According to institute
The output power corresponding to the target time slot signal sampling point of the second setting quantity is stated, determines the output power of power amplifier.
Following steps are also realized when processor executes computer program in one of the embodiments,:Power amplifier is exported and is believed
Number carry out continuous sampling, obtain the signal sampling point of the first setting quantity;Determine the signal sampling point of the first setting quantity
Corresponding power maximum value;According to the power maximum value and the corresponding actual power of each signal sampling point, power amplifier is judged
Whether output signal is time slot signal;If time slot signal, then jumps to and the first setting quantity is obtained by power amplifier output signal
The step of time slot signal sampled point.
Following steps are also realized when processor executes computer program in one of the embodiments,:Count actual power
Less than the quantity of the signal sampling point of the half of the power maximum value;If the actual power is less than the power maximum value
The quantity of the signal sampling point of half, the accounting relative to the first setting quantity are more than setting ratio, it is determined that power amplifier is defeated
It is time slot signal to go out signal;Described the step of obtaining the time slot signal sampled point of the first setting quantity by power amplifier output signal, wraps
It includes:The signal sampling point that quantity is set by described first obtains the time slot signal sampled point of the first setting quantity.
Following steps are also realized when processor executes computer program in one of the embodiments,:According to adopting for setting
Sample rate carries out continuous sampling to the output signal of the power amplifier;Wherein, the sampling rate need to meet condition:In single time slot
There is at least three sampled point in signal duration.
Following steps are also realized when processor executes computer program in one of the embodiments,:Described first is set
The output power of the time slot signal sampled point of fixed number amount is compared, and the sampled point of wherein peak power output is obtained, as mesh
Mark time slot signal sampled point;Maximum work output is obtained from other time slot signal sampled points except target time slot signal sampling point
The sampled point of rate, as target time slot signal sampling point;And so on, until obtaining the target time slot signal of the second setting quantity
Sampled point.
Following steps are also realized when processor executes computer program in one of the embodiments,:Described first is set
The time slot signal sampled point of fixed number amount is compared, and obtains the sampled point of wherein peak power output, records the maximum output
The sampled point of power is target time slot sampled point, and records the output power of the target time slot sampled point, hereafter by described in most
The output power of the sampled point of big output power is revised as setting value;The setting value no more than it is described first set quantity when
The corresponding output power minimum value of gap signal sampling point;Above step is repeated, until obtaining the second setting quantity target time slot
The output power of sampled point and each target time slot sampled point.
Following steps are also realized when processor executes computer program in one of the embodiments,:Calculate described second
The average output power for setting quantity target time slot signal sampling point, using the average output power as the output work of power amplifier
Rate.
A kind of computer readable storage medium is provided in one of the embodiments, is stored thereon with computer program,
Following steps are realized when computer program is executed by processor:By power amplifier output signal obtain the first setting quantity it is continuous when
Gap signal sampling point obtains the corresponding output power of each time slot signal sampled point;From the time slot signal sampling of the first setting quantity
In point, the target time slot signal sampling point of the highest second setting quantity of output power is obtained;Quantity is set according to described second
Target time slot signal sampling point corresponding to output power, determine the output power of power amplifier.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Power amplifier is exported
Signal carries out continuous sampling, obtains the signal sampling point of the first setting quantity;Determine the signal sampling of the first setting quantity
The corresponding power maximum value of point;According to the power maximum value and the corresponding actual power of each signal sampling point, work(is judged
Put whether output signal is time slot signal;If time slot signal, then jumps to and the first setting quantity is obtained by power amplifier output signal
Time slot signal sampled point the step of.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:The practical work(of statistics
Rate is less than the quantity of the signal sampling point of the half of the power maximum value;If the actual power is less than the power maximum value
Half signal sampling point quantity, relative to it is described first setting quantity accounting be more than setting ratio, it is determined that power amplifier
Output signal is time slot signal;Described the step of obtaining the time slot signal sampled point of the first setting quantity by power amplifier output signal, wraps
It includes:The signal sampling point that quantity is set by described first obtains the time slot signal sampled point of the first setting quantity.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:According to setting
Sampling rate carries out continuous sampling to the output signal of the power amplifier;Wherein, the sampling rate need to meet condition:In single
There is at least three sampled point in gap signal duration.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:By described first
The output power for setting the time slot signal sampled point of quantity is compared, and obtains the sampled point of wherein peak power output, as
Target time slot signal sampling point;Maximum output is obtained from other time slot signal sampled points except target time slot signal sampling point
The sampled point of power, as target time slot signal sampling point;And so on, the target time slot until obtaining the second setting quantity is believed
Number sampled point.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:By described first
The time slot signal sampled point of setting quantity is compared, and obtains the sampled point of wherein peak power output, it is defeated to record the maximum
The sampled point for going out power is target time slot sampled point, and records the output power of the target time slot sampled point, hereafter will be described
The output power of the sampled point of peak power output is revised as setting value;The setting value sets quantity no more than described first
The corresponding output power minimum value of time slot signal sampled point;Above step is repeated, until when obtaining the second setting quantity target
The output power of gap sampled point and each target time slot sampled point.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Calculate described
The average output power of 2 setting quantity target time slot signal sampling points, using the average output power as the output of power amplifier
Power.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein,
Any reference to memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.