CN110417465B - Optical signal testing method, system, device and readable storage medium - Google Patents

Optical signal testing method, system, device and readable storage medium Download PDF

Info

Publication number
CN110417465B
CN110417465B CN201910716596.8A CN201910716596A CN110417465B CN 110417465 B CN110417465 B CN 110417465B CN 201910716596 A CN201910716596 A CN 201910716596A CN 110417465 B CN110417465 B CN 110417465B
Authority
CN
China
Prior art keywords
signal
alarm signal
pulse
optical
alarm
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
Application number
CN201910716596.8A
Other languages
Chinese (zh)
Other versions
CN110417465A (en
Inventor
庄礼杰
杨强
何志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Apat Opto Electronics Components Co ltd
Original Assignee
Shenzhen Apat Opto Electronics Components Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Apat Opto Electronics Components Co ltd filed Critical Shenzhen Apat Opto Electronics Components Co ltd
Priority to CN201910716596.8A priority Critical patent/CN110417465B/en
Publication of CN110417465A publication Critical patent/CN110417465A/en
Application granted granted Critical
Publication of CN110417465B publication Critical patent/CN110417465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07953Monitoring or measuring OSNR, BER or Q

Abstract

The invention provides a method, a system, a device and a readable storage medium for testing optical signals, which comprises the steps of comparing an alarm signal with a pulse of a preset reference signal when the alarm signal input by an optical line module to be tested is received; and outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule. Therefore, according to the technical scheme provided by the invention, the alarm signal is compared with the pulse of the preset reference signal, and when the pulse hopping frequency of the preset reference signal and the pulse hopping frequency of the alarm signal accord with the comparison rule, the normal alarm information generated by the optical line module to be tested is confirmed, so that the comparison speed and accuracy of the alarm signal are improved.

Description

Optical signal testing method, system, device and readable storage medium
Technical Field
The present invention relates to the field of signal testing technologies, and in particular, to a method, a system, an apparatus, and a readable storage medium for testing an optical signal.
Background
Compared with the active Optical access technology, the Passive Optical Network (PON) series products have high reliability and low cost because active devices between a local end and a user end are eliminated.
When a PON series product is tested in the prior art, a burst error code tester needs to perform SD (Signal Detect Signal)/LOS (LOSs Of Signal) alarm test on the product to be tested, and a received optical Signal is displayed on an oscilloscope, and whether SD/LOS alarm is normal is determined by the optical Signal displayed on the oscilloscope. However, due to the limitation of the oscilloscope screen, only signals of a few cycles can be displayed, and whether the SD/LOS alarm is accurate cannot be judged quickly and accurately.
Disclosure of Invention
The invention mainly aims to provide a method, a system, a device and a readable storage medium for testing optical signals, which solve the problem that whether SD/LOS alarm is accurate or not can not be quickly and accurately judged when PON series products are tested.
In order to achieve the above object, the present invention provides a method for testing an optical signal, which includes the following steps:
when an alarm signal input by an optical line module to be tested is received, comparing the alarm signal with a pulse of a preset reference signal;
and outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule.
Optionally, when receiving an alarm signal input by the optical line module to be tested, the step of comparing the alarm signal with a pulse of a preset reference signal includes:
when an alarm signal input by an optical line module to be tested is received, acquiring the time difference between the preset reference signal and any pulse area corresponding to the alarm signal, wherein the pulse area comprises a high-level pulse area and a low-level pulse area;
and if the time difference is within a preset range, comparing the alarm signal with the pulse of a preset reference signal.
Optionally, when the pulse transition number of the preset reference signal and the pulse transition number of the alarm signal conform to a comparison rule, the step of outputting the information that the alarm is normal includes:
acquiring the number of rising edges and the number of falling edges of the alarm signal in any pulse area of the preset reference signal;
and if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the pulse transition times of the preset reference signal and the pulse transition times of the alarm signal accord with a comparison rule, and outputting normal alarm information.
Optionally, the alarm signal includes an SD alarm signal and an LOS alarm signal, and when the pulse area is a high-level pulse area, the step of determining whether the number of rising edges and the number of falling edges meet a preset condition includes:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is one, and the number of the falling edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions;
and if the type of the alarm signal is an LOS alarm signal, the number of the falling edges is one, and the number of the rising edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Optionally, when the pulse area is a low-level pulse area, the step of determining whether the number of rising edges and the number of falling edges meet a preset condition further includes:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions;
and if the type of the alarm signal is an LOS alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Optionally, when the pulse area is a high-level pulse area, the preset range is 0-30 ns; when the pulse zone is a low-level pulse zone, the preset range is 0-100 ns.
In order to achieve the above object, the present invention further provides a test system for an optical signal, including:
a timing control board;
the optical line module to be tested is electrically connected with the time sequence control board and is used for generating an alarm signal and transmitting the alarm signal to the time sequence control board so as to perform pulse comparison on the alarm signal and a preset reference signal;
the timing control board comprises a memory, a processor and a test program of the optical signal, wherein the test program of the optical signal is stored on the memory and can run on the processor, and the test program of the optical signal realizes the steps of the test method of the optical signal when being executed by the processor.
Optionally, the test system for optical signals further includes:
an error code detector;
the optical network unit is electrically connected with the time sequence control board, the error code meter is electrically connected with the optical network unit, and the optical network unit is used for receiving the test code generated by the error code meter and the enabling signal generated by the time sequence control board so as to generate an optical signal;
the optical network unit is electrically connected with the optical line module to be tested, and an optical signal generated by the optical network unit is transmitted to the optical line module to be tested, so that the optical line module to be tested generates an alarm signal.
In order to achieve the above object, the present invention further provides a device for testing an optical signal, where the device for testing an optical signal includes a memory, a processor, and a test program of an optical signal stored in the memory and executable on the processor, and the test program of an optical signal implements the steps of the method for testing an optical signal when executed by the processor.
In order to achieve the above object, the present invention further provides a readable storage medium, on which a test program of an optical signal is stored, and the test program of the optical signal, when executed by a processor, implements the steps of the test method of the optical signal described above.
The invention provides a method, a system, a device and a readable storage medium for testing optical signals, which comprises the steps of comparing an alarm signal with a pulse of a preset reference signal when the alarm signal input by an optical line module to be tested is received; and outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule. Therefore, according to the technical scheme provided by the invention, the alarm signal is compared with the pulse of the preset reference signal, and when the pulse hopping frequency of the preset reference signal and the pulse hopping frequency of the alarm signal accord with the comparison rule, the normal alarm information generated by the optical line module to be tested is confirmed, so that the comparison speed and accuracy of the alarm signal are improved.
Drawings
In order to more clearly illustrate the embodiments or exemplary technical solutions of the present invention, the drawings used in the embodiments or exemplary descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an optical signal testing apparatus for a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for testing an optical signal according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a pulse comparison between the SD alarm signal and the preset reference signal according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a pulse comparison between the LOS alarm signal and the predetermined reference signal according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a method for testing an optical signal according to an embodiment of the present invention;
FIG. 6 is a flowchart of a refinement step of S1 in FIG. 5;
fig. 7 is a flowchart of the refinement step of S2 in fig. 5.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a device for testing an optical signal of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the optical signal testing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), a remote controller, and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a non-volatile memory), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the configuration of the optical signal testing arrangement shown in fig. 1 does not constitute a limitation of the optical signal testing arrangement and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
In the optical signal testing apparatus shown in fig. 1, the network interface 1003 is mainly used for connecting to a background server and performing data communication with the background server; and the processor 1001 may be configured to call a test program of the optical signal stored in the memory 1005 and perform the following operations:
when an alarm signal input by an optical line module to be tested is received, comparing the alarm signal with a pulse of a preset reference signal;
and outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule.
Further, the processor 1001 may call a test program of the optical signal stored in the memory 1005, and also perform the following operations:
when an alarm signal input by an optical line module to be tested is received, acquiring the time difference between the preset reference signal and any pulse area corresponding to the alarm signal, wherein the pulse area comprises a high-level pulse area and a low-level pulse area;
if the time difference is within a preset range, comparing the alarm signal with the pulse of a preset reference signal;
and if the time difference is out of the preset range, outputting information that the alarm is abnormal.
Further, the processor 1001 may call a test program of the optical signal stored in the memory 1005, and also perform the following operations:
acquiring the number of rising edges and the number of falling edges of the alarm signal in any pulse area of the preset reference signal;
and if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the pulse transition times of the preset reference signal and the pulse transition times of the alarm signal accord with a comparison rule, and outputting normal alarm information.
Further, the processor 1001 may call a test program of the optical signal stored in the memory 1005, and also perform the following operations:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is one, and the number of the falling edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions;
and if the type of the alarm signal is an LOS alarm signal, the number of the falling edges is one, and the number of the rising edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Further, the processor 1001 may call a test program of the optical signal stored in the memory 1005, and also perform the following operations:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions;
and if the type of the alarm signal is an LOS alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Further, the processor 1001 may call a test program of the optical signal stored in the memory 1005, and also perform the following operations:
when the pulse area is a high-level pulse area, the preset range is 0-30 ns; when the pulse zone is a low-level pulse zone, the preset range is 0-100 ns.
As shown in fig. 2, the present invention provides a system for testing optical signals.
In an embodiment, as shown in fig. 2, the optical signal testing system includes a timing control board 1 and an optical line module 2 to be tested, and the optical line module 2 to be tested is electrically connected to the timing control board 1. The optical line module 2 to be tested is configured to generate an alarm signal and transmit the alarm signal to the time sequence control board 1, so that the alarm signal is subjected to pulse comparison with a preset reference signal IN _ Trig, that is, when the time sequence control board 1 receives the alarm signal, the alarm signal is subjected to pulse comparison with the preset reference signal IN _ Trig. Wherein, the timing control board 1 includes the optical signal testing device as described above.
Further, the alarm signals include an SD alarm signal and an LOS alarm signal, wherein the SD alarm signal is used for an alarm of signal detection, such as: signal strength, etc., for LOSs of signal alarms, such as: and a certain section of signal code in the LOS alarm signal is lost. The preset reference signal IN _ Trig is a standard signal having a logical correlation with the alarm signal, wherein the preset reference signal IN _ Trig may be set by the timing control board 1 or generated by an external device, and is not limited herein.
It can be understood that the preset reference signal IN _ Trig includes a first preset reference signal and a second preset reference signal, and when the alarm signal is an SD alarm signal, the SD alarm signal is pulse-compared with the first preset reference signal; and when the alarm signal is an LOS alarm signal, performing pulse comparison on the LOS alarm signal and the second preset reference signal.
Further, the optical signal testing system further includes an error detector 3 and an optical network unit 4, the optical network unit 4 is electrically connected to the timing sequence control board 1, the error detector 3 is electrically connected to the optical network unit 4, the optical network unit 4 is configured to receive a test code generated by the error detector 3 and an enable signal BEN generated by the timing sequence control board 1, and the enable signal BEN is configured to enable the optical line module 2 to be tested to emit light, that is, the optical line module 2 to be tested generates an optical signal. The optical network unit 4 is electrically connected to the optical line module 2 to be tested, an optical signal generated by the optical network unit 4 is transmitted to the optical line module 2 to be tested, and when the optical line module 2 to be tested normally works, the optical signal contains a test code generated by the error code detector 3, that is, the test code can enable the optical line module 2 to be tested to generate an alarm signal.
Further, when the optical line module 2 to be tested receives an optical signal, the optical line module 2 to be tested compares the optical power of the optical signal with an SD predetermined value prestored in the optical line module 2 to be tested, and when the optical power is smaller than the SD predetermined value, the optical line module 2 to be tested generates an SD alarm signal; the optical line module 2 to be tested compares the optical power of the optical signal with a pre-stored LOS predetermined value in the optical line module 2 to be tested, and when the optical power is smaller than the LOS predetermined value, the optical line module 2 to be tested generates an LOS alarm signal. In addition, when the optical power is greater than the SD predetermined value or the LOS predetermined value, the optical line module 2 to be tested does not generate an SD/LOS alarm signal, that is, the optical line module 2 to be tested releases the SD/LOS alarm signal.
Further, when the alarm Signal is an LOS alarm Signal, that is, the optical line module 2 to be tested is a GPON (Gigabit-Capable PON passive optical access system) type, at this time, the timing control board 1 further needs to configure an RSSI _ Trig (Received Strength reporting trigger Signal) Signal and a RST (reset) Signal, where the RSSI _ Trig Signal is used to trigger an RSSI (Received Signal Strength Indication) report of the optical line module 2 to be tested, and send the RSSI _ Trig Signal and the RST Signal to the optical line module 2 to be tested, so that the optical line module 2 to be tested releases a last input Signal.
Further, before the pulse comparison between the alarm signal and a preset reference signal IN _ Trig, acquiring a time difference between the preset reference signal IN _ Trig and any pulse region corresponding to the alarm signal, wherein the pulse region is defined by a level signal interval of the reference signal IN _ Trig, and the level signal interval includes a high level signal interval and a low level signal interval, that is, the pulse region includes a high level pulse region and a low level pulse region; when the pulse area takes the high-level pulse area as a signal comparison interval, the start and stop of the comparison interval are time intervals from the rising of a certain level of the reference signal IN _ Trig to the falling of the level; when the pulse zone takes the low-level pulse zone as the signal comparison interval, the start and stop of the comparison interval are time intervals when a certain level of the reference signal IN _ Trig is decreased to be increased.
Specifically, if the time difference is within a preset range, comparing the alarm signal with a pulse of a preset reference signal IN _ Trig; and if the time difference is out of the preset range, outputting information that the alarm is abnormal. When the pulse area is a high-level pulse area, the preset range is 0-30 ns; when the pulse zone is a low-level pulse zone, the preset range is 0-100 ns. Of course, in other embodiments, the preset range may be set to other ranges, and is not limited herein.
Further, the timing control board 1 may store 500 values of the time difference Toffset between the preset reference signal IN _ Trig and the alarm signal high-level pulse region, and similarly, may store 500 values of the time difference Toffset' between the preset reference signal IN _ Trig and the alarm signal low-level pulse region, that is, the optical signal testing system may compare 500 sets of data of the high-level pulse region and the low-level pulse region, so that the testing result is more accurate.
Further, when the alarm signal is subjected to pulse comparison with a preset reference signal IN _ Trig, the number of rising edges and the number of falling edges of the alarm signal IN any pulse region of the preset reference signal IN _ Trig are obtained; if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the number of pulse transition times of the preset reference signal IN _ Trig and the number of pulse transition times of the alarm signal accord with a comparison rule, and outputting normal alarm information; and if the number of the rising edges and the number of the falling edges do not meet the preset condition, determining that the number of pulse transition times of the preset reference signal IN _ Trig and the number of pulse transition times of the alarm signal do not accord with a comparison rule, and outputting abnormal alarm information, namely the alarm signal is inaccurate. The pulse transition times are the times of jumping from a high level to a low level, or the pulse transition times are the times of jumping from a low level to a high level.
Further, if the pulse transition times of the preset reference signal and the alarm signal do not accord with a comparison rule, the number of the rising edges and the number of the falling edges meet a preset condition.
Specifically, as shown IN fig. 3, when the alarm signal is an SD alarm signal and the pulse region is a high-level pulse region, the SD alarm signal is pulse-compared with a preset reference signal IN _ Trig, that is, the number of rising edges of the SD alarm signal is compared with the number of rising edges of the preset reference signal IN _ Trig, the number of falling edges of the SD alarm signal is compared with the number of falling edges of the preset reference signal IN _ Trig, and when the number of rising edges is one and the number of falling edges is zero, it is determined that the number of rising edges and the number of falling edges satisfy a preset condition, that is, the number of pulse transitions of the preset reference signal IN _ Trig and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, accurate information of the SD alarm signal is output.
Further, when the alarm signal is an SD alarm signal and the pulse zone is a low-level pulse zone, performing pulse comparison on the SD alarm signal and a preset reference signal IN _ Trig, that is, comparing the number of rising edges of the SD alarm signal with the number of rising edges of the preset reference signal IN _ Trig, comparing the number of falling edges of the SD alarm signal with the number of falling edges of the preset reference signal IN _ Trig, and when the number of rising edges is zero and the number of falling edges is one, determining that the number of rising edges and the number of falling edges satisfy a preset condition, that is, the number of pulse transitions of the preset reference signal IN _ Trig and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, outputting accurate information of the SD alarm signal.
Further, as shown IN fig. 4, when the alarm signal is an LOS alarm signal and the pulse region is a high-level pulse region, the LOS alarm signal is pulse-compared with a preset reference signal IN _ Trig, that is, the number of falling edges of the LOS alarm signal is compared with the number of rising edges of the preset reference signal IN _ Trig, the number of rising edges of the LOS alarm signal is compared with the number of falling edges of the preset reference signal IN _ Trig, and when the number of falling edges is one and the number of rising edges is zero, it is determined that the number of rising edges and the number of falling edges satisfy a preset condition, that is, the number of pulse transitions of the preset reference signal IN _ Trig and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, accurate information of the LOS alarm signal is output.
Further, when the alarm signal is an LOS alarm signal and the pulse zone is a low-level pulse zone, the LOS alarm signal is subjected to pulse comparison with a preset reference signal IN _ Trig, that is, the number of falling edges of the LOS alarm signal is compared with the number of rising edges of the preset reference signal IN _ Trig, the number of rising edges of the LOS alarm signal is compared with the number of falling edges of the preset reference signal IN _ Trig, and the number of falling edges is zero and the number of rising edges is one, it is determined that the number of rising edges and the number of falling edges meet preset conditions, that is, the number of pulse transitions of the preset reference signal IN _ Trig and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, accurate information of the LOS alarm signal is output.
Further, the optical signal testing system further includes an optical attenuator 5, where the optical attenuator 5 is disposed between the optical line module to be tested 2 and the optical network unit 4, and is configured to adjust optical power of an optical signal transmitted to the optical line module to be tested 2 by the optical network unit 4, so that the optical power of the optical signal is smaller than an SD predetermined value or an LOS predetermined value, and thus the optical line module to be tested 2 can generate an SD alarm signal or an LOS alarm signal.
In an embodiment of the present invention, the optical signal testing system includes a timing control board 1 and an optical line module 2 to be tested, where the optical line module 2 to be tested is electrically connected to the timing control board 1, and is configured to generate an alarm signal and transmit the alarm signal to the timing control board 1, so that the alarm signal is compared with a preset reference signal in a pulse manner. Therefore, according to the technical scheme provided by the invention, the alarm signal received by the time sequence control board is compared with the preset reference signal in a pulse mode, so that whether the alarm signal generated by the optical line module to be tested is normal or not is confirmed, and the comparison speed and accuracy of the alarm signal are improved.
Based on the above embodiment, the present invention further provides a method for testing an optical signal, as shown in fig. 5, which is a flowchart illustrating steps of the method for testing an optical signal according to the present invention, and the method for testing an optical signal includes the following steps:
s1, when an alarm signal input by the optical line module to be tested is received, comparing the alarm signal with a pulse of a preset reference signal;
and S2, outputting normal warning information when the pulse transition times of the preset reference signal and the alarm signal accord with a comparison rule.
In an embodiment, the optical line module to be tested is configured to generate an alarm signal, and the timing control board receives the alarm signal input by the optical line module to be tested, wherein the optical line module to be tested is electrically connected to the timing control board. And when the time sequence control board receives an alarm signal input by the optical line module to be tested, carrying out pulse comparison on the alarm signal and a preset reference signal.
Further, the alarm signals include an SD alarm signal and an LOS alarm signal, wherein the SD alarm signal is used for an alarm of signal detection, such as: signal strength, etc., for LOSs of signal alarms, such as: and a certain section of signal code in the LOS alarm signal is lost. The preset reference signal is a standard signal having a logical correlation with the alarm signal, wherein the preset reference signal may be set and generated by the timing control board or generated by an external device, and is not limited herein.
And further, performing pulse comparison on the alarm signal and a preset reference signal, and outputting normal alarm information when the pulse transition times of the preset reference signal and the alarm signal accord with a comparison rule.
As shown in fig. 6, step S1 includes:
s11, when an alarm signal input by the optical line module to be tested is received, acquiring the time difference between the preset reference signal and any pulse area corresponding to the alarm signal, wherein the pulse area comprises a high-level pulse area and a low-level pulse area;
and S12, if the time difference is within a preset range, comparing the alarm signal with the pulse of a preset reference signal.
IN an embodiment, when the timing control board receives an alarm signal input by an optical line module to be tested, a time difference between the preset reference signal and any pulse region corresponding to the alarm signal is obtained, where the pulse region is defined by a level signal interval of a reference signal IN _ Trig, and the level signal interval includes a high level signal interval and a low level signal interval, that is, the pulse region includes a high level pulse region and a low level pulse region. When the pulse area takes the high-level pulse area as a signal comparison interval, the start and stop of the comparison interval are time intervals from the rising of a certain level of the reference signal IN _ Trig to the falling of the level; when the pulse zone takes the low-level pulse zone as the signal comparison interval, the start and stop of the comparison interval are time intervals when a certain level of the reference signal IN _ Trig is decreased to be increased.
Specifically, when any pulse region corresponding to the preset reference signal and the alarm signal is a high-level pulse region, a time difference between the preset reference signal and the high-level pulse region of the alarm signal is Toffset; when any pulse area corresponding to the preset reference signal and the alarm signal is a low-level pulse area, the time difference between the preset reference signal and the high-level pulse area of the alarm signal is Toffset'. Wherein, the time difference Toffset and the time difference Toffset' are stored in the timing control board.
Further, the timing control board may store 500 values of the time difference Toffset between the preset reference signal and the alarm signal high level pulse region, and similarly, may store 500 values of the time difference Toffset' between the preset reference signal and the alarm signal low level pulse region, that is, the optical signal testing system may compare 500 sets of data in the high level pulse region and the low level pulse region, so that the testing result is more accurate.
Further, if the time difference is within a preset range, comparing the alarm signal with a pulse of a preset reference signal. When the pulse area is a high-level pulse area, the preset range is 0-30 ns, and the time difference Toffset is 0-30 ns, the alarm signal is compared with the pulse of a preset reference signal; when the pulse area is a low-level pulse area, the preset range is 0-100 ns, and when the time difference Toffset' is 0-100 ns, the alarm signal is compared with the pulse of a preset reference signal.
Further, after the step of obtaining a time difference between the preset reference signal and any pulse region corresponding to the alarm signal when the alarm signal input by the optical line module to be tested is received, the method further includes:
and if the time difference is out of the preset range, outputting information that the alarm is abnormal.
When the pulse area is a high-level pulse area, the preset range is 0-30 ns, and the time difference Toffset is out of the range of 0-30 ns, determining that the pulse hopping times of the preset reference signal and the pulse hopping times of the alarm signal accord with a comparison rule, and outputting abnormal alarm information; when the pulse zone is a low-level pulse zone, the preset range is 0-100 ns, and the time difference Toffset' is out of the range of 0-100 ns, it is determined that the pulse transition times of the preset reference signal and the alarm signal do not accord with a comparison rule, and at this time, abnormal alarm information is output.
In an embodiment of the present invention, the method for testing an optical signal includes the following steps: when an alarm signal input by an optical line module to be tested is received, comparing the alarm signal with a pulse of a preset reference signal; and outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule. Therefore, according to the technical scheme provided by the invention, the alarm signal is compared with the pulse of the preset reference signal, and when the pulse hopping frequency of the preset reference signal and the pulse hopping frequency of the alarm signal accord with the comparison rule, the normal alarm information generated by the optical line module to be tested is confirmed, so that the comparison speed and accuracy of the alarm signal are improved.
In an embodiment of the testing method based on the optical signal, as shown in fig. 7, step S2 includes:
s21, acquiring the number of rising edges and the number of falling edges of the alarm signal in any pulse area of the preset reference signal;
and S22, if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the number of pulse transition times of the preset reference signal and the number of pulse transition times of the alarm signal accord with a comparison rule, and outputting normal alarm information.
In an embodiment, when the alarm signal is pulse-compared with a preset reference signal, the number of rising edges and the number of falling edges of the alarm signal in any pulse region of the preset reference signal are obtained. The rising edge is a time point when the low level is converted into the high level, and the falling edge is a time point when the high level is converted into the low level.
Further, if the number of rising edges and the number of falling edges meet a preset condition, determining that the number of pulse transitions of the preset reference signal and the number of pulse transitions of the alarm signal conform to a comparison rule, and outputting normal alarm information.
Further, if the number of the rising edges and the number of the falling edges do not meet the preset condition, determining that the number of pulse transitions of the preset reference signal and the number of pulse transitions of the alarm signal do not meet the comparison rule, and outputting information that the alarm is abnormal, that is, the alarm signal is inaccurate.
Wherein, the alarm signal includes an SD alarm signal and an LOS alarm signal, and when the pulse area is a high-level pulse area, the step of if the number of rising edges and the number of falling edges satisfy a preset condition includes:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is one, and the number of the falling edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions; and if the type of the alarm signal is an LOS alarm signal, the number of the falling edges is one, and the number of the rising edges is zero, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Specifically, when the alarm signal is an SD alarm signal and the pulse zone is a high-level pulse zone, the SD alarm signal is pulse-compared with a preset reference signal, that is, the number of rising edges of the SD alarm signal is compared with the number of rising edges of the preset reference signal, the number of falling edges of the SD alarm signal is compared with the number of falling edges of the preset reference signal, and when the number of rising edges is one and the number of falling edges is zero, it is determined that the number of rising edges and the number of falling edges satisfy a preset condition, that is, the number of pulse transitions of the preset reference signal and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, accurate information of the SD alarm signal is output.
Or, when the alarm signal is an LOS alarm signal and the pulse zone is a high-level pulse zone, the LOS alarm signal is subjected to pulse comparison with a preset reference signal, that is, the number of falling edges of the LOS alarm signal is compared with the number of rising edges of the preset reference signal, the number of rising edges of the LOS alarm signal is compared with the number of falling edges of the preset reference signal, the number of falling edges is one and the number of rising edges is zero, the number of rising edges and the number of falling edges meet preset conditions, that is, the number of pulse transitions of the preset reference signal and the number of pulse transitions of the alarm signal meet comparison rules, and at the moment, accurate information of the LOS alarm signal is output.
When the pulse area is a low-level pulse area, the step of determining whether the number of rising edges and the number of falling edges meet a preset condition further includes:
if the type of the alarm signal is an SD alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions; and if the type of the alarm signal is an LOS alarm signal, the number of the rising edges is zero and the number of the falling edges is one, determining that the number of the rising edges and the number of the falling edges meet preset conditions.
Specifically, when the alarm signal is an SD alarm signal and the pulse zone is a low-level pulse zone, the SD alarm signal is pulse-compared with a preset reference signal, that is, the number of rising edges of the SD alarm signal is compared with the number of rising edges of the preset reference signal, the number of falling edges of the SD alarm signal is compared with the number of falling edges of the preset reference signal, and when the number of rising edges is zero and the number of falling edges is one, it is determined that the number of rising edges and the number of falling edges satisfy a preset condition, that is, the number of pulse transitions of the preset reference signal and the number of pulse transitions of the alarm signal conform to a comparison rule, and at this time, accurate information of the SD alarm signal is output.
Further, when the alarm signal is an LOS alarm signal and the pulse zone is a low-level pulse zone, the LOS alarm signal and the preset reference signal are subjected to pulse comparison, that is, the number of falling edges of the LOS alarm signal and the number of rising edges of the preset reference signal are compared, the number of rising edges of the LOS alarm signal and the number of falling edges of the preset reference signal are compared, the number of falling edges is zero and the number of rising edges is one, the number of rising edges and the number of falling edges meet preset conditions, that is, the number of pulse hopping times of the preset reference signal and the number of pulse hopping times of the alarm signal meet comparison rules, and at the moment, accurate information of the LOS alarm signal is output.
In an embodiment of the present invention, the method for testing an optical signal includes the following steps: acquiring the number of rising edges and the number of falling edges of the alarm signal in any pulse area of the preset reference signal; and if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the pulse transition times of the preset reference signal and the pulse transition times of the alarm signal accord with a comparison rule, and outputting normal alarm information. Therefore, the technical scheme provided by the invention compares the number of rising edges and the number of falling edges between the alarm signal and the preset reference signal to confirm the normal alarm information generated by the optical line module to be tested, thereby improving the comparison speed and accuracy of the alarm signal.
Based on the embodiment of the optical signal testing method, an embodiment of the present invention further provides an optical signal testing apparatus, where the optical signal testing apparatus includes a memory, a processor, and a testing program that is stored in the memory and is capable of running an optical signal on the processor, and when the processor executes the testing program of the optical signal, the optical signal testing method of the embodiment is implemented.
Based on the embodiment of the optical signal testing method, the invention further provides a readable storage medium, where a testing program of the optical signal is stored on the readable storage medium, and when the testing program of the optical signal is executed by a processor, the steps of the optical signal testing method are implemented.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the specification and the drawings, or any other related technical fields directly or indirectly applied thereto under the conception of the present invention are included in the scope of the present invention.

