The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.For this purpose, the present invention
One purpose is to propose a kind of long luminescence detection apparatus of ONU optical modules based on electric current.
Further object is that proposing a kind of long luminous detection method of ONU optical modules based on electric current.
For achieving the above object, on the one hand, the luminous detection of the ONU optical modules length based on electric current according to embodiments of the present invention
Device, including:
Optical module;
Power supply, the power supply is connected to the emission power end of the optical module by a metal-oxide-semiconductor on-off circuit;
Current detection circuit, the current detection circuit is connected to the metal-oxide-semiconductor on-off circuit and the emission power end
Between, to the operating current for detecting the emission power end;
Watchdog circuit, the watchdog circuit is connected with the current detection circuit and metal-oxide-semiconductor on-off circuit, to root
The break-make of the metal-oxide-semiconductor on-off circuit is controlled according to the operating current.
In addition, the long luminescence detection apparatus of ONU optical modules based on electric current according to the above embodiment of the present invention can also have
There is following additional technical characteristic:
According to one embodiment of present invention, also include:
CPU, the GPIO pin of the CPU is connected with the metal-oxide-semiconductor on-off circuit, to control the metal-oxide-semiconductor switch electricity
The break-make on road.
According to one embodiment of present invention, the current detection circuit includes:
Current sample module, to the operating current for gathering the emission power end;
Comparator, the comparator and the current sample module, to by the mean value of the operating current with it is default
Threshold value is compared, and when the mean value of the operating current is less than the predetermined threshold value, then exports square-wave signal to institute
Watchdog circuit is stated, the watchdog circuit exports high level to the metal-oxide-semiconductor on-off circuit according to the square-wave signal, so that
The metal-oxide-semiconductor on-off circuit is held on;
When the mean value of the operating current is more than the predetermined threshold value, then exports constant level signal and guard the gate to described
Dog circuit, the watchdog circuit exports low level to the metal-oxide-semiconductor on-off circuit according to the constant level signal, so that institute
State the disconnection of metal-oxide-semiconductor on-off circuit.
According to one embodiment of present invention, the current sample module includes that first resistor, second resistance and first are electric
Hold, wherein, one end of the first resistor is connected with the first inverting input of the power supply and the comparator, described
The other end of first resistor is connected with the one end at emission power end and second resistance, the other end of the second resistance and the ratio
It is connected compared with the first in-phase input end of device and one end of the first electric capacity, the other end of first electric capacity and connecing for the comparator
Ground terminal common ground;
First output end of the comparator is connected to one end of one the 4th resistance, the other end connection of the 4th resistance
To a 3rd resistor and one end of one second electric capacity, the other end of the 3rd resistor is connected with the power supply, and described
The other end ground connection of two electric capacity;
The positive power source terminal of the comparator is connected to a supply voltage VDD, and the supply voltage VDD passes through one the 4th electric capacity
Ground connection, the second output end of the comparator is connected to one the 7th resistance and one the 5th electric capacity one end, the 7th resistance it is another
One end connects the watchdog circuit, the other end ground connection of the 5th electric capacity, the second inverting input of the comparator with
Described one end of second electric capacity is connected, the second in-phase input end of the comparator be connected to one the 5th resistance, one the 6th
One end of resistance and one the 3rd electric capacity, another termination power supply of the 5th resistance, the 6th resistance it is another
End and the other end common ground of the 3rd electric capacity.
According to one embodiment of present invention, the watchdog circuit includes watchdog chip, the tenth electric capacity, the 11st electric
Appearance, the tenth resistance, the 11st resistance, the 12nd resistance, 3rd resistor, the 12nd electric capacity, the 14th resistance, the 15th resistance and
16th resistance;
One end of tenth resistance connects the power supply, the other end and the house dog core of the tenth resistance
One end of the hand-reset pin, the tenth electric capacity and the 11st resistance of piece is connected, the other end of the tenth one end group with it is described
The house dog output pin of watchdog chip is connected, the other end ground connection of the tenth electric capacity;
Described one end of 11st electric capacity is connected with the positive power source terminal of the watchdog chip and the power supply, described
The earth terminal common ground of the other end of the first electric capacity and the watchdog chip;One end of 13rd resistance is seen with described
The Power Supply Monitoring output pin of door dog chip and one end of the 12nd resistance are connected, the other end and power supply of the 13rd resistance
One end of voltage end VCC2 and the 12nd electric capacity is connected, the other end of the 12nd resistance and another termination of the 12nd electric capacity
Ground;
One end of 14th resistance and the power supply of the watchdog chip signal output pin that drops is connected, and described
The other end of 14 resistance is connected with one end of the power supply and the 15th resistance, the other end of the 15th resistance with
The reset output pin of the watchdog chip is connected, one end of the 16th resistance and the house dog of the watchdog chip
Input pin is connected;
The reset output pin of the watchdog chip is connected with the metal-oxide-semiconductor on-off circuit, the watchdog chip
House dog input pin is connected with the current detection circuit.
According to one embodiment of present invention, the metal-oxide-semiconductor on-off circuit include the 20th electric capacity, the 21st electric capacity,
Metal-oxide-semiconductor, the 20th resistance, the 41st resistance, triode, the 21st resistance, the 22nd electric capacity, the 33rd resistance and
22nd resistance;
One end of 20th electric capacity is connected with described one end of 21 electric capacity and the drain electrode of metal-oxide-semiconductor, and described second
The other end common ground of ten electric capacity and the 21st electric capacity, the source electrode of the metal-oxide-semiconductor connects the emission power end and the 20th
One end of resistance, the grid of the metal-oxide-semiconductor connects the one of the colelctor electrode of the triode, the 20th resistance and the 41st resistance
End, the base stage of another termination triode of the 41st resistance and one end of the 21st resistance, the triode
Grounded emitter, the other end of the 21st resistance and the 22nd electric capacity, the 23rd resistance, the 22nd
One end of resistance is connected, the other end common ground of the 22nd electric capacity and the 33rd resistance, and the described 22nd is electric
The other end of resistance is connected with the reset output pin of the watchdog chip.
On the other hand, the long luminous detection method of ONU optical modules based on electric current for providing according to embodiments of the present invention, application
In detection means as above, including:
The operating current at the emission power end of current detection circuit detection optical module;
Watchdog circuit controls the break-make of metal-oxide-semiconductor on-off circuit according to the operating current.
According to one embodiment of present invention, the work electricity at the emission power end of the current detection circuit detection optical module
Stream includes:
The operating current at the emission power end of collection optical module collection optical module;
Comparator is compared the mean value of the operating current and predetermined threshold value, average when the operating current
When value is less than the predetermined threshold value, then square-wave signal is exported to the watchdog circuit, when the mean value of the operating current
More than the predetermined threshold value, then constant level signal is exported to the watchdog circuit;
The watchdog circuit includes according to the break-make that the operating current controls metal-oxide-semiconductor on-off circuit:
Watchdog circuit exports high level to the metal-oxide-semiconductor on-off circuit according to the square-wave signal, so that the metal-oxide-semiconductor
On-off circuit is held on;
Watchdog circuit exports low level to the metal-oxide-semiconductor on-off circuit according to the constant level signal, so that described
Metal-oxide-semiconductor on-off circuit disconnects.
The long luminous detection method of ONU optical modules based on electric current provided according to the present invention and device, by current detecting
The operating current at the emission power end of electric circuit inspection optical module, then by watchdog circuit according to operating current control
The break-make of metal-oxide-semiconductor on-off circuit.Because when optical module is in long luminance, its operating current is that invariable shape is presented
State and more than average current during normal work, so, by the detection, the operating current can more accurately judge light
Whether module is in long luminance, and in long luminance, can be disconnected by control metal-oxide-semiconductor on-off circuit, and then
Play the long luminous optical module of shut-off in time, it is to avoid other ONU equipments are impacted.Meanwhile, reduce ONU maintenance difficulties with
Cost.Additionally, the present invention realizes current detecting, power cutoff by hardware circuit completely, eliminate the reliance on CPU to judge, detect
Judge and control relatively reliable.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
In describing the invention, it is to be understood that term " " center ", " longitudinal direction ", " horizontal ", " length ", " width ",
" thickness ", " on ", D score, "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outward ", " up time
The orientation or position relationship of the instruction such as pin ", " counterclockwise " is, based on orientation shown in the drawings or position relationship, to be for only for ease of
The description present invention and simplified description, rather than indicate or imply that the device or element of indication must have specific orientation, Yi Te
Fixed azimuth configuration and operation, therefore be not considered as limiting the invention.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include one or more this feature.In describing the invention, " multiple " are meant that two or more,
Unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc.
Term should be interpreted broadly, for example, it may be being fixedly connected, or being detachably connected, or be integrally connected;It can be machine
Tool connects, or electrically connects;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two units
Connection inside part.For the ordinary skill in the art, can as the case may be understand above-mentioned term at this
Concrete meaning in bright.
With reference to shown in Fig. 1, a kind of long luminescence detection apparatus of ONU optical modules based on electric current are embodiments provided,
Can be used for whether detecting the optical module 10 in ONU equipment in long luminance, and detecting in long luminous
During state, the power supply for controlling optical module 10 disconnects.It includes optical module 10, power supply 11, current detection circuit 12 and guards the gate
Dog circuit 14.
Specifically, power supply 11 is connected to the emission power end of the optical module 10 by a metal-oxide-semiconductor on-off circuit 13
VCCT.Current detection circuit 12 is connected between the metal-oxide-semiconductor on-off circuit 13 and the emission power end VCCT, to detect
The operating current of the emission power end VCCT.Watchdog circuit 14 and the current detection circuit 12 and metal-oxide-semiconductor on-off circuit
13 are connected, to the break-make that the metal-oxide-semiconductor on-off circuit 13 is controlled according to the operating current.
The long luminous detection method of ONU optical modules 10 based on electric current provided according to the present invention and device, are examined by electric current
The operating current of the emission power end VCCT of the detection optical module 10 of slowdown monitoring circuit 12, then by watchdog circuit 14 according to the work
The break-make of metal-oxide-semiconductor on-off circuit 13 described in current control.Because optical module 10 is in normal operating conditions, the transmitting of optical module 10
It is the pulse signal of mechanical periodicity during the operating current of power end VCCT, and when optical module 10 is in long luminance, its work
It is invariable state to be presented and more than average current during normal work as electric current, so, by the detection work
Whether electric current can more accurately judge optical module 10 in long luminance, and in long luminance, can pass through
Control metal-oxide-semiconductor on-off circuit 13 disconnects, and then plays the long luminous optical module 10 of shut-off in time, it is to avoid other ONU equipments are made
Into impact.Meanwhile, reduce the maintenance difficulties and cost of ONU.Additionally, the present invention completely by hardware circuit realize current detecting,
Power cutoff, eliminates the reliance on CPU15 to judge, detection judges and controls relatively reliable.
With reference to shown in Fig. 1, in one embodiment of the invention, also including CPU15, the GPIO pin of the CPU15 with
The metal-oxide-semiconductor on-off circuit 13 is connected, to the break-make for controlling the metal-oxide-semiconductor on-off circuit 13.
It should be noted that the CPU15 can be the CPU15 in ONU equipment, such as PAS6301 chips etc..
That is, in the present embodiment, it is also possible to by the break-make of messenger's CPU15 industry control MOS switch circuit, Jin Erguan
The sending function of optical module 10 is opened in supply shortage, is conducive to long-range fault diagnosis.
With reference to shown in Fig. 2, in one embodiment of the invention, current detection circuit 12 includes current sample module 121
And comparator U1, current sample module 121 is to gather the operating current of the emission power end VCCT;Comparator U1 with it is described
Current sample module 121, the mean value of the operating current and predetermined threshold value to be compared.
When the mean value of the operating current is less than the predetermined threshold value, then square-wave signal is exported to the house dog
Circuit 14, the watchdog circuit 14 exports high level to the metal-oxide-semiconductor on-off circuit 13 according to the square-wave signal, so that institute
State metal-oxide-semiconductor on-off circuit 13 to be held on.When the mean value of the operating current is more than the predetermined threshold value, then export constant
Level signal to the watchdog circuit 14, the watchdog circuit 14 export low level to institute according to the constant level signal
Metal-oxide-semiconductor on-off circuit 13 is stated, so that the metal-oxide-semiconductor on-off circuit 13 disconnects.
As noted previously, as optical module 10 is in normal operating conditions, the work of the emission power end VCCT of optical module 10
It is the pulse signal (square-wave pulse) of mechanical periodicity during electric current, and when long luminance occurs in optical module 10, its operating current
It is invariable state to be presented and more than average current during normal work, therefore, in the present embodiment, by pre-setting
Predetermined threshold value, the predetermined threshold value is slightly larger than average current during normal work, thus, comparator U1 can first basis
The operating current of the collection of current sample module 121 calculates mean value in a cycle, by the mean value of the operating current with
Predetermined threshold value is compared, as long as the mean value of operating current is less than predetermined threshold value, then illustrates the optical module 10 in just
Normal working condition, now, comparator U1 output square-wave signal to watchdog circuits 14 carry out feeding dog, the then basis of watchdog circuit 14
The square-wave signal keeps high level output, and then control metal-oxide-semiconductor on-off circuit 13 to be held on.And once operating current is average
Value is more than predetermined threshold value, then illustrate the optical module 10 in long light emitting module 10, now, comparator U1 output constant level letters
Number stop feeding dog to watchdog circuit 14, watchdog circuit 14 is controlled then according to constant level signal output low level
Metal-oxide-semiconductor on-off circuit 13 disconnects, and then cuts off the power supply electricity of the emission power end VCCT of the optical module 10 in long hair light state
Source 11.In the present embodiment, using above-mentioned multilevel iudge mode, it can be ensured that rectangular light detection is relatively reliable accurately, while, it is ensured that
Luminous optical module 10 can be grown can be disconnected in time.
With reference to shown in Fig. 2, in one particular embodiment of the present invention, current sample module 121 include first resistor R1,
Second resistance R2 and the first electric capacity C1, wherein, one end of first resistor R1 and the power supply 11 and the comparator
The first inverting input IN1- of U1 is connected, the other end and emission power end VCCT and second resistance R2 of first resistor R1
One end be connected, the first in-phase input end IN1+ and the first electric capacity of the other end of second resistance R2 and the comparator U1
One end of C1 is connected, the earth terminal GND common grounds of the other end of the first electric capacity C1 and the comparator U1;Comparator U1
The first output end Output1 be connected to one end of one the 4th resistance R4, the other end of the 4th resistance R4 is connected to one
One end of three resistance R3 and one second electric capacity C2, the other end of 3rd resistor R3 is connected with the power supply 11, described
The other end ground connection of the second electric capacity C2;The positive power source terminal VCC of comparator U1 is connected to a supply voltage VDD, the supply voltage
VDD is grounded by one the 4th electric capacity C4, and second output end Output2 of the comparator U1 is connected to one the 7th resistance R7 and
5th electric capacity C5 one end, the other end of the 7th resistance R7 connects the watchdog circuit 14, and the 5th electric capacity C5's is another
One end is grounded, and the second inverting input IN2- of the comparator U1 is connected with described one end of the second electric capacity C2, described
The second in-phase input end IN2+ of comparator U1 be connected to one the 5th resistance R5, the one of one the 6th resistance R6 and one the 3rd electric capacity C3
End, another termination power supply 11 of the 5th resistance R5, the other end of the 6th resistance R3 and described 3rd electric
Hold the other end common ground of C3.
Wherein, the current sample module 121 being made up of first resistor R1, second resistance R2 and the first electric capacity C1 detects optical mode
After the operating current of the emission power end VCCT of block 10, by the first inverting input IN1- and the first normal phase input end IN1+
Input comparator U1, after comparator U1 compares with predetermined threshold value, by the second output end Output2 square-wave signal is exported
Dog feeding operation is carried out to watchdog circuit 14, or output constant level signal stops feeding dog to watchdog circuit 14.
With reference to shown in Fig. 3, watchdog circuit 14 include watchdog chip U2, the tenth electric capacity C10, the 11st electric capacity C11, the
Ten resistance R10, the 11st resistance R11, the 12nd resistance R12,3rd resistor R3, the 12nd electric capacity C12, the 14th resistance R14,
15th resistance R15 and the 16th resistance R16;One end connection power supply 11 of the tenth resistance R10, the described tenth
The hand-reset pin of the other end of resistance R10 and the watchdog chip U2Tenth electric capacity C10 and the 11st resistance R11
One end be connected, the other end of the 11st resistance R11 and the house dog output pin of the watchdog chip U2Phase
Even, the other end ground connection of the tenth electric capacity C10;One end of the 11st electric capacity C11 is with the watchdog chip U2 just
Power end VCC and the power supply 11 are connected, the 11st other end of electric capacity C1 and connecing for the watchdog chip U2
Ground terminal GND common ground;One end of the 13rd resistance R13 and the Power Supply Monitoring output pin of the watchdog chip U2
One end of PFI and the 12nd resistance R12 is connected, the other end and the power voltage terminal VCC2 and the tenth of the 13rd resistance R13
One end of two electric capacity C12 is connected, and the other end of the 12nd resistance R12 and the other end of the 12nd electric capacity R12 are grounded;It is described
One end of 14th resistance R14 and the power supply of the watchdog chip U2 drop signal output pinIt is connected, the described tenth
The other end of four resistance R14 is connected with one end of the resistance R15 of the power supply 11 and the 15th, the 15th resistance R15
The other end and the watchdog chip U2 reset output pinBe connected, one end of the 16th resistance R16 with
The house dog input pin WD of the watchdog chip U2 is connected;The reset output pin of the watchdog chip U2
It is connected with the metal-oxide-semiconductor on-off circuit 13, house dog input pin WD and the current detecting electricity of the watchdog chip U2
Road 12 is connected.
Wherein, second output end Output2 of the house dog input pin WD access comparator U1 of watchdog chip U2 is defeated
Go out square-wave signal or constant level signal, corresponding, the reset output pin of watchdog chip U2Output high level or
Low level, and then turned on by high level control metal-oxide-semiconductor on-off circuit 13, it is disconnected by low level control metal-oxide-semiconductor on-off circuit 13
Open.
With reference to shown in Fig. 4, metal-oxide-semiconductor on-off circuit 13 include the 20th electric capacity R20, the 21st electric capacity R21, metal-oxide-semiconductor Q2,
20th resistance R20, the 41st resistance R41, triode Q1, the 21st resistance R21, the 22nd electric capacity C22, the 30th
Three resistance R33 and the 22nd resistance R22;One end of the 20th electric capacity C20 and one end of the 21 electric capacity C21 and
The drain electrode of metal-oxide-semiconductor Q2 is connected, the other end common ground of the 20th electric capacity C20 and the 21st electric capacity C21, the MOS
The source electrode of pipe Q2 connects one end of the emission power end VCCT and the 20th resistance R20, and the grid of the metal-oxide-semiconductor Q2 connects described three
One end of the colelctor electrode of pole pipe Q1, the 20th resistance R20 and the 41st resistance R41, the 41st resistance R41's is another
Terminate the base stage of the triode Q1 and one end of the 21st resistance R21, the grounded emitter of the triode Q1, described
The other end of 21 resistance R21 and the 22nd electric capacity C22, the 23rd resistance R23, the 22nd resistance R22
One end is connected, the other end common ground of the 22nd electric capacity C22 and the 33rd resistance R33, and the described 22nd is electric
The other end of resistance R22 and the reset output pin of the watchdog chip U2It is connected.
When the other end of the 22nd resistance R22 accesses high level, then metal-oxide-semiconductor Q2 conductings, and when the 22nd resistance
When the other end of R22 accesses low level, then metal-oxide-semiconductor Q2 disconnects.
With reference to shown in Fig. 5, a kind of long luminous detection method of ONU optical modules based on electric current is embodiments provided,
The detection means being applied to as described in above-mentioned embodiment, including:
The operating current of S10, the emission power end VCCT of the detection optical module of current detection circuit 12.
S20, watchdog circuit 14 control the break-make of metal-oxide-semiconductor on-off circuit 13 according to the operating current.
With reference to shown in Fig. 6 and Fig. 7, in one embodiment of the invention, step S10 includes:
The operating current of S101, the emission power end VCCT of collection optical module collection optical module.
S102, comparator U1 are compared the mean value and predetermined threshold value of the operating current, when work electricity
When the mean value of stream is less than the predetermined threshold value, then square-wave signal is exported to the watchdog circuit 14, when work electricity
The mean value of stream is more than the predetermined threshold value, then export constant level signal to the watchdog circuit 14.
Step S20 includes:
S201, watchdog circuit 14 export high level to the metal-oxide-semiconductor on-off circuit 13 according to the square-wave signal, so that
The metal-oxide-semiconductor on-off circuit 13 is held on.
S202, watchdog circuit 14 export low level to the metal-oxide-semiconductor on-off circuit 13 according to the constant level signal,
So that the metal-oxide-semiconductor on-off circuit 13 disconnects.
According to the long luminous detection method of ONU optical modules based on electric current that the present invention is provided, by current detection circuit 12
The operating current of the emission power end VCCT of detection optical module, then institute is controlled according to the operating current by watchdog circuit 14
State the break-make of metal-oxide-semiconductor on-off circuit 13.Because optical module is in normal operating conditions, the work of the emission power end VCCT of optical module
Make the pulse signal (square-wave pulse) for during electric current being mechanical periodicity, and when optical module is in long luminance, its operating current
It is invariable state to be presented and more than average current during normal work, so, by the detection, the operating current can
Whether more accurately to judge optical module in long luminance, and in long luminance, can be by controlling metal-oxide-semiconductor
On-off circuit 13 disconnects, and then plays the long luminous optical module of shut-off in time, it is to avoid other ONU equipments are impacted.Meanwhile,
Reduce the maintenance difficulties and cost of ONU.Additionally, the present invention realizes current detecting, power cutoff by hardware circuit completely, no longer
Rely on CPU to judge, detection judges and controls relatively reliable.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any
One or more embodiments or example in combine in an appropriate manner.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art is in the principle and objective without departing from the present invention
In the case of above-described embodiment can be changed within the scope of the invention, change, replace and modification.