CN105007117B - A kind of method of automatic calibration BOB transmission powers - Google Patents
A kind of method of automatic calibration BOB transmission powers Download PDFInfo
- Publication number
- CN105007117B CN105007117B CN201510266360.0A CN201510266360A CN105007117B CN 105007117 B CN105007117 B CN 105007117B CN 201510266360 A CN201510266360 A CN 201510266360A CN 105007117 B CN105007117 B CN 105007117B
- Authority
- CN
- China
- Prior art keywords
- txpower
- value
- border
- bob
- apc
- 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 discloses a kind of method of automatic calibration BOB transmission powers, including:(1)Confirm optical fiber cable integrality;(2)Choose TxPower1、TxPower2;(3)Obtain transmitting optical power a reference value TxPower and APC a reference value Y;(4)It is traversed with successive approximation method, obtains Y1、TxPower1' and ADC values x1;(5)If TxPower1≤TxPower≤TxPower2, it is false that setting, which resets bit flag, by step(4)Mode obtain Y2、TxPower2' and x2;No, it is true that setting, which resets bit flag, enables Y=Y1, TxPower=TxPower1', it is traversed with successive approximation method, obtains Y2、TxPower2' and x2;(6)Calculate slope and offset;(7)Calculate TxPowerSlope and TxPowerOffset;(8)TxPowerSlope, TxPowerOffset are written in BOB module registers, APC value is verified;(9)Choose TxPower3, calculate Y3;(10)Obtain luminous value Z and TxPower4;(11)Judge ︱ TxPower4Whether-Z ︱≤0.5dbm are true, are, calibration passes through;It is no, calibration failure.It is high that the present invention realizes the automatic calibration of BOB transmission powers, not only simple operation, but also calibration accuracy.
Description
Technical field
The present invention relates to a kind of BOSA in plate (BOSA On Board, abbreviation BOB) technology, and in particular to be it is a kind of from
The method of dynamic calibration BOB transmission powers.
Background technology
Although network popularizes masses comprehensively, occupy mainstream at present is still ADSL technologies.With Web vector graphic
Range constantly expands, and requirement of the user to network is also higher and higher, and as the production cost of optical fiber cable reduces, so no matter
It is that vast user or equipment vendors and operation commercial city have turned one's attention to fiber optic network access technology.
However, it is always therefore fiber to the home universal key and problem seek one that optical fiber access network equipment is expensive
The low-cost technical equipment of kind can simultaneously produce and use, and become the emphasis of present Access investigative technique.BOSA is in plate abbreviation BOB
Technology, maximum advantage can exactly shorten supply chain, reduce cost, and Some Domestic system manufacturer and ODM manufacturers be at present
There are research and production.The ONU (Optical Network Uint) of BOB technologies, on hardware configuration with traditional ONU structures
Difference is only that the packaged type of optical module, traditional ONU equipment use independent light module package, can be with hot plug on ONU plates;
And BOB technologies are then that optical module is directly welded on ONU plates, simplify ONU system harden structures, to reduce equipment at
This.
Although the appearance of BOB technologies, which is the universal of fiber optic network access technology, provides good place mat, BOB is being produced
It after out, needs that its transmission power and reception power are tested and calibrated, makes its eye pattern test in oscilloscope can
It meets the requirements.However, the existing calibrating mode to BOB modules, particularly the calibrating mode to BOB module transmission powers, no
It is only complicated for operation, and calibration precision is low, is highly detrimental to the batch production of product.Therefore, it is necessary to the calibration side of BOB
Formula is improved.
Invention content
The purpose of the present invention is to provide a kind of method of automatic calibration BOB transmission powers, mainly solve to send out BOB modules
The calibrating mode of power is sent to there is a problem of that complicated for operation, calibration accuracy is low.
To achieve the goals above, the technical solution adopted by the present invention is as follows:
A kind of method of automatic calibration BOB transmission powers, includes the following steps:
(1) confirm the integrality of system optical fiber cable;
(2) whether the transmitting optical power value of verification light power meter is then to choose two transmission light between -1~4dbm
Performance number TxPower1、TxPower2, and execute step (3);It is no, then terminate to calibrate, and return to step (1);Described
TxPower2>TxPower1;
(3) wavelength, the measurement unit of light power meter are set gradually, and determines whether to start to calibrate, is then to execute step
Suddenly (4);It is no, then terminate to calibrate, and return to step (1);
(4) APC value of BOB modules is preset, and controls BOB modules and sends out prbs23 code streams;
(5) light source is opened, obtains the APC value Y of transmitting optical power value TxPower and the BOB module of light power meter, and will
TxPower and Y is used as a reference value;
(6) judge transmitting optical power value TxPower1Whether it is more than TxPower, is, then uses successive approximation method from BOB moulds
The APC a reference values Y of block is traversed between maximum APC value, obtains suitable APC value Y1And corresponding light power meter
Luminous power value TxPower1' ADC values the x with BOB modules1;No, then the APC for using successive approximation method from BOB modules is minimum
It is worth between APC a reference values Y and is traversed, obtains suitable APC value Y1And the luminous power value of corresponding light power meter
TxPower1' ADC values the x with BOB modules1;
(7) if TxPower1≤TxPower≤TxPower2, then it is false that setting, which resets bit flag, then according to step (6)
Mode obtain be suitble to TxPower2APC value Y2, and and Y2The luminous power value TxPower of corresponding light power meter2' and BOB
The ADC values x of module2;Otherwise, it is true that setting, which resets bit flag, and enables APC a reference values Y=Y1, transmitting optical power a reference value
TxPower=TxPower1', then judge transmitting optical power value TxPower2Whether it is more than TxPower, is, then uses and gradually force
Nearly method is traversed from the APC a reference values Y of BOB modules to maximum APC value, and suitable APC value Y is obtained2And it is right therewith
The luminous power value TxPower for the light power meter answered2' ADC values the x with BOB modules2;It is no, then use successive approximation method from BOB moulds
The APC minimum values of block are traversed between APC a reference values Y, obtain suitable APC value Y2And corresponding light power meter
Luminous power value TxPower2' ADC values the x with BOB modules2;
(8) by TxPower1′、TxPower2' and corresponding x1And x2Substitute into following equation, calculate slope and
The value of offset:
TxPower=slope × x+offset
In formula, slope indicates that the slope efficiency of x, offset indicate the offset of curve;
(9) according to the slope and offset that are calculated, substitute into following equation, calculate TxPowerSlope and
The value of TxPowerOffset:
TxPowerSlope=(slope/0.1) × 28 ①
TxPowerOffset=(offset/0.1) × 25 ②
In formula, TxPowerSlope and TxPowerOffset indicate the respective transmitting optical powers of slope and offset respectively
Value;
(10) obtained TxPowerSlope, TxPowerOffset are written in the register of BOB modules, and by
The MCU of BOB modules verifies the APC value of BOB modules according to the data of write-in;
(11) transmitting optical power value TxPower is chosen3, and calculate corresponding APC value Y using following formula3:
ADC=(TxPower3-offset)/slope ①
Y3=Log (ADC × 0.030581289,2) × 32 is 2.
In formula, TxPower1<TxPower3<TxPower2;
(12) according to the APC value Y being calculated3, enable BOB modules shine, then obtain the luminous value Z and light of BOB modules
The corresponding transmitting optical power value TxPower of power meter4;
(13) judgment formula ︱ TxPower4Whether-Z ︱≤0.5dbm are true, are, then calibration passes through;Otherwise, calibration failure,
Return to step (1).
Further, in the step (1), confirm that the detailed process of the integrality of system optical fiber cable is:Judgement system light
Whether the number of fine line plug is less than or equal to 1000 times, is then to confirm that optical fiber cable is complete, can be continuing with;It is no, then it needs
The optical fiber cable more renewed.
Still further, in the step (3), whether the determining basis for starting calibration is the number of calibration less than preset
Calibrate number.
Specifically, the ergodic process in the step (6) is specific as follows:
(a) using Y as APC value initial value, Yx1=Y, and be counted as N=0 times, it then enables BOB modules shine, obtains light work(
The corresponding transmitting optical power value TxPower of rate meterx1;
(b) judge ︱ TxPowerx1-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx1, Y1=Yx1;It is no, it thens follow the steps (c);
(c) TxPower is determinedx1Whether cross the border, if TxPowerx1>TxPower1It then crosses the border, executes step (d);Otherwise not
It crosses the border, executes step (f);
(d) Y is enabledx1=Yx1- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx1', execute step (e);
(e) judge ︱ TxPowerx1′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx1', and Y1=Yx1;It is no, it is determined that TxPowerx1' whether it is more than TxPower1It crosses the border, if TxPowerx1' do not cross the border,
Then by TxPowerx1' it is expressed as TxPowerx1, execute step (f);Conversely, then being continued cycling through in the way of step (d);
(f) next value Y of APC value is takenx1', the Yx1'=Yx1+ 16, and count N be incremented by it is primary, enable BOB modules send out
Light obtains the corresponding transmitting optical power value TxPower of light power meterx2, execute step (g);
(g) judge ︱ TxPowerx2-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx2, Y1=Yx1′;It is no, it thens follow the steps (h);
(h) TxPower is determinedx2Whether cross the border, if TxPowerx2>TxPower1It then crosses the border, executes step (i);Otherwise not
It crosses the border, executes step (k);
(i) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx2', execute step (j);
(j) judge ︱ TxPowerx2′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx2', Y1=Yx1′;It is no, it is determined that TxPowerx2' whether it is more than TxPower1It crosses the border, if TxPowerx2' do not cross the border,
Then by TxPowerx2' it is expressed as TxPowerx2, execute step (k);Conversely, then being continued cycling through in the way of step (i);
(k) according to formula ︱ Yx1′-Yx1︱ obtains interim APC differences B, if B=0, with Yx1'=(Yx1'+6) it is used as APC
Value enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx3, and by the TxPowerx3It is expressed as
TxPowerx2, then continued cycling through in the way of described in step (g), judge ︱ TxPowerx2-TxPower1︱=a≤65uW is
No establishment;If B ≠ 0, according to formula ︱ TxPowerx2-TxPowerx1︱ obtains interim luminous power difference A, and executes step
(l);
(l) judge whether the value of A/B is less than or equal to 1, be N to be then reset to 0, and in the way of described in step (f)
It continues cycling through;It is no, then difference general times C is calculated according to following formula, executes step (m):
C=(︱ TxPowerx2-TxPower1︱)/(A/B);
(m) judge whether difference general times C is less than or equal to 16, be then to enable Yx1'=Yx1'+C executes step (n);It is no,
C=C-16 is then enabled, and enables Yx1'=Yx1'+16, and continue to judge whether difference general times C is more than 16, if it is, continuing to follow
Ring C=C-16, Yx1'=Yx1'+16 process, until difference general times C enables Y again after being less than or equal to 16x1'=Yx1'+C is executed
Step (n);
(n) with Yx1'=(Yx1'+C) it is used as APC value, it enables BOB modules shine, obtains the corresponding transmission light work(of light power meter
Rate value TxPowerx4;
(o) judge ︱ TxPowerx4-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx4, Y1=Yx1′;It is no, it thens follow the steps (p);
(p) TxPower is determinedx4Whether cross the border, if TxPowerx4>TxPower1It then crosses the border, executes step (q);Otherwise not
It crosses the border, by TxPowerx4It is expressed as TxPowerx2, then execute step (s);
(q) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx4', execute step (r);
(r) judge ︱ TxPowerx4′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx4', Y1=Yx1′;It is no, it is determined that TxPowerx4' whether it is more than TxPower1It crosses the border, if TxPowerx4' do not cross the border,
Then by TxPowerx4' it is expressed as TxPowerx2, execute step (s);Conversely, then being continued cycling through in the way of step (q);
(s) it is recycled in the way of step (k)~(r), until meeting a≤65uW, obtains corresponding TxPower1′
And Y1。
Specifically, in the step (7), if it is true that setting, which resets bit flag, ergodic process is specific as follows:
(a) with Y1As APC value initial value, Yx2=Y1, and it is counted as N '=0 time, it then enables BOB modules shine, obtains
The corresponding transmitting optical power value TxPower of light power meterx5;
(b) judge ︱ TxPowerx5-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx5, Y2=Yx2;It is no, it thens follow the steps (c);
(c) TxPower is determinedx5Whether cross the border, if TxPowerx5>TxPower2It then crosses the border, executes step (d);Otherwise not
It crosses the border, executes step (f);
(d) Y is enabledx2=Yx2- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx5', execute step (e);
(e) judge ︱ TxPowerx5′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx5', and Y2=Yx2;It is no, it is determined that TxPowerx5' whether it is more than TxPower2It crosses the border, if TxPowerx5' do not cross the border,
Then by TxPowerx5' it is expressed as TxPowerx5, execute step (f);Conversely, then being continued cycling through in the way of step (d);
(f) next value Y of APC value is takenx2', the Yx2'=Yx2+ 16, and count N be incremented by it is primary, enable BOB modules send out
Light obtains the corresponding transmitting optical power value TxPowerx of light power meter6, execute step (g);
(g) judge ︱ TxPowerx6-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx6, Y2=Yx2′;It is no, it thens follow the steps (h);
(h) TxPower is determinedx6Whether cross the border, if TxPowerx6>TxPower2It then crosses the border, executes step (i);Otherwise not
It crosses the border, executes step (k);
(i) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx6', execute step (j);
(j) judge ︱ TxPowerx6′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx6', Y2=Yx2′;It is no, it is determined that TxPowerx6' whether it is more than TxPower2It crosses the border, if TxPowerx6' do not cross the border,
Then by TxPowerx6' it is expressed as TxPowerx6, execute step (k);Conversely, then being continued cycling through in the way of step (i);
(k) according to formula ︱ Yx2′-Yx2︱ obtains interim APC differences B ', if B '=0, with Yx2'=(Yx2'+6) it is used as APC
Value enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx7, and by the TxPowerx7It is expressed as
TxPowerx6, then continued cycling through in the way of described in step (g), judge ︱ TxPowerx6-TxPower2︱=b≤65uW is
No establishment;If B ' ≠ 0, according to formula ︱ TxPowerx6-TxPowerx5︱ obtains interim luminous power difference A ', and executes step
Suddenly (l);
(l) judge whether the value of A '/B ' is less than or equal to 1, be N ' to be then reset to 0, and according to described in step (f)
Mode continues cycling through;It is no, then difference general times C ' is calculated according to following formula, executes step (m):
C '=(︱ TxPowerx6-TxPower2︱)/(A '/B ');
(m) judge whether difference general times C ' is less than or equal to 16, be then to enable Yx2'=Yx2'+C ' executes step (n);
It is no, then C '=C ' -16 is enabled, and enable Yx2'=Yx2'+16, and continue to judge whether difference general times C ' is more than 16, if it is,
Continue cycling through C '=C ' -16, Yx2'=Yx2'+16 process, until difference general times C ' enables Y again after being less than or equal to 16x2'=
Yx2'+C ' executes step (n);
(n) with Yx2'=(Yx2'+C ') it is used as APC value, it enables BOB modules shine, obtains the corresponding transmission light work(of light power meter
Rate value TxPowerx8;
(o) judge ︱ TxPowerx8-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx8, Y2=Yx2′;It is no, it thens follow the steps (p);
(p) TxPower is determinedx8Whether cross the border, if TxPowerx8>TxPower2It then crosses the border, executes step (q);Otherwise not
It crosses the border, by TxPowerx8It is expressed as TxPowerx6, then execute step (s);
(q) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx8', execute step (r);
(r) judge ︱ TxPowerx8′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx8', Y2=Yx2′;It is no, it is determined that TxPowerx8' whether it is more than TxPower2It crosses the border, if TxPowerx8' do not cross the border,
Then by TxPowerx8' it is expressed as TxPowerx6, execute step (s);Conversely, then being continued cycling through in the way of step (q);
(s) it is recycled in the way of step (k)~(r), until meeting b≤65uW, obtains corresponding TxPower2′
And Y2。
Further, in the step (10), obtained TxPowerSlope and TxPowerOffset is split into
It is written in the register of BOB modules after two 8-bit Interger type data.
Compared with prior art, the invention has the advantages that:
(1) present invention is by effective combination of software and hardware, after having merged polyalgorithm and formula, realizes well pair
The automatic calibration of BOB module transmission powers, after being calibrated to the transmission power of BOB modules using the present invention, you can carry out eye
Figure test can correctly judge whether the BOB modules of production are non-defective unit after the test of eye pattern.If it is defective products, then
It needs to repair it in smart gyp's work.
(2) each step is progressive, all linked with one another in the present invention, has stringent causality, passes through each step
Tight fit between rapid calibrates for BOB module transmission powers and provides quite accurately calculating parameter, not only can be well
The transmission power of BOB modules is calibrated automatically, and these parameters have been also convenient for subsequently after being stored in BOB modules to BOB
The calibration of module, further optimizes the whole production line of light product from side, and puies forward the production efficiency of high smooth product.
(3) reasonable design of the present invention, simple operation, efficiently solve existing way calibration operation trouble, calibration it is slow,
The low defect of precision, to realize that mass-producing outstanding light product provides strong guarantee, and then to quickly propel light
The development of fine network access technique and it is universal provide place mat, therefore, the present invention is with a wide range of applications, and is very suitable for big
Scale promotes and applies.
Description of the drawings
Fig. 1 is the system structure diagram for implementing the present invention.
Wherein, the corresponding parts title of reference numeral is:
1- host computers, 2- light power meters, 3-BOB modules.
Specific implementation mode
The invention will be further described with reference to the accompanying drawings and examples, and embodiments of the present invention include but not limited to
The following example.
Embodiment
The present invention provides a kind of method of automatic calibration BOB transmission powers, hardware system such as Fig. 1 based on this method
Shown, which is made of host computer 1, light power meter 2 and BOB modules 3.The light power meter 2 and BOB modules 3 is eight
A and all BOB modules are connected one to one by optical fiber and light power meter, and all light power meters then pass through
USB interface is connect with host computer 1, and all BOB modules are also connect by Eth interfaces with host computer 1.
According to above-mentioned hardware configuration, the implementation process of the present invention is introduced below.
First, integrity checking is carried out to the optical fiber cable of system.Since the plug of optical fiber cable can be lossy, in order to
Whether guarantee system sends and receives luminous power, need detection fiber line complete after the certain number of plug.The present invention is set
The optical fiber plug number set is less than or equal to 1000 times, if≤1000 times, it can be continuing with;If plug number>
1000 times, then need replacing new optical fiber cable.
Then, it verifies the transmitting optical power value of light power meter whether between -1~4, is, then it is arbitrary to choose two hairs
Send optical power value TxPower1、TxPower2(TxPower2>TxPower1), and execute step (3);It is no, then terminate to calibrate.
After confirming that the transmitting optical power value of light power meter meets the requirements and arbitrarily chooses two transmitting optical power values, set successively
Set wavelength, the measurement unit of light power meter, and determine whether to start to calibrate, determine it is errorless after, can be to the hair of BOB modules
Power is sent to be calibrated.In the present embodiment, determine that the basis for starting calibration is whether the number of calibration is less than preset calibration time
Number exits calibration if calibration number has had reached maximum number.
The APC value of default BOB modules, and control BOB modules and send out prbs23 code streams, it is then turned on light source, obtains light work(
The APC value Y of transmitting optical power value TxPower and the BOB module of rate meter, and it regard TxPower and Y as a reference value.In clear stocks
When repair, if transmission power a reference value is too low, calibration is exited.
Then, judge transmitting optical power value TxPower1Whether it is more than TxPower, is, then uses successive approximation method from BOB
The APC a reference values Y of module obtains suitable APC value Y to (the right direction) is traversed between maximum APC value1And it is right therewith
The luminous power value TxPower for the light power meter answered1' ADC values the x with BOB modules1;It is no, then use successive approximation method from BOB moulds
The APC minimum values of block are traversed (left direction) between APC a reference values Y, obtain suitable APC value Y1And it is corresponding
The luminous power value TxPower of light power meter1' ADC values the x with BOB modules1.Here the specific mistake of successive approximation method traversal is used
Journey is as follows:
(1) using Y as APC value initial value, Yx1=Y, and be counted as N=0 times, it then enables BOB modules shine, obtains light work(
The corresponding transmitting optical power value TxPower of rate meterx1;
(2 judge ︱ TxPowerx1-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx1, Y1=Yx1;It is no, it thens follow the steps (3);
(3) TxPower is determinedx1Whether cross the border, if TxPowerx1>TxPower1It then crosses the border, executes step (4);Otherwise not
It crosses the border, executes step (6);
(4) Y is enabledx1=Yx1- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx1', execute step (5);
(5) judge ︱ TxPowerx1′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx1', and Y1=Yx1;It is no, it is determined that TxPowerx1' whether it is more than TxPower1It crosses the border, if TxPowerx1' do not cross the border,
Then by TxPowerx1' it is expressed as TxPowerx1, execute step (6);Conversely, then being continued cycling through in the way of step (4);
(6) next value Y of APC value is takenx1', the Yx1'=Yx1+ 16, and count N be incremented by it is primary, enable BOB modules send out
Light obtains the corresponding transmitting optical power value TxPower of light power meterx2, execute step (7);
(7) judge ︱ TxPowerx2-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx2, Y1=Yx1′;It is no, it thens follow the steps (8);
(8) TxPower is determinedx2Whether cross the border, if TxPowerx2>TxPower1It then crosses the border, executes step (9);Otherwise not
It crosses the border, executes step (11);
(9) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx2', execute step (10);
(10) judge ︱ TxPowerx2′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx2', Y1=Yx1′;It is no, it is determined that TxPowerx2' whether it is more than TxPower1It crosses the border, if TxPowerx2' do not cross the border,
Then by TxPowerx2' it is expressed as TxPowerx2, execute step (11);Conversely, then being continued cycling through in the way of step (9);
(11) according to formula ︱ Yx1′-Yx1︱ obtains interim APC differences B, if B=0, with Yx1'=(Yx1'+6) it is used as APC
Value enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx3, and by the TxPowerx3It is expressed as
TxPowerx2, then continued cycling through in the way of described in step (7), judge ︱ TxPowerx2-TxPower1︱=a≤65uW is
No establishment;If B ≠ 0, according to formula ︱ TxPowerx2-TxPowerx1︱ obtains interim luminous power difference A, and executes step
(12);
(12) judge whether the value of A/B is less than or equal to 1, be N to be then reset to 0, and according to the side described in step (6)
Formula continues cycling through;It is no, then difference general times C is calculated according to following formula, executes step (13):
C=(︱ TxPowerx2-TxPower1︱)/(A/B);
(13) judge whether difference general times C is less than or equal to 16, be then to enable Yx1'=Yx1'+C executes step (14);
It is no, then C=C-16 is enabled, and enable Yx1'=Yx1'+16, and continue to judge whether difference general times C is more than 16, if it is, continuing
Recycle C=C-16, Yx1'=Yx1'+16 process, until difference general times C enables Y again after being less than or equal to 16x1'=Yx1'+C is held
Row step (14);
(14) with Yx1'=(Yx1'+C) it is used as APC value, it enables BOB modules shine, obtains the corresponding transmission light work(of light power meter
Rate value TxPowerx4;
(15) judge ︱ TxPowerx4-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx4, Y1=Yx1′;It is no, it thens follow the steps (16);
(16) TxPower is determinedx4Whether cross the border, if TxPowerx4>TxPower1It then crosses the border, executes step (17);It is on the contrary
It does not cross the border, by TxPowerx4It is expressed as TxPowerx2, then execute step (19);
(17) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx4', execute step (18);
(18) judge ︱ TxPowerx4′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=
TxPowerx4', Y1=Yx1′;It is no, it is determined that TxPowerx4' whether it is more than TxPower1It crosses the border, if TxPowerx4' do not cross the border,
Then by TxPowerx4' it is expressed as TxPowerx2, execute step (19);Conversely, then being continued cycling through in the way of step (17);
(19) it is recycled in the way of step (11)~(18), until meeting a≤65uW, is obtained corresponding
TxPower1' and Y1。
Obtain Y1、TxPower1' and x1Afterwards, if TxPower1≤TxPower≤TxPower2, then setting resets bit flag and is
Then vacation obtains being suitble to TxPower in the manner described above2APC value Y2, and and Y2The luminous power value of corresponding light power meter
TxPower2' ADC values the x with BOB modules2;Otherwise, it is true that setting, which resets bit flag, and enables APC a reference values Y=Y1, send light
Power reference value TxPower=TxPower1', then judge transmitting optical power value TxPower2Whether TxPower is more than1', it is,
It then uses successive approximation method from the APC a reference values Y of BOB modules to (the right direction) is traversed maximum APC value, obtains
Suitable APC value Y2And the luminous power value TxPower of corresponding light power meter2' ADC values the x with BOB modules2;It is no, then
(left direction) is traversed to APC a reference values Y from the APC minimum values of BOB modules using successive approximation method, it is suitable to obtain
APC value Y2And the luminous power value TxPower of corresponding light power meter2' ADC values the x with BOB modules2.When setting weight
When witness marker is true, using successive approximation method traversal here, details are provided below:
(1) with Y1As APC value initial value, Yx2=Y1, and it is counted as N '=0 time, it then enables BOB modules shine, obtains
The corresponding transmitting optical power value TxPower of light power meterx5;
(2) judge ︱ TxPowerx5-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx5, Y2=Yx2;It is no, it thens follow the steps (3);
(3) TxPower is determinedx5Whether cross the border, if TxPowerx5>TxPower2It then crosses the border, executes step (4);Otherwise not
It crosses the border, executes step (6);
(4) Y is enabledx2=Yx2- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx5', execute step (5);
(5) judge ︱ TxPowerx5′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx5', and Y2=Yx2;It is no, it is determined that TxPowerx5' whether it is more than TxPower2It crosses the border, if TxPowerx5' do not cross the border,
Then by TxPowerx5' it is expressed as TxPowerx5, execute step (6);Conversely, then being continued cycling through in the way of step (4);
(6) next value Y of APC value is takenx2', the Yx2'=Yx2+ 16, and count N be incremented by it is primary, enable BOB modules send out
Light obtains the corresponding transmitting optical power value TxPower of light power meterx6, execute step (7);
(7) judge ︱ TxPowerx6-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx6, Y2=Yx2′;It is no, it thens follow the steps (8);
(8) TxPower is determinedx6Whether cross the border, if TxPowerx6>TxPower2It then crosses the border, executes step (9);Otherwise not
It crosses the border, executes step (11);
(9) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx6', execute step (10);
(10) judge ︱ TxPowerx6′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx6', Y2=Yx2′;It is no, it is determined that TxPowerx6' whether it is more than TxPower2It crosses the border, if TxPowerx6' do not cross the border,
Then by TxPowerx6' it is expressed as TxPowerx6, execute step (11);Conversely, then being continued cycling through in the way of step (9);
(11) according to formula ︱ Yx2′-Yx2︱ obtains interim APC differences B ', if B '=0, with Yx2'=(Yx2'+6) conduct
APC value enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx7, and by the TxPowerx7Table
It is shown as TxPowerx6, then continued cycling through in the way of described in step (7), judge ︱ TxPowerx6-TxPower2︱=b≤
Whether 65uW is true;If B ' ≠ 0, according to formula ︱ TxPowerx6-TxPowerx5︱ obtains interim luminous power difference A ', and
Execute step (12);
(12) judge whether the value of A '/B ' is less than or equal to 1, be N ' to be then reset to 0, and according to described in step (6)
Mode continues cycling through;It is no, then difference general times C ' is calculated according to following formula, executes step (13):
C '=(︱ TxPowerx6-TxPower2︱)/(A '/B ');
(13) judge whether difference general times C ' is less than or equal to 16, be then to enable Yx2'=Yx2'+C ' executes step
(14);It is no, then C '=C ' -16 is enabled, and enable Yx2'=Yx2'+16, and continue to judge whether difference general times C ' is more than 16, if
It is then to continue cycling through C '=C ' -16, Yx2'=Yx2'+16 process, until difference general times C ' is enabled again after being less than or equal to 16
Yx2'=Yx2'+C ' executes step (14);
(14) with Yx2'=(Yx2'+C ') it is used as APC value, it enables BOB modules shine, obtains the corresponding transmission light of light power meter
Performance number TxPowerx8;
(15) judge ︱ TxPowerx8-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx8, Y2=Yx2′;It is no, it thens follow the steps (16);
(16) TxPower is determinedx8Whether cross the border, if TxPowerx8>TxPower2It then crosses the border, executes step (17);It is on the contrary
It does not cross the border, by TxPowerx8It is expressed as TxPowerx6, then execute step (19);
(17) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx8', execute step (18);
(18) judge ︱ TxPowerx8′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=
TxPowerx8', Y2=Yx2′;It is no, it is determined that TxPowerx8' whether it is more than TxPower2It crosses the border, if TxPowerx8' do not cross the border,
Then by TxPowerx8' it is expressed as TxPowerx6, execute step (19);Conversely, then being continued cycling through in the way of step (17);
(19) it is recycled in the way of step (11)~(18), until meeting b≤65uW, is obtained corresponding
TxPower2' and Y2。
Obtaining TxPower1′、TxPower2' and corresponding x1And x2Afterwards, these numerical value are substituted into following equation
In, a linear equation in two unknowns group is formed, the value of slope and offset are then calculated:
TxPower=slope × x+offset
In formula, slope indicates that the slope efficiency of x, offset indicate the offset of curve.
Then, according to the slope and offset being calculated, substitute into following equation, calculate TxPowerSlope and
The value of TxPowerOffset:
TxPowerSlope=(slope/0.1) × 28 ①
TxPowerOffset=(offset/0.1) × 25 ②
In formula, TxPowerSlope and TxPowerOffset indicate the respective transmitting optical powers of slope and offset respectively
Value.
Finally, obtained TxPowerSlope, TxPowerOffset are written in the register of BOB modules.This reality
It applies in example, obtained TxPowerSlope and TxPowerOffset is 16-bit Interger type data, the two numerical value
It being required to be stored in the register (GN25L95) for being written to BOB modules, the purpose of storage is to establish calibration benchmark, from
And BOB moulds MCU in the block is made to verify the APC value of BOB modules.In the present embodiment, for convenience of the storage of data, the present invention
After TxPowerSlope and TxPowerOffset are first split into two 8-bit Interger type data, it is then written to BOB
In the register of module.
In doing so, transmitting optical power value TxPower is chosen3, and calculated using following formula corresponding
APC value Y3:
ADC=(TxPower3-offset)/slope ①
Y3=Log (ADC × 0.030581289,2) × 32 is 2.
In formula, TxPower1<TxPower3<TxPower2。
Find out Y3Afterwards, it enables BOB modules shine, then obtains the luminous value Z and the corresponding transmission light of light power meter of BOB modules
Performance number TxPower4。
Finally, formula ︱ TxPower are utilized4- Z ︱≤0.5dbm judge whether that calibration passes through, if the judgment formula is set up,
Calibration passes through;Otherwise calibration failure.So after operation, you can carrying out eye pattern test can correctly be sentenced after the test of eye pattern
Break and whether the BOB modules of production are non-defective unit.If it is defective products, then need to repair it in smart gyp's work.
To more fully understand the calibration process of the present invention, illustrated below with an example.
The integrality of confirmation system optical fiber cable, and meet the requirements in each transmitting optical power value of confirmation light power meter
Afterwards, two transmitting optical power values 2.85 and 3.25 (units therein are chosen:dbm).
Wavelength, the measurement unit of light power meter are set gradually, and is confirming calibration number less than preset maximum calibration time
After number, the APC value of BOB modules is preset, and controls BOB modules and sends out prbs23 code streams, then starts the transmission work(to BOB modules
Rate is calibrated.
Light source is opened, the 0.0009417 (unit of transmitting optical power value of light power meter is obtained:) and the APC value of BOB modules W
170, and it is used as a reference value by 0.0009417 and 170.
It is handled using successive approximation method.After 2.85 (dbm) conversions, it is equal to 1927.5249131909366 (uW), and
After transmission power a reference value 0.0009417 (W) conversion, it is equal to 941.7 (uW).Since 1927.5249131909366 more than transmission
Power reference value 941.7, therefore, traversal direction are the right, value 170 on the basis of the APC value initial value currently traversed, and end value is
255 (maximum values of APC value).
BOB modules are enabled to shine with current APC value 170, at this point, the luminous power value that light power meter is read is 940.8 (uW).
According to the formula ︱ 940.8-1927.5249131909366 can be knowns of ︱=986.7249131909366, which is more than 65, so
It is undesirable, but because 940.8 are less than 1927.5249131909366, which does not cross the border, and continues to traverse.
Next value 186 (170+16) of APC value is taken, counts and is incremented to 1 by 0, then enables BOB modules shine, luminous power
It is 1354 (uW) to count the transmitting optical power value read at this time.According to formula ︱ 1354-1927.5249131909366 ︱=
573.5249131909366 can be known, which is more than 65, so undesirable, but is less than because of 1354
1927.5249131909366 so the value is not crossed the border.
According to ︱=413.2 formula ︱ 1354-940.8 (interim luminous power difference), meanwhile, according to formula ︱ 186-170 ︱
=16 (interim APC differences).Then, difference general times are calculated:573.5249131909366/(413/16)≈22.Greatly due to 22
In 16, it is therefore desirable to adjust luminous power, at this point, difference general times are just 22-16=6, APC value is just 186+16=202.Cause
It is less than 16 for 6, so adjustment luminous power is no longer needed to, thus APC value at this time is just 202+6=208.
With APC value for 208, BOB modules is enabled to shine, the transmitting optical power value that light power meter is read at this time is 2149 (uW).
According to the formula ︱ 2149-1927.5249131909366 can be knowns of ︱=221.4750868090634, which is more than 65, so
It is undesirable, and because 2149 are more than 1927.5249131909366, which crosses the border, and carries out place of crossing the border
Reason.
Adjusting APC value, that is, the APC value after adjusting is 208-8=200, and counting remains as 1, and BOB modules is then enabled to shine,
The transmitting optical power value that light power meter is read at this time is 1852 (uW).
According to the formula ︱ 1852-1927.5249131909366 can be knowns of ︱=75.52491319093656, which is more than
65, thus it is undesirable, but because 1852 less than 1927.5249131909366, so the numerical value does not cross the border.
According to ︱=297 formula ︱ 1852-2149 (interim luminous power difference), meanwhile, according to ︱=8 formula ︱ 208-200
(interim APC differences).Then, difference general times are calculated:75.52491319093656/(297/8)≈2.Since 2 less than 16, because
, without adjusting luminous power, APC value at this time is just 200+2=202 for this.
With APC value for 202, BOB modules is enabled to shine, the transmitting optical power value that light power meter is read at this time is 1926 (uW).
According to the formula ︱ 1926-1927.5249131909366 can be knowns of ︱=1.5249131909366, which is less than 65, so symbol
It closes and requires, preserve current APC value 202 and current transmitting optical power value 1926 (uW) respectively, meanwhile, read out BOB modules
ADC values be 2736.
Since reorientation flag bit is true, transmitting optical power a reference value and APC a reference values are relocated, sent
Luminous power a reference value and APC a reference values are respectively 1926 (uW) and 202.
It is handled using successive approximation method.After 3.25 (dbm) conversions, it is equal to 2113.489039836648 (uW), the number
Value is more than transmission power a reference value 1926, and therefore, traversal direction is the right, is worth on the basis of the APC value initial value currently traversed
202, end value is 255 (maximum values of APC value).
BOB modules are enabled to shine with current APC value 202, at this point, the luminous power value that light power meter is read is 1926 (uW).
According to the formula ︱ 1926-2113.489039836648 can be knowns of ︱=187.489039836648, which is more than 65, so not
It meets the requirements, but because 1926 are less than 2113.489039836648, which does not cross the border, and continues to traverse.
Next value 218 (202+16) of APC value is taken, counts and is incremented to 1 by 0, then enables BOB modules shine, luminous power
It is 2724 (uW) to count the transmitting optical power value read at this time.According to formula ︱ 2724-2113.489039836648 ︱=
610.510960163352 can be known, which is more than 65, thus it is undesirable, and because 2724 are more than
2113.489039836648 so the numerical value crosses the border, processing of crossing the border is carried out.
Adjusting APC value, that is, the APC value after adjusting is 218-8=210, and counting remains as 1, and BOB modules is then enabled to shine,
The transmitting optical power value that light power meter is read at this time is 2260 (uW).According to formula ︱ 2260-2113.489039836648 ︱=
146.510960163352 can be known, which is more than 65, thus it is undesirable, and because 2260 are more than
2113.489039836648 so the numerical value still crosses the border, need to continue to cross the border processing.
Continue to adjust APC value, that is, the APC value after adjusting is 210-8=202, and counting remains as 1, and BOB modules is then enabled to send out
Light, the transmitting optical power value that light power meter is read at this time are 1924 (uW).According to formula ︱ 1924-2113.489039836648 ︱
=189.489039836648 can be knowns, the numerical value are more than 65, thus it is undesirable, but because 1924 are less than
2113.489039836648 so the numerical value does not cross the border.
According to ︱=336 formula ︱ 1924-2260 (interim luminous power difference), meanwhile, according to ︱=8 formula ︱ 210-202
(interim APC differences).Then, difference general times are calculated:189.489039836648/(336/8)≈5.Since 5 less than 16, because
, without adjusting luminous power, APC value at this time is just 202+5=207 for this.
With APC value for 207, BOB modules is enabled to shine, the transmitting optical power value that light power meter is read at this time is 2109 (uW).
According to the formula ︱ 2109-2113.489039836648 can be knowns of ︱=4.489039836648, which is less than 65, so meeting
It is required that current APC value 207 and current transmitting optical power value 2109 (uW) are preserved respectively, meanwhile, read out BOB modules
ADC values are 2976.
Formula is substituted by 1926,2109 and corresponding 2736 and 2976:TxPower=slope × x+offset is obtained
To linear equation in two unknowns group, slope=(2109-1926)/(2976-2736)=0.7625, offset=1926- is found out
0.7625 × 2736=-160.2.
Again formula is substituted by 0.7625 and -160.2:
TxPowerSlope=(slope/0.1) × 28 ①
TxPowerOffset=(offset/0.1) × 25 ②
It obtains:TxPowerSlope=(0.7625/0.1) × 28=1952, TxPowerOffset=(- 160.2/0.1)
×25=-51264.Obtained TxPowerSlope and TxPowerOffset (being 16-bit Interger types data) are torn open
After being divided into 2 8-bit (most-significant byte MSB, least-significant byte LSB), 160 (height), 7 (low), 55 (height), 192 (low) are respectively obtained, are then write
In the register for entering BOB modules, the APC value of BOB modules is verified.
Choose 3 (unit of transmitting optical power value:Dbm), and 1995.2623149688789 (uW) are converted into, then according to public affairs
Formula:
ADC=(TxPower3-offset)/slope ①
APC=Log (ADC × 0.030581289,2) × 32 is 2.
Substitute into corresponding numerical value to get to:ADC=(1995.2623149688789- (- 51264))/0.7625=
2826.835822910005 APC=Log (2826.835822910005 × 0.030581289,2) × 32 ≈ 206.
With APC value for 206, enables BOB modules shine, then obtain the luminous value 2301.6 (uW) and luminous power of BOB modules
Corresponding transmitting optical power value 2071 (uW) is counted, two values are converted into dbm, i.e.,:(2301.6 uW)=
(3.161800988934526 dbm), 2071 (uW)=3.6202984888226957 (dbm).
According to transformed two values, judge this time whether calibration passes through.It can be seen from the above, due to formula ︱
3.6202984888226957-3.161800988934526 ︱=0.4584974998881697≤0.5dbm is set up, conform to
It asks, therefore, this time the calibration of BOB module transmission powers is passed through.
The control technology and equipment of existing maturation is rationally utilized in the present invention, and by effective combination of software and hardware, realizes
Automatic calibration to BOB module transmission powers, solves the problems, such as that previous calibration operation is troublesome, calibration accuracy is low.The present invention
Compared with prior art, technological progress is fairly obvious, has substantive distinguishing features outstanding and significant progress.
Above-described embodiment is merely a preferred embodiment of the present invention, and is not construed as limiting the scope of the present invention, as long as adopting
With the design principle of the present invention, and non-creative labour is carried out on this basis and the variation made, should all belong to the present invention
Protection domain within.
Claims (6)
1. a kind of method of automatic calibration BOB transmission powers, which is characterized in that include the following steps:
(1) confirm the integrality of system optical fiber cable;
(2) whether the transmitting optical power value of verification light power meter is then to choose two transmitting optical powers between -1~4dbm
Value TxPower1、TxPower2, and execute step (3);It is no, then terminate to calibrate, and return to step (1);The TxPower2>
TxPower1;
(3) wavelength, the measurement unit of light power meter are set gradually, and determines whether to start to calibrate, is to then follow the steps
(4);It is no, then terminate to calibrate, and return to step (1);
(4) APC value of BOB modules is preset, and controls BOB modules and sends out prbs23 code streams;
(5) light source is opened, obtains the APC value Y of transmitting optical power value TxPower and the BOB module of light power meter, and will
TxPower and Y is used as a reference value;
(6) judge transmitting optical power value TxPower1Whether it is more than TxPower, is, then uses successive approximation method from BOB modules
APC a reference values Y is traversed between maximum APC value, obtains suitable APC value Y1And the hair of corresponding light power meter
Optical power value TxPower1' ADC values the x with BOB modules1;It is no, then use successive approximation method from the APC minimum values of BOB modules to
It is traversed between APC a reference values Y, obtains suitable APC value Y1And the luminous power value of corresponding light power meter
TxPower1' ADC values the x with BOB modules1;
(7) if TxPower1≤TxPower≤TxPower2, then it is false that setting, which resets bit flag, then according to the side of step (6)
Formula obtains being suitble to TxPower2APC value Y2, and and Y2The luminous power value TxPower of corresponding light power meter2' and BOB modules
ADC values x2;Otherwise, it is true that setting, which resets bit flag, and enables APC a reference values Y=Y1, transmitting optical power a reference value TxPower=
TxPower1', then judge transmitting optical power value TxPower2Whether it is more than TxPower, is, then uses successive approximation method from BOB
The APC a reference values Y of module is traversed between maximum APC value, obtains suitable APC value Y2And corresponding luminous power
The luminous power value TxPower of meter2' ADC values the x with BOB modules2;It is no, then use successive approximation method from the APC of BOB modules most
Small value is traversed between APC a reference values Y, obtains suitable APC value Y2And the luminous power of corresponding light power meter
Value TxPower2' ADC values the x with BOB modules2;
(8) by TxPower1′、TxPower2' and corresponding x1And x2Following equation is substituted into, slope and offset are calculated
Value:
TxPower=slope × x+offset
In formula, slope indicates that the slope efficiency of x, offset indicate the offset of curve;
(9) according to the slope and offset that are calculated, substitute into following equation, calculate TxPowerSlope and
The value of TxPowerOffset:
TxPowerSlope=(slope/0.1) × 28 ①
TxPowerOffset=(offset/0.1) × 25 ②
In formula, TxPowerSlope and TxPowerOffset indicate the respective transmitting optical power values of slope and offset respectively;
(10) obtained TxPowerSlope, TxPowerOffset are written in the register of BOB modules, and by BOB moulds
The MCU of block verifies the APC value of BOB modules according to the data of write-in;
(11) transmitting optical power value TxPower is chosen3, and calculate corresponding APC value Y using following formula3:
ADC=(TxPower3-offset)/slope ①
Y3=Log (ADC × 0.030581289,2) × 32 is 2.
In formula, TxPower1<TxPower3<TxPower2;
(12) according to the APC value Y being calculated3, enable BOB modules shine, then obtain the luminous value Z and light power meter of BOB modules
Corresponding transmitting optical power value TxPower4;
(13) judgment formula ︱ TxPower4Whether-Z ︱≤0.5dbm are true, are, then calibration passes through;Otherwise, calibration failure returns
Step (1).
2. a kind of method of automatic calibration BOB transmission powers according to claim 1, which is characterized in that the step (1)
In, confirm that the detailed process of the integrality of system optical fiber cable is:Judge whether the number of system optical fiber cable plug is less than or equal to
1000 times, it is then to confirm that optical fiber cable is complete, can be continuing with;It is no, then need replacing new optical fiber cable.
3. a kind of method of automatic calibration BOB transmission powers according to claim 1 or 2, which is characterized in that the step
(3) in, determine that the basis for starting calibration is whether the number of calibration is less than preset calibration number.
4. a kind of method of automatic calibration BOB transmission powers according to claim 3, which is characterized in that the step (6)
In ergodic process it is specific as follows:
(a) using Y as APC value initial value, Yx1=Y, and be counted as N=0 times, it then enables BOB modules shine, obtains light power meter
Corresponding transmitting optical power value TxPowerx1;
(b) judge ︱ TxPowerx1-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx1, Y1
=Yx1;It is no, it thens follow the steps (c);
(c) TxPower is determinedx1Whether cross the border, if TxPowerx1>TxPower1It then crosses the border, executes step (d);Otherwise it does not cross the border,
Execute step (f);
(d) Y is enabledx1=Yx1- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx1',
Execute step (e);
(e) judge ︱ TxPowerx1′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx1',
And Y1=Yx1;It is no, it is determined that TxPowerx1' whether it is more than TxPower1It crosses the border, if TxPowerx1' do not cross the border, then will
TxPowerx1' it is expressed as TxPowerx1, execute step (f);Conversely, then being continued cycling through in the way of step (d);
(f) next value Y of APC value is takenx1', the Yx1'=Yx1+ 16, and count N be incremented by it is primary, enable BOB modules shine, obtain
To the corresponding transmitting optical power value TxPower of light power meterx2, execute step (g);
(g) judge ︱ TxPowerx2-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx2, Y1
=Yx1′;It is no, it thens follow the steps (h);
(h) TxPower is determinedx2Whether cross the border, if TxPowerx2>TxPower1It then crosses the border, executes step (i);Otherwise it does not cross the border,
Execute step (k);
(i) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx2', execute step (j);
(j) judge ︱ TxPowerx2′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx2',
Y1=Yx1′;It is no, it is determined that TxPowerx2' whether it is more than TxPower1It crosses the border, if TxPowerx2' do not cross the border, then will
TxPowerx2' it is expressed as TxPowerx2, execute step (k);Conversely, then being continued cycling through in the way of step (i);
(k) according to formula ︱ Yx1′-Yx1︱ obtains interim APC differences B, if B=0, with Yx1'=(Yx1'+6) it is used as APC value, is enabled
BOB modules shine, and obtain the corresponding transmitting optical power value TxPower of light power meterx3, and by the TxPowerx3It is expressed as
TxPowerx2, then continued cycling through in the way of described in step (g), judge ︱ TxPowerx2-TxPower1︱=a≤65uW is
No establishment;If B ≠ 0, according to formula ︱ TxPowerx2-TxPowerx1︱ obtains interim luminous power difference A, and executes step
(l);
(l) judge whether the value of A/B is less than or equal to 1, be N to be then reset to 0, and continue in the way of described in step (f)
Cycle;It is no, then difference general times C is calculated according to following formula, executes step (m):
C=(︱ TxPowerx2-TxPower1︱)/(A/B);
(m) judge whether difference general times C is less than or equal to 16, be then to enable Yx1'=Yx1'+C executes step (n);It is no, then enable C
=C-16, and enable Yx1'=Yx1'+16, and continue to judge whether difference general times C is more than 16, if it is, continuing cycling through C=
C-16、Yx1'=Yx1'+16 process, until difference general times C enables Y again after being less than or equal to 16x1'=Yx1'+C executes step
(n);
(n) with Yx1'=(Yx1'+C) it is used as APC value, it enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx4;
(o) judge ︱ TxPowerx4-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx4, Y1
=Yx1′;It is no, it thens follow the steps (p);
(p) TxPower is determinedx4Whether cross the border, if TxPowerx4>TxPower1It then crosses the border, executes step (q);Otherwise it does not cross the border,
By TxPowerx4It is expressed as TxPowerx2, then execute step (s);
(q) Y is enabledx1'=Yx1Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx4', execute step (r);
(r) judge ︱ TxPowerx4′-TxPower1Whether ︱=a≤65uW is true, is, then enables TxPower1'=TxPowerx4',
Y1=Yx1′;It is no, it is determined that TxPowerx4' whether it is more than TxPower1It crosses the border, if TxPowerx4' do not cross the border, then will
TxPowerx4' it is expressed as TxPowerx2, execute step (s);Conversely, then being continued cycling through in the way of step (q);
(s) it is recycled in the way of step (k)~(r), until meeting a≤65uW, obtains corresponding TxPower1' and Y1。
5. a kind of method of automatic calibration BOB transmission powers according to claim 4, which is characterized in that the step (7)
In, if it is true that setting, which resets bit flag, ergodic process is specific as follows:
(a) with Y1As APC value initial value, Yx2=Y1, and it is counted as N '=0 time, it then enables BOB modules shine, obtains luminous power
Count corresponding transmitting optical power value TxPowerx5;
(b) judge ︱ TxPowerx5-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx5, Y2
=Yx2;It is no, it thens follow the steps (c);
(c) TxPower is determinedx5Whether cross the border, if TxPowerx5>TxPower2It then crosses the border, executes step (d);Otherwise it does not cross the border,
Execute step (f);
(d) Y is enabledx2=Yx2- 8, it then enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx5',
Execute step (e);
(e) judge ︱ TxPowerx5′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx5',
And Y2=Yx2;It is no, it is determined that TxPowerx5' whether it is more than TxPower2It crosses the border, if TxPowerx5' do not cross the border, then will
TxPowerx5' it is expressed as TxPowerx5, execute step (f);Conversely, then being continued cycling through in the way of step (d);
(f) next value Y of APC value is takenx2', the Yx2'=Yx2+ 16, and count N be incremented by it is primary, enable BOB modules shine, obtain
To the corresponding transmitting optical power value TxPowerx of light power meter6, execute step (g);
(g) judge ︱ TxPowerx6-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx6, Y2
=Yx2′;It is no, it thens follow the steps (h);
(h) TxPower is determinedx6Whether cross the border, if TxPowerx6>TxPower2It then crosses the border, executes step (i);Otherwise it does not cross the border,
Execute step (k);
(i) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx6', execute step (j);
(j) judge ︱ TxPowerx6′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx6',
Y2=Yx2′;It is no, it is determined that TxPowerx6' whether it is more than TxPower2It crosses the border, if TxPowerx6' do not cross the border, then will
TxPowerx6' it is expressed as TxPowerx6, execute step (k);Conversely, then being continued cycling through in the way of step (i);
(k) according to formula ︱ Yx2′-Yx2︱ obtains interim APC differences B ', if B '=0, with Yx2'=(Yx2'+6) it is used as APC value,
It enables BOB modules shine, obtains the corresponding transmitting optical power value TxPower of light power meterx7, and by the TxPowerx7It is expressed as
TxPowerx6, then continued cycling through in the way of described in step (g), judge ︱ TxPowerx6-TxPower2︱=b≤65uW is
No establishment;If B ' ≠ 0, according to formula ︱ TxPowerx6-TxPowerx5︱ obtains interim luminous power difference A ', and executes step
Suddenly (l);
(l) judge whether the value of A '/B ' is less than or equal to 1, be N ' to be then reset to 0, and in the way of described in step (f)
It continues cycling through;It is no, then difference general times C ' is calculated according to following formula, executes step (m):
C '=(︱ TxPowerx6-TxPower2︱)/(A '/B ');
(m) judge whether difference general times C ' is less than or equal to 16, be then to enable Yx2'=Yx2'+C ' executes step (n);It is no, then
C '=C ' -16 is enabled, and enables Yx2'=Yx2'+16, and continue to judge whether difference general times C ' is more than 16, if it is, continuing to follow
Ring C '=C ' -16, Yx2'=Yx2'+16 process, until difference general times C ' enables Y again after being less than or equal to 16x2'=Yx2'+C ',
Execute step (n);
(n) with Yx2'=(Yx2'+C ') it is used as APC value, it enables BOB modules shine, obtains the corresponding transmitting optical power value of light power meter
TxPowerx8;
(o) judge ︱ TxPowerx8-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx8, Y2
=Yx2′;It is no, it thens follow the steps (p);
(p) TxPower is determinedx8Whether cross the border, if TxPowerx8>TxPower2It then crosses the border, executes step (q);Otherwise it does not cross the border,
By TxPowerx8It is expressed as TxPowerx6, then execute step (s);
(q) Y is enabledx2'=Yx2Then ' -8 enable BOB modules shine, obtain the corresponding transmitting optical power value of light power meter
TxPowerx8', execute step (r);
(r) judge ︱ TxPowerx8′-TxPower2Whether ︱=b≤65uW is true, is, then enables TxPower2'=TxPowerx8',
Y2=Yx2′;It is no, it is determined that TxPowerx8' whether it is more than TxPower2It crosses the border, if TxPowerx8' do not cross the border, then will
TxPowerx8' it is expressed as TxPowerx6, execute step (s);Conversely, then being continued cycling through in the way of step (q);
(s) it is recycled in the way of step (k)~(r), until meeting b≤65uW, obtains corresponding TxPower2' and Y2。
6. a kind of method of automatic calibration BOB transmission powers according to claim 5, which is characterized in that the step
(10) in, after obtained TxPowerSlope and TxPowerOffset is split into two 8-bit Interger type data
It is written in the register of BOB modules.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510266360.0A CN105007117B (en) | 2015-05-22 | 2015-05-22 | A kind of method of automatic calibration BOB transmission powers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510266360.0A CN105007117B (en) | 2015-05-22 | 2015-05-22 | A kind of method of automatic calibration BOB transmission powers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105007117A CN105007117A (en) | 2015-10-28 |
CN105007117B true CN105007117B (en) | 2018-11-02 |
Family
ID=54379652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510266360.0A Active CN105007117B (en) | 2015-05-22 | 2015-05-22 | A kind of method of automatic calibration BOB transmission powers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105007117B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107306151A (en) * | 2017-02-14 | 2017-10-31 | 深圳市双翼科技股份有限公司 | A kind of calibration method and its device of BOB equipment |
CN111970052B (en) * | 2020-08-07 | 2021-07-20 | 无锡市德科立光电子技术股份有限公司 | Optical module optical power debugging method based on calculation |
CN112543053B (en) * | 2020-11-19 | 2022-05-03 | 深圳市友华通信技术有限公司 | BOB online correction method based on automatic calibration process |
CN114938242B (en) * | 2022-07-21 | 2023-04-28 | 深圳市亿联无限科技有限公司 | Nonlinear BOB power calibration method and system based on table lookup method and slope prediction |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1623287A (en) * | 2002-03-07 | 2005-06-01 | 诺基亚公司 | Power control device and method for calibrating the power of a transmitter or receiver in a mobile communication network |
CN101527604A (en) * | 2008-12-30 | 2009-09-09 | 湖北众友科技实业股份有限公司 | Method and device for automatic calibration of power for transmitter modules |
CN101839698A (en) * | 2010-04-30 | 2010-09-22 | 南京大学 | BOTDR (Brillouin Optical Time Domain Reflectometer) for calibrating optical power of reference light and calibrating method thereof |
CN102017147A (en) * | 2007-04-18 | 2011-04-13 | 因维萨热技术公司 | Materials systems and methods for optoelectronic devices |
CN102480273A (en) * | 2010-11-24 | 2012-05-30 | 中兴通讯股份有限公司 | Device and method for realizing output power control of power amplifier |
CN103401605A (en) * | 2013-07-12 | 2013-11-20 | 青岛海信宽带多媒体技术有限公司 | Normal-temperature debugging system based on hot-pluggable optical module and normal-temperature debugging method |
CN103491618A (en) * | 2013-09-06 | 2014-01-01 | 西京学院 | Method for calibrating power detection accuracy of LTE transmitter |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4754170B2 (en) * | 2003-12-03 | 2011-08-24 | パナソニック株式会社 | Laser drive circuit and optical communication device |
US7145385B2 (en) * | 2003-12-05 | 2006-12-05 | Telefonaktiebolaget Lm Ericsson (Publ) | Single chip power amplifier and envelope modulator |
US7991030B2 (en) * | 2007-11-29 | 2011-08-02 | Mediatek Inc. | Method for deriving precise control over laser power of an optical pickup unit, and associated automatic power calibration circuit |
-
2015
- 2015-05-22 CN CN201510266360.0A patent/CN105007117B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1623287A (en) * | 2002-03-07 | 2005-06-01 | 诺基亚公司 | Power control device and method for calibrating the power of a transmitter or receiver in a mobile communication network |
CN102017147A (en) * | 2007-04-18 | 2011-04-13 | 因维萨热技术公司 | Materials systems and methods for optoelectronic devices |
CN101527604A (en) * | 2008-12-30 | 2009-09-09 | 湖北众友科技实业股份有限公司 | Method and device for automatic calibration of power for transmitter modules |
CN101839698A (en) * | 2010-04-30 | 2010-09-22 | 南京大学 | BOTDR (Brillouin Optical Time Domain Reflectometer) for calibrating optical power of reference light and calibrating method thereof |
CN102480273A (en) * | 2010-11-24 | 2012-05-30 | 中兴通讯股份有限公司 | Device and method for realizing output power control of power amplifier |
CN103401605A (en) * | 2013-07-12 | 2013-11-20 | 青岛海信宽带多媒体技术有限公司 | Normal-temperature debugging system based on hot-pluggable optical module and normal-temperature debugging method |
CN103491618A (en) * | 2013-09-06 | 2014-01-01 | 西京学院 | Method for calibrating power detection accuracy of LTE transmitter |
Also Published As
Publication number | Publication date |
---|---|
CN105007117A (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105007117B (en) | A kind of method of automatic calibration BOB transmission powers | |
CN104901738B (en) | A kind of BOB tests system calibrates the method that BOB receives power automatically | |
CN103051379B (en) | A kind of optical module debug system | |
CN102467975B (en) | Data error check method, data transmission method and semiconductor storage | |
RU2291574C2 (en) | Optical transfer module with digital adjustment and adjustment method | |
US9008588B2 (en) | System and method for the calibration and verification of wireless networks with control network | |
CN104913806A (en) | Measurement device | |
CN105352598A (en) | Multichannel optical power meter automatic calibration system and method | |
US11067478B2 (en) | Optical loss testing of multi-fiber array cables | |
CN106324479A (en) | Chip calibration method and circuit, and chip | |
US20130225091A1 (en) | Radio Frequency Calibration Method and Apparatus for Mobile Terminal | |
CN103475407B (en) | Based on the debug system of the optical module down channel of EML | |
CN203261333U (en) | Optical module debug system | |
CN113381805B (en) | TOSA bandwidth rapid measurement device and method based on vector network analyzer | |
CN111510210A (en) | Parallel optical receiving module optical power test system | |
CN116647274A (en) | BOB calibration optimization method and system based on big data and MES system structure | |
CN110988785A (en) | Remote online calibration method for digital quantity input type electric energy meter | |
CN110708617A (en) | Calibration method for binary tree type four-level eight-node optical switch control parameters | |
CN110838871B (en) | Optical wave test module automatic calibration method based on optical fiber network | |
KR20160005536A (en) | Data input circuit of semiconductor apparatus | |
CN102546006B (en) | Optical module screening device and method based on extinction ratio | |
TW201633047A (en) | Power adapter, power adapting system and method thereof | |
JP2007189453A (en) | Device and method for adjusting power level | |
US7965763B2 (en) | Determining a bit error rate (BER) using interpolation and superposition | |
KR101544967B1 (en) | Method for testing device under test |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200423 Address after: 337000 No. 6 Tongjiu Road, Pingxiang Economic and Technological Development Zone, Pingxiang City, Jiangxi Province Patentee after: JIANGXI WANGSHI TECHNOLOGY Co.,Ltd. Address before: 518000, Guangdong, Nanshan District hi tech Zone, North West Road, 2, East Information Port R & D building four, five Patentee before: NETIS SYSTEMS Inc. |