A kind of power detector and its control method, device, equipment, medium
Technical field
The present invention relates to field of power electronics more particularly to a kind of power detector and its control method, device, equipment,
Medium.
Background technique
With the fast development of mobile communication cause, in modern communication system, power detector is in communication system
Essential a part.The real-time signal watt level of circuit can be determined by power detection, can also be used to be supplied to
System is as feedback control amount etc..With the development of the communications industry, importance of the power detection in Communication System Design
More and more prominent, cost and use scope and size to power detector have higher requirement.
Assuming that the maximum power detection range of a power detector chip is 50dB, it would be desirable to realize that input power is examined
It surveys, output power detection, reflection power detection.Under normal circumstances, we can examine in one power of input power detection branch
One slowdown monitoring circuit, one detection circuit of output power detection branch, feedback power detection branch detection circuit.In this way, with 3
A power detector could complete the power of 3 different detection branch.
Based on the above situation, it when needing to detect the power of a plurality of branch to be detected at present, needs using multiple power detections
Device is detected, the higher cost of power detector.
Summary of the invention
The embodiment of the present invention provides a kind of power detector and its control method, device, equipment, medium, to realize
While carrying out power detection to multiple branches to be detected, cost is reduced.
In a first aspect, the embodiment of the invention provides a kind of power detectors, comprising: selecting module, power detection module
And control module, wherein
Selecting module is connected with power detection module, for according to control signal instruction in a plurality of branch to be detected
Middle selection one is connect with power detection mould;
Power detection module, the power of the branch to be detected for detecting connection;
Control module is connected with selecting module, for generating control signal, and sends control signals to selection mould
Block.
A kind of power detector provided in an embodiment of the present invention, comprising: selecting module, power detection module and control mould
Block, selecting module is connect with a plurality of branch to be detected, and is connect with power detection module, is believed by the control that control module is sent
Number, it controls one in branch to be detected and is connect with power detection module, with the existing function for needing to detect a plurality of branch to be detected
When rate, needs to carry out detection using multiple power detectors and compare, by a power detector, can be detected a plurality of to be detected
The power of any bar branch to be detected in branch, reduces costs.
In a kind of possible embodiment, in above-mentioned power detector provided in an embodiment of the present invention, selecting module packet
Include: multiple RF switches, the number of RF switch are greater than or equal to the item number of branch to be detected, and every branch to be detected with extremely
A few RF switch is connected, and interlocks between different radio frequency switch.
Power detector provided in an embodiment of the present invention, by RF switch by multiple branches to be detected and power detection mould
Block connection, and the number of RF switch is greater than or equal to the item number of branch to be detected, can satisfy the function of practical branch to be detected
Rate detects demand, interlocks between different radio frequency switch, avoids multiple branches to be detected while connecting with power detection module, right
The influence of power detection module testing result.
In a kind of possible embodiment, in above-mentioned power detector provided in an embodiment of the present invention, control module, packet
It includes: the radio frequency sending module and signal control module being connected, wherein signal control module is for generating control signal, radio frequency
Sending module is for sending control signals to selecting module.
In a kind of possible embodiment, in above-mentioned power detector provided in an embodiment of the present invention, power detector
Further include: conversion module is connected between power detection module and control module, to be checked for detecting power detection module
The power for surveying branch is converted to digital signal, and digital signal is sent to control module storage.
Power detector provided in an embodiment of the present invention can convert the power data of power detection module detection
It for digital signal and is stored, is used convenient for subsequent lookup.
Second aspect, the embodiment of the invention also provides a kind of control methods of power detector, and it is real to be applied to the present invention
Apply the power detector that a first aspect provides, comprising:
Determining that detection is for switching and power detection mould when receiving the indication signal for being used to indicate progress power detection
The interrupt signal for the branch to be detected that block is connected;
According to the number of the interrupt signal detected, control signal is generated, control signal is used to indicate selecting module more
One is selected in item branch to be detected to connect with power detection mould;
Send control signals to selecting module.
A kind of control method of power detector provided in an embodiment of the present invention is used to indicate carry out function determining to receive
When the indication signal of rate detection, it is used to switch in the branch to be detected being connected with power detection module by what detection obtained
The number of break signal generates instruction selecting module and selects the control connecting with power detection mould in a plurality of branch to be detected
Signal is reduced costs to be realized using a power detector to the power detection of a plurality of branch to be detected.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, according to the interruption detected
The number of signal generates control signal, comprising:
When it is n that the number for determining interrupt signal is divided by the remainder of the item number of branch to be detected, generation is used to indicate selection
The control signal that module selects number to be connected for the branch to be detected of n+1 with power detection module, n is natural number;Wherein, to
The number of detection branch is determined according to the position of branch to be detected.
The control method of power detector provided in an embodiment of the present invention, can be successively right according to the interruption times of detection
Branch to be detected carries out power detection, ensure that each branch to be detected can be carried out power detection.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, method further include:
When the number for determining interrupt signal is greater than the item number of a plurality of branch to be detected, control power detector stops power
Detection.
The control method of power device provided in an embodiment of the present invention detection is determining that each branch to be detected carries out power
After detection, power detector is avoided to repeat to treat detection branch progress power detection, energy saving.
In a kind of possible embodiment, in the above method provided in an embodiment of the present invention, method further include:
The power data for the digital signal form that conversion module is sent is received, and power data is stored in preconfigured
In memory space.
A kind of control method of power detector provided in an embodiment of the present invention, each branch to be detected that detection is obtained
Power data is stored, and is used convenient for subsequent lookup.
The third aspect, the embodiment of the invention also provides a kind of control devices of power detector, comprising:
Detection unit, for determining that detection is for cutting when receiving the indication signal for being used to indicate progress power detection
Change the interrupt signal for the branch to be detected being connected with power detection module;
Control unit generates control signal for the number according to the interrupt signal detected, and control signal is used to indicate
Selecting module selects one in a plurality of branch to be detected and connect with power detection mould;
Transmission unit, for sending control signals to selecting module.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, control unit is specifically used for:
When it is n that the number for determining interrupt signal is divided by the remainder of the item number of branch to be detected, generation is used to indicate selection
The control signal that module selects number to be connected for the branch to be detected of n+1 with power detection module, n is natural number;Wherein, to
The number of detection branch is determined according to the position of branch to be detected.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, control unit is also used to:
When determining that interruption times are greater than the item number of a plurality of branch to be detected, control power detector stops power detection.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the device further include: storage
Unit is used for: receiving the power data for the digital signal form that conversion module is sent, and power data is stored in and is pre-configured with
Memory space in.
Fourth aspect, the embodiment of the invention also provides a kind of control equipment of power detector, comprising: at least one
Device, at least one processor and computer program instructions stored in memory are managed, when computer program instructions are processed
The control method for the power detector that second aspect of the embodiment of the present invention provides is realized when device executes.
5th aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program
The power detector that second aspect of the embodiment of the present invention provides is realized in instruction when computer program instructions are executed by processor
Control method.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, is implemented with the present invention
Example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of connection schematic diagram of power detector provided in an embodiment of the present invention;
Fig. 2 is the connection schematic diagram of radio frequency sending module provided in an embodiment of the present invention and signal control module;
Fig. 3 is a kind of schematic flow diagram of the control method of power detector provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the control device of power detector provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the control equipment of power detector provided in an embodiment of the present invention.
Specific embodiment
Embodiments herein is illustrated below in conjunction with attached drawing, it should be understood that embodiment described herein is only used
In description and interpretation the application, it is not used to limit the application.
Below with reference to attached drawing is illustrated, to power detector provided in an embodiment of the present invention and control method, device, set
Standby, medium specific embodiment is illustrated.
The embodiment of the invention provides a kind of power detectors, as shown in Figure 1, comprising: selecting module 10, power detection mould
Block 20 and control module 30, wherein
Selecting module 10 is connected with power detection module 20, for according to control signal instruction a plurality of to be detected
One is selected in branch to connect with power detection mould.
Power detection module 20, the power of the branch to be detected for detecting connection.
Control module 30 is connected with selecting module 10, for generating control signal, and sends control signals to selection
Module 10.
In selecting module provided in an embodiment of the present invention, there are multiple RF switches, it is to be detected to every in order to realize
Branch carries out power detection, and the number of RF switch is greater than or equal to the item number of branch to be detected, and every branch to be detected with
At least one RF switch is connected, and interlocks between different radio frequency switch, to avoid power detection module and a plurality of branch to be detected
Road connects simultaneously, the influence to testing result.
It should be noted that the number of RF switch can be according to the item number of actual branch to be detected in selecting module 10
It determines.
In one example, it is assumed that the item number of branch to be detected is 2, can be 1 by number when the number of RF switch is 3
Branch to be detected connect with the first end of the first RF switch, the of branch to be detected and the second RF switch that number is 2
One end connection, the first end of third RF switch is hanging (or ground connection), the first RF switch, the second RF switch, third radio frequency
The second end of switch is connected with power detection module 20.
It should be noted that number when the number of branch to be detected according to branch to be detected is determining.
In conjunction with Fig. 1, as shown in Fig. 2, in control module 30 provided in an embodiment of the present invention, comprising: the signal control being connected
Molding block 31 and radio frequency sending module 32, for signal control module 31 for generating control signal, radio frequency sending module 32 is used for will
Control signal is sent to selecting module 10.
Specifically, radio frequency sending module 32 connects in a manner of being connect with selecting module 10 by signal, it can also be with electricity
The mode of connection is connect with selecting module 10, and it is not limited in the embodiment of the present invention.
In power detector provided in an embodiment of the present invention, further includes: conversion module, be connected to power detection module 20 with
Between control module 30, the power of the branch to be detected for detecting power detection module 20 is converted to digital signal, and will
Digital signal is sent to the storage of control module 30.
Specifically, conversion module provided in an embodiment of the present invention can be analog-digital converter, be also possible to it is other can be real
The circuit or device of existing analog-to-digital conversion, it is not limited in the embodiment of the present invention.
The power detector of the embodiment of the present invention based on Fig. 1-Fig. 2 description, the embodiment of the invention provides a kind of power
The control method of detector, as shown in figure 3, may include steps of:
Step 301 is determining that detection is for switching and function when receiving the indication signal for being used to indicate progress power detection
The interrupt signal for the branch to be detected that rate detection module is connected.
When it is implemented, the interrupt signal for switching the branch to be detected being connected with power detection module, Ke Yitong
Timing means generation is crossed, when the timing cycle of timing means reaches, generates an interrupt signal.The timing means can be function
Timing means inside rate detector is also possible to the external timing means being connected with power detector, the embodiment of the present invention
It does not limit this.
In a kind of possible embodiment, if timing means is the timing means of power detector external connection, true
When determining the arrival of timing means timing cycle, the timing of timing means is reset, and retimes.
It should be noted that the timing cycle of timing means can be configured according to the actual situation, to timing means
Period when being configured, the timing cycle of timing means can be set to a fixed numerical value, can also be according to timing
The interruption times of device are configured the timing cycle of timing means.
For example, setting the first time timing cycle of timing means to 20 seconds (S), second of scheduled cycle is set as 10S,
Third time timing cycle is set as 30S.
When it is implemented, the timing cycle of timer can be configured according to the detection demand of branch to be detected, this
Inventive embodiments do not limit this.
For example, branch to be detected there are 3, the branch to be detected for being 1 and 3 to number is needed to carry out power detection, can incited somebody to action
The first time timing cycle of timing means is set as 20S, and second of timing cycle is set as 0, and third time timing cycle is set as
20S.Wherein, the number of branch to be detected is determined according to the position of branch to be detected.
In one example, according to the position of equipment where branch to be detected, according to from left to right (or from top to bottom)
Sequentially, detection branch is treated to be numbered.
When it is implemented, when determination receives and is used to indicate the indication signal for carrying out power detection, by interrupt signal time
Number is reset, and detects the interrupt signal for switching the branch to be detected being connected with power detection module.
The number for the interrupt signal that step 302, basis detect, generates control signal, and control signal is used to indicate selection
Module selects one in a plurality of branch to be detected and connect with power detection mould.
When it is implemented, generating and using when it is n that the number for determining interrupt signal is divided by the remainder of the item number of branch to be detected
In the control signal that instruction selecting module selects number to be connected for the branch to be detected of n+1 with power detection module, n is nature
Number.
In one example, it is assumed that branch travel permit number to be detected is 3, is 0 in the number of the interrupt signal confirmly detected, interrupts
The number of signal divided by the item number of branch to be detected remainder be 0, then generate instruction selecting module select number for 1 it is to be detected
The control signal that branch is connected with power detection module.
In the number of the interrupt signal confirmly detected be 1, the number of interrupt signal divided by branch to be detected item number
Remainder is 1, then generates instruction selecting module and select to number the control letter being connected for 2 branch to be detected with power detection module
Number.
In the number of the interrupt signal confirmly detected be 2, the number of interrupt signal divided by branch to be detected item number
Remainder is 2, then generates instruction selecting module and select to number the control letter being connected for 3 branch to be detected with power detection module
Number.
Step 303 sends control signals to selecting module.
It in a kind of possible embodiment, sends control signals to after selecting module, receives conversion module and send
Power data, and power data is stored in preconfigured memory space.
In a kind of possible embodiment, it is greater than the item number of a plurality of branch to be detected in the number for determining interrupt signal
When, control power detector stops power detection.
In a kind of possible embodiment, if power detector is used to be periodically detected the occasion of branch to be detected, control
After power detector processed stops power detection, timing means is timed using preset duration as timing cycle, it is fixed determining
When device when interrupting, re-execute step 301 of the embodiment of the present invention, the power detector that step 302 and step 303 describe
Control method.
Based on identical inventive concept, the embodiment of the present invention also provides a kind of control device of power detector.
As shown in figure 4, the control device of power detector provided in an embodiment of the present invention, comprising:
Detection unit 401, for determining that detection is used for when receiving the indication signal for being used to indicate progress power detection
Switch the interrupt signal for the branch to be detected being connected with power detection module;
Control unit 402 generates control signal for the number according to the interrupt signal detected, and control signal is used for
Instruction selecting module selects one in a plurality of branch to be detected and connect with power detection mould;
Transmission unit 403, for sending control signals to selecting module.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, control unit 402 is specifically used
In:
When it is n that the number for determining interrupt signal is divided by the remainder of the item number of branch to be detected, generation is used to indicate selection
The control signal that module selects number to be connected for the branch to be detected of n+1 with power detection module, n is natural number;
Wherein, the number of branch to be detected is determined according to the position of branch to be detected.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, control unit 402 is also used
In:
When the number for determining interrupt signal is greater than the item number of a plurality of branch to be detected, control power detector stops power
Detection.
In a kind of possible embodiment, in above-mentioned apparatus provided in an embodiment of the present invention, the device further include: storage
Unit 404, is used for:
The power data for the digital signal form that conversion module is sent is received, and power data is stored in preconfigured
In memory space.
In addition, the control method and device in conjunction with the power detector of Fig. 1-Fig. 4 embodiment of the present invention described can be by
The control equipment of power detector is realized.Fig. 5 shows the control equipment of power detector provided in an embodiment of the present invention
Hardware structural diagram.
The control equipment of power detector may include processor 501 and the memory for being stored with computer program instructions
502。
Specifically, above-mentioned processor 501 may include central processing unit (CPU) or specific integrated circuit
(Application Specific Integrated Circuit, ASIC), or may be configured to implement implementation of the present invention
One or more integrated circuits of example.
Memory 502 may include the mass storage for data or instruction.For example it rather than limits, memory
502 may include hard disk drive (Hard Disk Drive, HDD), floppy disk drive, flash memory, CD, magneto-optic disk, tape or logical
With the combination of universal serial bus (Universal Serial Bus, USB) driver or two or more the above.It is closing
In the case where suitable, memory 502 may include the medium of removable or non-removable (or fixed).In a suitable case, it stores
Device 502 can be inside or outside data processing equipment.In a particular embodiment, memory 502 is nonvolatile solid state storage
Device.In a particular embodiment, memory 502 includes read-only memory (ROM).In a suitable case, which can be mask
ROM, programming ROM (PROM), erasable PROM (EPROM), the electric erasable PROM (EEPROM), electrically-alterable ROM of programming
(EAROM) or the combination of flash memory or two or more the above.
Processor 501 is by reading and executing the computer program instructions stored in memory 502, to realize above-mentioned implementation
The control method of any one power detector in example.
In one example, the control equipment of power detector may also include communication interface 504 and bus 510.Wherein, such as
Shown in Fig. 5, processor 501, memory 502, communication interface 504 connect by bus 510 and complete mutual communication.
Communication interface 504 is mainly used for realizing in the embodiment of the present invention between each module, device, unit and/or equipment
Communication.
Bus 510 includes hardware, software or both, and the component of the control equipment of power detector is coupled to each other one
It rises.For example it rather than limits, bus may include accelerated graphics port (AGP) or other graphics bus, enhancing industrial standard frame
Structure (EISA) bus, front side bus (FSB), super transmission (HT) interconnection, Industry Standard Architecture (ISA) bus, infinite bandwidth interconnection,
Low pin count (LPC) bus, memory bus, micro- channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-
Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (VLB) bus or
The combination of other suitable buses or two or more the above.In a suitable case, bus 510 may include one
Or multiple buses.Although specific bus has been described and illustrated in the embodiment of the present invention, the present invention considers any suitable bus
Or interconnection.
What the control equipment of power detector can be obtained based on detection is connected for switching with the power detection module
The interrupt signal of the branch to be detected connect executes the control method of the power detector in the embodiment of the present invention, to realize knot
Close the control method and device of the power detector of Fig. 1-Fig. 4 description.
In addition, the embodiment of the present invention can provide a kind of meter in conjunction with the control method of the power detector in above-described embodiment
Calculation machine readable storage medium storing program for executing is realized.Computer program instructions are stored on the computer readable storage medium;The computer journey
The control method of any one power detector in above-described embodiment is realized in sequence instruction when being executed by processor.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.