Claims (7)

1. A method for testing an optical signal, comprising the steps of:
when an alarm signal input by an optical line module to be tested is received, comparing the alarm signal with a pulse of a preset reference signal, wherein the alarm signal comprises an SD alarm signal and an LOS alarm signal;
outputting normal warning information when the pulse hopping times of the preset reference signal and the alarm signal accord with a comparison rule;
when the pulse transition times of the preset reference signal and the alarm signal accord with a comparison rule, outputting normal alarm information, wherein the normal alarm information comprises the following steps:
acquiring the number of rising edges and the number of falling edges of the alarm signal in any pulse area of the preset reference signal, wherein the pulse area comprises a high-level pulse area and a low-level pulse area;
if the number of the rising edges and the number of the falling edges meet preset conditions, determining that the pulse hopping times of the preset reference signal and the pulse hopping times of the alarm signal accord with a comparison rule, and outputting normal alarm information;
wherein the determining that the number of rising edges and the number of falling edges meet the preset condition comprises:
when the pulse area is a high-level pulse area and the type of the alarm signal is an SD alarm signal, the number of the rising edges is one and the number of the falling edges is zero;
when the pulse area is a high-level pulse area and the type of the alarm signal is an LOS alarm signal, the number of the falling edges is one and the number of the rising edges is zero;
when the pulse area is a low-level pulse area and the type of the alarm signal is an SD alarm signal, the number of the rising edges is zero and the number of the falling edges is one;
and when the pulse area is a low-level pulse area and the type of the alarm signal is an LOS alarm signal, the number of the rising edges is zero and the number of the falling edges is one.
2. The method according to claim 1, wherein the step of comparing the alarm signal with a pulse of a preset reference signal when receiving the alarm signal input by the optical line module to be tested comprises:
when an alarm signal input by an optical line module to be tested is received, acquiring the time difference between the preset reference signal and any pulse area corresponding to the alarm signal;
and if the time difference is within a preset range, comparing the alarm signal with the pulse of a preset reference signal.
3. The method according to any one of claims 1 to 2, wherein when the pulse region is a high level pulse region, the predetermined range is 0 to 30 ns; when the pulse zone is a low-level pulse zone, the preset range is 0-100 ns.
4. A system for testing an optical signal, the system comprising:
a timing control board;
the optical line module to be tested is electrically connected with the time sequence control board and is used for generating an alarm signal and transmitting the alarm signal to the time sequence control board so as to perform pulse comparison on the alarm signal and a preset reference signal;
the timing control board comprises a memory, a processor and a test program of the optical signal, wherein the test program of the optical signal is stored on the memory and can run on the processor, and when the test program of the optical signal is executed by the processor, the steps of the test method of the optical signal according to any one of claims 1 to 3 are realized.
5. The system for testing an optical signal of claim 4, further comprising:
an error code detector;
the optical network unit is electrically connected with the time sequence control board, the error code meter is electrically connected with the optical network unit, and the optical network unit is used for receiving the test code generated by the error code meter and the enabling signal generated by the time sequence control board so as to generate an optical signal;
the optical network unit is electrically connected with the optical line module to be tested, and an optical signal generated by the optical network unit is transmitted to the optical line module to be tested, so that the optical line module to be tested generates an alarm signal.
6. An optical signal testing apparatus, comprising a memory, a processor and an optical signal testing program stored in the memory and executable on the processor, wherein the optical signal testing program, when executed by the processor, implements the steps of the optical signal testing method according to any one of claims 1 to 3.
7. A readable storage medium, on which a test program of an optical signal is stored, the test program of the optical signal implementing the steps of the test method of the optical signal according to any one of claims 1 to 3 when executed by a processor.
CN201910716596.8A 2019-07-31 2019-07-31 Optical signal testing method, system, device and readable storage medium Active CN110417465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910716596.8A CN110417465B (en) 2019-07-31 2019-07-31 Optical signal testing method, system, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910716596.8A CN110417465B (en) 2019-07-31 2019-07-31 Optical signal testing method, system, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110417465A CN110417465A (en) 2019-11-05
CN110417465B true CN110417465B (en) 2020-11-06

