CN104579495B - A kind of method that luminous power that happens suddenly is automatically controlled - Google Patents
A kind of method that luminous power that happens suddenly is automatically controlled Download PDFInfo
- Publication number
- CN104579495B CN104579495B CN201410787752.7A CN201410787752A CN104579495B CN 104579495 B CN104579495 B CN 104579495B CN 201410787752 A CN201410787752 A CN 201410787752A CN 104579495 B CN104579495 B CN 104579495B
- Authority
- CN
- China
- Prior art keywords
- laser
- luminous power
- sample circuit
- bag
- back facet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention is applied to optical power control field there is provided a kind of method that luminous power that happens suddenly is automatically controlled, including:Laser exports back facet current in working condition, is obtained respectively by short bag sample circuit and middle long bag sample circuit is obtained, wherein, the short bag sample circuit, which can sample, keeps the back facet current at current time;Whenever trigger signal by it is invalid switch to effective when, triggering once interrupt;Into after interruption, judge whether trigger signal is also effective;When judged result is invalid, judge that the current packet sent by the laser is short bag, then jump out interruption, and the back facet current calculating sampling luminous power stored according to the short bag sample circuit is triggered, and the comparative analysis result passed through with target luminous power adjusts the light emitting power of laser.The embodiment of the present invention utilizes the short time storage characteristics of short bag sample circuit, and the electric current of short bag is stored, the problem of prior art can not handle short bag optical power adjustment is solved.
Description
Technical field
The invention belongs to optical power control field, more particularly to a kind of method that luminous power that happens suddenly is automatically controlled.
Background technology
It is difference by comparing laser backlight current and target current that luminous power, which is automatically controlled, adjustment bias current and
Electric current is modulated, makes direction change of the back facet current to desired value.Therefore, the premise of the adjustment of luminous power is to measure
The size of current backlight electric current.Burst transfer be by packet in units of be transmitted, (English name is trigger signal:
Burst Enable, are abbreviated as:BEN) as trigger signal.Therefore, the detection of burst luminous power is can accurately to measure
Luminous power state when laser is happened suddenly.Current ONU optical modules are to the measurement for the luminous power that happens suddenly in the long packet that happens suddenly
Certainly scheme has been known about when (also referred to as middle long bag or long packets in the present embodiment), but for short packet data bag (this implementation
It is referred to as short bag in example), because fluorescent lifetime is short, can exist using the mode of MCU analog-to-digital conversion channel receptions in the prior art
The problem of being not measured.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method that luminous power that happens suddenly is automatically controlled, to solve prior art
In due to fluorescent lifetime it is short, it is impossible to the problem of being wrapped when measuring short packages and ultrashort data.
The embodiment of the present invention is achieved in that on the one hand, the embodiments of the invention provide one kind burst luminous power is automatic
The method of control, the described method comprises the following steps:
Laser in working condition, export back facet current, the back facet current respectively by short bag sample circuit obtain and
Middle long bag sample circuit is obtained, wherein, the short bag sample circuit, which can sample, keeps the back facet current at current time;Whenever tactile
Signal by it is invalid switch to effective when, triggering once interrupt;Into after interruption, judge whether trigger signal is also effective;Work as judgement
When being as a result invalid, judge that the current packet sent by the laser is short bag, then jump out interruption, and trigger according to institute
The back facet current for stating short bag sample circuit storage calculates sampling luminous power, and is adjusted by the comparative analysis result with target luminous power
The light emitting power of whole laser.
On the other hand, the embodiments of the invention provide the system that a kind of luminous power that happens suddenly is automatically controlled, in the system
CD-ROM driver, microcontroller and laser are contained, the CD-ROM driver is used to control laser works, and the microcontroller is used
In the luminous power for calculating and adjusting laser driver control, CD-ROM driver generates trigger signal to control the work of laser, its
It is characterised by, including:
The back facet current that laser is exported in working condition, short bag sample circuit and middle long bag sample circuit composition difference
It is independently controlled by light the short bag sample circuit acquisition of device and the long bag sample circuit of microcontroller is obtained, wherein, the short bag sampling is electric
Road, which can sample, keeps the back facet current at current time;Whenever CD-ROM driver trigger signal by it is invalid switch to effective when, micro-control
Device processed, which is then triggered, once to interrupt;Into after interruption, microcontroller judges whether trigger signal is also effective;When judged result is invalid
When, microcontroller judges that the current packet sent by the laser is short bag, then jumps out interruption, and trigger according to described
Back facet current that short bag sample circuit is got calculates sampling luminous power, and by the comparative analysis result with target luminous power to
CD-ROM driver sends the message of the light emitting power of adjustment laser.
The beneficial effect for the method that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled includes:
By increasing short bag sample circuit, solve the luminous power in the prior art for short bag and detect the problem of losing,
Using the short time storage characteristics of short bag sample circuit, the electric current of short bag is stored so that the inventive method can be handled
Short bag.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also be attached according to these
Figure obtains other accompanying drawings.
Fig. 1 is the flow chart for the method that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled;
Fig. 2 is the system construction drawing that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled;
Fig. 3 is a kind of structural representation of short bag sample circuit provided in an embodiment of the present invention;
Fig. 4 is each message time sequence figure that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled;
Fig. 5 is the flow chart for the method that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled;
Fig. 6 is the flow chart for the method that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled;
Fig. 7 is a kind of short bag provided in an embodiment of the present invention, middle long bag and the time diagram of long packets transmission.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In various embodiments of the present invention, middle long bag and it is short wrap the signal for belonging to burst, and corresponding send the short bag
The optical power control that happens suddenly is also referred to as with the optical power control of middle long bag.In addition, the embodiment of the present invention further relates to long packets,
Continuous optical power control can also be referred to as by sending the optical power control of the long packets.Long packets in the present embodiment are in the neck
Domain is also referred to as continuous bag.It is specific how to define the definition that short bag, middle long bag and long packets may be referred to the time of its in embodiment.
Wherein, the packet that 200ns~2us packet is defined as between short bag, 2us~10ms is defined as Zhong Changbao, more than 10ms
Packet be defined as long packets
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
The flow chart for the method that a kind of burst luminous power provided as shown in Figure 1 for the present invention is automatically controlled, laser exists
Work, the described method comprises the following steps in the trigger signal term of validity:
In a step 102, laser exports back facet current in working condition, and the back facet current is adopted by short bag respectively
Sample circuit is obtained and middle long bag sample circuit is obtained, wherein, the short bag sample circuit, which can sample, keeps the back of the body at current time
Photoelectric current.
Wherein, short bag sample circuit and middle long bag sample circuit can be the circuits being made up of independent electrical device, can also
It is to be based on integrated chip (for example:MAX3643 or MCU) in internal circuit realize, be not particularly limited herein.
In concrete implementation mode, the middle long simplest implementation of bag sample circuit is the modulus using MCU
Change-over circuit is constituted.
At step 104, whenever trigger signal by it is invalid switch to effective when, triggering once interrupt.
Signal includes high level and low level, and general definition is that signal high level is significant level, and the low level of signal is
Inactive level, therefore, trigger signal described herein are switched to effectively, i.e., switch to high level from low level by invalid.
In step 106, into after interruption, judging whether trigger signal is also effective.
For short bag, because the time of its maintenance is very short, therefore, step 106 is entered from the interruption of step 104
When judging the validity of trigger signal again, the short bag has been sent completely.
In step 108, when judged result is invalid, judge that the current packet sent by the laser is short
Bag, then jump out interruption.
In the present embodiment, it is preferred that the short package definition is the packet for the transmission time being less than 2us.
In step 110, the back facet current that triggering is stored according to the short bag sample circuit calculates sampling luminous power, and leads to
Cross the sampling luminous power and the light emitting power of the comparative analysis result adjustment laser of target luminous power.
It is preferred that, the short bag sample circuit also includes sampling hold circuit and buffer, and the sampling hold circuit is used
In the back facet current at storage current time, then the back facet current that the triggering is stored according to the short bag sample circuit, which is calculated, samples
Luminous power, be specially:
The back facet current that the sampling hold circuit is stored by the buffer is transferred to microcontroller, described micro-
Controller calculates the sampling luminous power of the short bag according to the back facet current received.
Wherein, target luminous power is the preferable luminous power of the laser pre-entered, mainly as the ginseng of sampling luminous power
Examine object.
The embodiment of the present invention, by increasing short bag sample circuit, solves the luminous power in the prior art for short bag and examines
The problem of losing is surveyed, using the signal transient storage characteristics of short bag sample circuit, the electric current of short bag is stored, and can be with
Extracted during processing so that the inventive method can handle short bag.
There is a kind of preferred scheme 1 with reference to the present embodiment, wherein when the judgement of step 106 is effective, methods described
Also include:
In step 112, when judged result is effective, judge the packet currently sent by the laser as in
Long bag, and the long bag count value of centering adds 1.
In step 114, verify whether the middle long bag count value reaches predetermined threshold value.
In step 116, when check results are that the middle long bag count value reaches predetermined threshold value, then interruption is jumped out, and touch
The back facet current that root of hair is obtained according to the middle long bag sample circuit calculates sampling luminous power, passes through the comparison with target luminous power point
Analyse the light emitting power that result adjusts laser.
In step 118, when check results are that the middle long bag count value is not up to predetermined threshold value, then interruption is jumped out.
There is a kind of preferred scheme 2 with reference to the present embodiment, wherein, what the judgement was currently sent by the laser
Packet is short bag, then jumps out interruption, and trigger the back facet current calculating sampling luminous power of the short bag sample circuit storage, tool
Body includes:
Judge that the current packet sent by the laser is short bag, then exchange integral denotation value and put 1;Jump out interruption;
Microcontroller judges whether to optical power adjustment according to the adjustment value of statistical indicant, when it is 1 to confirm the adjustment value of statistical indicant, from
The back facet current of the short bag sample circuit storage calculates sampling luminous power.
There is a kind of preferred scheme 3 with reference to the present embodiment, wherein, it is described when check results are the middle long bag count value
Predetermined threshold value is reached, then jumps out interruption, and trigger the back facet current calculating sampled light obtained according to the middle long bag sample circuit
Power, is specifically included:
When check results are that the middle long bag count value reaches predetermined threshold value, then exchange integral denotation value and put 1;In then jumping out
It is disconnected;Microcontroller judges whether to optical power adjustment according to the adjustment value of statistical indicant, is confirming that the adjustment value of statistical indicant is 1
When, the back facet current obtained from the middle long bag sample circuit calculates sampling luminous power.
There is a kind of preferred scheme 4 with reference to the present embodiment, wherein, the output port of the short bag sample circuit is provided with
Buffer circuit, so as to there is time enough to handle the back facet current that the short bag sample circuit is preserved to microcontroller.
The preferred scheme 4 is provided with buffer circuit in the delivery outlet of short end bag sample circuit, and the buffer circuit can
Extend and/or amplify the back facet current that short bag sampling circuit samples are preserved, so as to be provided to the microcontroller that script can not be handled
More plenty of time.
By taking Fig. 2 and Fig. 4 as an example, the back facet current (i.e. short bag) that above-mentioned preferred scheme 2 is stored based on short bag sample circuit
With the buffer in short bag sample circuit, realize the form that existing short bag is modeled to middle long bag or long packets and be sent to
(such as A/D0 interfaces in Fig. 2, it is defeated that A/D0 the and A/D1 interfaces can serve as middle long bag sample circuit for middle long bag sample circuit
Incoming interface;It simulates effect as shown in the 4th bars sequential in Fig. 4), to complete optical power adjustment.
There is a kind of preferred scheme 5 with reference to the present embodiment, wherein, methods described is described fixed also comprising a timer
When device opened when trigger signal is effective, and closed when trigger signal is invalid, then methods described also includes:
When the timer overflows, timer is reset, judges that the current packet sent by the laser is super
Long bag, sampling luminous power is calculated using the back facet current obtained in the middle long bag sample circuit, and according to the sampled light work(
The comparative analysis result of rate and target luminous power, adjusts the light emitting power of laser.
Those skilled in the art can be based on content base disclosed above between being known that above-mentioned several preferred schemes
It is combined with each other, will not be repeated here on plinth.
Embodiment two
It is illustrated in figure 2 the structural representation for the system that a kind of luminous power that happens suddenly provided in an embodiment of the present invention is automatically controlled
Figure, as shown in Figure 2, the system that a kind of burst luminous power that the present invention is provided is automatically controlled include CD-ROM driver 14, microcontroller
10 and laser 12, the CD-ROM driver 14 is used to control laser 12 to work, and the microcontroller 10 is used to calculate and adjust
The luminous power that laser driver 14 is controlled, CD-ROM driver 14 generates trigger signal to control the work of laser 12, the system
Specifically included in the method for realizing the present invention:
Laser 12 works in the term of validity of trigger signal, and exports back facet current;The back facet current is input to institute
The short bag sample circuit for stating CD-ROM driver 14 is stored, the sampling luminous power of the packet for calculating short bag;The backlight
Electric current is also inputted to the analog-to-digital conversion passage of the microcontroller 10, the sampling luminous power for calculating short bag and middle long bag.
Whenever CD-ROM driver 14 trigger signal by it is invalid switch to effective when, microcontroller 10, which is triggered, once to interrupt;
Into after interruption, microcontroller 10 judges whether trigger signal is also effective;
When judged result is invalid, microcontroller 10 judges that the current packet sent by the laser 12 is short
Bag, then jump out interruption, and triggers the back facet current calculating sampling luminous power got according to the short bag sample circuit, and passes through
The comparative analysis result of the sampling luminous power and target luminous power sends the light transmitting for adjusting laser 10 to CD-ROM driver 14
The message of power.
Microcontroller 10 is compared result according to the sampling luminous power and target luminous power, is sent to CD-ROM driver 14
Adjust the message of the light emitting power of laser 10.
The embodiment of the present invention, by increasing short bag sample circuit, solves the luminous power in the prior art for short bag and examines
Survey the problem of losing, when using short bag sample circuit current time storage characteristics, the electric current of short bag is stored, and can
Extracted during handling so that the inventive method can handle short bag.
There is a kind of preferred scheme 1 with reference to the present embodiment, it is micro- when microcontroller 10 judges trigger signal result to be effective
Controller 10 judges the packet currently sent by the laser as middle long bag, and the long bag count value of centering adds 1;Microcontroller
Device 10 verifies whether the middle long bag count value reaches predetermined threshold value;When check results be the middle long bag count value reach it is default
Threshold value, then jump out interruption, and triggers the back facet current calculating sampling luminous power obtained according to the middle long bag sample circuit, passes through
The light emitting power of laser is adjusted with the comparative analysis result of target luminous power;When check results are the middle long bag count value
Not up to predetermined threshold value, then jump out interruption.
There is a kind of preferred scheme 2 with reference to the present embodiment, microcontroller 10 judges currently to send out by the laser 12
The packet sent is short bag, then jumps out interruption, and the back facet current calculating that triggering is got according to the short bag sample circuit is adopted
Sample luminous power, is specifically included:
Microcontroller 10 judges that the current packet sent by the laser 12 is short bag, then exchanges integral denotation value and put
1;Jump out interruption;Optical power adjustment is judged whether to according to the adjustment value of statistical indicant, is confirming that the adjustment value of statistical indicant is 1
When, calculate sampling luminous power from the back facet current of the short bag sample circuit storage.
There is a kind of preferred scheme 3 with reference to the present embodiment, when check results be the middle long bag count value reach it is default
Threshold value, then jump out interruption, and the back facet current that microcontroller 10 is obtained from the middle long bag sample circuit calculates sampling luminous power, tool
Body includes:
When check results are that the middle long bag count value reaches predetermined threshold value, microcontroller 10 exchanges integral denotation value and puts 1;It is micro-
Controller 10 jumps out interruption;Optical power adjustment is judged whether to according to the adjustment value of statistical indicant, the adjustment mark is being confirmed
Be worth for 1 when, the back facet current obtained from the middle long bag sample circuit calculates sampling luminous power.
There is a kind of preferred scheme 4 with reference to the present embodiment, the output port of the short bag sample circuit is provided with buffering
Circuit, so as to there is time enough to handle the back facet current that the short bag sample circuit is preserved to microcontroller 10.
The preferred scheme 4 is provided with buffer circuit in the delivery outlet of short end bag sample circuit, and the buffer circuit can
Extend and/or amplify the back facet current that short bag sampling circuit samples are preserved, so that the mould of microcontroller 10 that can not be handled to script
Long bag signal in drawing up it and can calculating.
There is a kind of preferred scheme 5 with reference to the present embodiment, the microcontroller 10 is described fixed also comprising a timer
When device opened when trigger signal is effective, and closed when trigger signal is invalid, then methods described also includes:
When the timer overflows, microcontroller 10 resets timer, judges what is currently sent by the laser
Packet is long packets, and sampling luminous power is calculated using the back facet current obtained in the middle long bag sample circuit, and according to institute
The comparative analysis result of sampling luminous power and target luminous power is stated, the light emitting power of laser is adjusted.
Those skilled in the art can be based on content base disclosed above between being known that above-mentioned several preferred schemes
It is combined with each other, will not be repeated here on plinth.
Embodiment three
As shown in Fig. 2 present embodiments providing a kind of structural representation for the system that luminous power that happens suddenly is automatically controlled, such as scheme
Shown in 2, the present embodiment will combine the relevant pins and microcontroller 10 (MCU) of specific CD-ROM driver 14 (MAX3643) in Fig. 2
In corresponding pin illustrate this concrete implementation mode.Compared with embodiment two, the present embodiment correspondence system functions of modules is shown as:
Laser 12 works in the term of validity of trigger signal, and the trigger signal is specially the BURST- of high electric frequency
ENABLEIN (is abbreviated as:BUSIN), and carry in the laser drive signal that CD-ROM driver 14 is sent to laser 12.
Laser 12 is operationally waited, and exports back facet current.The luminous power of the backlight and laser front side emitter light
Luminous power is directly proportional, and therefore, it can calculate the light work(of the light of the laser transmitting according to the back facet current of the laser
Rate.
The short bag sample circuit that the back facet current is input to the CD-ROM driver 14 (MAX3643) is stored, specifically
For:It is input to by MDIN coffrets in internal sample holding circuit.The back facet current is also inputted to the microcontroller
Long bag sample circuit in 10 (MCU), is transferred to middle long bag by the back facet current specifically by A/D1 coffrets and samples
In circuit.Long bag sample circuit can not react within short bag effective time in MCU under normal circumstances, for example, only need to small
The short packet data for lighting to complete in 1us.
Wherein, short bag sample circuit includes:Sampling keeps input interface MDIN, and (Monitor Diode Input, Chinese is complete
Claim:Monitor diode input), sampling hold circuit, buffer circuit and sampling keep output interface MDOUT (Monitor Diode
Output, Chinese full name:Monitor diode output), as shown in figure 3, when BENIN is in the valid period, S1 is in closed form
State, S2 is off.Now CD-ROM driver 14 (MAX3643) is main obtains back facet current by MDIN interfaces, and stores
In sampling hold circuit.
Each trigger signal enters the term of validity by dynamic stage, and microcontroller 10 will be triggered and once interrupted, and journey is serviced interrupting
Whether still effectively in sequence, trigger signal will be detected again, if still effectively, long bag count value plus 1 in carrying out once.
As shown in Fig. 4 BURST-ENALBE IN curves (first signal timing diagram), its high level region is the triggering letter
Number the term of validity, and wherein low level region is the dynamic stage of the trigger signal.
Assuming that when the middle long bag count value reaches predetermined threshold value, microcontroller 10 (MCU) resets the middle long bag meter
Numerical value, and the packet is judged as middle long bag, and the optical power adjustment opportunity of middle long bag has been reached, according to the microcontroller 10
In long bag sample circuit obtain back facet current calculate obtain sampled light power.
Under normal circumstances, the term of validity for sending the BENIN signals corresponding to bob is very short, and therefore, S1 is switched and S2
The switching of switch is that quickly, this switching time may only have for tens nanoseconds, or even only more than ten nanosecond.Switch switching
Situation is specifically:As shown in figure 3, when BENIN is in low level in Fig. 4, the switch S1 in MDIN and MDOUT in Fig. 3
It will be switched off, S2 will be in closure state, and then MCU (10) A/D0 interfaces are got in MDIN by MDOUT coffrets adopts
The back facet current that sample is kept.MDOUT output level is as shown in the 4th bars timing diagram in Fig. 4.
Micro-control light device 10 (MCU) is compared result according to the sampled power value and target luminous power, controls CD-ROM drive
Dynamic device 14 (MAX3643) adjusts the output of luminous power.Specifically by microcontroller 10 (MCU) and CD-ROM driver 14
(MAX3643) IBIAS SET (Bias Current Set, Chinese full name between:Bias current is set) and IMOD SET
(Modulation Current Set, Chinese full name:Laser bias current is set) the interface completion optical power adjustment ginseng
Several transmission, further, CD-ROM driver 14 (MAX3643) control laser to change transmitting by laser drive signal
Luminous power.
The present embodiment combine specific CD-ROM driver 14 (MAX3643) and general microcontroller relevant pins and
Specific electric signal timing diagram set forth implementation of the inventive method in specific system, give feasible specific implementation
Scheme.
Example IV
A kind of short bag sample circuit provided in an embodiment of the present invention is illustrated in figure 3, because sampling hold circuit is existing
Technology, for simplified electrical circuit diagram structure, therefore is not drawn specifically in figure, is only represented with sampling hold circuit.This area skill
Art personnel can implement the circuit function according to the present embodiment disclosure.The circuit is specifically included:
(BURST-ENABLE is abbreviated as trigger signal:BENIN), the trigger signal BENIN after buffering by
BENOUT coffrets are exported.The I/O that the BENIN signals are sent to microcontroller 10 (MCU) by BENOUT interfaces is transmitted
Interface, so as to provide reference frame for its calculating BENIN term of validity and dynamic stage.
Sampling hold circuit and MDIN coffrets, the MDIN interfaces are used to receive back facet current, and are stored in it
In the sampling holding capacitor in portion.Specifically, in the BENIN terms of validity, switch S1 closures, S2 is opened, and MDIN is by the back of the body received
Photoelectricity is streaming to sampling hold circuit preservation.
MDOUT coffrets, when BENIN is invalid, the controlling switch S1 in Fig. 3 can be opened, and S2 can be closed, and then be sampled
The back facet current preserved in holding circuit can transferred out after buffer circuit by MDOUT.With Fig. 2 specific embodiment
Exemplified by, the back facet current that MDOUT is transferred out can be obtained by the A/D0 coffrets of microcontroller 10 (MCU), so as to described micro-
Controller 10 (MCU) completes the calculating and follow-up adjustment of luminous power.
This gives a kind of specific implementation for realizing holding capacitor circuit, specific system can be combined real
Example two or three is applied to realize beneficial effect proposed by the invention.Further support the feasibility of the present invention.
Embodiment five
As shown in figure 4, being a kind of signal sequence graph of a relation provided in an embodiment of the present invention, wherein listing in embodiment three
Signal sequence in the middle several important coffrets that can be related to, is specifically included:
(BURST-ENABLE IN, are abbreviated as trigger signal:BENIN) high level in the present embodiment shows that BENIN is
Effectively, low level then represents that BENIN is invalid.In concrete implementation mode, BENIN generally represents that system gives spy
Determine user can occupied bandwidth time slot graph of a relation, i.e., the region of high level in figure is that system is distributed to user and can used
The laser sends the time slot of packet.In concrete implementation, the interval distributed between the time slot of a user is typically smaller than
125us, as shown in the 1st bars sequential in Fig. 4.
Back facet current signal:INTERNAL MDIN VOLTAGE SAMPLER are that MDIN coffrets are got and are deposited
The back facet current data in short bag sample circuit are stored in, as shown in the 2nd bars sequential in Fig. 4.
The trigger signal that MCU is received:BENOUT OUTPUT, specially by the BENIN signals of buffering.The buffering is
In order to prevent external circuit from BENIN signals are interfered and influenceed, as shown in the 3rd bars sequential in Fig. 4.
Output is stored in the back facet current during sampling is kept:MDOUT, due to being related to the holding and electric discharge of sample circuit, with
And the signal of buffer circuit is set up and stabilization time, therefore, 3us ascending curve occurs in the 4th bars sequential line in Fig. 4,
The electric discharge of voltage is slow in usual MDOUT, as shown in decline curve gentle in the 4th bars sequential in Fig. 4.Therefore,
Microcontroller 10 (MCU) has been given to have the time for sufficiently obtaining back facet current, come the calculating of the luminous power that completes short bag.
Embodiment six
As shown in figure 5, for a kind of method for automatically controlling of luminous power that happens suddenly provided in an embodiment of the present invention, methods described is
For embodiment one under implementing environment how in long bag counts the method for realizing that luminous power is calculated.In the present embodiment
The middle long bag counting is specially:MDOUT_Invalid_Count.The flow is specifically included:
In step 201, when BENIN is from when dynamic stage entering effective, MCU external interrupt is triggered.
In actual motion, for receiving every time by the pulse signal of low level high level, it can all trigger and once interrupt
201。
Now, the controlling switch S1 in Fig. 3 is closed and closed, and S2 disconnects, and the sampling that the voltage on MDIN is held in inside keeps electricity
Lu Zhong.When BENIN is invalid, S1 is disconnected, and S2 is closed and closed, and the voltage being maintained in sampling hold circuit is discharged by MDOUT.
In step 202., the sampling in MCU for MDOUT is opened.
Under normal circumstances, for short bag, the speed switched between above-mentioned BENIN is effective and invalid is too fast, accordingly, it would be desirable to
The sampling in MCU for MDOUT is opened in advance.
In step 203, in order to ensure entering BENOUT effective coverages really, it is necessary to judge that BENOUT's is effective again
Property, if judged result then enters step 209 to be invalid;If judged result is effectively then into step 204.
In step 204, wait is converted.Here be in MCU analog-to-digital conversion interface by the back facet current received
Analog signal is converted to the process of data signal.
In step 205, MDOUT_Invalid_Count is counted.MDOUT_Invalid_Count initial value is
0, carried out into interruption flow once Jia 1 every time.The number of continuous middle bag is specially calculated, this is tested by inventor
After card, packet is divided into the mode that short bag, middle long bag and long packets are the effective property of comparison.Wherein, 200ns~2us number
The packet being defined as according to bag between short bag, 2us~10ms is defined as Zhong Changbao, more than 10ms packet is defined as overlength
Bag.
In step 206, judge MDOUT_Invalid_Count counts whether reach 100, enter if reaching 100
Step 212, otherwise into step 207.Here 100 be that predetermined threshold value is specifically presented in the present embodiment in embodiment one,
The predetermined threshold value is typically by virtue of experience or experiment is obtained.
In step 207, the packet is middle long bag, and now, back facet current selects MCU digital-to-analogue conversion coffrets (A/
D1 the data obtained in).
In a step 208, optical power adjustment flag bit ATC_Change=1 is put.The ATC_Change is as subsequently sentencing
The disconnected Rule of judgment for whether carrying out optical power adjustment, its value shows without optical power adjustment for 0;Its value shows to carry out for 1
Optical power adjustment.
In step 209, wait is converted.It is similar with step 204, repeat no more.
In step 210, the data that the sampling from MAX3643 MDOUT interfaces output is kept are as calculating sampled light
The back facet current of power.
In step 211, MDOUT_Invalid_Count is reset.
In the step 212, counter is closed.The counter is mainly used in judging whether the packet is overlength bag data
Bag is used.The long packets packet is often referred to the packet for the transmission time exceeding 100us.The step is in the present embodiment can
Choosing, its meaning existed will combine with embodiment six sees (can emphatically be described in embodiment six) with practical value.
In step 213, interruption is jumped out.
The implementation of the present invention in a particular embodiment is described from signal pulse granularity in the present embodiment, is based on
In MAX3643 (14), MCU (10) and laser (12) system, long bag and short bag in how being completed using the mode of terminal
Optical power adjustment give detailed scheme.
Embodiment six
Fig. 6 is a kind of method for automatically controlling of luminous power that happens suddenly provided in an embodiment of the present invention, timer therein be for
Continuous light is determine whether, compared to the flow in embodiment five, the present embodiment is the flow of system, it is believed that program starts
Afterwards just in the program of execution, and embodiment five is in it may be considered the system flow implementation procedure after combining the present embodiment
The interruption produced at any time.And trigger under the pattern of continuous light, to carry out optical power adjustment close to 10ms as an adjustment cycle.
In step 301, into automatic optical power control program.
The automatic optical power control program can just be opened when MCU starts;Can also receive laser work
Start after indicating;It can also be and occurring as started after implementing five interruption.
In step 302, whether detection timer has turned on.If opened, into step 305;If do not opened,
Then it is included in step 303.
In step 303, timer is removed to overflow.
In step 304, timer is reset.
In step 305, whether detection BENIN is effective, is to be in low level state in high level state or.If
Effectively, then into step 307;If invalid, into step 306.
Within step 306, Off Timer.
In step 307, opening timing device.
In step 308, timer overflows, and does not overflow execution step 312;Overflow and then perform step 309.
In a step 309, judge current as long packets mode of operation, the number that back facet current is sampled using MCU A/D0 mouths
According to calculating.
In the step 310, timer is reset.
In step 311, ATC adjustment marks ATC_Change=1 is put.
In step 312, system monitoring.
The system monitoring is specifically included according to the specification of product:Temperature, voltage, bias current, received optical power, with
And self-inspection and alarm amount for producing etc..
In step 313, judge that adjustment mark is set whether ATC_Change is 1.Judged result is 1 and enters step
314;Judged result is 0 and enters step 302.
In a step 314, the gap of present sample luminous power and target luminous power is calculated.
In step 315, according to result of calculation in step 314, luminous power is adjusted.It is then return to step 302 circulation execution
Above-mentioned flow.
The present embodiment adds timer from system flow angle, gives the embodiment of the present invention one specific in bag
The implementation how applied in environment containing long packets signal.Improve a kind of burst luminous power proposed by the present invention automatic
The scope of application of the method for control.
The present embodiment is by poll repeatedly, to judge BEN state.If before timer spilling, being polled to BEN
It is invalid, illustrate that this transmission is not continuous light, around here in the presence of two kinds of possibility, itself do not light either packet.Such as
Fruit is not luminous, then need not adjust luminous power, if packet, then by the mechanism of flow chart 5, is touched by external interrupt
Hair adjustment.If after timer spilling, still BEN is then a continuous luminance during this, due to not having effectively
Burst is produced, then will not trigger prominent adjustment, therefore, and the about 10ms timings that can only rely on timer are overflowed, and trigger one-time continuous light
The adjustment of power.
During timer is opened, if producing packet, and due to program poll, fail to judge timing according to BEN in time
The situation of device switch, then flow enters row constraint in flow chart 5.The packet produced during this period, can trigger interruption, and in this
Can Off Timer in disconnected.And in next round poll, according to the closed mode of timer, timer is initialized, to continuous
The judgement of light will restart.
Embodiment seven
The present embodiment is combined with after embodiment five and embodiment six, it is comprehensive illustrate counted in above-mentioned two embodiment and
How timing means comes cooperative.As shown in fig. 7, the present embodiment is laser 12 sends number under the control of CD-ROM driver 14
According to the one section of process intercepted in packet procedures.Assuming that the threshold value of timer is set to 10ms.
As shown in fig. 7, relate to packet 1 and packet 2, by the description of the various embodiments described above, counted in figure
It is effective coverage according to the BENIN corresponding with the period that packet 2 takes of bag 1, the region correspondence covered without packet
BENIN for inactive area.
The region that operation program is covered in figure is the automatic optical power control flow of correspondence embodiment six, the automatic tune
The whole whole packet transmission process of covering.As shown in fig. 7, when flow reaches A points, BENIN is changed into effective from invalid, and triggering is real
Apply the interruption flow shown in example six, C points have performed Fig. 6 interruption flow in figure, and from step 213 return to embodiment
In six step 302, it is emphasized that, the light work(in embodiment six can occur for the interruption flow of the correspondence embodiment five
In each stage of rate adjust automatically flow.It can be found that the length of packet 1 is less than Timer Threshold 10ms from Fig. 7, because
This, optical power adjustment will not be carried out in the start to finish of packet 1.After E points are reached, because BEN is invalid, therefore, in step
After 305 judge, timer can be closed.Because the duration of packet 1 could not overflow timer, i.e., packet 1 does not belong to
In long packets and short bag, and belong to Zhong Changbao.After launching into packet 2, the interrupt processing stream of embodiment five can be still called
Journey, it is assumed that long bag count value is reached 100 in embodiment five in now, then can now enter step 207, so as to further complete light
Power is adjusted;If long bag count value is not up to 100 in embodiment five in now, then because the length of packet 2 is also unsatisfactory for determining
When device overflow condition, therefore, still will not trigger optical power adjustment.
Those of ordinary skill in the art are further appreciated that all or part of step realized in above-described embodiment method is can
To instruct the hardware of correlation to complete by program, described program can be stored in a computer read/write memory medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.
Claims (10)
1. a kind of method that luminous power that happens suddenly is automatically controlled, laser works in the trigger signal term of validity, it is characterised in that institute
The method of stating includes:
Laser exports back facet current in working condition, and the back facet current is obtained and middle length by short bag sample circuit respectively
Bag sample circuit is obtained, wherein, the short bag sample circuit, which can sample, keeps the back facet current at current time;
Whenever trigger signal by it is invalid switch to effective when, triggering once interrupt;
Into after interruption, judge whether trigger signal is also effective;
When judged result is invalid, judges that the current packet sent by the laser is short bag, then jump out interruption, and
Trigger the back facet current stored according to the short bag sample circuit and calculate sampling luminous power, and pass through the comparison with target luminous power
Analysis result adjusts the light emitting power of laser.
2. the method as described in claim 1, it is characterised in that when judged result is effective, methods described also includes:
The packet currently sent by the laser is judged as middle long bag, and the long bag count value of centering adds 1;
Verify whether the middle long bag count value reaches predetermined threshold value;
When check results are that the middle long bag count value reaches predetermined threshold value, then interruption is jumped out, and trigger according to the middle long bag
The back facet current that sample circuit is obtained calculates sampling luminous power, passes through the comparative analysis of the sampling luminous power and target luminous power
As a result the light emitting power of laser is adjusted;
When check results are that the middle long bag count value is not up to predetermined threshold value, then interruption is jumped out.
3. the method as described in claim 1, it is characterised in that the packet that the judgement is currently sent by the laser
It is short bag, then jumps out interruption, and trigger the back facet current calculating sampling luminous power stored according to the short bag sample circuit, specifically
Including:
Judge that the current packet sent by the laser is short bag, then exchange integral denotation value and put 1;
Jump out interruption;
Microcontroller judges whether to optical power adjustment according to the adjustment value of statistical indicant, is confirming that the adjustment value of statistical indicant is 1
When, the back facet current of the short bag sample circuit storage is obtained, and calculate sampling luminous power.
4. method as claimed in claim 2, it is characterised in that described when check results, to be that the middle long bag count value reaches pre-
If threshold value, then interruption is jumped out, and trigger the back facet current calculating sampling luminous power obtained according to the middle long bag sample circuit, tool
Body includes:
When check results are that the middle long bag count value reaches predetermined threshold value, then exchange integral denotation value and put 1;
Then jump out interruption;
Microcontroller judges whether to optical power adjustment according to the adjustment value of statistical indicant, is confirming that the adjustment value of statistical indicant is 1
When, the back facet current obtained from the middle long bag sample circuit calculates sampling luminous power.
5. the method as described in claim 1, it is characterised in that the output port of the short bag sample circuit is provided with buffering electricity
Road, so as to there is time enough to handle the back facet current that the short bag sample circuit is preserved to microcontroller.
6. the method as described in claim 1-5 is any, it is characterised in that methods described is described fixed also comprising a timer
When device opened when trigger signal is effective, and closed when trigger signal is invalid, then methods described also includes:
When the timer overflows, timer is reset, judges that the current packet sent by the laser is long packets,
Sampling luminous power is calculated using the back facet current obtained in the middle long bag sample circuit, and according to the sampling luminous power and mesh
The comparative analysis result of luminous power is marked, the light emitting power of laser is adjusted.
7. the system that a kind of luminous power that happens suddenly is automatically controlled, contains CD-ROM driver, microcontroller and laser in the system
Device, the CD-ROM driver is used to control laser works, and the microcontroller is used to calculating and adjusting laser driver control
Luminous power, CD-ROM driver generates trigger signal to control the work of laser, it is characterised in that including:
The back facet current that laser is exported in working condition, the short bag sample circuit that device is independently controlled by light respectively is obtained and microcontroller
Long bag sample circuit is obtained in device, wherein, the short bag sample circuit, which can sample, keeps the back facet current at current time;
Whenever CD-ROM driver trigger signal by it is invalid switch to effective when, microcontroller is then triggered and once interrupted;
Into after interruption, microcontroller judges whether trigger signal is also effective;
When judged result is invalid, microcontroller judges that the current packet sent by the laser is short bag, then jumps
Go out to interrupt, and trigger the back facet current got according to the short bag sample circuit and calculate sampling luminous power, and by with target
The comparative analysis result of luminous power sends the message for the light emitting power for adjusting laser to CD-ROM driver.
8. system as claimed in claim 7, it is characterised in that after terminal is entered, the microcontroller judges trigger signal
When being also effective, in addition to:
Microcontroller judges the packet currently sent by the laser as middle long bag, and the long bag count value of centering adds 1;
Microcontroller verifies whether the middle long bag count value reaches predetermined threshold value;
When check results are that the middle long bag count value reaches predetermined threshold value, then interruption is jumped out, microcontroller is wrapped from the middle length
Back facet current that sample circuit is obtained calculates sampling luminous power, by the comparative analysis result with target luminous power to CD-ROM driver
Send the message of the light emitting power of adjustment laser;
When check results are that the middle long bag count value is not up to predetermined threshold value, then interruption is jumped out.
9. system as claimed in claim 7, it is characterised in that the output port of the short bag sample circuit is provided with buffering electricity
Road, so as to there is time enough to handle the back facet current that the short bag sample circuit is preserved to microcontroller.
10. the system as described in claim 7-9 is any, it is characterised in that also comprising a timer in the microcontroller,
The timer is opened when trigger signal is effective, and is closed when trigger signal is invalid, then is also included:
When the timer overflows, the micro-controller resetting timer judges the current number sent by the laser
It is long packets according to bag, sampling luminous power is calculated using the back facet current obtained in the middle long bag sample circuit, and according to described
The comparative analysis result of luminous power of sampling and target luminous power, adjusts the light emitting power of laser.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410787752.7A CN104579495B (en) | 2014-12-17 | 2014-12-17 | A kind of method that luminous power that happens suddenly is automatically controlled |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410787752.7A CN104579495B (en) | 2014-12-17 | 2014-12-17 | A kind of method that luminous power that happens suddenly is automatically controlled |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104579495A CN104579495A (en) | 2015-04-29 |
CN104579495B true CN104579495B (en) | 2017-10-31 |
Family
ID=53094809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410787752.7A Active CN104579495B (en) | 2014-12-17 | 2014-12-17 | A kind of method that luminous power that happens suddenly is automatically controlled |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104579495B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660301B (en) * | 2018-12-07 | 2021-09-10 | 青岛海信宽带多媒体技术有限公司 | Received signal sampling method and optical module |
CN111327358B (en) * | 2018-12-17 | 2021-08-13 | 山东华云光电技术有限公司 | Control method and control system for compensating tracking error of optical device |
CN112688739B (en) * | 2020-12-16 | 2022-08-09 | 武汉永鼎光通科技有限公司 | APC control circuit that self-adaptation is shaded |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510802A (en) * | 2008-12-16 | 2009-08-19 | 成都优博创技术有限公司 | Circuit for measuring outburst mode optical signal power |
CN101834666A (en) * | 2010-05-07 | 2010-09-15 | 成都优博创技术有限公司 | Device and method for testing burst optical power of optical network unit |
CN102209410A (en) * | 2010-03-29 | 2011-10-05 | 深圳新飞通光电子技术有限公司 | External sudden automatic optical-power control circuit |
US8134776B1 (en) * | 2008-06-04 | 2012-03-13 | Oplink Communications, Inc. | Optical amplifier output control based on change in detected input power |
-
2014
- 2014-12-17 CN CN201410787752.7A patent/CN104579495B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8134776B1 (en) * | 2008-06-04 | 2012-03-13 | Oplink Communications, Inc. | Optical amplifier output control based on change in detected input power |
CN101510802A (en) * | 2008-12-16 | 2009-08-19 | 成都优博创技术有限公司 | Circuit for measuring outburst mode optical signal power |
CN102209410A (en) * | 2010-03-29 | 2011-10-05 | 深圳新飞通光电子技术有限公司 | External sudden automatic optical-power control circuit |
CN101834666A (en) * | 2010-05-07 | 2010-09-15 | 成都优博创技术有限公司 | Device and method for testing burst optical power of optical network unit |
Also Published As
Publication number | Publication date |
---|---|
CN104579495A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104579495B (en) | A kind of method that luminous power that happens suddenly is automatically controlled | |
JP2001352350A (en) | Measurement system and method by statistic eye-diagram of continuous bit stream | |
US9306858B2 (en) | Network apparatus, communication system, abnormal traffic detection method, and program | |
CN108075886B (en) | Automatic time sequence adjustment method and device for quantum key distribution system | |
CN103457658B (en) | Optical line terminal olt | |
US20150350049A1 (en) | Method and device for generating cnm | |
EP2747346B1 (en) | Packet train generation for estimating available network bandwidth | |
CN106789430B (en) | A kind of point-to-point link fault detection method | |
TW201340648A (en) | Reducing headroom | |
JP2017201295A (en) | Test measuring device, and trigger generating method | |
CN109491487A (en) | Multifunctional power sequencer and monitor chip | |
CN104539383B (en) | Real-time pulse signal power capturing device and implement method thereof | |
CN110191024B (en) | Network traffic monitoring method and device | |
CN104811243B (en) | Long luminous detection method and device | |
CN110535888A (en) | Port Scan Attacks detection method and relevant apparatus | |
CN102098097A (en) | Optical network unit fault detection method and system in PON and optical line terminal | |
Zander et al. | Kute A high performance kernel-based udp traffic engine | |
EP2989753B1 (en) | Testing of communications equipment | |
Oeldemann et al. | FlueNT10G: A programmable FPGA-based network tester for multi-10-gigabit ethernet | |
CN105721047B (en) | A kind of method and system for testing smart machine luminous power receiving sensitivity | |
US20160373322A1 (en) | Controlling generation of filtered result packets | |
CN111274132B (en) | Method and device for testing reliability of device driver data cleaning function | |
CN112333163A (en) | Inter-container flow monitoring method and flow monitoring management system | |
CN102185732B (en) | Method and system for testing active queue management parameters of communication equipment | |
CN106656324A (en) | ONU optical module long luminescence detection device and method based on current |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |