CN104579495A - Automatic control method for burst luminous power - Google Patents

Automatic control method for burst luminous power Download PDF

Info

Publication number
CN104579495A
CN104579495A CN201410787752.7A CN201410787752A CN104579495A CN 104579495 A CN104579495 A CN 104579495A CN 201410787752 A CN201410787752 A CN 201410787752A CN 104579495 A CN104579495 A CN 104579495A
Authority
CN
China
Prior art keywords
laser
sample circuit
luminous power
back facet
power
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.)
Granted
Application number
CN201410787752.7A
Other languages
Chinese (zh)
Other versions
CN104579495B (en
Inventor
皮文博
陈龙
张军
张凯
曾娜
武超群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Telecommunication Devices Co Ltd
Original Assignee
Wuhan Telecommunication Devices Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Telecommunication Devices Co Ltd filed Critical Wuhan Telecommunication Devices Co Ltd
Priority to CN201410787752.7A priority Critical patent/CN104579495B/en
Publication of CN104579495A publication Critical patent/CN104579495A/en
Application granted granted Critical
Publication of CN104579495B publication Critical patent/CN104579495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Lasers (AREA)
  • Semiconductor Lasers (AREA)

Abstract

The invention is applied to the field of luminous power control, and provides an automatic control method for burst luminous power. The automatic control method comprises the following steps: when a laser is in a working state, outputting backlight current which is respectively obtained by a short packet sampling circuit and a medium-long packet sampling circuit, wherein the short packet sampling circuit can sample and maintain the backlight current at the current moment; when a trigger signal is turned into being valid from being invalid, triggering interruption for one time; in the interruption process, judging whether the trigger signal is valid or not; if the trigger signal is determined to be invalid, judging that the data packet transmitted by the laser is a short packet, then jumping out of interruption, triggering computing of the sampled luminous power according to the backlight current stored by the short packet sampling circuit, and adjusting the light transmitting power of the laser according to the comparative analysis result with the targeted luminous power. According to the automatic control method disclosed by the invention, the short time storage characteristic of the short packet sampling circuit is utilized, and the short packet current is stored, so that the problem that in the prior art the short packet luminous power adjustment cannot be processed can be solved.

Description

A kind of method that luminous power that happens suddenly controls automatically
Technical field
The invention belongs to optical power control field, particularly relate to a kind of method that luminous power that happens suddenly controls automatically.
Background technology
Luminous power controls to be the difference by comparison laser backlight current and target current automatically, and adjustment bias current and modulated current, make back facet current change to the direction of desired value.Therefore, the prerequisite of the adjustment of luminous power to measure the size of current backlight electric current.Burst transfer be by packet in units of transmit, triggering signal (English name is: Burst Enable, is abbreviated as: BEN) is as triggering signal.Therefore, the detection of the luminous power that happens suddenly is the luminous power state wanting can accurately measure when laser happens suddenly.Current ONU optical module has known about certainly scheme to the measurement of burst luminous power when the long data bag of happening suddenly (being also referred to as middle long bag or long packets in the present embodiment), but for short packet data bag (being called as short bag in the present embodiment), because fluorescent lifetime is short, utilize in prior art the mode of MCU analog-to-digital conversion channel reception can exist measure less than problem.
Summary of the invention
The object of the embodiment of the present invention is a kind of method providing luminous power that happens suddenly automatically to control, to solve because fluorescent lifetime is short in prior art, and the problem of wrapping when cannot measure short packages and ultrashort data.
The embodiment of the present invention is achieved in that on the one hand, embodiments provides a kind of method that luminous power that happens suddenly controls automatically, said method comprising the steps of:
Laser in working order time, export back facet current, described back facet current is obtained by short bag sample circuit respectively and middle long bag sample circuit obtains, and wherein, described short bag sample circuit can be sampled the back facet current of maintenance current time; Whenever triggering signal by invalid transfer to effective time, trigger once interrupt; Have no progeny in entering, judge whether also effectively triggering signal; When judged result is invalid, judge that the current packet sent by described laser is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power stored according to described short bag sample circuit, and by adjusting the light emitting power of laser with the comparative analysis result of target light power.
On the other hand, embodiments provide the system that a kind of luminous power that happens suddenly controls automatically, contain CD-ROM driver, microcontroller and laser in the system, described CD-ROM driver is for controlling laser works, described microcontroller for calculate and adjust laser driver control luminous power, CD-ROM driver generates the work that triggering signal controls laser, it is characterized in that, comprising:
Laser in working order time export back facet current, the short bag sample circuit that short bag sample circuit and middle long bag sample circuit composition are independently controlled by light device respectively obtains and the long bag sample circuit of microcontroller obtains, wherein, described short bag sample circuit can be sampled and be kept the back facet current of current time; Whenever CD-ROM driver triggering signal by invalid transfer to effective time, microcontroller then triggers and once interrupts; Have no progeny in entering, microcontroller judges whether also effectively triggering signal; When judged result is invalid, microcontroller judges that the current packet sent by described laser is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power got according to described short bag sample circuit, and sent the message of the light emitting power adjusting laser to CD-ROM driver by the comparative analysis result with target light power.
The beneficial effect of the method that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically comprises:
By increasing short bag sample circuit, solving in prior art and the problem of losing is detected for the luminous power of short bag, utilizing the short time storage characteristics of short bag sample circuit, the electric current of short bag is stored, make the inventive method can process short bag.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically;
Fig. 2 is the system construction drawing that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically;
Fig. 3 is the structural representation of a kind of short bag sample circuit that the embodiment of the present invention provides;
Fig. 4 is each message time sequence figure that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically;
Fig. 5 is the flow chart of the method that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically;
Fig. 6 is the flow chart of the method that a kind of luminous power that happens suddenly that the embodiment of the present invention provides controls automatically;
Fig. 7 is the time diagram that a kind of short bag that the embodiment of the present invention provides, middle long bag and long packets send.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In various embodiments of the present invention, middle long bag and short bag all belong to the signal of burst, and the optical power control of the described short bag of the transmission of correspondence and middle long bag is also referred to as burst optical power control.In addition, the embodiment of the present invention also relates to long packets, and the optical power control sending described long packets also can be called as continuous optical power control.Long packets in the present embodiment is also referred to as continuous bag in this field.Concrete short bag, middle long bag and the long packets of how defining can the definition of its time in reference example.Wherein, the packet of the 200ns ~ 2us packet be defined as between short bag, 2us ~ 10ms is defined as Zhong Changbao, the packet of more than 10ms is defined as long packets
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Embodiment one
Be illustrated in figure 1 the flow chart of the method that a kind of luminous power that happens suddenly provided by the invention controls automatically, laser works in the triggering signal term of validity, said method comprising the steps of:
In a step 102, laser in working order time, export back facet current, described back facet current is obtained by short bag sample circuit respectively and middle long bag sample circuit obtains, and wherein, described short bag sample circuit can be sampled the back facet current of maintenance current time.
Wherein, short bag sample circuit and middle long bag sample circuit can be the circuit be made up of self-standing appliance part, also can be to realize based on internal circuit in integrated chip (such as: MAX3643 or MCU), do not make particular determination at this.
In concrete implementation, namely the simplest implementation of described middle long bag sample circuit adopts the analog to digital conversion circuit of MCU to form.
At step 104, whenever triggering signal by invalid transfer to effective time, trigger once interrupt.
Signal comprises high level and low level, and general definition is signal high level is significant level, and the low level of signal is inactive level, and therefore, triggering signal described herein is transferred to effectively by invalid, namely transfers high level to from low level.
In step 106, have no progeny in entering, judge whether also effectively triggering signal.
For short bag, due to its maintain time very short, therefore, from the interruption of step 104 enter into step 106 again judge the validity of triggering signal time, described short bag has been sent completely.
In step 108, when judged result is invalid, judges that the current packet sent by described laser is short bag, then jump out interruption.
In the present embodiment, preferably, described short package definition is the packet that transmitting time is less than 2us.
In step 110, trigger the back facet current calculating sampling luminous power stored according to described short bag sample circuit, and adjust the light emitting power of laser by the comparative analysis result of described sampled light power and target light power.
Preferably, described short bag sample circuit also comprises sampling hold circuit and buffer, described sampling hold circuit is for storing the back facet current of current time, then described triggering is according to the back facet current calculating sampling luminous power of described short bag sample circuit storage, is specially:
The back facet current that described sampling hold circuit is stored by described buffer is transferred to microcontroller, and described microcontroller calculates the sampled light power of this short bag according to the back facet current received.
Wherein, target light power is the desired light power of the laser pre-entered, mainly as the references object of sampled light power.
The embodiment of the present invention, by increasing short bag sample circuit, solve in prior art and the problem of losing is detected for the luminous power of short bag, utilize the signal transient storage characteristics of short bag sample circuit, the electric current of short bag is stored, and extract when processing, make the inventive method to process short bag.
There is a kind of preferred scheme 1 in conjunction with the present embodiment, wherein when the judgement of step 106 is effective, described method also comprises:
In step 112, when judged result is effective, judge that the current packet sent by described laser is wrapped as middle length, and the long bag count value of centering adds 1.
In step 114, verify described middle long bag count value and whether reach predetermined threshold value.
In step 116, when check results is that described middle long bag count value reaches predetermined threshold value, then jump out interruption, and trigger the back facet current calculating sampling luminous power that obtains according to described middle long bag sample circuit, by adjusting the light emitting power of laser with the comparative analysis result of target light power.
In step 118, when check results is that described middle long bag count value does not reach predetermined threshold value, then interruption is jumped out.
There is a kind of preferred scheme 2 in conjunction with the present embodiment, wherein, the current packet sent by described laser of described judgement is short bag, then jump out interruption, and triggers the back facet current calculating sampling luminous power of described short bag sample circuit storage, specifically comprises:
Judge that the current packet sent by described laser is short bag, then exchange integral denotation value and put 1; Jump out interruption; Microcontroller judges whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, from the back facet current calculating sampling luminous power that described short bag sample circuit stores.
A kind of preferred scheme 3 is there is in conjunction with the present embodiment, wherein, described when check results be that described middle long bag count value reaches predetermined threshold value, then jump out interruption, and trigger the back facet current calculating sampling luminous power obtained according to described middle long bag sample circuit, specifically comprise:
When check results is that described middle long bag count value reaches predetermined threshold value, then exchanges integral denotation value and put 1; Then jump out interruption; Microcontroller judges whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, from the back facet current calculating sampling luminous power that described middle long bag sample circuit obtains.
There is a kind of preferred scheme 4 in conjunction with the present embodiment, wherein, the output port of described short bag sample circuit is provided with buffer circuit, thus has the back facet current that described in time enough process, short bag sample circuit preserves to microcontroller.
This preferred scheme 4 is provided with buffer circuit at the delivery outlet of short end bag sample circuit, described buffer circuit can extend and/or amplify the back facet current that short bag sampling circuit samples is preserved, thus provides plenty of time more to the microcontroller that originally cannot process.
For Fig. 2 and Fig. 4, buffer in the back facet current (i.e. short bag) that above-mentioned preferred scheme 2 stores based on short bag sample circuit and short bag sample circuit, achieve the form existing short bag being modeled to middle long bag or long packets send to middle long bag sample circuit (A/D0 interface in such as Fig. 2, described A/D0 and A/D1 interface can as in long bag sample circuit input interface; Its simulate effect is as shown in the 4th bars sequential in Fig. 4), carry out optical power adjustment.
There is a kind of preferred scheme 5 in conjunction with the present embodiment, wherein, described method also comprises a timer, and described timer is opened when triggering signal is effective, and closes when triggering signal is invalid, then described method also comprises:
When described timer overflows, reset timer, judge that the current packet sent by described laser is long packets, use the back facet current calculating sampling luminous power obtained in described middle long bag sample circuit, and according to the comparative analysis result of described sampled light power and target light power, the light emitting power of adjustment laser.
Those skilled in the art can to know between above-mentioned several preferred scheme and can combine mutually based in above-mentioned disclosed content basis, do not repeat them here.
Embodiment two
The structural representation of the system that a kind of luminous power that happens suddenly that being illustrated in figure 2 the embodiment of the present invention provides controls automatically, as shown in Figure 2, the system that a kind of luminous power that happens suddenly provided by the invention controls automatically comprises CD-ROM driver 14, microcontroller 10 and laser 12, described CD-ROM driver 14 works for controlling laser 12, described microcontroller 10 for calculate and adjust laser driver 14 control luminous power, CD-ROM driver 14 generates triggering signal to control the work of laser 12, and described system specifically comprises realizing method of the present invention:
Laser 12 works in the term of validity of triggering signal, and exports back facet current; The short bag sample circuit that described back facet current is input to described CD-ROM driver 14 stores, for calculating the sampled light power of the packet of short bag; Described back facet current is also input to the analog-to-digital conversion passage of described microcontroller 10, for calculating the sampled light power of short bag and middle long bag.
Whenever CD-ROM driver 14 triggering signal by invalid transfer to effective time, microcontroller 10 triggers and once interrupts;
Have no progeny in entering, microcontroller 10 judges whether also effectively triggering signal;
When judged result is invalid, microcontroller 10 judges that the current packet sent by described laser 12 is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power that gets according to described short bag sample circuit, and send the message of the light emitting power adjusting laser 10 to CD-ROM driver 14 by the comparative analysis result of described sampled light power and target light power.
Microcontroller 10 compares result according to described sampled light power and target light power, sends the message of the light emitting power of adjustment laser 10 to CD-ROM driver 14.
The embodiment of the present invention, by increasing short bag sample circuit, solve in prior art and the problem of losing is detected for the luminous power of short bag, the current time storage characteristics of the short bag sample circuit of Shi Liyong, the electric current of short bag is stored, and extract when processing, make the inventive method to process short bag.
There is a kind of preferred scheme 1 in conjunction with the present embodiment, when microcontroller 10 judges that triggering signal result is effective, microcontroller 10 judges that the current packet sent by described laser is wrapped as middle length, and the long bag count value of centering adds 1; Microcontroller 10 verifies described middle long bag count value and whether reaches predetermined threshold value; When check results is that described middle long bag count value reaches predetermined threshold value, then jump out interruption, and trigger the back facet current calculating sampling luminous power that obtains according to described middle long bag sample circuit, by adjusting the light emitting power of laser with the comparative analysis result of target light power; When check results is that described middle long bag count value does not reach predetermined threshold value, then jump out interruption.
A kind of preferred scheme 2 is there is in conjunction with the present embodiment, microcontroller 10 judges that the current packet sent by described laser 12 is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power got according to described short bag sample circuit, specifically comprise:
Microcontroller 10 judges that the current packet sent by described laser 12 is short bag, then exchange integral denotation value and put 1; Jump out interruption; Judge whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, from the back facet current calculating sampling luminous power that described short bag sample circuit stores.
There is a kind of preferred scheme 3 in conjunction with the present embodiment, when check results is that described middle long bag count value reaches predetermined threshold value, then jump out interruption, the back facet current calculating sampling luminous power that microcontroller 10 obtains from described middle long bag sample circuit, specifically comprise:
When check results is that described middle long bag count value reaches predetermined threshold value, microcontroller 10 is exchanged integral denotation value and is put 1; Interruption jumped out by microcontroller 10; Judge whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, from the back facet current calculating sampling luminous power that described middle long bag sample circuit obtains.
There is a kind of preferred scheme 4 in conjunction with the present embodiment, the output port of described short bag sample circuit is provided with buffer circuit, thus has the back facet current that described in time enough process, short bag sample circuit preserves to microcontroller 10.
This preferred scheme 4 is provided with buffer circuit at the delivery outlet of short end bag sample circuit, described buffer circuit can extend and/or amplify the back facet current that short bag sampling circuit samples is preserved, thus give the microcontroller 10 that originally cannot process simulate its can calculate in long bag signal.
There is a kind of preferred scheme 5 in conjunction with the present embodiment, described microcontroller 10 also comprises a timer, and described timer is opened when triggering signal is effective, and closes when triggering signal is invalid, then described method also comprises:
When described timer overflows, microcontroller 10 resets timer, judge that the current packet sent by described laser is long packets, use the back facet current calculating sampling luminous power obtained in described middle long bag sample circuit, and according to the comparative analysis result of described sampled light power and target light power, the light emitting power of adjustment laser.
Those skilled in the art can to know between above-mentioned several preferred scheme and can combine mutually based in above-mentioned disclosed content basis, do not repeat them here.
Embodiment three
As shown in Figure 2, present embodiments provide the structural representation of the system that a kind of luminous power that happens suddenly controls automatically, as shown in Figure 2, pin corresponding in the relevant pins of CD-ROM driver 14 (MAX3643) concrete in composition graphs 2 and microcontroller 10 (MCU) is set forth this concrete implementation by the present embodiment.Comparatively embodiment two, the present embodiment correspondence system functions of modules shows as:
Laser 12 works in the term of validity of triggering signal, and described triggering signal is specially high electricity BURST-ENABLEIN (being abbreviated as: BUSIN) frequently, and is carried at CD-ROM driver 14 and sends in the laser drive signal of laser 12.
Laser 12 is operationally waited, and exports back facet current.The luminous power of described backlight is directly proportional to the luminous power of laser front side emitter light, therefore, can calculate the luminous power of the light that described laser is launched according to the back facet current of described laser.
The short bag sample circuit that described back facet current is input to described CD-ROM driver 14 (MAX3643) stores, and is specially: be input in internal sample holding circuit by MDIN coffret.Described back facet current is also input to long bag sample circuit in described microcontroller 10 (MCU), is transferred in middle long bag sample circuit by described back facet current specifically by A/D1 coffret.In MCU, long bag sample circuit cannot be reacted within short bag effective time under normal circumstances, such as only need to be less than 1us luminous come short packet data.
Wherein, short bag sample circuit comprises: sampling keeps input interface MDIN (Monitor Diode Input, Chinese full name: monitor diode input), sampling hold circuit, buffer circuit and sampling keep output interface MDOUT (Monitor DiodeOutput, Chinese full name: monitor that diode exports), as shown in Figure 3, when BENIN is in the valid period, S1 is in closure state, and S2 is in off-state.Now CD-ROM driver 14 (MAX3643) obtains back facet current mainly through MDIN interface, and is stored in sampling hold circuit.
Each triggering signal enters the term of validity by dynamic stage, and triggering is once interrupted by microcontroller 10, in interrupt service routine, whether still effectively will detect triggering signal again, and if still effective, then carry out long bag count value once and add 1.As shown in the BURST-ENALBE IN curve (first signal timing diagram) of Fig. 4, its high level region is the term of validity of described triggering signal, and wherein low level region is the dynamic stage of described triggering signal.
When supposing that described middle long bag count value reaches predetermined threshold value, microcontroller 10 (MCU) resets described middle long bag count value, and judge that this packet is as middle long bag, and reach the optical power adjustment opportunity of middle long bag, obtain back facet current according to bag sample circuit long in described microcontroller 10 and calculate sampled light power.
Under normal circumstances, the term of validity sending the BENIN signal corresponding to bob is very short, and therefore, the switching of S1 switch and S2 switch is very fast, and this switching time may only have for tens nanoseconds, even only had for tens nanoseconds.What switching over situation was concrete is: as shown in Figure 3, when BENIN is in low level in the diagram, switch S 1 in MDIN and MDOUT in Fig. 3 will disconnect, S2 will be in closure state, so the A/D0 interface of MCU (10) gets in MDIN the back facet current of sampling and keeping by MDOUT coffret.The output level of MDOUT is as shown in the 4th bars sequential chart in Fig. 4.
Micro-control light device 10 (MCU) compares result according to described sampled power value and target light power, controls the output that CD-ROM driver 14 (MAX3643) adjusts luminous power.Specifically by IBIAS SET (the Bias Current Set between microcontroller 10 (MCU) and CD-ROM driver 14 (MAX3643), Chinese full name: bias current is arranged) and IMOD SET (Modulation CurrentSet, Chinese full name: laser bias current is arranged) interface completes the transmission of described optical power adjustment parameter, further, CD-ROM driver 14 (MAX3643) controls by laser drive signal the luminous power that laser changes transmitting.
The present embodiment combines concrete CD-ROM driver 14 (MAX3643) and general microcontroller relevant pins and concrete signal of telecommunication sequential chart and set forth the implementation of the inventive method in concrete system, gives feasible specific embodiments.
Embodiment four
Be illustrated in figure 3 the short bag sample circuit of one that the embodiment of the present invention provides, because sampling hold circuit is prior art, in order to simplified electrical circuit diagram structure, does not therefore specifically draw in the drawings, only represent with sampling hold circuit.Those skilled in the art can according to this circuit function of content specific implementation disclosed in the present embodiment.Described circuit specifically comprises:
Triggering signal (BURST-ENABLE, is abbreviated as: BENIN), described triggering signal BENIN is exported by BENOUT coffret after buffering.Described BENIN signal is sent to the I/O coffret of microcontroller 10 (MCU) by BENOUT interface, thus calculates the term of validity of BENIN for it and provide reference frame dynamic stage.
Sampling hold circuit and MDIN coffret, described MDIN interface is used for accepting back facet current, and preserves in sampling holding capacitor therein.Be specially, in the BENIN term of validity, switch S 1 closes, and S2 opens, and the back facet current received is transferred to sampling hold circuit and preserves by MDIN.
MDOUT coffret, when BENIN is invalid, the control switch S1 in Fig. 3 can open, and S2 can close, so the back facet current preserved in sampling hold circuit can transferred out by MDOUT after buffer circuit.For the specific embodiment of Fig. 2, the back facet current that MDOUT transfers out can be obtained by the A/D0 coffret of microcontroller 10 (MCU), so that described microcontroller 10 (MCU) has come the calculating of luminous power and follow-up adjustment.
This gives a kind of specific implementation realizing holding capacitor circuit, beneficial effect proposed by the invention can be realized in conjunction with concrete system embodiment two or three.Support feasibility of the present invention further.
Embodiment five
As shown in Figure 4, be a kind of signal sequence graph of a relation that the embodiment of the present invention provides, wherein list the signal sequence in the several important coffret that can relate in embodiment three, specifically comprise:
Triggering signal (BURST-ENABLE IN, is abbreviated as: BENIN) high level in the present embodiment shows that BENIN is effective, and low level then represents that BENIN is invalid.In concrete implementation, what BENIN ordinary representation system gave specific user can the time slot graph of a relation of occupied bandwidth, and namely the region of high level in figure, is that system assignment can use this laser to send the time slot of packet to user.In concrete realization, the interval between the time slot distributing to a user is less than 125us, usually as shown in the 1st bars sequential in Fig. 4.
Back facet current signal: INTERNAL MDIN VOLTAGE SAMPLER, for MDIN coffret get and the back facet current data be stored in short bag sample circuit, as shown in the 2nd bars sequential in Fig. 4.
The triggering signal that MCU receives: BENOUT OUTPUT, is specially the BENIN signal through buffering.This buffering is to prevent external circuit from causing interference and impact, as shown in the 3rd bars sequential in Fig. 4 to BENIN signal.
Export the back facet current be kept in sampling maintenance: MDOUT, owing to relating to maintenance and the electric discharge of sample circuit, and the signal of buffer circuit is set up and stabilization time, therefore, the ascending curve of 3us is there is in 4th bars sequential line in Fig. 4, in usual MDOUT, the electric discharge of voltage is slowly, as shown in decline curve mild in the 4th bars sequential in Fig. 4.Therefore, giving microcontroller 10 (MCU) has the time obtaining back facet current fully, has carried out the calculating of the luminous power of short bag.
Embodiment six
As shown in Figure 5, the method that a kind of luminous power that happens suddenly provided for the embodiment of the present invention controls automatically, described method be for embodiment one under specific implementation environment how according in long bag counting realize the method that luminous power calculates.In described in the present embodiment, long bag counting is specially: MDOUT_Invalid_Count.This flow process specifically comprises:
In step 201, when BENIN enters effective from dynamic stage, trigger the external interrupt of MCU.
In actual motion, for the pulse signal received by low level high level at every turn, all can trigger and once interrupt 201.
Now, the control switch S1 in Fig. 3 closes and closes, and S2 disconnects, and the voltage on MDIN is held in inner sampling hold circuit.When BENIN is invalid, S1 disconnects, and S2 closes and closes, and the voltage remained in sampling hold circuit is discharged by MDOUT.
In step 202., the sampling for MDOUT in MCU is opened.
Under normal circumstances, for short bag, above-mentioned BENIN effective and invalid between the speed that switches too fast, therefore, need to open the sampling for MDOUT in MCU in advance.
In step 203, in order to ensure really entering BENOUT effective coverage, needing the validity again judging BENOUT, if judged result is invalid, entering step 209; If judged result is for effectively then to enter step 204.
In step 204, wait converts.Here be the process that in MCU, the analog signal of the back facet current received is converted to digital signal by analog-to-digital conversion interface.
In step 205, MDOUT_Invalid_Count counts.The initial value of MDOUT_Invalid_Count is 0, enters to interrupt flow process and will perform and once add 1 at every turn.Be specially the number calculating in continuous print and wrap, after this is through inventor's checking, be divided into by packet short bag, middle long bag and long packets to be the mode of validity more sometimes.Wherein, the packet of the 200ns ~ 2us packet be defined as between short bag, 2us ~ 10ms is defined as Zhong Changbao, the packet of more than 10ms is defined as long packets.
In step 206, judge whether MDOUT_Invalid_Count counting reaches 100, if reach 100, enters step 212, otherwise enters step 207.Here 100 to be that in embodiment one, predetermined threshold value is concrete in the present embodiment present, this predetermined threshold value normally by virtue of experience or experiment obtain.
In step 207, this packet is middle long bag, and now, back facet current selects the data obtained in MCU digital-to-analogue conversion coffret (A/D1).
In a step 208, optical power adjustment flag bit ATC_Change=1 is put.Described ATC_Change judges whether as follow-up the Rule of judgment carrying out optical power adjustment, and its value is 0 show not carry out optical power adjustment; Its value is 1 show to carry out optical power adjustment.
In step 209, wait converts.Similar with step 204, repeat no more.
In step 210, the data that the sampling of selecting the MDOUT interface of MAX3643 to export keeps are as the back facet current of calculating sampling luminous power.
In step 211, MDOUT_Invalid_Count is reset.
In the step 212, counter is closed.Described counter is mainly used in judging whether this packet is that long packets packet uses.Described long packets packet is often referred to the packet of transmitting time more than 100us.This step is optional in the present embodiment, and its meaning existed will combine with embodiment six to be seen (can describe emphatically in embodiment six) with practical value.
In step 213, interruption is jumped out.
The present invention's implementation is in a particular embodiment described from signal pulse granularity in the present embodiment, in system based on MAX3643 (14), MCU (10) and laser (12), the mode of terminal how is utilized to give detailed scheme to the optical power adjustment completing middle long bag and short bag.
Embodiment six
The method that a kind of luminous power that happens suddenly that Fig. 6 provides for the embodiment of the present invention controls automatically, timer is wherein to determine whether continuous light, compare the flow process in embodiment five, the present embodiment is the flow process of system, can think program just in the program of execution after starting, and embodiment five can think the interruption that produces at any time in native system flow performing process after in conjunction with the present embodiment.And trigger under the pattern of continuous light, being that an adjustment cycle carries out optical power adjustment close to 10ms.
In step 301, automatic optical power control program is entered.
Described automatic optical power control program can be just open when MCU starts; Also can be start after receiving laser works instruction; Can also in generation as implemented to have no progeny in five startup.
In step 302, detect timer whether to open.If opened, then enter step 305; If do not opened, then count step 303.
In step 303, remove timer to overflow.
In step 304, timer is reset.
In step 305, whether effectively detecting BENIN, is namely be in high level state or to be in low level state.If effectively, then enter step 307; If invalid, then enter step 306.
Within step 306, timeing closing device.
In step 307, opening timing device.
In step 308, timer overflows, and does not overflow and performs step 312; Overflow and then perform step 309.
In a step 309, judge current as long packets mode of operation, back facet current adopts the data of the A/D0 mouth sampling of MCU to calculate.
In the step 310, timer is reset.
In step 311, ATC adjustment mark ATC_Change=1 is put.
In step 312, system monitoring.
Described system monitoring, according to the specification of product, specifically comprises: temperature, voltage, bias current, received optical power, and self-inspection and the alarm amount etc. produced.
In step 313, whether judge that adjustment mark is set 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 light power is calculated.
In step 315, according to result of calculation in step 314, adjustment luminous power.Then get back to step 302 circulation and perform above-mentioned flow process.
The present embodiment, from system flow angle, adds timer, gives the implementation how embodiment of the present invention one is specifically applied in the environment including long packets signal.The scope of application of the method that a kind of luminous power that happens suddenly that improve the present invention's proposition controls automatically.
The present embodiment, by poll repeatedly, judges the state of BEN.If before timer overflows, be polled to BEN invalid, illustrate that this transmission is not continuous light, there are two kinds of possibilities around here, itself there is no luminescence or packet.If there is no luminescence, then do not need to adjust luminous power, if packet, then by the mechanism of flow chart 5, trigger adjustment by external interrupt.If after timer overflows, still BEN is effective, be then a continuous print luminance during this, due to the generation that do not happen suddenly, then can not trigger prominent adjustment, and therefore, the about 10ms timing that can only rely on timer is overflowed, and triggers the adjustment of one-time continuous luminous power.
At timer open period, if produce packet, and due to program poll, fail in time according to the situation of BEN judgement timer switch, then to be retrained by flow process in flow chart 5.The packet produced during this period, meeting triggered interrupts, and can timeing closing device in this interruption.And when next round poll, according to the closed condition of timer, to timer initialization, will restart the judgement of continuous light.
Embodiment seven
The present embodiment be combine embodiment five and embodiment six after, comprehensive set forth counting and timing device in above-mentioned two embodiments and how to come cooperative.As shown in Figure 7, the present embodiment is that laser 12 sends the one section of process intercepted in process data packet under CD-ROM driver 14 controls.Suppose that the threshold value of timer is set to 10ms.
As shown in Figure 7, relate to packet 1 and packet 2, known by the description of the various embodiments described above, the period taken by packet 1 and packet 2 in figure corresponding BENIN be effective coverage, and the corresponding BENIN's in the region not having packet to cover is inactive area.
The region that in figure, working procedure covers is the automatic optical power control flow process of corresponding embodiment six, and described automatic adjustment covers whole Packet Generation process.As shown in Figure 7, when flow process arrives A point, BENIN becomes effectively from invalid, interruption flow process shown in activating embodiment six, C point executes the interruption flow process of Fig. 6 in the drawings, and return, in the step 302 of embodiment six, it is emphasized that the interruption flow process of described corresponding embodiment five can occur in each stage of automatic optical power control flow process in embodiment six from step 213.Can find from Fig. 7, the length of packet 1 is less than Timer Threshold 10ms, therefore, starts can not carry out optical power adjustment to end at packet 1.After arrival E point, because BEN is invalid, therefore, after step 305 judges, timer can be closed.This is because the duration of packet 1 could not make timer overflow, namely packet 1 does not belong to long packets and short bag, and belongs to Zhong Changbao.Enter after packet 2 launches, still can call the interrupt processing flow process of embodiment five, to suppose now that long bag count value to reach in embodiment five 100, then now can enter step 207, thus complete optical power adjustment further; If long bag count value not to reach in embodiment five 100 now, then because packet 2 length also discontented foot timer overflow condition, therefore, still optical power adjustment can not be triggered.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method that the luminous power that happens suddenly controls automatically, laser works in the triggering signal term of validity, it is characterized in that, described method comprises:
Laser in working order time, export back facet current, described back facet current is obtained by short bag sample circuit respectively and middle long bag sample circuit obtains, and wherein, described short bag sample circuit can be sampled the back facet current of maintenance current time;
Whenever triggering signal by invalid transfer to effective time, trigger once interrupt;
Have no progeny in entering, judge whether also effectively triggering signal;
When judged result is invalid, judge that the current packet sent by described laser is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power stored according to described short bag sample circuit, and by adjusting the light emitting power of laser with the comparative analysis result of target light power.
2. the method for claim 1, is characterized in that, when judged result is effective, described method also comprises:
Judge that the current packet sent by described laser is wrapped as middle length, and the long bag count value of centering adds 1;
Verify described middle long bag count value and whether reach predetermined threshold value;
When check results is that described middle long bag count value reaches predetermined threshold value, then jump out interruption, and trigger the back facet current calculating sampling luminous power that obtains according to described middle long bag sample circuit, the light emitting power of laser is adjusted by the comparative analysis result of described sampled light power and target light power;
When check results is that described middle long bag count value does not reach predetermined threshold value, then jump out interruption.
3. method as claimed in claim 1 or 2, it is characterized in that, the current packet sent by described laser of described judgement is short bag, then jump out interruption, and triggers the back facet current calculating sampling luminous power stored according to described short bag sample circuit, specifically comprises:
Judge that the current packet sent by described laser is short bag, then exchange integral denotation value and put 1;
Jump out interruption;
Microcontroller judges whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, obtains the back facet current that described short bag sample circuit stores, and calculating sampling luminous power.
4. method as claimed in claim 2 or claim 3, it is characterized in that, described when check results be that described middle long bag count value reaches predetermined threshold value, then jump out interruption, and trigger the back facet current calculating sampling luminous power obtained according to described middle long bag sample circuit, specifically comprise:
When check results is that described middle long bag count value reaches predetermined threshold value, then exchanges integral denotation value and put 1;
Then jump out interruption;
Microcontroller judges whether to carry out optical power adjustment according to described adjustment value of statistical indicant, when confirming that described adjustment value of statistical indicant is 1, from the back facet current calculating sampling luminous power that described middle long bag sample circuit obtains.
5. the method as described in as arbitrary in claim 1-4, it is characterized in that, the output port of described short bag sample circuit is provided with buffer circuit, thus has the back facet current that described in time enough process, short bag sample circuit preserves to microcontroller.
6. the method as described in as arbitrary in claim 1-5, it is characterized in that, described method also comprises a timer, and described timer is opened when triggering signal is effective, and closes when triggering signal is invalid, then described method also comprises:
When described timer overflows, reset timer, judge that the current packet sent by described laser is long packets, use the back facet current calculating sampling luminous power obtained in described middle long bag sample circuit, and according to the comparative analysis result of described sampled light power and target light power, the light emitting power of adjustment laser.
7. the system that automatically controls of the luminous power that happens suddenly, contain CD-ROM driver, microcontroller and laser in the system, described CD-ROM driver is for controlling laser works, described microcontroller for calculate and adjust laser driver control luminous power, CD-ROM driver generates the work that triggering signal controls laser, it is characterized in that, comprising:
Laser in working order time export back facet current, the short bag sample circuit that short bag sample circuit and middle long bag sample circuit composition are independently controlled by light device respectively obtains and the long bag sample circuit of microcontroller obtains, wherein, described short bag sample circuit can be sampled and be kept the back facet current of current time;
Whenever CD-ROM driver triggering signal by invalid transfer to effective time, microcontroller then triggers and once interrupts;
Have no progeny in entering, microcontroller judges whether also effectively triggering signal;
When judged result is invalid, microcontroller judges that the current packet sent by described laser is short bag, then jump out interruption, and trigger the back facet current calculating sampling luminous power got according to described short bag sample circuit, and sent the message of the light emitting power adjusting laser to CD-ROM driver by the comparative analysis result with target light power.
8. system as claimed in claim 7, it is characterized in that, after entering terminal, described microcontroller judges triggering signal also as time effective, and described method also comprises:
Microcontroller judges that the current packet sent by described laser is wrapped as middle length, and the long bag count value of centering adds 1;
Whether the described middle long bag count value of microcontroller verification reaches predetermined threshold value;
When check results is that described middle long bag count value reaches predetermined threshold value, then jump out interruption, the back facet current calculating sampling luminous power that microcontroller obtains from described middle long bag sample circuit, sends the message of the light emitting power adjusting laser to CD-ROM driver by the comparative analysis result with target light power;
When check results is that described middle long bag count value does not reach predetermined threshold value, then jump out interruption.
9. system as claimed in claim 7 or 8, it is characterized in that, the output port of described short bag sample circuit is provided with buffer circuit, thus has the back facet current that described in time enough process, short bag sample circuit preserves to microcontroller.
10. the system as described in as arbitrary in claim 7-9, it is characterized in that, also comprise a timer in described microcontroller, described timer is opened when triggering signal is effective, and closes when triggering signal is invalid, then described method also comprises:
When described timer overflows, described micro-controller resetting timer, judge that the current packet sent by described laser is long packets, use the back facet current calculating sampling luminous power obtained in described middle long bag sample circuit, and according to the comparative analysis result of described sampled light power and target light power, the light emitting power of adjustment laser.
CN201410787752.7A 2014-12-17 2014-12-17 A kind of method that luminous power that happens suddenly is automatically controlled Active CN104579495B (en)

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 true CN104579495A (en) 2015-04-29
CN104579495B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660301A (en) * 2018-12-07 2019-04-19 青岛海信宽带多媒体技术有限公司 Receive signal sampling method and optical module
CN111327358A (en) * 2018-12-17 2020-06-23 山东华云光电技术有限公司 Control method and control system for compensating tracking error of optical device
CN112688739A (en) * 2020-12-16 2021-04-20 武汉永鼎光通科技有限公司 APC control circuit that self-adaptation is shaded

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660301A (en) * 2018-12-07 2019-04-19 青岛海信宽带多媒体技术有限公司 Receive signal sampling method and optical module
CN109660301B (en) * 2018-12-07 2021-09-10 青岛海信宽带多媒体技术有限公司 Received signal sampling method and optical module
CN111327358A (en) * 2018-12-17 2020-06-23 山东华云光电技术有限公司 Control method and control system for compensating tracking error of optical device
CN111327358B (en) * 2018-12-17 2021-08-13 山东华云光电技术有限公司 Control method and control system for compensating tracking error of optical device
CN112688739A (en) * 2020-12-16 2021-04-20 武汉永鼎光通科技有限公司 APC control circuit that self-adaptation is shaded

Also Published As

Publication number Publication date
CN104579495B (en) 2017-10-31

Similar Documents

Publication Publication Date Title
WO2016101099A1 (en) Techniques for power management associated with processing received packets at a network device
US10873882B2 (en) System and method of a pause watchdog
EP2950489B1 (en) Method and device for generating cnm
CN102904633B (en) Method and the device of optical module long hair light is detected in a kind of EPON
EP3547627A1 (en) Flow control method and switching device
CN104579495A (en) Automatic control method for burst luminous power
WO2005101744A3 (en) Network delay control
US9306858B2 (en) Network apparatus, communication system, abnormal traffic detection method, and program
EP3961981A1 (en) Method and device for congestion control, communication network, and computer storage medium
EP3309688A1 (en) Hot plug method, host controller, host and pcie bridge device
TW201340648A (en) Reducing headroom
CN103209137B (en) Configurable high precision time interval frame issues Ethernet interface control system
CN111314018B (en) Baud rate self-adaptive adjustment processing system and method and information data processing terminal
CN104052676B (en) A kind of data processing method of transmission path device and transmission path
JP6353932B2 (en) Optical packet transmission method and device, optical packet processing method, and optical switching device
CN103312409B (en) The method and device that a kind of optical module detecting optical node is abnormal luminous
Tadokoro et al. Design of softwarized EPON OLT and its transmission jitter suppression techniques over MPCP
CN104301185A (en) Message sending rate detection method and device
US20150149531A1 (en) Dynamically Selected Message Refresh Interval
US20220311677A1 (en) Control device, control method, and control program
CN114640728B (en) Protocol frame timing frame sending control method, device, equipment and storage medium
CN107171719B (en) The monitoring method and device of optical power
CN102185732B (en) Method and system for testing active queue management parameters of communication equipment
CN201215955Y (en) Light transmission system
CN115576698A (en) Network card interrupt aggregation method, device, equipment and medium

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