Family

ID=68365731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910716596.8A Active CN110417465B (en) 2019-07-31 2019-07-31 Optical signal testing method, system, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110417465B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971990B (en) * 2019-11-18 2022-05-10 武汉光谷信息光电子创新中心有限公司 Method and device for detecting SD/LOS (secure digital/optical line segment) of OLT (optical line terminal) optical module

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656622A (en) * 2008-08-20 2010-02-24 中兴通讯股份有限公司 Alarm management system and alarm management method
CN102098102A (en) * 2011-02-15 2011-06-15 武汉电信器件有限公司 Burst mode code error tester of optical module on optical line terminal in gigabit-capable passive optical network
CN102201942A (en) * 2010-03-26 2011-09-28 华为技术有限公司 Optical power alarming method and equipment
CN103647601A (en) * 2013-12-13 2014-03-19 国家电网公司 Fiber monitoring system
CN203522743U (en) * 2013-09-22 2014-04-02 武汉恒泰通技术有限公司 SFP optical module testing device
CN108258805A (en) * 2017-12-30 2018-07-06 国网天津市电力公司电力科学研究院 A kind of appraisal procedure of monitoring system of electric substation intelligent alarm
CN109768881A (en) * 2018-12-17 2019-05-17 京信通信系统(中国)有限公司 The method, apparatus and system that alarm status detects automatically

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8244124B2 (en) * 2007-04-30 2012-08-14 Finisar Corporation Eye safety mechanism for use in optical cable with electrical interfaces
CN104158593B (en) * 2014-08-27 2016-11-30 索尔思光电(成都)有限公司 A kind of process LOS signal and the method for oscillation-damped, circuit and equipment
US10050722B2 (en) * 2014-10-17 2018-08-14 The United States Of America, As Represented By The Secretary Of Commerce Signal generator, process for making and using same
CN105024854B (en) * 2015-07-02 2018-07-27 国家电网公司 A kind of implementation method of SDH network fault simulation
US9998255B2 (en) * 2016-05-11 2018-06-12 International Business Machines Corporation Fiber optic light intensity encryption
US10090922B2 (en) * 2016-07-20 2018-10-02 Finisar Corporation Loss of signal detector
US10097262B2 (en) * 2016-11-30 2018-10-09 Ciena Corporation Client protection switch in optical pluggable transceivers activated through fast electrical data squelch
CN106851443B (en) * 2017-04-18 2023-05-09 厦门亿芯源半导体科技有限公司 OLT (optical line terminal) transceiver integrated chip

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656622A (en) * 2008-08-20 2010-02-24 中兴通讯股份有限公司 Alarm management system and alarm management method
CN102201942A (en) * 2010-03-26 2011-09-28 华为技术有限公司 Optical power alarming method and equipment
CN102098102A (en) * 2011-02-15 2011-06-15 武汉电信器件有限公司 Burst mode code error tester of optical module on optical line terminal in gigabit-capable passive optical network
CN203522743U (en) * 2013-09-22 2014-04-02 武汉恒泰通技术有限公司 SFP optical module testing device
CN103647601A (en) * 2013-12-13 2014-03-19 国家电网公司 Fiber monitoring system
CN108258805A (en) * 2017-12-30 2018-07-06 国网天津市电力公司电力科学研究院 A kind of appraisal procedure of monitoring system of electric substation intelligent alarm
CN109768881A (en) * 2018-12-17 2019-05-17 京信通信系统(中国)有限公司 The method, apparatus and system that alarm status detects automatically

