CN109818800B - received signal alarm and alarm removing value testing method suitable for optical module - Google Patents

received signal alarm and alarm removing value testing method suitable for optical module Download PDF

Info

Publication number
CN109818800B
CN109818800B CN201910123173.5A CN201910123173A CN109818800B CN 109818800 B CN109818800 B CN 109818800B CN 201910123173 A CN201910123173 A CN 201910123173A CN 109818800 B CN109818800 B CN 109818800B
Authority
CN
China
Prior art keywords
value
alarm
increment
received
received light
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
CN201910123173.5A
Other languages
Chinese (zh)
Other versions
CN109818800A (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.)
Ou Bokai Science And Technology Ltd Of Shenzhen
Original Assignee
Ou Bokai Science And Technology Ltd Of Shenzhen
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 Ou Bokai Science And Technology Ltd Of Shenzhen filed Critical Ou Bokai Science And Technology Ltd Of Shenzhen
Priority to CN201910123173.5A priority Critical patent/CN109818800B/en
Publication of CN109818800A publication Critical patent/CN109818800A/en
Application granted granted Critical
Publication of CN109818800B publication Critical patent/CN109818800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

the invention relates to the optical communication field, aiming at providing a method for testing the received signal alarm and alarm-removing value of an optical module, the technical proposal is that the method comprises setting the minimum value of the allowed received light alarm value as L _ MIN, setting the maximum value of the allowed received light alarm value as D _ MAX, setting the maximum increment of the received light power as T _ MAX, setting the minimum increment of the received light power as T _ MIN, defining the detected light module RX _ LOS as high level when reflecting the received light power alarm state, and the detected light module RX _ LOS as low level when reflecting the received light power alarm-removing state, testing the received signal alarm value, adjusting the attenuation of an optical attenuator, reading the pin state of the detected light module RX _ LOS, storing and recording the actually measured alarm value of the optical module as L _ VAL, initializing the target value of the received light attenuation ATT as the actually measured alarm value as L _ VAL, initializing the STEP increment of, and adjusting the attenuation of the optical attenuator, reading the state of the RX _ LOS pin of the tested optical module, and storing and recording the actually measured alarm-removing value D _ VAL of the optical module.

Description

