Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 schematically illustrates a structure of a detection range expansion device for a power detector according to an embodiment of the present invention.
As shown in fig. 1, the power detector detection range expansion device 100 includes: a detection range extension unit 110, a power detector 120, and a monitoring unit 130. The detection range expansion unit 110 includes an input terminal 111, an attenuation unit 112, a gain unit 113, an output terminal 114, and an adjustment terminal 115. The detection range expansion unit 110 is configured to adjust the power of the input signal to be detected.
As shown in fig. 1, an input terminal 111 of the detection range expansion unit 110 is configured to receive a signal to be detected; the output end 114 is connected with the input end 121 of the power detector 120 and is used for outputting the adjusted signal to be detected; the adjusting terminal 115 is connected to the output terminal 132 of the monitoring unit 130, and is used for adjusting the preset variation of the detection range expansion unit 110 under the control of the monitoring unit 130. An attenuation unit 112 and a gain unit 113 in the detection range expansion unit 110 are connected in series, the attenuation unit 112 being configured to generate attenuation of a first variation; the gain unit 113 is configured to generate a gain of a second variation; the preset variation amount generated by the detection range expansion unit 110 is a difference between the first variation amount and the second variation amount. The connection order of the attenuation unit 112 and the gain unit 113 connected in series in the embodiment of the present invention is not limited, that is, the connection order of each component in the detection range expansion unit 110 may be: the input 111 as shown in fig. 1 may be connected to an attenuation unit 112 and the output 114 to a gain unit 113; the gain unit 113 may be connected to the input terminal 111, and the attenuation unit 112 may be connected to the output terminal 114.
The input end 121 of the power detector 120 is connected to the output end 114 of the detection range expansion unit 110, the output end 122 is connected to the input end 131 of the monitoring unit 130, and the power detector 120 is configured to detect the power of the adjusted signal to be detected to obtain a power detection result.
An input end 131 of the monitoring unit 130 is connected to the output end 122 of the power detector 120, an output end 132 is connected to the adjustment end 115 of the detection range expansion unit 110, and the monitoring unit 130 is configured to: and according to the power detection result, if the power of the signal to be detected after adjustment is determined not to be in the detection range of the power detector, adjusting the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit.
Optionally, the power detector detection range extension device 100 further includes a temperature detection unit 140 connected to the output 122 of the power detector 120 and the input 131 of the monitoring unit 130, respectively. The temperature detecting unit 140 is used for monitoring the detected temperature of the power detector 120 and transmitting the detected temperature to the monitoring unit 130.
Based on the power detector detection range expansion device shown in fig. 1, the embodiment of the invention provides the following power detector detection range expansion method.
Fig. 2 is a schematic flow chart illustrating a detection range expansion method of a power detector according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step 201: the detection range expansion unit adjusts the power of the input signal to be detected to obtain an adjusted signal to be detected, and outputs the adjusted signal to be detected to the power detector; the detection range expansion unit comprises an attenuation unit and a gain unit which are connected in series; the attenuation unit is used for generating attenuation of a first variation amount of the power of the signal to be detected; the gain unit is used for generating gain of a second variation amount of the power of the signal to be detected;
Step 202: the power detector detects the power of the adjusted signal to be detected to obtain a power detection result;
step 203: the monitoring unit determines that the power of the signal to be detected after adjustment is not in the detection range of the power detector according to the power detection result, and adjusts the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit; the preset variation is a difference between the first variation and the second variation.
In the embodiment of the invention, a detection range expansion unit adjusts the power of an input signal to be detected to obtain an adjusted signal to be detected, and outputs the adjusted signal to be detected to a power detector; the power detector detects the power of the adjusted signal to be detected to obtain a power detection result; and the monitoring unit determines that the power of the signal to be detected after adjustment is not in the detection range of the power detector according to the power detection result, and adjusts the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit. Since the detection range expansion unit includes an attenuation unit and a gain unit connected in series; in one aspect, the attenuation unit is configured to attenuate the power of the signal to be detected by a first amount of variation, so that the power detector can detect the power of the signal to be detected lower than the minimum detection limit, and further can expand the upper limit of the dynamic detection range of the power detector. On the other hand, the gain unit is used for generating the gain of the second variation amount of the power of the signal to be detected, so that the power detector can detect the power of the signal to be detected higher than the maximum detection limit, and further the upper limit of the dynamic detection range of the power detector can be expanded. Therefore, the upper and lower limits of the dynamic detection range of the power detector can be effectively expanded.
In the embodiment of the invention, the attenuation unit is used for generating attenuation of a first variation amount of the power of the signal to be detected, and the gain unit is used for generating gain of a second variation amount of the power of the signal to be detected. In an alternative embodiment, the attenuation unit is a digital attenuator and the gain unit is a low noise power amplifier. The first variation of the digital attenuator is adjustable, typically in the range of-30 to 0dBm. The gain of the second variation of the low noise power amplifier is a fixed value, and the specific value is generally 20dB according to the manufacturing process of the low noise power amplifier.
In the embodiment of the invention, the preset variable quantity of the detection unit expansion unit is obtained by the first variable quantity of the attenuation unit and the second variable quantity of the gain unit. The first variable quantity is the attenuation value of the attenuation unit, the second variable quantity is the gain value of the gain unit, and the preset variable quantity is the difference between the first variable quantity and the second variable quantity. For example, the first variation is X, the second variation is Y, and the preset variation is (-x+y). The determination of the preset variation is mainly divided into the following three cases:
in the first case, if the first variation is greater than the second variation, the attenuation of the signal to be detected by the detection range expansion unit is greater than the gain, that is, after the detection range expansion unit adjusts the power of the signal to be detected, the obtained adjusted power of the signal to be detected generates the attenuation of the preset variation compared with the power before adjustment. For example, if the first variation is 30 and the second variation is 20, the preset variation is-10, that is, the power of the signal to be detected after adjustment is attenuated by 10dB compared with the power before adjustment.
In the second case, if the first variation is equal to the second variation, the attenuation of the signal to be detected by the detection range expansion unit is equal to the gain, that is, the power of the signal to be detected after adjustment is the same as that before adjustment.
In the third case, if the first variation is smaller than the second variation, the gain of the signal to be detected by the detection range expansion unit is greater than the attenuation, that is, after the detection range expansion unit adjusts the power of the signal to be detected, the obtained power of the adjusted signal to be detected generates a gain of a preset variation compared with the gain before adjustment. For example, if the first variation is 10 and the second variation is 20, the preset variation is 10, that is, the power of the signal to be detected after adjustment is 10dB compared with the gain before adjustment.
The detection range extension method in the embodiment of the invention is applicable to power detectors with various detection ranges, and is not specific to the detection range. The detection range of the power detector is related to the manufacturing process, for example, the detection range is-50 to-20 dBm, the maximum detection limit in the detection range is-20 dBm, and the minimum detection limit is-50 dBm.
In the embodiment of the present invention, after the power detector detects the power of the adjusted signal to be detected to obtain the power detection result, the power detector mainly includes the following two optional embodiments:
In a first alternative embodiment, if the monitoring unit determines that the power of the adjusted signal to be detected is not within the detection range of the power detector according to the power detection result, the first variable quantity of the attenuation unit is adjusted, and the preset variable quantity of the detection range expansion unit is adjusted, so that the power of the adjusted signal to be detected is within the detection range of the power detector, and further the power of the signal to be detected is determined. Optionally, the first variable amount of the damping unit may be adjusted in a plurality of ways, and may be adjusted by a random value, or may be set to a fixed adjustment value, where the specific value is not limited herein, for example, 5 each time.
In a second alternative embodiment, if the monitoring unit determines that the power of the adjusted signal to be detected is within the detection range of the power detector according to the power detection result, the power of the signal to be detected is determined according to the power of the adjusted signal to be detected, the first variation and the second variation. In the embodiment of the invention, if the power of the signal to be detected after adjustment is within the detection range of the power detector, the power detector can directly output the power of the signal to be detected after adjustment, and the power of the signal to be detected can be accurately determined according to the power of the signal to be detected after adjustment, the first variation and the second variation.
For the first alternative embodiment, the adjusting the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit mainly includes the following two cases:
in the first case, if the monitoring unit determines that the power of the signal to be detected after adjustment is smaller than the minimum detection limit of the detection range of the power detector according to the power detection result, the first variation of the attenuation unit is regulated down until the preset variation of the detection range expansion unit meets a first preset condition; the first preset condition comprises: the difference between the power of the signal to be detected and the preset variation is greater than or equal to the minimum detection limit.
For example, the detection range of the power detector is-50 to-20 dBm, the first variation of the attenuation unit is 20, the second variation of the gain unit is 20, the power of the signal to be detected is-60 dBm, and the power is smaller than the minimum detection limit of the power detector of-50 dBm. And then, the first variation of the attenuation unit is regulated down to 10 under the control of the monitoring unit, the second variation is still 20, the preset variation of the detection range expansion unit is 10dBm, the power of the signal to be detected is-50 dBm after the adjustment of the detection range expansion unit, and the signal to be detected is within the detection range of the power detector.
In the first case, if it is determined that the power of the adjusted signal to be detected is smaller than the minimum detection limit of the detection range of the power detector, the first variation of the attenuation unit is reduced until the power of the adjusted signal to be detected is greater than or equal to the minimum detection limit, so that the power detector can detect the power of the signal to be detected lower than the minimum detection limit, and further the lower limit of the dynamic detection range of the power detector can be extended.
In the second case, if the monitoring unit determines that the power of the signal to be detected after adjustment is greater than the maximum detection limit of the detection range of the power detector according to the power detection result, the first variation of the attenuation unit is regulated until the preset variation of the detection range expansion unit meets a second preset condition; wherein the second preset condition includes: the difference between the power of the signal to be detected and the preset variation is equal to the maximum detection limit.
For example, the detection range of the power detector is-50 to-20 dBm, the first variation of the attenuation unit is-20, the second variation of the gain unit is 20, the power of the signal to be detected is-10 dBm, and the power is larger than the minimum detection limit of the power detector and is-50 dBm. And then, the first variable quantity of the attenuation unit is regulated to 30 under the control of the monitoring unit, the second variable quantity is still 20, the preset variable quantity of the detection range expansion unit is minus 10dBm, the power of the signal to be detected after adjustment is minus 20dBm, and the signal to be detected is within the detection range of the power detector.
In the second case, if it is determined that the power of the adjusted signal to be detected is greater than the maximum detection limit of the detection range of the power detector, the first variation of the attenuation unit is increased until the power of the adjusted signal to be detected is less than or equal to the maximum detection limit, so that the power detector can detect the power of the signal to be detected higher than the maximum detection limit, and further the upper limit of the dynamic detection range of the power detector can be extended.
Optionally, the attenuation unit in the above embodiment includes at least one digital attenuator. In the embodiment of the present invention, there are various ways to adjust the first variation of the attenuation unit.
An alternative implementation is that the attenuation unit comprises a digital attenuator and the gain unit comprises a low noise power amplifier, the initial value of the first variation being set to an intermediate value of the adjustable range of the digital attenuator or the initial value of the first variation being set to be the same as the second variation. The intermediate value may be any value other than the maximum value and the minimum value of the adjustable range. Under the condition that the power of the signal to be detected after adjustment is larger than the maximum detection limit of the detection range of the power detector, the first variation of the digital attenuator is increased; and under the condition that the power of the signal to be detected after adjustment is smaller than the minimum detection limit of the detection range of the power detector, reducing the first variation of the digital attenuator. Under the combined action of the digital attenuator and the low-noise power amplifier, the effect of adjusting the preset variation of the detection range expansion unit is achieved.
In another alternative implementation manner, the attenuation unit comprises a first attenuation unit and a second attenuation unit; the first attenuation unit comprises at least one digital attenuator and the second attenuation unit comprises at least one digital attenuator. Before the detection range expansion unit adjusts the power of the input signal to be detected to obtain an adjusted signal to be detected and outputs the adjusted signal to be detected to the power detector, the method further comprises: setting an initial value of an attenuation amount of the first attenuation unit to a maximum attenuation value; an initial value of the attenuation amount of the second attenuation unit is set to a minimum attenuation value. Optionally, the monitoring unit determines, according to the power detection result, that the power of the adjusted signal to be detected is not within the detection range of the power detector, and adjusts the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit, where the two cases include:
in the first case, if the monitoring unit determines that the power of the signal to be detected after adjustment is smaller than the minimum detection limit of the detection range of the power detector according to the power detection result, the attenuation amount of the first attenuation unit is sequentially reduced according to the attenuation amount of the first attenuation unit and a preset attenuation value included in a first preset attenuation sequence until the preset variation amount of the detection range expansion unit meets a first preset condition; the first preset condition comprises: the difference between the power of the signal to be detected and the preset variation is greater than or equal to the minimum detection limit.
For example, the detection range of the power detector is-50 to-20 dBm, the attenuation amount of the first attenuation unit is set to 30, the attenuation amount of the second attenuation unit is set to 0, the second variation amount of the gain unit is set to 20, and the preset attenuation values included in the first preset attenuation sequence are 30, 20, 10 and 0; the power of the signal to be detected is-70 dBm, which is less than the minimum detection limit of the power detector, namely-50 dBm. The power of the signal to be detected is-80 dBm after being adjusted by the detection range expansion unit, and is smaller than the minimum detection limit; then the attenuation of the first attenuation unit is reduced to 20 under the control of the monitoring unit, and the power after adjustment is-70 dBm; then the attenuation amount of the first attenuation unit is regulated down to 10, and the regulated power is-60 dBm and still smaller than the minimum detection limit; and then the attenuation amount of the first attenuation unit is regulated down to 0, and the regulated power is-50 dBm at the moment and is within the detection range of the power detector.
In the embodiment of the present invention, the preset attenuation values included in the first preset attenuation sequence are preset attenuation values arranged from large to small. Alternatively, the preset attenuation values included in the first preset attenuation sequence may be preset attenuation values at fixed difference intervals, e.g. 30, 20, 10, 0; the specific fixed difference value can be any value, such as 5, 10, etc., and can be set according to actual needs. The preset attenuation values included in the first preset attenuation sequence may also be other than preset attenuation values of a fixed difference interval, e.g. set to 30, 25, 15, 8, 0.
If the power of the signal to be detected after adjustment is determined to be larger than the maximum detection limit of the detection range of the power detector, sequentially increasing the attenuation amount of the second attenuation unit according to the attenuation amount of the second attenuation unit and a preset attenuation value included in a second preset attenuation sequence until the preset variation amount of the detection range expansion unit meets a second preset condition; the second preset condition includes: the difference between the power of the signal to be detected and the preset variation is smaller than or equal to the maximum detection limit.
For example, the detection range of the power detector is-50 to-20 dBm, the attenuation amount of the first attenuation unit is set to 30, the attenuation amount of the second attenuation unit is set to 0, the second variation amount of the gain unit is set to 20, and the preset attenuation values included in the first preset attenuation sequence are 0, 10, 20 and 30; the power of the signal to be detected is 10dBm and is larger than the maximum detection limit of the power detector by-20 dBm. The power of the signal to be detected is-0 dBm after being adjusted by the detection range expansion unit and is larger than the maximum detection limit; then the attenuation of the second attenuation unit is regulated to 10 under the control of the monitoring unit, and the regulated power is-10 dBm; and then reducing the attenuation of the first attenuation unit to 20, wherein the adjusted power is-20 dBm, and the power is within the detection range of the power detector.
In the embodiment of the present invention, the preset attenuation values included in the second preset attenuation sequence are preset attenuation values arranged from small to large. Alternatively, the preset attenuation values included in the second preset attenuation sequence may be preset attenuation values at fixed difference intervals, e.g. 0, 10, 20, 30; the specific fixed difference value can be any value, such as 5, 10, etc., and can be set according to actual needs. The preset attenuation values included in the second preset attenuation sequence may also be other than preset attenuation values of a fixed difference interval, e.g. set to 30, 25, 15, 8, 0.
In the above embodiment, the number of the digital attenuators and the low noise power amplifiers included in the detection range expansion unit may be the same or different. Optionally, the digital attenuator and the low noise power amplifier are spaced in series.
In the embodiment of the present invention, before determining the power of the signal to be detected according to the adjusted power of the signal to be detected, the first variation and the second variation, the method further includes: monitoring the detection temperature of the power detector by a temperature detection unit; determining the power of the signal to be detected according to the adjusted power of the signal to be detected, the first variation and the second variation, including: if the monitoring unit determines that the detected temperature is not within the normal temperature range, the monitoring unit: according to the corresponding relation between the temperature and the compensation power and the detected temperature, determining the compensation power corresponding to the detected temperature through a monitoring unit; and determining the power of the signal to be detected according to the compensation power corresponding to the detection temperature, the power of the adjusted signal to be detected, the first variation and the second variation. Therefore, the power detected by the power detector at the detection temperature is compensated according to the corresponding relation between the temperature and the compensation power by taking the condition that the power detector detects the temperature change when detecting the low-multiple power amplifier into consideration, and the accuracy of the determined power of the signal to be detected can be improved.
In the embodiment of the invention, after the adjusted signal to be detected enters the power detector, the power of the adjusted signal to be detected is determined by monitoring the detection voltage of the power detector. For example, setting a corresponding relation between power and voltage, and determining the power corresponding to the detection voltage according to the detection voltage as the power of the adjusted signal to be detected.
In order to more clearly describe the detection range extension method of the power detector, the attenuation unit includes two digital attenuators, and the gain unit includes two low noise amplifiers is described below as an example.
Fig. 3 schematically illustrates another exemplary detection range expansion device for a power detector according to an embodiment of the present invention.
As shown in fig. 3, the power detector detection range extension apparatus 300 includes a detection range extension unit 310, a power detector 320, a processor 330, and a temperature detector 340. The detection range expansion unit 310 includes a first-stage digital attenuator 311, a first-stage low noise power amplifier 312, a second-stage digital attenuator 313, and a second-stage low noise power amplifier 314.
Based on fig. 3, fig. 4 illustrates another detection range expansion method of the power detector according to an embodiment of the present invention. As shown in fig. 4, the method comprises the steps of:
Step 401: setting the initial value of the attenuation quantity of the first-stage digital attenuator as the maximum attenuation quantity X, and setting the initial value of the attenuation quantity of the second-stage digital attenuator as the maximum attenuation quantity 0;
step 402: the signal to be detected is input from the first-stage digital attenuator, and after passing through the first-stage low-noise power amplifier, the second-stage digital attenuator and the second-stage low-noise power amplifier, an adjusted signal to be detected is obtained, and the adjusted signal to be detected is output to the power detector;
step 403: the power detector detects the power of the adjusted signal to be detected to obtain a power detection result, and outputs the power detection result to the processor;
step 404: the processor reads the detection voltage of the power detector and judges whether the detection voltage is in a normal value range or not; if yes, go to step 405; if not, go to step 406;
step 405: the processor determines the power of the signal to be detected according to the power detection result, the attenuation amount of the first digital attenuator, the attenuation amount of the second digital attenuator, the gain of the first-stage low-noise power amplifier, the gain of the second-stage low-noise power amplifier and the sum power compensation value;
step 406: the processor determines whether the detection voltage is greater than a maximum detection limit of the power detector; if yes, go to step 407; if not, go to step 411;
Step 407: the current attenuation of the second-level digital attenuator is increased by 10dB;
step 408: the processor reads the detection voltage of the power detector and judges whether the detection voltage is in a normal value range or not; if yes, go to step 413; if not, go to step 409;
step 409: whether the current attenuation of the second-stage digital attenuator is adjusted to a maximum value X; if yes, go to step 410; if not, go to step 407;
step 410: the prompt power is too high and exceeds the detection range; then, the process is finished;
step 411: the current attenuation of the first digital attenuator is reduced by 10dB;
step 412: the processor reads the detection voltage of the power detector and judges whether the detection voltage is in a normal value range or not; if yes, go to step 413; if not, go to step 414;
step 413: the processor determines the power of the signal to be detected according to the power detection result, the current attenuation amount of the first digital attenuator, the current attenuation amount of the second digital attenuator, the gain of the first-stage low-noise power amplifier, the gain of the second-stage low-noise power amplifier and the sum power compensation value;
step 414: whether the current attenuation of the second-stage digital attenuator is adjusted to a minimum value X; if yes, go to step 415; if not, go to step 411;
Step 415: the prompt power is too low and exceeds the detection range; after that, it ends.
Based on the same concept, the embodiment of the present invention provides a detection range extension device for a power detector, which is configured to execute the above-mentioned method flow, and possible structural schematic diagrams of the detection range extension device for a power detector provided by the embodiment of the present invention are shown in any one or any more of fig. 1 and fig. 3. As shown in the above figures, the power detector detection range expansion device includes a power detector, a detection range expansion unit, and a monitoring unit.
The input end of the detection range expansion unit is used for receiving a signal to be detected; the output end is connected with the power detector and is used for outputting the adjusted signal to be detected; the adjusting end is connected with the monitoring unit and is used for adjusting the preset variation of the detection range expansion unit under the control of the monitoring unit;
the detection range expansion unit comprises an attenuation unit and a gain unit which are connected in series and is used for adjusting the power of an input signal to be detected; the attenuation unit is used for generating attenuation of the first variation; the gain unit is used for generating gain of the second variation; the preset variable quantity is the difference value between the first variable quantity and the second variable quantity;
The input end of the power detector is connected with the output end of the detection range expansion unit, the output end of the power detector is connected with the input end of the monitoring unit, and the power detector is used for detecting the power of the adjusted signal to be detected to obtain a power detection result;
the input end of the monitoring unit is connected with the output end of the power detector, and the output end of the monitoring unit is connected with the adjusting end of the detection range expansion unit;
the monitoring unit is used for: and according to the power detection result, if the power of the signal to be detected after adjustment is determined not to be in the detection range of the power detector, adjusting the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit.
In the embodiment of the invention, a detection range expansion unit adjusts the power of an input signal to be detected to obtain an adjusted signal to be detected, and outputs the adjusted signal to be detected to a power detector; the power detector detects the power of the adjusted signal to be detected to obtain a power detection result; and the monitoring unit determines that the power of the signal to be detected after adjustment is not in the detection range of the power detector according to the power detection result, and adjusts the preset variation of the detection range expansion unit by adjusting the first variation of the attenuation unit. Since the detection range expansion unit includes an attenuation unit and a gain unit connected in series; in one aspect, the attenuation unit is configured to attenuate the power of the signal to be detected by a first amount of variation, so that the power detector can detect the power of the signal to be detected lower than the minimum detection limit, and further can expand the upper limit of the dynamic detection range of the power detector. On the other hand, the gain unit is used for generating the gain of the second variation amount of the power of the signal to be detected, so that the power detector can detect the power of the signal to be detected higher than the maximum detection limit, and further the upper limit of the dynamic detection range of the power detector can be expanded. Therefore, the upper and lower limits of the dynamic detection range of the power detector can be effectively expanded.
Optionally, the monitoring unit is configured to: according to the power detection result, if the power of the signal to be detected after adjustment is determined to be smaller than the minimum detection limit of the detection range of the power detector, the first variation of the attenuation unit is regulated down until the preset variation of the detection range expansion unit meets a first preset condition; the first preset condition comprises: the difference between the power of the signal to be detected and the preset variation is greater than or equal to the minimum detection limit; or, according to the power detection result, if the power of the signal to be detected after adjustment is determined to be greater than the maximum detection limit of the detection range of the power detector, the first variation of the attenuation unit is regulated until the preset variation of the detection range expansion unit meets the second preset condition; wherein the second preset condition includes: the difference between the power of the signal to be detected and the preset variation is smaller than or equal to the maximum detection limit.
Optionally, the attenuation unit comprises a first attenuation unit and a second attenuation unit connected in series; an initial value of the attenuation amount of the first attenuation unit is set to a maximum attenuation value; the initial value of the attenuation amount of the second attenuation unit is set to a minimum attenuation value; a monitoring unit for: if the power of the signal to be detected after adjustment is smaller than the minimum detection limit of the detection range of the power detector according to the power detection result, sequentially reducing the attenuation of the first attenuation unit according to the attenuation of the first attenuation unit and a preset attenuation value included in a first preset attenuation sequence until the preset variation of the detection range expansion unit meets a first preset condition; the first preset condition comprises: the difference value between the power of the signal to be detected and the preset variation is larger than or equal to the minimum detection limit; or if the power of the signal to be detected after adjustment is determined to be greater than the maximum detection limit of the detection range of the power detector, sequentially increasing the attenuation amount of the second attenuation unit according to the attenuation amount of the second attenuation unit and the preset attenuation value included in the second preset attenuation sequence until the preset variation amount of the detection range expansion unit meets a second preset condition; the second preset condition includes: the difference between the power of the signal to be detected and the preset variation is smaller than or equal to the maximum detection limit.
Optionally, the monitoring unit is further configured to: if the power of the adjusted signal to be detected is determined to be within the detection range of the power detector according to the power detection result, the power of the signal to be detected is determined according to the power of the adjusted signal to be detected, the first variation and the second variation.
Optionally, the device further comprises a temperature detection unit, wherein one end of the temperature detection unit is connected with the power detector, and the other end of the temperature detection unit is connected with the monitoring unit; the temperature detection unit is used for monitoring the detection temperature of the power detector and sending the detection temperature to the monitoring unit; a monitoring unit for: if the detected temperature is not in the normal temperature range, determining the compensation power corresponding to the detected temperature according to the corresponding relation between the temperature and the compensation power and the detected temperature; and determining the power of the signal to be detected according to the compensation power corresponding to the detection temperature, the power of the adjusted signal to be detected, the first variation and the second variation.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is also intended to include such modifications and variations.