Also Published As

Publication number Publication date
CN110417465A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
US7313496B2 (en) Test apparatus and test method for testing a device under test
CN108401445B (en) Circuit, method and related chip, system and equipment for measuring time
US11041902B2 (en) Method and device for calibrating an automated test equipment
CN110417465B (en) Optical signal testing method, system, device and readable storage medium
CN104854635A (en) Safe audio playback in a human-machine interface
CN109217922B (en) Method and device for reporting loss alarm of received signal by optical module
CN115993590A (en) Laser radar performance detection method, related device and computer storage medium
KR102611724B1 (en) How to Test Radio Frequency (RF) Data Packet Signal Transceivers Using Implicit Synchronization
US5528635A (en) Synchronization detecting circuit
US5144250A (en) Power amplifier time domain reflectometer
US11029232B2 (en) Optical time domain reflectometer and testing method of optical time domain reflectometer
CN116319475A (en) Signal analysis method, device, equipment and storage medium
US11422159B2 (en) Measurement device with arbitrary waveform generator and trigger unit
CN113141547A (en) Real-time detection of interfering devices
US20210356590A1 (en) Distance-measurement apparatus and distance-measurement method
US6828799B2 (en) Propagation delay time measuring method and testing apparatus
CN115580359A (en) Method and system for detecting passive intermodulation of base station
CN111162834A (en) Optical time domain reflectometer testing method and optical time domain reflectometer
JP2018198416A (en) Wireless communication device and determination method
US11088817B2 (en) Data transmission method, data transmission device, and computer readable storage medium
US20150230116A1 (en) Wireless transmission device, vswr determination device, and vswr determination method
CN109147643B (en) Method and device for identifying rising/falling edge, display panel and storage medium
KR102604008B1 (en) Apparatus and method for testing a device under test
EP3933440A1 (en) Distance measurement device and distance measurement method
CN111239750A (en) Proximity sensor testing method and proximity sensor testing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant