Invention content
Technical problem to be solved by the present invention lies in, currently, optical network unit (ONU) product stability is tested,
It is based primarily upon this scene that works long hours, lacks the stability test under the frequent scene of change in optical signal.
In order to solve the above-mentioned technical problem, present applicant proposes a kind of method, apparatus of test light communication products stability
And system.
The method of the test light communication products stability includes step:
Optical line terminal (OLT) is configured, so that optical network unit (ONU) is registered to optical line terminal (OLT);
Programmable optical attenuator is adjusted to multiple and different pad values, and is detected described on optical line terminal (OLT)
The registration scenarios of optical network unit (ONU);Wherein, programmable optical attenuator seals in whole in optical network unit (ONU) and optical link
Between end (OLT).
Optionally, described that programmable optical attenuator is adjusted to multiple and different pad values, it specifically includes:
The pad value of programmable optical attenuator is adjusted to the first initial value, and since the first initial value, will be declined every time
Depreciation increases or decreases default value at random.
Optionally, the pad value of programmable optical attenuator is being adjusted to the first initial value, and since the first initial value,
After pad value is increased or decreased default value at random every time, further include:
When the adjusting of the pad value of programmable optical attenuator reaches the first preset times, by declining for programmable optical attenuator
Depreciation is adjusted to the second initial value, and since the second initial value, pad value is increased or decreased default value at random every time.
Optionally, when the adjusting number of the pad value of programmable optical attenuator reaches the second preset times, stop decaying
The adjusting of value.
On the other hand, the application also provides a kind of device of test light communication products stability, including:
Configuration module, for being configured to optical line terminal (OLT), so that optical network unit (ONU) is registered to light
Road terminal (OLT);
Detection module for programmable optical attenuator to be adjusted to multiple and different pad values, and detects optical line terminal
(OLT) registration scenarios of the optical network unit (ONU) on;Wherein, programmable optical attenuator is sealed in optical network unit
(ONU) between optical line terminal (OLT).
Optionally, the detection module includes:
First pad value adjusts submodule, for the pad value of programmable optical attenuator to be adjusted to the first initial value, and
Since the first initial value, pad value is increased or decreased into default value at random every time.
Optionally, the detection module further includes:
Second pad value adjusts submodule, and the adjusting for the pad value when programmable optical attenuator reaches first default time
When number, the pad value of programmable optical attenuator is adjusted to the second initial value, and since the second initial value, every time by pad value
Increase or decrease default value at random.
Optionally, further include:
Stopping modular, for when the adjusting number of the pad value of programmable optical attenuator reaches the second preset times, stopping
The only adjusting of pad value.
In addition, the application also provides a kind of test equipment, which includes that test light communication products above-mentioned are stablized
The device of property.
In addition, the application also provides a kind of system of test light communication products stability, including:
Optical line terminal (OLT);
Optical network unit (ONU);
Programmable optical attenuator;
Test equipment, for being configured to optical line terminal (OLT), so that optical network unit (ONU) is registered to light
Road terminal (OLT);Programmable optical attenuator is adjusted to multiple and different pad values, and is detected on optical line terminal (OLT)
The registration scenarios of the optical network unit (ONU);Wherein, programmable optical attenuator is sealed in optical network unit (ONU) and light
Between road terminal (OLT).
In this application, it is related to optical line terminal (OLT) and optical network unit (ONU), optical network unit (ONU) is made to register
To optical line terminal (OLT);Programmable optical attenuator is sealed between optical line terminal (OLT) and optical network unit (ONU), is surveyed
Terminal is tried by the way that programmable optical attenuator to be adjusted to multiple and different pad values, and detects the institute on optical line terminal (OLT)
State the registration scenarios of optical network unit (ONU);Feelings can not be registered in optical line terminal (OLT) when there is optical network unit (ONU)
Condition, then there may be problems for explanation.The application is simulated light in actual environment and is believed by the pad value of change programmable optical attenuator
Number frequent scene of variation is sent out in time with stability of the testing optical network unit (ONU) under the frequent scene of change in optical signal
Stability problem existing for existing product, prevents the potential risk that may occur.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
It is also understood that specific embodiment described herein is used only for understanding the present invention, it is not used to limit this hair
It is bright.
With reference to figure 1, in the embodiment of the present application, it is related to optical network unit (ONU) 12, optical line terminal (OLT) 14, test
Equipment 11, programmable optical attenuator 13.
Optical network unit (ONU) 12 is registered to optical line terminal (OLT) 14, and registration process is by optical line terminal (OLT)
14 controls.The registration of optical network unit (ONU) 12 refers to that optical line terminal (OLT) 14 transmits running parameter to optical network unit
(ONU) 12, the logical reach between optical line terminal (OLT) 14 and optical network unit (ONU) 12 is measured, determines that downlink and uplink is logical
Believe the process of channel.
Specifically, the information that optical network unit (ONU) 12 is configured in optical line terminal (OLT) 14, so that optical network unit
(ONU) 12 it is registered to optical line terminal (OLT) 14.The registration process of optical network unit (ONU) 12 is spontaneous process.
It should be noted that between optical network unit (ONU) 12 and programmable optical attenuator 13, programmable optical attenuator 13
It is connected using optical fiber between optical line terminal (OLT) 14, test equipment 11 can be connected to programmable optical attenuator by cable
13, to adjust the pad value of programmable optical attenuator 13.Test equipment 11 is connected to optical line terminal (OLT) 14, can be to light
Road terminal (OLT) 14 is configured, and detects the registration scenarios of optical network unit (ONU) 12.
In the embodiment of the present application, test equipment 11 can be connected to optical line terminal (OLT) 14 by cable or Serial Port Line.
In the embodiment of the present application, test equipment 11 can be computer, on that computer operation have operating system and
Relevant tool.
Fig. 2 is the flow chart according to the method for the test light communication products stability shown in an exemplary embodiment.The survey
The method for trying optic communication product stability is applied to test equipment end, including step S201 to step S202.
Step S201 configures optical line terminal (OLT), so that optical network unit (ONU) is registered to optical link end
It holds (OLT).
In the present embodiment, test equipment configures optical line terminal (OLT) so that optical network unit (ONU) is noted
Volume arrives optical line terminal (OLT).
It should be noted that registration process is spontaneous, is initiated, needed in optical line terminal by optical line terminal (OLT)
(OLT) it is configured according to the information of optical network unit (ONU) on.
Programmable optical attenuator is adjusted to multiple and different pad values by step S202, and detects optical line terminal (OLT)
On the optical network unit (ONU) registration scenarios;Wherein, programmable optical attenuator seal in optical network unit (ONU) and
Between optical line terminal (OLT).
In the present embodiment, cable can be used between test equipment and programmable optical attenuator to be communicated.Test equipment
Programmable optical attenuator is controlled, and the pad value of programmable optical attenuator is adjusted.
In the present embodiment, test terminal is also communicated with optical line terminal (OLT), is obtained from optical line terminal (OLT)
Take the login state of optical network unit (ONU).It registers and goes wrong on optical line terminal (OLT) when optical network unit (ONU)
When, illustrating product, there may be unstable problems.
In this application, it is related to optical line terminal (OLT) and optical network unit (ONU), optical network unit (ONU) is made to register
To optical line terminal (OLT);Programmable optical attenuator is sealed between optical line terminal (OLT) and optical network unit (ONU), is surveyed
Terminal is tried by the way that programmable optical attenuator to be adjusted to multiple and different pad values, and detects the institute on optical line terminal (OLT)
State the registration scenarios of optical network unit (ONU);Feelings can not be registered in optical line terminal (OLT) when there is optical network unit (ONU)
Condition, then there may be problems for explanation.The application is simulated light in actual environment and is believed by the pad value of change programmable optical attenuator
Number frequent scene of variation is sent out in time with stability of the testing optical network unit (ONU) under the frequent scene of change in optical signal
Stability problem existing for existing product, prevents the potential risk that may occur.
Fig. 3 is the flow chart according to the method for the test light communication products stability shown in an exemplary embodiment.The survey
The method for trying optic communication product stability is applied to test equipment end, including step S301 and step S302.
Step S301 configures optical line terminal (OLT), so that optical network unit (ONU) is registered to optical link end
It holds (OLT).
The pad value of programmable optical attenuator is adjusted to the first initial value by step S302, and since the first initial value,
Pad value is increased or decreased into default value at random every time;And detect the optical network unit on optical line terminal (OLT)
(ONU) registration scenarios;Wherein, programmable optical attenuator seals between optical network unit (ONU) and optical line terminal (OLT)
In the embodiment of the present application, test equipment can be adjusted the pad value of programmable optical attenuator, for mould
The frequent scene of change in optical signal in quasi- actual environment, with testing optical network unit (ONU) in the frequent scene of change in optical signal
Under stability.
In the embodiment of the present application, the pad value of programmable optical attenuator can be adjusted according to the following rules:By pad value
It adjusts to the first initial value, and since the first initial value, pad value is increased or decreased into default value at random every time.
It should be noted that in each adjustment, default value is increased or decreased at random, that is, it is to send out at random to increase or decrease
Raw.It does so and more meets practical application scene, to allow test that can more react the equipment state under actual condition.
In the embodiment of the present application, the pad value of programmable optical attenuator is being adjusted to the first initial value, and from first
Initial value starts, and after pad value is increased or decreased default value at random every time, further includes:
When the adjusting of the pad value of programmable optical attenuator reaches the first preset times, by declining for programmable optical attenuator
Depreciation is adjusted to the second initial value, and since the second initial value, pad value is increased or decreased default value at random every time.
It should be noted that since the first initial value, first group of adjusting is carried out to pad value, it is corresponding in adjustment process
N number of pad value.When adjusting number reaches N, adjusts to the second pad value, carry out second group of adjusting, second group of adjusting can also
Number will be adjusted and be set as N.
In the embodiment of the present application, further, can set the adjusting of M groups, every group of adjusting all have there are one initial value, from first
Initial value starts, and is adjusted by step-length of default value, i.e., increases or decreases default value at random.
Specifically, initial attenuation value is determined as 20dB first, 1dB is increased or decreased at random every time since 20dB, adjusted
Whole 20 times.After adjustment number reaches 20 times, pad value instantly is that pad value is set as by T1 if T1 is less than 40dB
30dB increases or decreases 1dB at random every time using 30dB as starting point, adjusts 20 times.Adjustment mode can there are many, here no longer
It repeats.
In the embodiment of the present application, when the adjusting number of the pad value of programmable optical attenuator reaches the second preset times
When, stop the adjusting of pad value.
The frequency threshold value of one adjustment of setting, i.e., when the adjusting number of the pad value of programmable optical attenuator reaches second in advance
If when number, stopping the adjusting of pad value.
In the embodiment of the present application, by increasing or decreasing fixed value at random, preferably to simulate practical application scene, with
Just allow test that can more react the equipment state under actual condition.
Fig. 4 is the schematic block diagram according to the device of the test light communication products stability shown in an exemplary embodiment.Ginseng
Fig. 4 is examined, the device 40 of the test light communication products stability includes:Configuration module 41 and detection module 42.It is described as follows:
Configuration module 41, for being configured to optical line terminal (OLT), so that optical network unit (ONU) is registered to light
Line terminal (OLT);
Detection module 42 for programmable optical attenuator to be adjusted to multiple and different pad values, and detects optical link end
Hold the registration scenarios of the optical network unit (ONU) on (OLT);Wherein, programmable optical attenuator is sealed in optical network unit
(ONU) between optical line terminal (OLT).
Optionally, the detection module 42 includes:
First pad value adjusts submodule, for the pad value of programmable optical attenuator to be adjusted to the first initial value, and
Since the first initial value, pad value is increased or decreased into default value at random every time.
Optionally, the detection module 42 further includes:
Second pad value adjusts submodule, and the adjusting for the pad value when programmable optical attenuator reaches first default time
When number, the pad value of programmable optical attenuator is adjusted to the second initial value, and since the second initial value, every time by pad value
Increase or decrease default value at random.
Optionally, the device 40 of test light communication products stability further includes:
Stopping modular, for when the adjusting number of the pad value of programmable optical attenuator reaches the second preset times, stopping
The only adjusting of pad value.
The device of test light communication products stability shown in the embodiment of the present application is applied to the corresponding methods of Fig. 2 and Fig. 3
Embodiment, executive mode is similar with advantageous effect, and which is not described herein again.
Fig. 5 is the schematic block diagram according to the test equipment shown in an exemplary embodiment.With reference to figure 5, the test equipment 50
Include the device 40 of test light communication products stability.
The device 40 of the test light communication products stability includes:Configuration module 41 and detection module 42.
Wherein, configuration module 41, for being configured to optical line terminal (OLT), so that optical network unit (ONU) is registered
To optical line terminal (OLT);
Detection module 42 for programmable optical attenuator to be adjusted to multiple and different pad values, and detects optical link end
Hold the registration scenarios of the optical network unit (ONU) on (OLT);Wherein, programmable optical attenuator is sealed in optical network unit
(ONU) between optical line terminal (OLT).
Optionally, the detection module 42 includes:
First pad value adjusts submodule, for the pad value of programmable optical attenuator to be adjusted to the first initial value, and
Since the first initial value, pad value is increased or decreased into default value at random every time.
Optionally, the detection module 42 further includes:
Second pad value adjusts submodule, and the adjusting for the pad value when programmable optical attenuator reaches first default time
When number, the pad value of programmable optical attenuator is adjusted to the second initial value, and since the second initial value, every time by pad value
Increase or decrease default value at random.
Optionally, the device 40 of test light communication products stability further includes:
Stopping modular, for when the adjusting number of the pad value of programmable optical attenuator reaches the second preset times, stopping
The only adjusting of pad value.
Test equipment shown in the embodiment of the present application is applied to the corresponding embodiments of the method for Fig. 2 and Fig. 3, executive mode and
Advantageous effect is similar, and which is not described herein again.
Fig. 6 is the schematic block diagram according to the system of the test light communication products stability shown in an exemplary embodiment.Ginseng
Fig. 6 is examined, the system of the test light communication products stability includes:Test equipment 61, optical network unit (ONU) 62, programmable optical
Attenuator 63, optical line terminal (OLT) 64.
Wherein, test equipment 61, for being configured to optical line terminal (OLT) 64, so that optical network unit (ONU) 62
It is registered to optical line terminal (OLT) 64;Programmable optical attenuator 63 is adjusted to multiple and different pad values, and detects optical link
The registration scenarios of the optical network unit (ONU) 62 in terminal (OLT) 64;Wherein, programmable optical attenuator 63 is sealed in light
Between network element (ONU) 62 and optical line terminal (OLT) 64.
It should be appreciated that this application involves the step of there is no the stringent sequence that executes, it is all to be contemplated that and do not influence work(
The variation of the realization of energy all should be within the scope of the present invention.
In embodiment provided herein, it should be appreciated that described method and system is all schematical, in reality
By adjusting can difference in the implementation process of border.
In addition, the specific name of each functional unit or module is also only to facilitate mutually differentiation, is not used to the present invention
Protection domain.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.