received signal alarm and alarm removing value testing method suitable for optical module
Technical Field
the present invention relates to the field of optical communication, and more particularly, to a method for receiving signal alarm and alarm removal value test applicable to an optical module.
background
in general, in an optical module product, an RX _ LOS pin is designed in an interface, and whether a received signal is lost or not is acquired by monitoring the RX _ LOS state in a hardware circuit design.
RX _ LOS (LOSs of received signal alarm), which directly reflects whether the received signal is normal, is 0 (low level) when the received signal is greater than the de-alarm value, and is high when the received signal is less than the alarm value. In the Ethernet, when the system detects that the RX _ LOS state changes, the RX _ LOS state is quickly reported to the processing system, and then the processing system responds and processes in time, so that the Ethernet is ensured to realize the quick link switching, and the size and the correctness of the received signal alarm and alarm removal values directly influence the realization effect of the function.
at present, the test of the receiving signal alarm and alarm-removing value of the optical module is to measure the alarm value by slowly increasing the receiving light attenuation amount and conversely, to measure the alarm-removing value by slowly decreasing the receiving light attenuation amount, because the delay exists between the alarm value and the alarm-removing value, in order to measure the accurate alarm value, the receiving light needs to be attenuated enough after the alarm signal appears every time, and then the test process of the alarm value is repeated; in order to measure an accurate deasserted value, the received light needs to be attenuated small enough each time after the deasserted signal appears, and then the deasserted value test process is repeated. The test method has various calculation steps, is not easy to control the light attenuation speed and the test precision, has slow reaction speed, and cannot adapt to the operation requirement of the automatic test software of the optical module.
disclosure of Invention
the first purpose of the present invention is to provide a method for testing the alarm and alarm-removing values of the received signals, which reduces the testing steps of the alarm-receiving values and alarm-removing values of the optical modules by freely setting the testing speed and the testing precision, thereby achieving the purpose of improving the testing efficiency of the method.
The above object of the present invention is achieved by the following technical solutions: a method for testing a received signal alarm and alarm removal value comprises the following specific steps:
S1: setting the minimum value of an allowed received light alarm value as L _ MIN, setting the maximum value of an allowed received light alarm value as D _ MAX, setting the maximum increment of received light power as T _ MAX, setting the minimum increment of received light power as T _ MIN, defining that the detected light module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the detected light module RX _ LOS is at a low level when the received light power alarm state is reflected;
S2: testing a receiving signal alarm value, initializing a light attenuation value STEP increment to be equal to a receiving light power maximum increment T _ MAX, and initializing a receiving light attenuation target value ATT to be equal to an allowed receiving light alarm value maximum value D _ MAX;
s3: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
S4: reading the state of a tested optical module RX _ LOS pin, and judging whether the stepping increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power or not when the state is high level;
S5: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, storing and recording the actually measured alarm value L _ VAL of the optical module to be equal to the current received light attenuation target value ATT until the actually measured alarm value L _ VAL is greater than or equal to the allowed received light alarm minimum value L _ MIN, and testing to be qualified;
S6, after testing the receiving signal to remove the alarm value, initializing the receiving light attenuation target value ATT equal to the measured alarm value L _ VAL, initializing the STEP increment STEP of the light attenuation value between 1dBm ~ 4 dBm;
S7: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s8: reading the state of a tested optical module RX _ LOS pin, and judging whether the STEP increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power when the state is at a low level;
S9: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm-removing value D _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm-removing value D _ VAL is less than or equal to the maximum value D _ MAX of the allowed received light alarm-removing value, and the test is qualified.
By adopting the technical scheme, the maximum increment T _ MAX of the received optical power is set to dynamically adjust the STEP increment STEP of the optical attenuation value, when the maximum increment T _ MAX of the received optical power is larger, the STEP increment STEP of the optical attenuation value is increased, the approximate positions of the received alarm value and the alarm removal value can be quickly found, and the STEPs of testing the received alarm value and the alarm removal value of the optical module are reduced; setting a minimum increment T _ MIN of the received optical power, wherein when the minimum increment T _ MIN of the received optical power is smaller, after the test process is quitted, the maximum error of the test value is +/-T _ MIN, and the obtained error value is smaller; furthermore, the method for testing the received signal alarm and alarm removal value can freely set the testing speed and the testing precision so as to reduce the testing steps of the received alarm value and the alarm removal value of the optical module and improve the testing efficiency of the method.
preferably, the step of S4: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
determining that the RX _ LOS state is low, setting the received light attenuation target value ATT equal to the original ATT value minus the light attenuation value STEP increment value STEP, and then repeatedly executing STEPs S3 to S4;
when the RX _ LOS state is determined to be high level, the received light attenuation target value ATT is set to be equal to the original ATT value plus the light attenuation value STEP increment value STEP, and then the light attenuation value STEP increment STEP is determined.
By adopting the technical scheme, when the RX _ LOS pin state of the optical module is in a high level during the test of the received optical power alarm value, the received optical attenuation target value ATT meets the requirement, the STEP increment STEP of the optical attenuation value can be further judged, and the test STEPs of the optical module for receiving the alarm value are reduced.
preferably, if the STEP increment STEP of the light attenuation value is greater than the minimum increment T _ MIN of the allowed received light power, the attenuation of the optical attenuator is adjusted to attenuate the received light power to the maximum value D _ MAX of the allowed received light alarm value, then the STEP increment STEP of the light attenuation value is set to be equal to the original STEP divided by 2, then the target value ATT of the received light attenuation value is set to be equal to the original ATT value minus the STEP increment STEP of the light attenuation value, and then STEPs S3 to S4 are repeatedly executed.
By adopting the technical scheme, the attenuation of the optical attenuator is adjusted, so that the received optical power is attenuated to the maximum value D _ MAX of the allowed received optical alarm value, the RX _ LOS pin of the tested optical module can be ensured to be in a low level state, the misjudgment caused by the signal hysteresis is avoided, and the test precision of the received alarm value of the optical module is improved.
Preferably, the step of S8: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
determining that the RX _ LOS state is at a high level, setting the received light attenuation target value ATT equal to the original ATT value plus the light attenuation value STEP increment STEP, and then repeatedly executing STEPs S7 to S8;
And when the RX _ LOS state is judged to be low level, setting the received light attenuation target value ATT equal to the original ATT value minus the STEP increment STEP of the light attenuation value, and then judging the STEP increment STEP of the light attenuation value.
by adopting the technical scheme, when the RX _ LOS pin state of the optical module is in a high level when the received optical power alarm value is tested, the received optical attenuation target value ATT meets the requirement, the STEP increment STEP of the optical attenuation value can be further judged, and the test STEPs of receiving the alarm value of the optical module are reduced.
Preferably, if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, the attenuation amount of the optical attenuator is adjusted to attenuate the received light power to the measured alarm value L _ VAL, then the STEP increment STEP of the light attenuation value is set to be equal to the original STEP divided by 2, then the target value ATT of the received light attenuation value is set to be equal to the original ATT value plus the STEP increment STEP of the light attenuation value, and then STEPs S7 to S8 are repeatedly executed.
By adopting the technical scheme, the attenuation of the optical attenuator is adjusted, so that the received optical power is attenuated to the actually measured alarm value L _ VAL, the RX _ LOS pin of the measured optical module can be ensured to be set to a high level state, the misjudgment caused by the signal hysteresis is avoided, and the test precision of the alarm value of the optical module is improved.
preferably, the step of S6: the initialized light attenuation value STEP increment STEP is 1 dBm.
by adopting the technical scheme, the STEP increment STEP of the light attenuation value is 1dBm, so that the actual hysteresis condition of the equipment is in the optimal state, the misjudgment caused by the signal hysteresis is avoided, and the test precision of the receiving alarm removal value of the optical module is improved.
a second object of the invention is to provide a light module device.
The above object of the present invention is achieved by the following technical solutions:
A light module device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the steps of the above-mentioned method for receiving signal alarms and de-alarms value testing when executing said computer program.
it is a third object of the present invention to provide a storage medium.
the above object of the present invention is achieved by the following technical solutions:
a storage medium storing a computer program which, when executed by a processor, performs the steps of a received signal alarm and de-alarm value test method as described above.
In conclusion, the invention has the following beneficial effects: setting a maximum increment T _ MAX of received optical power to dynamically adjust a STEP increment STEP of an optical attenuation value, wherein when the maximum increment T _ MAX of the received optical power is larger, the STEP increment STEP of the optical attenuation value is increased, so that approximate positions of a received alarm value and a removed alarm value can be quickly found, and the STEPs of testing the received alarm value and the removed alarm value of an optical module are reduced;
Setting a minimum increment T _ MIN of the received optical power, wherein when the minimum increment T _ MIN of the received optical power is smaller, after the test process is quitted, the maximum error of the test value is +/-T _ MIN, and the obtained error value is smaller;
furthermore, the method for testing the received signal alarm and alarm removal value can freely set the testing speed and the testing precision so as to reduce the testing steps of the received alarm value and the alarm removal value of the optical module and improve the testing efficiency of the method.
Drawings
FIG. 1 is a schematic diagram of a received signal alarm value test process;
FIG. 2 is a schematic diagram of a received signal de-alarm value test process.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
the first embodiment is as follows:
referring to fig. 1 and fig. 2, a method for testing a received signal alarm and alarm removal value is disclosed, and the method comprises the following specific steps:
s1: setting the minimum value of an allowed received light alarm value as L _ MIN, setting the maximum value of an allowed received light alarm value as D _ MAX, setting the maximum increment of received light power as T _ MAX, setting the minimum increment of received light power as T _ MIN, defining that the detected light module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the detected light module RX _ LOS is at a low level when the received light power alarm state is reflected;
s2: testing a receiving signal alarm value, initializing a light attenuation value STEP increment to be equal to a receiving light power maximum increment T _ MAX, and initializing a receiving light attenuation target value ATT to be equal to an allowed receiving light alarm value maximum value D _ MAX;
S3: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
S4: reading the state of a tested optical module RX _ LOS pin, and judging whether the stepping increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power or not when the state is high level;
s5: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the received light power, adjusting the attenuation amount of the optical attenuator to ensure that the received light power is attenuated to the maximum value D _ MAX of the allowed received light alarm value, then setting the STEP increment STEP of the light attenuation value to be equal to the original STEP divided by 2, then setting the target value ATT of the received light attenuation value to be equal to the original ATT value minus the STEP increment STEP of the light attenuation value, and then repeatedly executing the STEPs S3 to S4;
If the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm value L _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm value L _ VAL is more than or equal to the allowable minimum value L _ MIN of the received light alarm, and the test is qualified.
S6: next, testing a receiving signal to remove an alarm value, initializing a receiving optical attenuation target value ATT to be equal to an actually measured alarm value L _ VAL, and initializing an optical attenuation value STEP increment STEP to be equal to 1 dBm;
s7: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s8: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
determining that the RX _ LOS state is at a high level, setting the received light attenuation target value ATT equal to the original ATT value plus the light attenuation value STEP increment STEP, and then repeatedly executing STEPs S7 to S8;
Judging that the RX _ LOS state is a low level, setting a received light attenuation target value ATT equal to an original ATT value minus a light attenuation value STEP increment STEP, and then judging the light attenuation value STEP increment STEP;
s9: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, adjusting the attenuation amount of the optical attenuator to ensure that the received light power is attenuated to an actually measured alarm value L _ VAL, then setting the STEP increment STEP of the light attenuation value to be equal to the original STEP divided by 2, then setting the target value ATT of the received light attenuation value to be equal to the original ATT value plus the STEP increment STEP of the light attenuation value, and then repeatedly executing the STEPs S7 to S8;
if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm-removing value D _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm-removing value D _ VAL is less than or equal to the maximum value D _ MAX of the allowed received light alarm-removing value, and the test is qualified.
the implementation principle of the embodiment is as follows: setting the minimum value of the allowed received light alarm value as L _ MIN and the maximum value of the allowed received light alarm value as D _ MAX, defining that the tested optical module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the tested optical module RX _ LOS is at a low level when the received light power alarm state is reflected.
And setting the maximum increment T _ MAX of the received light power to dynamically adjust the STEP increment STEP of the light attenuation value, wherein when the maximum increment T _ MAX of the received light power is larger, the STEP increment STEP of the light attenuation value is increased, and the approximate positions of the received alarm value and the alarm removal value can be quickly found.
When the receiving optical power alarm value is tested, and the state of an RX _ LOS pin of the optical module is in a high level, the receiving optical attenuation target value ATT meets the requirement, so that the STEP increment STEP of the optical attenuation value is determined, and the testing STEP of the receiving alarm value of the optical module is reduced; when the received optical power goes to alarm value, when the state of the RX _ LOS pin of the optical module is low level, the received optical attenuation target value ATT meets the requirement, so as to determine the STEP increment STEP of the optical attenuation value, thus reducing the test STEPs of the optical module for receiving the alarm value.
and setting a minimum increment T _ MIN of the received optical power, wherein when the minimum increment T _ MIN of the received optical power is smaller, after the test process is quitted, the maximum error of the test value is +/-T _ MIN, and the obtained error value is smaller.
The STEP increment STEP of the initialized optical attenuation value is 1dBm, so that the actual hysteresis condition of the equipment is in the optimal state, the misjudgment caused by the signal hysteresis is avoided, and the test precision of the receiving alarm value of the optical module is improved.
if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, the attenuation amount of the optical attenuator is adjusted, so that the received light power is attenuated to the maximum value D _ MAX of the allowed received light alarm value, the RX _ LOS pin of the tested light module can be ensured to be in a low level state, the misjudgment caused by the signal hysteresis effect is avoided, and the test precision of the received alarm value of the optical module is further improved.
If the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, the attenuation amount of the optical attenuator is adjusted, so that the received light power is attenuated to an actually-measured alarm value L _ VAL, the RX _ LOS pin of the measured optical module can be ensured to be set to a high level state, the misjudgment caused by the signal hysteresis effect is avoided, and the test precision of the optical module for receiving the alarm value is improved.
furthermore, the method for testing the received signal alarm and alarm removal value can freely set the testing speed and the testing precision so as to reduce the testing steps of the received alarm value and the alarm removal value of the optical module and improve the testing efficiency of the method.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
example two:
In one embodiment, an optical module apparatus is provided, which comprises an optoelectronic device, a functional circuit, an optical interface, and the like, and functions as an optical-to-electrical conversion, in which a transmitting end converts an electrical signal into an optical signal, and a receiving end converts the optical signal into an electrical signal after the optical signal is transmitted through an optical fiber. The optical module equipment realizes a method for receiving signal alarm and removing alarm value test during test.
the test method comprises the following specific steps:
s1: setting the minimum value of an allowed received light alarm value as L _ MIN, setting the maximum value of an allowed received light alarm value as D _ MAX, setting the maximum increment of received light power as T _ MAX, setting the minimum increment of received light power as T _ MIN, defining that the detected light module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the detected light module RX _ LOS is at a low level when the received light power alarm state is reflected;
S2: testing a receiving signal alarm value, initializing a light attenuation value STEP increment to be equal to a receiving light power maximum increment T _ MAX, and initializing a receiving light attenuation target value ATT to be equal to an allowed receiving light alarm value maximum value D _ MAX;
s3: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s4: reading the state of a tested optical module RX _ LOS pin, and judging whether the stepping increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power or not when the state is high level;
S5: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, storing and recording the actually measured alarm value L _ VAL of the optical module to be equal to the current received light attenuation target value ATT until the actually measured alarm value L _ VAL is greater than or equal to the allowed received light alarm minimum value L _ MIN, and testing to be qualified;
S6, after testing the receiving signal to remove the alarm value, initializing the receiving light attenuation target value ATT equal to the measured alarm value L _ VAL, initializing the STEP increment STEP of the light attenuation value between 1dBm ~ 4 dBm;
s7: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
S8: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
determining that the RX _ LOS state is at a high level, setting the received light attenuation target value ATT equal to the original ATT value plus the light attenuation value STEP increment STEP, and then repeatedly executing STEPs S7 to S8;
judging that the RX _ LOS state is a low level, setting a received light attenuation target value ATT equal to an original ATT value minus a light attenuation value STEP increment STEP, and then judging the light attenuation value STEP increment STEP;
s9: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, adjusting the attenuation amount of the optical attenuator to ensure that the received light power is attenuated to an actually measured alarm value L _ VAL, then setting the STEP increment STEP of the light attenuation value to be equal to the original STEP divided by 2, then setting the target value ATT of the received light attenuation value to be equal to the original ATT value plus the STEP increment STEP of the light attenuation value, and then repeatedly executing the STEPs S7 to S8;
if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm-removing value D _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm-removing value D _ VAL is less than or equal to the maximum value D _ MAX of the allowed received light alarm-removing value, and the test is qualified.
Example three:
In one embodiment, a storage medium is provided having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
The test method comprises the following specific steps:
S1: setting the minimum value of an allowed received light alarm value as L _ MIN, setting the maximum value of an allowed received light alarm value as D _ MAX, setting the maximum increment of received light power as T _ MAX, setting the minimum increment of received light power as T _ MIN, defining that the detected light module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the detected light module RX _ LOS is at a low level when the received light power alarm state is reflected;
S2: testing a receiving signal alarm value, initializing a light attenuation value STEP increment to be equal to a receiving light power maximum increment T _ MAX, and initializing a receiving light attenuation target value ATT to be equal to an allowed receiving light alarm value maximum value D _ MAX;
s3: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s4: reading the state of a tested optical module RX _ LOS pin, and judging whether the stepping increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power or not when the state is high level;
s5: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, storing and recording the actually measured alarm value L _ VAL of the optical module to be equal to the current received light attenuation target value ATT until the actually measured alarm value L _ VAL is greater than or equal to the allowed received light alarm minimum value L _ MIN, and testing to be qualified;
S6, after testing the receiving signal to remove the alarm value, initializing the receiving light attenuation target value ATT equal to the measured alarm value L _ VAL, initializing the STEP increment STEP of the light attenuation value between 1dBm ~ 4 dBm;
s7: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
S8: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
Determining that the RX _ LOS state is at a high level, setting the received light attenuation target value ATT equal to the original ATT value plus the light attenuation value STEP increment STEP, and then repeatedly executing STEPs S7 to S8;
Judging that the RX _ LOS state is a low level, setting a received light attenuation target value ATT equal to an original ATT value minus a light attenuation value STEP increment STEP, and then judging the light attenuation value STEP increment STEP;
S9: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, adjusting the attenuation amount of the optical attenuator to ensure that the received light power is attenuated to an actually measured alarm value L _ VAL, then setting the STEP increment STEP of the light attenuation value to be equal to the original STEP divided by 2, then setting the target value ATT of the received light attenuation value to be equal to the original ATT value plus the STEP increment STEP of the light attenuation value, and then repeatedly executing the STEPs S7 to S8;
if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm-removing value D _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm-removing value D _ VAL is less than or equal to the maximum value D _ MAX of the allowed received light alarm-removing value, and the test is qualified.
it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
the embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (8)

1. a method for testing a received signal alarm and alarm removal value is characterized in that: the test method comprises the following specific steps:
s1: setting the minimum value of an allowed received light alarm value as L _ MIN, setting the maximum value of an allowed received light alarm value as D _ MAX, setting the maximum increment of received light power as T _ MAX, setting the minimum increment of received light power as T _ MIN, defining that the detected light module RX _ LOS is at a high level when the received light power alarm state is reflected, and defining that the detected light module RX _ LOS is at a low level when the received light power alarm state is reflected;
s2: testing a receiving signal alarm value, initializing a light attenuation value STEP increment to be equal to a receiving light power maximum increment T _ MAX, and initializing a receiving light attenuation target value ATT to be equal to an allowed receiving light alarm value maximum value D _ MAX;
s3: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s4: reading the state of a tested optical module RX _ LOS pin, and judging whether the stepping increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power or not when the state is high level;
S5: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, storing and recording the actually measured alarm value L _ VAL of the optical module to be equal to the current received light attenuation target value ATT until the actually measured alarm value L _ VAL is greater than or equal to the allowed received light alarm minimum value L _ MIN, and testing to be qualified;
s6, after testing the receiving signal to remove the alarm value, initializing the receiving light attenuation target value ATT equal to the measured alarm value L _ VAL, initializing the STEP increment STEP of the light attenuation value between 1dBm ~ 4 dBm;
s7: adjusting the attenuation amount of the optical attenuator to attenuate the received optical power to a received optical attenuation target value ATT;
s8: reading the state of a tested optical module RX _ LOS pin, and judging whether the STEP increment STEP of the optical attenuation value is smaller than or equal to the minimum increment T _ MIN of the received optical power when the state is at a low level;
S9: if the stepping increment STEP of the light attenuation value is less than or equal to the minimum increment T _ MIN of the received light power, the actually measured alarm-removing value D _ VAL of the optical module is stored and recorded to be equal to the current target value ATT of the received light attenuation until the actually measured alarm-removing value D _ VAL is less than or equal to the maximum value D _ MAX of the allowed received light alarm-removing value, and the test is qualified.
2. the method of claim 1, further comprising the steps of: the S4: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
determining that the RX _ LOS state is low, setting the received light attenuation target value ATT equal to the original ATT value minus the light attenuation value STEP increment value STEP, and then repeatedly executing STEPs S3 to S4;
When the RX _ LOS state is determined to be high level, the received light attenuation target value ATT is set to be equal to the original ATT value plus the light attenuation value STEP increment value STEP, and then the light attenuation value STEP increment STEP is determined.
3. The method of claim 2, wherein the method further comprises: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, the attenuation amount of the optical attenuator is adjusted to ensure that the received light power is attenuated to the maximum value D _ MAX of the allowed received light alarm value, then the STEP increment STEP of the light attenuation value is set to be equal to the original STEP divided by 2, then the target value ATT of the received light attenuation value is set to be equal to the original ATT value minus the STEP increment STEP of the light attenuation value, and then the STEPs S3 to S4 are repeatedly executed.
4. the method of claim 1, further comprising the steps of: the S8: reading the state of the RX _ LOS pin of the tested optical module comprises the following steps:
Determining that the RX _ LOS state is at a high level, setting the received light attenuation target value ATT equal to the original ATT value plus the light attenuation value STEP increment STEP, and then repeatedly executing STEPs S7 to S8;
and when the RX _ LOS state is judged to be low level, setting the received light attenuation target value ATT equal to the original ATT value minus the STEP increment STEP of the light attenuation value, and then judging the STEP increment STEP of the light attenuation value.
5. the method of claim 4, wherein the method further comprises: if the STEP increment STEP of the light attenuation value is larger than the minimum increment T _ MIN of the allowed received light power, the attenuation amount of the optical attenuator is adjusted to ensure that the received light power is attenuated to an actually measured alarm value L _ VAL, then the STEP increment STEP of the light attenuation value is set to be equal to the original STEP divided by 2, then the target value ATT of the received light attenuation value is set to be equal to the original ATT value plus the STEP increment STEP of the light attenuation value, and then the STEPs S7 to S8 are repeatedly executed.
6. The method of claim 1, further comprising the steps of: the S6: the initialized light attenuation value STEP increment STEP is 1 dBm.
7. A light module device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: the steps of a method for received signal alarm and de-alarm value testing according to any one of claims 1 to 6 are implemented when the computer program is executed by the processor.
8. a storage medium storing a computer program, characterized in that: the computer program when executed by a processor implements the steps of a received signal alarm and de-alarm value testing method as claimed in any one of claims 1 to 6.
CN201910123173.5A 2019-02-19 2019-02-19 received signal alarm and alarm removing value testing method suitable for optical module Active CN109818800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910123173.5A CN109818800B (en) 2019-02-19 2019-02-19 received signal alarm and alarm removing value testing method suitable for optical module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910123173.5A CN109818800B (en) 2019-02-19 2019-02-19 received signal alarm and alarm removing value testing method suitable for optical module

