Background technology
The defencive function of optical transmission system is a critical function item of optical transmission device, by providing protection to business, can protect benefits of operators to greatest extent.
The corresponding communication apparatus standard has been switched in the optical transmission system protection, as ITU-T G.841, and G.842, G.808.x, G.873.x; GB is as " metropolitan area OADM looped network ".GB and ITU-T have strict demand to the protection switch time (i.e. professional debatable time) of optical transmission system, must be less than 50ms.
National Standard metropolitan area OADM looped network " in defined four kinds of protected modes, one-way line protection switches that (ULSR), unidirectional Optical Channel Protection are switched (UPSR), (BLSR) switched in the bidirectional line protection and the bi-directional light path protection is switched (BPSR).These four kinds of protected modes, they protection switch on criterion and the protection switch time require basic identical.
As shown in Figure 1, be the theory diagram of 1+1 Optical Channel Protection.It is as follows that principle is switched in its protection:
Transmitting terminal sends professional A and is bridged device A and is divided into two-way output, and the optical repeater TX1-A of leading up to sends as the service aisle that sends professional A, and the TX1 '-A of leading up in addition sends as the protection passage that sends professional A.Receive by service aisle receiver RX1-B and protection passage receiver RX1 '-B respectively at receiving terminal.
Receiving terminal; protecting under the passage situation working properly; when detecting input optical signal, the receiver RX1-B of service aisle loses (LOS) or input optical signal cracking (SD; out-of-limit as the B1 error code, that input optical power is out-of-limit etc.) time; this receiver turn-offs laser, and it is unglazed that then receiving terminal protected location B detects the reception of selector B service aisle, and then the optical switch of selector B begins action; the path that receives professional B is switched to the protection passage from service aisle, finish protection and switch.
Otherwise from sending professional B on the direction that receives professional A, principle is identical, finishes the service protection of another one transmission direction.
Among Fig. 1, bridger A and bridger B are 50/50 optical coupler.Selector A and selector B are 1 * 2 optical switch.TX1-A, TX1 '-A, TX1-B, TX1 '-B are the optical repeater of transmitting terminal.RX1-A, RX1 '-A, RX1-B, RX1 '-B are the optical repeater of receiving terminal.Detector B and detector A are the modules of protected location B and protected location A, and service aisle signal and protection channel signal that selector is imported detect.Controller B and controller A are the modules of protected location B and protected location A, and protected location is controlled.
The management system of transmission equipment can be added up service outage duration.Service outage duration and " protection switch time " described herein of statistics are not notions." service outage duration " is meant the time of loss of traffic/inefficacy.Following description is consulted in the definition of " protection switch time ".These two times, " service outage duration " was often with second, minute, hour or day be that unit adds up not on the order of magnitude; And " protection switch time " is unit with the millisecond.
Analysis chart 1; and according to National Standard metropolitan area OADM looped network " definition that protection is switched; protection switch time is appreciated that and is defined as and detects from protected location A (or protected location B) service aisle that light signal unusual (unglazed, dropout or other trigger conditions) picks up counting, for ending, this section period is to protect the time of switching to detect normal light signal (having light, signal to recover or other recovery conditions) to the output of protected location A (or protected location B).
As shown in Figure 2, be example from sending professional A to receiving professional B direction, the protection switch time schematic diagram is described.At the protection system of Fig. 1, test protection switch time as shown in Figure 2, traditional protection switch time method of testing is as shown in Figure 3.
Set up environment as shown in Figure 3.If fault point 1 detects abnormal signal and (can simulate with the light-entering optical fiber that pulls out RX1-B; or in the fault point 1 error code that inserts certain bit rate); RX1-B closes pump; then fault point 2 also detects abnormal signal; the excellent receipts of selector B Be Controlled; then switch optical switch to the protection passage, SDH analyzer can read the switching time of this process.
The major function of SDH analyzer is to carry out the generation of the generation of the insertion of the generation of SDH signal and analysis, unusual/defective and analysis, shake and analysis, expense and analysis, APS, time delay etc.As, the OmniBER718 of Agilent company, the ANT-20SE of ACTERNA company and ANT-10Gig.
Fault point 1 relates to the detected input optical signal of the professional transducer RX1-B of service aisle and occurs unusual.Fault point 2 relates to the service aisle input optical signal that protected location B detects selector B and occurs unusual.
The application limitations and the application conditions of traditional test protection switch time method are as follows:
1) condition is switched in artificial protection of making.
2) be only applicable to (under laboratory or factory building condition) in the system debug work.
3) need provide the test instrumentation of a costliness, as SDH analyzer.
Under the situation of following networking more complicated,, following demand is arranged in order to reduce system's operation maintenance cost:
1) system takes place to protect when switching under operation state; automatically detect; output report, correlated results can be done statistics and management by network management system, perhaps with system's control plane explorer (for example: ASON ITU-T is RM G.8080) information interaction takes place.
2) after system opens operation, when carrying out Maintenance and Repair, can not use conventional test methodologies to the protection switch function, otherwise infeasible in long haul transmission system (if realize testing then cost will very big, because transmitting terminal and receiving terminal are apart from remote).
3) do not need expensive instrument.
Summary of the invention
Main purpose of the present invention is to provide a kind of automatic detection device and method of protecting switch function in optical transmission system; be used for overcoming test process that limitation and defective owing to prior art cause and need the artificial problems such as protection is switched condition, is only applicable to system debug, test instrumentation costliness of making, realize that the online in real time that protection is switched detects.
To achieve these goals, according to a first aspect of the invention, the invention provides a kind of automatic detection device that is used for protecting switch function in optical transmission system.Automatic detection device comprises selector, detector and controller.Selector comprises first input end, second input and output, first input end receives first input signal, second input receives second input signal, selector is used for selecting first input signal and second input signal one as output signal, and output signal is exported from output.Detector is used for first input signal, second input signal and output signal are detected.Controller is used for selector and detector are controlled, and under certain condition, the control selector is selected input signal.
Automatic detection device can also comprise timer, is used for the reversed process that picks up counting triggering and finish between the timing triggering is carried out timing.Timer can also be used for reversed process is carried out timing.Timer can be connected to detector, is triggered by detector.Timer also can be connected to controller, is triggered by controller.Timer can be the high-resolution counter that is connected with the high precision clock source.Timer also can be the timing program in the cpu system.
Automatic detection device can also comprise information interactive interface, is used for switch messages is outputed to the outside.
Detector can also be connected to selector, is used to detect the state of selector.
First input signal can be the service aisle signal, and second input signal can be the protection channel signal.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is that detector detects first input signal by normally becoming unusually.The condition that finishes the timing triggering is that detector detects output signal by becoming unusually normally.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is that detector detects first input signal by becoming unusually normally.The condition that finishes the timing triggering is that detector detects output signal by becoming unusually normally.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is switched instruction by hand for receiving from information interactive interface.The condition that finishes the timing triggering is that detector detects output signal by becoming unusually normally.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is recovered instruction for receive manual switching from information interactive interface.The condition that finishes the timing triggering is that detector detects output signal by becoming unusually normally.
To achieve these goals, according to a second aspect of the invention, the invention provides a kind of automatic testing method that is used for protecting switch function in optical transmission system.Automatic testing method may further comprise the steps: select step, select in first input signal and second input signal one as output signal; Detect step, first input signal, second input signal and output signal are detected; And controlled step, control is selected input signal.
Automatic testing method can also comprise the timing step, and the reversed process that picks up counting triggering and finish between the timing triggering is carried out timing.The timing step can also comprise carries out timing to reversed process.
First input signal can be the service aisle signal, and second input signal can be the protection channel signal.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting detects first input signal by normally becoming unusually for detecting step.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting detects first input signal by becoming unusually normally for detecting step.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is switched instruction by hand for receiving.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is recovered instruction for receiving manual switching.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
By technique scheme, automatic detection device and system that the embedded protection of transmission system is switched.Compare with device with traditional method of testing; realized that the real-time monitoring of the protection switch function of suitable transmission system equipment in opening the operation process, the result of detection can be transmitted system other part management and utilizations; save testing cost, improved the automation detection level.
Embodiment
Describe the present invention below with reference to the accompanying drawings in detail.
The present invention has overcome the shortcoming that can not carry out online in real time detection protection switch status to optical transmission system of the prior art, has proposed device and control method that online in real time light travels system protection is switched.
As shown in Figure 4, the automatic detection device 10 according to protecting switch function in optical transmission system of the present invention comprises selector 104, detector 102 and controller 100.
Selector 104 comprises first input end, second input and output.First input end receives first input signal, and second input receives second input signal.First input signal can be the service aisle signal, and second input signal can be the protection channel signal.Selector 104 is used for selecting first input signal and second input signal one as output signal, and output signal is exported from output.
Detector 102 is used for first input signal, second input signal and output signal are detected.Detector 102 can also be connected to selector 104, is used to detect the state of selector 104.
Controller 100 is used for selector 104 and detector 102 are controlled, and under certain condition, 104 pairs of input signals of control selector are selected.
Automatic detection device 10 can also comprise timer, is used for the reversed process that picks up counting triggering and finish between the timing triggering is carried out timing.Timer can also be used for reversed process is carried out timing.Timer can be connected to detector 102, is triggered by detector 102.Timer also can be connected to controller 100, is triggered by controller 100.Timer can be the high-resolution counter that is connected with the high precision clock source.Timer also can be the timing program in the cpu system.
Automatic detection device 10 can also comprise information interactive interface, is used for switch messages is outputed to the outside.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is that detector 102 detects first input signal by normally becoming unusually.The condition that finishes the timing triggering is that detector 102 detects output signal by becoming unusually normally.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is that detector 102 detects first input signal by becoming unusually normally.The condition that finishes the timing triggering is that detector 102 detects output signal by becoming unusually normally.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is switched instruction by hand for receiving from information interactive interface.The condition that finishes the timing triggering is that detector 102 detects output signal by becoming unusually normally.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is to receive to switch by hand from information interactive interface to recover instruction. the condition that finishes the timing triggering is that detector 102 detects output signal by becoming unusually normally.
As shown in Figure 5, the automatic testing method according to protecting switch function in optical transmission system of the present invention may further comprise the steps:
S202 selects step, selects in first input signal and second input signal one as output signal;
S204 detects step, and first input signal, second input signal and output signal are detected; And
S206, controlled step, control is selected input signal.
Automatic testing method can also comprise the timing step, and the reversed process that picks up counting triggering and finish between the timing triggering is carried out timing.The timing step can also comprise carries out timing to reversed process.
First input signal can be the service aisle signal, and second input signal can be the protection channel signal.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting detects first input signal by normally becoming unusually for detecting step.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting detects first input signal by becoming unusually normally for detecting step.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At first input signal is under the situation of output signal, and the condition that triggers that picks up counting is switched instruction by hand for receiving.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
At second input signal is under the situation of output signal, and the condition that triggers that picks up counting is recovered instruction for receiving manual switching.The condition that finishes the timing triggering detects output signal by becoming unusually normally for detecting step.
With reference to Fig. 6; on-line automatic detection device is switched in optical transmission system protection according to the present invention and control method consists of the following components, and comprises controller 400, timer counter 401, detector 402, information interactive interface 403, selector B 404, detected object service aisle 405, detected object protection passage 406 and selector B signal output 407.
The annexation of each several part as shown in Figure 6:
Controller 400 is connected with timer counter 401, detector 402, selector B 404 and information interactive interface 403.Detected object service aisle 405 is connected with detector 402 with detected object protection passage 406, also is connected with selector B 404 simultaneously.Selector B signal output 407 also is connected with detector 402 with selector B 404.Detector 402 is connected with timer counter 401.
Programme element as shown in Figure 6:
Be configured by 400 pairs of detectors 402 of controller and timer counter 401.At first initial value, the max-timeout value to timer counter 401 is configured, and secondly the trigger condition to detector 402 is configured.Trigger condition is divided into pick up counting triggering and end timing triggering.The trigger condition that picks up counting is service aisle light signal 405 unusual other unusual light signals such as (), dropout unglazed as the service aisle light signal, Optical Signal To Noise Ratio are out-of-limit.Finishing the timing trigger condition is selector B signal output 407 normal from becoming unusually (with unusual opposite light signal).Finishing the timing trigger condition must could trigger after the trigger condition that picks up counting triggers.
Detect detected object 404,405,406 and 407 with detector 402.When the trigger condition that picks up counting of detector 402 satisfies, trigger timer counter 401 and start working; When the end timing trigger condition of detector 402 satisfies, trigger timer counter 401 and finish timing.Notification controller 400 comes the result and the switch messages of timer counter 401 are put in order simultaneously, by information interactive interface 403 outputs.Information interactive interface 403 can receive optical transmission system equipment miscellaneous part (as webmaster, ASON control plane) or operating personnel's dependent instruction, teaches controller 400 and handles.
Detected object 404,405,406 and 407 comprises that the input of service aisle signal, protection channel signal are imported and output (the perhaps operating state of the selector) part of selector.
According to the result of detector 402, deciding the signal output 407 of selector B 404 by controller 400 is input of service aisle signal or the input of protection channel signal.
State, selector B signal output 407 that detector 402 is responsible for detected object 405 and 406, selector B 404 detect, according to trigger condition (as other trigger conditions such as signal light power performance, error condition, signal to noise ratios) is set, when trigger condition satisfies, output control corresponding index signal is finished corresponding operation to regularly counting 401 or controller 400.
Timer counter 401 is responsible for satisfying from the trigger condition that picks up counting, carry out timing and count to finishing process that the timing trigger condition satisfies, and timing result is notified to controller 400.
Controller 400 is control cores of system, and signal and data processing centre are responsible for the control to other parts, as to timer counter 401, detector 402, actuator and information interactive interface 403.
Information interactive interface 403 is controlled these interfaces by controller 400, and by this interface switch messages and switching time result is exported.As exporting to LED, LCD, system network management etc.This interface can also receive optical transmission system equipment miscellaneous part (as webmaster, ASON control plane) or operating personnel's dependent instruction, teaches controller 400 and handles.
[embodiment 1]
Fig. 7 shows the device block diagram according to the embodiment of the invention 1.Fig. 8 shows the method block diagram according to the embodiment of the invention 1.Embodiment 1 adopts hardware approach to realize timer counter, is suitable for high-precision protection switch time test.
After system starts working; under cpu system control, high-resolution counter, controller, optical property detecting unit, system's global state and sign are carried out initialization; judge the state of selector B; if selector B has been in the protection switch status, then carry out other processing (S602) (this state is not suitable for carrying out embodiment 1).Receive simultaneously and handle from the control command of information interactive interface and the information of parameter (the trigger condition configuration information of optical property detecting unit, the overtime setting of timer counter),, then receive new data message and be provided with if different with the system default value.The hardware system various piece is started working.The optical property detecting unit detects measurand in real time.If detect service aisle light signal (selector B signal output this moment also becomes unusual, and an of short duration time-delay is arranged this moment) unusually, then controller triggering timer counter picks up counting.Controller obtains rolling counters forward information, optical property detector to the detection information of selector B signal output and judge, if this moment, the output of selector B signal was normal from becoming unusually, then controller triggering timer conter stops counting, unison counter sends an external hardware to cpu system and interrupts, and notice cpu system counting is finished.Like this, after cpu system obtains count information from timer counter, can send protection switch messages result by information interactive interface and go out.If after timer counter is finished time-out count, also there is not the counting controling signal that stops of controlled device, then also by external interrupt notice cpu system, the count information that this moment, cpu system obtained is exactly that time-out information is switched in a protection to timer counter.
Among Fig. 7, cpu system 500 is system control cores, finishes relevant initialization, as to 501~505 initialization.Control high-resolution counter 501, controller 503, optical property detection system 504 and information interactive interface 505, and to selector B 508 conditional access and control.After protection is switched and finished, read the count value of counter, be scaled switching time.
High-resolution counter 501 is system counts devices, begins and stop the counting to outside high precision clock source under the effect of controller 503, and counting stops the back and passes through external interrupt 510 to cpu system, is read the value of counter by cpu system and carries out relevant treatment.
High precision clock source 502 produces stable high accuracy clock signal for high-resolution counter.
Controller 503 is mainly used to beginning counting and stopping counting of control counter.
Optical property (or state) detects 504: the output light signal (or state of selector B) that detects protection passage input optical signal, service aisle input optical signal and selector B; current protection is switched after the beginning condition is triggered, and will trigger controller and begin enable counter and begin counting.After protection is switched termination condition and is triggered, trigger controller and stop rolling counters forward.
Information interactive interface 505, detected object 506 and 507 function are consulted 403,405,406 the description of Fig. 6.
External interrupt triggers 510: after rolling counters forward finishes, with the form proactive notification cpu system 500 of external interrupt.
Among Fig. 8, process information interactive interface (S600): under the control of cpu system 500, receiving system setting or control command and parameter (as the trigger condition order being set), or the information etc. that outputs test result from system network management, ASON control plane.
Initialization (S601): obtain the state (be in service aisle and still protect passage) of selector, the initialization setting of controller, timer counter, monitor (as the trigger condition setting), initialization such as time-out time, sign state.If selector is in the protection passage, change other processing (S602) over to.
Other processing (S602): when the initial condition of selector is the protection passage, expression has been in the protection switch status.
Sensed light signal (or state) is (S603): the state of service aisle light signal, protection passage light signal, selector output light signal and selector is obtained and data analysis is handled, judge whether to satisfy trigger condition, the sign state is set.By the trigger condition (or state) that is provided with, the control timer counter begins or finishes counting.
Timer counter (S604): realize the timer counter function under the trigger condition, after timer counter finishes simultaneously, the sign state is set.
Condition judgment (S605): judge the performance of this protection switch time test process, and collect data and state.
Data analysis and processing (S606): analyzing test data and state offer the process information interactive interface.
[embodiment 2]
Fig. 9 shows the device block diagram of the embodiment of the invention 2, and Figure 10 shows the method block diagram of the embodiment of the invention 2.Embodiment 2 is that software is realized the timer tally function, is suitable for testing the not high application scenario of protection switch time precision.Among Fig. 9, the 700th, cpu system, the 701st, controller, the 702nd, optical property (or state) detects.All the other are identical with Fig. 6 corresponding components/unit.
The implementation method of embodiment 2 is similar to Example 1, and difference is as shown in Figure 9, and the timer counter of embodiment 2 is realized by cpu system is inner.Therefore during initialization, as shown in figure 10, need carry out the setting of initial value, timeout value, global state and sign to (software) timer of cpu system.The initialization of detector and controller is identical with embodiment 1.
After Fig. 9 and system shown in Figure 10 start working; main task such as Figure 10 (a) start; the trigger condition of 700 pairs of optical property detecting units of cpu system; exterior interrupt; regularly interrupt; timer internal; counting variable; overall situation count flag and this test mode etc. are carried out the initialization setting. after initialization finishes; 1ms timer counter task is started working; as Figure 10 (b); optical property detection 702 and controller 701 are started working. and main task receives and handles from the control command of information interactive interface and the information of parameter (the trigger condition configuration information of optical property detecting unit simultaneously; the overtime setting of timer counter); if it is different with the system default value; then receiving new data message and be provided with. the system that enters is then judged: this test mode; it has four kinds of values: initial condition; success; failure; overtime. this test mode of main task is judged count flag by 1ms timer counter task decision .1ms timer counter task; obtain the value of counting variable; also draw simultaneously the value of this this test mode; and other processing sections in this task; if count flag is non-initial condition then is changed to initial condition. count flag has three kinds of values: initial condition; the count flag of state 1 and state 2.1ms timer counter task is decided by external interrupt 1 task and external interrupt 2 tasks respectively, respectively as Figure 10 (c) and Figure 10 (d). and optical property (or state) detecting unit is constantly to service aisle 704; protection passage 705; the state of selector B 706; selector B signal output 707 detects.If the service aisle abnormal signal, external interrupt 1 task start then, count flag is changed to state 1, and this moment, the output of selector B signal was also unusual.If selector B signal output state is normal from becoming unusually, external interrupt 2 task starts then, count flag is changed to state 2.So just can obtain test result (this test mode) and count variable value (unit is ms), and export by information interactive interface.
Optical transmission system except need also might switch (automatically) protection detection of switching automatic recovery, manual protection that protection is switched, manual protection switches and recovers to detect.Following examples 3 of the present invention, embodiment 4 and embodiment 5 are exactly in this concrete utilization aspect several.
[embodiment 3]
As Fig. 7 and Fig. 8, show the detection that automatic recovery is switched in embodiment 3 realization optical transmission system protections.When optical transmission system equipment allows protection to switch automatic recovery, if the light signal of service aisle 506 is normal from becoming unusually, then selector B output 509 will switch to service aisle from protection passage 507 automatically.Like this, detect Unit 504 from optical property and detect the service aisle light signal from unusually to normally, detect selector B output from unusually to normally ending to the optical property detecting unit.Be defined as the optical transmission system protection during this period of time and switch automatic recovery time, understand the automatic recovering information of protection switching of optical transmission equipment by this information.
After system starts working; under cpu system 500 controls, high-resolution counter 501, controller 503, optical property are detected Unit 504, system's global state and sign and carry out initialization; judge the state of selector B; return to form if selector B has been in to protect to switch, then carry out other processing (S602) (this state is not suitable for carrying out embodiment 3).Receive simultaneously and handle from the control command of information interactive interface and the information of parameter (the trigger condition configuration information of optical property detecting unit, the overtime setting of timer counter),, then receive new data message and be provided with if different with the system default value.The hardware system various piece is started working.The optical property detecting unit detects measurand in real time.If it is normal from becoming unusually that the optical property detecting unit detects the service aisle light signal, then controller triggering timer counter picks up counting, and protection is simultaneously switched automatic recovery and started, and this moment, selector B output was from normally becoming unusually.Controller obtains rolling counters forward information, optical property detector to the detection information of selector B signal output and judge, if this moment, the output of selector B signal was normal from becoming unusually, shows that protection switches automatic recovery and finish.Then controller triggering timer conter stops counting, and unison counter sends an external hardware to cpu system and interrupts, and notice cpu system counting is finished.Like this, after cpu system obtains count information from timer counter, can switch the recovering information result by information interactive interface transmission protection and go out.If after timer counter is finished time-out count, also there is not the counting controling signal that stops of controlled device, then also by external interrupt notice cpu system, the count information that this moment, cpu system obtained is exactly that time-out information is switched in a protection to timer counter.
[embodiment 4]
As Fig. 7 and Figure 11, show the detection that embodiment 4 realizes that the manual protection of optical transmission system is switched.When needing manual the protection when switching, (working line is overhauled optical transmission system equipment as needs; then can be by the manual mode of switching; need this moment to guarantee that protection circuit is normal); if cpu system 500 receives manual protection switching control command; pick up counting this moment; then selector B 508 begins to carry out the selection switching; selector B exported 509 light signals and became unusually this moment; after selector B switching is finished; selector B output light signal becomes normally; timing this moment stops. the time that this section timing definition is switched for manual protection, understand the manual protection of protection switching of optical transmission equipment switch messages by this information.
After system starts working; under cpu system 500 controls, high-resolution counter 501, controller 503, optical property are detected Unit 504, system's global state and sign and carry out initialization (S901); judge the state of selector B; if selector B has been in the protection switch status, then carry out other processing (S902) (this state is not suitable for carrying out embodiment 4).Receive simultaneously and handle from the control command of information interactive interface (S900) and the information of parameter (the trigger condition configuration information of optical property detecting unit, the overtime setting of timer counter), if different, then receive new data message and be provided with the system default value.The hardware system various piece is started working.The optical property detecting unit detects measurand in real time.After initialization is finished, judge whether to receive and manually switch order (S903) that if receive then picked up counting by cpu system 500 control high-resolution counters 501, selector B carries out switching action, this moment selector B to export light signal be unusual.Normally is sensed light signal (S906) when optical property detecting unit 504 detects selector B output light signal from becoming unusually, and then controller triggering high-resolution counter stops timing.Showing that manual protection is switched finishes.High-resolution counter sends an external hardware interruption to cpu system simultaneously, and notice cpu system counting is finished.Like this, after cpu system obtains count information from high-resolution counter, handle (S907), can send manual protection switch messages result by information interactive interface and go out through data analysis.If after timer counter is finished time-out count, also there is not the counting controling signal that stops of controlled device, then timer counter is also by external interrupt notice cpu system, and the count information that this moment, cpu system obtained is exactly that time-out information is switched in a manual protection.
[embodiment 5]
As Fig. 7 and Figure 11, show the detection that recovery is switched in the manual protection of embodiment 5 realization optical transmission systems.When optical transmission system equipment need manual protect to switch when recovering (switch, overhaul the back working line and recover by hand as overhauling because of working line; then can realize) by the mode that recovery is switched in manual protection; if cpu system 500 receives manual protection and switches the recovery control command; pick up counting this moment; then selector B 508 begins to carry out the selection switching; selector B exported 509 light signals and became unusually this moment; after selector B switching is finished; selector B output light signal becomes normally, and timing this moment stops.This section timing definition is understood the manual protection of protection switching of optical transmission equipment by this information and is switched recovering information for protecting the time of switching recovery by hand.
After system starts working; under cpu system 500 controls, high-resolution counter 501, controller 503, optical property are detected Unit 504, system's global state and sign and carry out initialization (S901); judge the state of selector B; return to form if selector B has been in to protect to switch, then carry out other processing (S902) (this state is not suitable for carrying out embodiment 5).Receive simultaneously and handle from the control command of information interactive interface (S900) and the information of parameter (the trigger condition configuration information of optical property detecting unit, the overtime setting of timer counter), if different, then receive new data message and be provided with the system default value.The hardware system various piece is started working.The optical property detecting unit detects measurand in real time.After initialization is finished; judge whether to receive that manual protection is switched recovers order (S903); if receive then control high-resolution counters 501 by cpu system 500 to pick up counting that selector B execute protection is switched and recovered action, selector B output this moment light signal is unusual.Normally is sensed light signal (S906) when optical property detecting unit 504 detects selector B output light signal from becoming unusually, and then controller triggering high-resolution counter stops timing.Showing that manual protection is switched recovers to finish.High-resolution counter sends an external hardware interruption to cpu system simultaneously, and notice cpu system counting is finished.Like this, after cpu system obtains count information from high-resolution counter, handle (S907), can switch the recovering information result by the manual protection of information interactive interface transmission and go out through data analysis.If after timer counter is finished time-out count, also there is not the counting controling signal that stops of controlled device, then timer counter is also by external interrupt notice cpu system, and the count information that this moment, cpu system obtained is exactly that the recovery time-out information is switched in a manual protection.
One of skill in the art will appreciate that to be similar to embodiment 3, embodiment 4 and embodiment 5, adopt software timing counting shown in Figure 9, can realize that equally the automatic recovery that protection is switched, manual protection are switched, manual protection is switched and recovered to detect.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.