A kind of device and method measuring the voltage of communication line, resistance
Technical field
The present invention relates to measurement technology, be specifically related to a kind of device and method measuring the voltage of communication line, resistance.
Background technology
At present, voltage measurement in digital multimeter (DMM) and resistance measurement belong to the technology of comparative maturity, method of testing
And circuit is more.And in mechanics of communication, need the voltage to communication line (telephone wire, netting twine etc.), resistance to measure, logical
News circuit is to occur in pairs, including A line and B line, with DC voltage on communication line, and can not be same by digital multimeter
Time measure the resistance to earth on circuit, voltage-to-ground and line resistance, need manual operation more than at least 4 times, cumbersome.
Summary of the invention
It is an object of the invention to propose a kind of device and method measuring the voltage of communication line, resistance, it can solve
The problem that can not simultaneously measure resistance to earth, voltage-to-ground and line resistance.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:
A kind of device measuring the voltage of communication line, resistance, it include for power supply power circuit, the first contact,
Second contact, sampling resistor Rs, switching circuit, test voltage produce circuit and data processing circuit;Test voltage produces circuit
One end by sampling resistor RsBeing connected with the first contact, test voltage produces the other end and the connection of the second contact of circuit;
Described switching circuit, for controlling A line and the switching of B line of the first contact, the second contact and test line, so that
Connection status is connected with A line in the first contact and the second contact and A line grounding connection, the first contact are connected with B line and second touches
The three that point is connected with A line with B line grounding connection, the first contact and the second contact is connected with B line switches over;
Described test voltage produces circuit, is used for producing two-way VDCT volts ,direct-current ,test Vs1And Vs2, wherein, Vs1And Vs2It is
Test voltage produces circuit and sampling resistor RsThe voltage connected between node and the second contact;
Described data processing circuit, is used for obtaining Vs1、Vs2、Vrs1And Vrs2, and calculate according to formula (3), obtain Rx
And Vx, wherein, Vrs1For loading Vs1Time sampling resistor RsOn voltage, Vrs2For loading Vs2Time sampling resistor RsOn electricity
Pressure;
When the first contact be connected with A line and the second contact with A line grounding connection time, Rx=Rag, Vx=Vag;
When the first contact be connected with B line and the second contact with B line grounding connection time, Rx=Rbg, Vx=Vbg;
When the first contact is connected with A line and the second contact is connected with B line, Rx=Rab, Vx=Vab;
Wherein, RagFor A line resistance to earth, RbgFor B line resistance to earth, RabFor the line resistance between A line and B line, VagFor
A line-to-earth voltage, VbgFor B line-to-earth voltage, VabFor the voltage between lines between A line and B line.
Preferably, in order to protection device is not damaged by, described data processing circuit includes that the logic being linked in sequence successively declines
Subtract device, gain controller, A/D converter and CPU;Described switching circuit is additionally operable to control the break-make of described logic attenuator, when
When the amplitude of the voltage of test line exceedes predetermined value, described switching circuit control described logic attenuator access test line with
Between the input of gain controller;When the amplitude of the voltage of test line is less than or equal to predetermined value, described switching circuit
Control the short circuit of described logic attenuator.
Preferably, described switching circuit is relay group or FPGA or CPLD.
Preferably, for the scope of application and the application scenarios of expansion instrument, Vs1And Vs2It is negative voltage.
The invention also discloses a kind of method measuring the voltage of communication line, resistance, it comprises the following steps:
A, the A line being controlled the first contact, the second contact and test line by switching circuit and the switching of B line, so that even
The state that connects is connected with A line in the first contact and the second contact is connected and the second contact with B line with A line grounding connection, the first contact
It is connected with A line with B line grounding connection, the first contact and three that the second contact is connected with B line switches over;Same switch
Time, a test voltage produces circuit and produces two-way VDCT volts ,direct-current ,test Vs1And Vs2, Vs1And Vs2Be test voltage produce circuit with
Sampling resistor RsThe voltage connected between node and the second contact;Wherein, test voltage produces one end of circuit by sampling
Resistance RsBeing connected with the first contact, test voltage produces the other end and the connection of the second contact of circuit;
B, data processing circuit obtain Vs1、Vs2、Vrs1And Vrs2, and calculate according to formula (3), obtain RxAnd Vx, its
In, Vrs1For loading Vs1Time sampling resistor RsOn voltage, Vrs2For loading Vs2Time sampling resistor RsOn voltage;
C, output result: when the first contact is connected with A line and the second contact and during A line grounding connection, Rx=Rag, Vx=Vag;
When the first contact be connected with B line and the second contact with B line grounding connection time, Rx=Rbg, Vx=Vbg;When the first contact is connected with A line
And second contact when being connected with B line, Rx=Rab, Vx=Vab;Wherein, RagFor A line resistance to earth, RbgFor B line resistance to earth, RabFor A
Line resistance between line and B line, VagFor A line-to-earth voltage, VbgFor B line-to-earth voltage, VabFor between the line between A line and B line
Voltage.
Preferably, described data processing circuit includes that the logic attenuator being linked in sequence successively, gain controller, A/D turn
Parallel operation and CPU;Step A also has following process: when the amplitude of the voltage of test line exceedes predetermined value, described switching electricity
Road controls described logic attenuator and accesses between test line and the input of gain controller, makes data processing circuit with tested
Circuit disconnects;When the amplitude of the voltage of test line is less than or equal to predetermined value, described switching circuit controls described logic and declines
Subtract device short circuit, make data processing circuit turn on test line.
Preferably, described switching circuit is relay group or FPGA or CPLD.
Preferably, Vs1And Vs2It is negative voltage.
There is advantages that
After access communications circuit, once-through operation just can obtain the value of resistance to earth, voltage-to-ground and line resistance simultaneously, behaviour
Facilitate, measure efficiency high.
Accompanying drawing explanation
Fig. 1 is the structural representation of the device measuring the voltage of communication line, resistance of present pre-ferred embodiments;
Fig. 2 be present pre-ferred embodiments measure the voltage of communication line, resistance device measure A line over the ground electricity
Measurement model figure when resistance, voltage-to-ground;
Fig. 3 be present pre-ferred embodiments measure the voltage of communication line, resistance device measure B line over the ground electricity
Measurement model figure when resistance, voltage-to-ground;
Fig. 4 be present pre-ferred embodiments measure the voltage of communication line, resistance device measure A line and B line it
Between line resistance, voltage between lines time measurement model figure;
Fig. 5 is the flow chart of the method measuring the voltage of communication line, resistance of present pre-ferred embodiments.
Detailed description of the invention
Below, in conjunction with accompanying drawing and detailed description of the invention, the present invention is described further.
As it is shown in figure 1, a kind of device measuring the voltage of communication line, resistance, it include the power circuit for power supply,
First the 1, second contact 2, contact, sampling resistor Rs, switching circuit, test voltage produce circuit and data processing circuit;Test electricity
Pressure produces one end (such as: positive terminal) of circuit by sampling resistor RsBeing connected with the first contact 1, test voltage produces the another of circuit
(such as: negative pole end) is connected with the second contact 2 in one end.Logic attenuator that described data processing circuit includes being linked in sequence successively,
Gain controller, A/D converter and CPU.Gain controller is for regulating the amplitude of signal, and A/D converter is for believing simulation
Number being converted to digital signal, CPU is used for data sampling and calculating.
Described switching circuit, for controlling A line and the switching of B line of the 1, second contact, the first contact 2 and test line, with
Make connection status be connected with A line in the first contact 1 and the second contact 2 and A line grounding connection, the first contact 1 are connected with B line and
The three that two contacts 2 and B line grounding connection, the first contact 1 are connected with A line and the second contact 2 is connected with B line switches over;
And for controlling the break-make of described logic attenuator, when the amplitude of the voltage of test line exceedes predetermined value (such as 15V), institute
State switching circuit to control between described logic attenuator access test line and the input of gain controller;When test line
When the amplitude of voltage is less than or equal to predetermined value, described switching circuit controls the short circuit of described logic attenuator.Cutting of the present embodiment
Changing circuit can use relay group or FPGA or CPLD to realize.
Described test voltage produces circuit, is used for producing two-way VDCT volts ,direct-current ,test Vs1And Vs2, wherein, Vs1And Vs2It is
Test voltage produces circuit and sampling resistor RsThe voltage connected between node and the second contact.In order to wide adaptability some,
Test voltage produces circuit and selects negative pressure source to be preferred, i.e. Vs1And Vs2It is negative voltage.
Described data processing circuit, is used for obtaining Vs1、Vs2、Vrs1And Vrs2, and calculate according to formula (3), obtain Rx
And Vx, wherein, Vrs1For loading Vs1Time sampling resistor RsOn voltage, Vrs2For loading Vs2Time sampling resistor RsOn electricity
Pressure;
When the first contact 1 be connected with A line and the second contact 2 with A line grounding connection time, Rx=Rag, Vx=Vag;When the first contact
1 be connected with B line and the second contact 2 with B line grounding connection time, Rx=Rbg, Vx=Vbg;When the first contact 1 is connected with A line and second touches
When point 2 is connected with B line, Rx=Rab, Vx=Vab;Wherein, RagFor A line resistance to earth, RbgFor B line resistance to earth, RabFor A line and B line
Between line resistance, VagFor A line-to-earth voltage, VbgFor B line-to-earth voltage, VabFor the voltage between lines between A line and B line.
The principle of the present embodiment, refers to Fig. 2 for convenience of description, for measuring the resistance to earth R of A lineagAnd voltage-to-ground
VagMeasurement model.By switching circuit, the first contact 1 is made to be connected with A line, the second contact 2 and A line grounding connection (i.e. second
Contact 2 is connected with A line by ground wire), VsThe known DC producing circuit output for test voltage measures voltage, VrsFor output VsTime
Sampling resistor RsThe D/C voltage of upper correspondence, VmIt is the voltage between the first contact 1 and the second contact 2.
Owing to there being RagAnd VagIt is two unknown numbers, it is therefore desirable to measure twice by two different D/C voltage, according to wearing dimension
South theorem obtains two independent equations, as shown in Equation (1).
V in formulas1、Vs2It is respectively test voltage and produces known 2 DC measurement voltage of circuit output, Vrs1、Vrs2Respectively
For output Vs1、Vs2Time sampling resistor RsThe D/C voltage of upper correspondence, RagFor resistance to be measured, VagFor voltage to be measured.Vm1、Vm2Point
Wei not export Vs1、Vs2Time, the voltage between the first contact 1 and the second contact 2, then formula (1) can obtain after arranging:
According to circuit theory:
Vm2=Vs2-Vrs2
Vm1=Vs1-Vrs1
Above equation is replaced and solves:
In like manner, refer to Fig. 3, measure the resistance to earth R of B linebgWith voltage-to-ground VbgPrinciple identical with Fig. 2.If it is logical
Cross switching circuit, make the first contact 1 be connected with B line, the second contact 2 and B line grounding connection, i.e. available required measurement ginseng
Number.
In like manner, see Fig. 4, measure the line resistance R between A line and B lineabWith voltage between lines VabPrinciple identical with Fig. 2.
As long as by switching circuit, making the first contact 1 be connected with A line, the second contact 2 is connected with B line, i.e. available required measurement ginseng
Number.
It should be noted that according to the difference of connection status, Vrs1And Vrs2Value be also different.
The present embodiment also disclose a kind of use the voltage of above-mentioned measurement communication line, resistance device to communication line
The method that voltage, resistance measure, its flow chart is as it is shown in figure 5, comprise the following steps:
A, the A line being controlled the first contact, the second contact and test line by switching circuit and the switching of B line, so that even
The state that connects is connected with A line in the first contact and the second contact is connected and the second contact with B line with A line grounding connection, the first contact
It is connected with A line with B line grounding connection, the first contact and three that the second contact is connected with B line switches over;Same switch
Time, a test voltage produces circuit and produces two-way VDCT volts ,direct-current ,test Vs1And Vs2, Vs1And Vs2Be test voltage produce circuit with
Sampling resistor RsThe voltage connected between node and the second contact;Wherein, test voltage produces one end of circuit by sampling
Resistance RsBeing connected with the first contact, test voltage produces the other end and the connection of the second contact of circuit;
B, data processing circuit obtain Vs1、Vs2、Vrs1And Vrs2, and calculate according to formula (3), obtain RxAnd Vx, its
In, Vrs1For loading Vs1Time sampling resistor RsOn voltage, Vrs2For loading Vs2Time sampling resistor RsOn voltage;
C, output result: when the first contact is connected with A line and the second contact and during A line grounding connection, Rx=Rag, Vx=Vag;
When the first contact be connected with B line and the second contact with B line grounding connection time, Rx=Rbg, Vx=Vbg;When the first contact is connected with A line
And second contact when being connected with B line, Rx=Rab, Vx=Vab;Wherein, RagFor A line resistance to earth, RbgFor B line resistance to earth, RabFor A
Line resistance between line and B line, VagFor A line-to-earth voltage, VbgFor B line-to-earth voltage, VabFor between the line between A line and B line
Voltage.
In order to avoid the present embodiment device due to communication line voltage excessive and damage, step A also has following place
Reason: when the amplitude of the voltage of test line exceedes predetermined value, described switching circuit controls described logic attenuator and accesses tested
Between circuit and the input of gain controller, making data processing circuit disconnect with test line, measurement terminates;Work as test line
Voltage amplitude less than or equal to predetermined value time, described switching circuit control described logic attenuator short circuit, make data process
Circuit turns on test line, and measurement starts.
For a person skilled in the art, can technical scheme as described above and design, make other each
Plant corresponding change and deformation, and all these changes and deforms the protection model that all should belong to the claims in the present invention
Within enclosing.