Publications (2)

Publication Number Publication Date
CN109818800A CN109818800A (en) 2019-05-28
CN109818800B true CN109818800B (en) 2019-12-17

Family

ID=66606895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910123173.5A Active CN109818800B (en) 2019-02-19 2019-02-19 received signal alarm and alarm removing value testing method suitable for optical module

Country Status (1)

Country Link
CN (1) CN109818800B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426052A (en) * 2022-11-04 2022-12-02 之江实验室 Overload protection device and method for optical module receiving end

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546325A (en) * 1993-02-04 1996-08-13 International Business Machines Corporation Automated system, and corresponding method, for testing electro-optic modules
CN101355389A (en) * 2008-09-11 2009-01-28 中兴通讯股份有限公司 Method for optimization regulation of receiver decision level and apparatus thereof
CN102323505B (en) * 2011-08-16 2013-09-25 成都新易盛通信技术股份有限公司 Device and method for supporting life prediction and failure cause analysis of optical device
CN203287182U (en) * 2013-06-17 2013-11-13 华工科技产业股份有限公司 Detection system for alarm threshold and alarm-removing threshold of optical module
CN105323104B (en) * 2014-08-04 2020-04-03 中兴通讯股份有限公司 Alarm management method and device and packet transmission equipment
CN108365888A (en) * 2018-02-01 2018-08-03 四川泰瑞创通讯技术股份有限公司 The device of test light module performance

Also Published As

Publication number Publication date
CN109818800A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
EP3288194B1 (en) Method for adjusting los alarm decision threshold and optical module
CN111813638B (en) Alarm information processing method and device and terminal equipment
CN109818800B (en) received signal alarm and alarm removing value testing method suitable for optical module
CN101527604A (en) Method and device for automatic calibration of power for transmitter modules
EP4191905A1 (en) Test method and device
CN109687260B (en) Laser protection method and device
CN114325534A (en) Signal testing method, device, equipment and readable storage medium
CN111024410B (en) Power overrun fault detection method and device for vehicle, vehicle and storage medium
CN111564232B (en) Transient control method and device for RCV (remote control vehicle) system of nuclear power station
CN114666882B (en) Power control method, device, base station and storage medium
CN111064507A (en) Method and device for detecting length of optical fiber link and terminal equipment
CN109981167B (en) A kind of reception signal alarm suitable for optical module with go warning value test method
CN108768515B (en) Burst received optical power calibration method and device
CN106789720B (en) Dynamic token bucket generation method based on system hardware utilization rate
CN114166342B (en) Method and device for detecting use state of electronic equipment, electronic equipment and storage medium
CN109348316B (en) Calibration method of optical network unit, optical network unit and computer readable storage medium
CN112929099B (en) Signal detection method, terminal and storage medium
CN110995373A (en) Conduction sensitivity measuring method and device, storage medium and comprehensive measuring terminal
CN109273122B (en) System parameter adjusting method and device under ELPO working condition and terminal equipment
CN108616315B (en) Power amplifier output power detection method and device, computer equipment and storage medium
CN111611186A (en) Transmission control method and device in embedded chip
CN117376184A (en) CAN message period long-term monitoring method, system, equipment and medium
US20230280397A1 (en) Oscillation handling method, apparatus using the same, and storage medium
CN110362438B (en) Bus performance detection method, device, equipment and readable storage medium
CN117875215A (en) Correction method and correction device for engine exhaust model and electronic equipment

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