Disclosure of Invention
The invention mainly aims to provide a PAM4 optical module receiving output control circuit and a PAM4 optical module receiving output control system, and aims to solve the problem that a PAM4 coding chip is triggered by receiving alarm in error or the output cannot be suppressed after receiving the alarm.
In order to achieve the above object, the present invention provides a PAM4 optical module rx output control circuit, where the PAM4 optical module rx output control circuit includes:
an electrical connector communicatively coupled to the switch;
the optical receiving module is connected with the electric connector and is used for converting the received optical signal into a PAM4 electric signal and outputting the PAM4 electric signal to the electric connector;
the optical parameter detection circuit is connected with the optical receiving module and used for detecting the optical parameters of the optical receiving module in real time and outputting optical parameter detection signals;
and the main controller is connected with the optical parameter detection circuit and is used for controlling the light receiving module to stop outputting and outputting an LOS alarm to the electric connector when determining that the optical parameter corresponding to the optical parameter detection signal is not matched with a first preset parameter threshold value according to the optical parameter detection signal.
Optionally, the main controller is further configured to control the optical receiving module to recover the output and output a LOS alarm when it is determined that the optical parameter corresponding to the optical parameter detection signal matches a second preset parameter threshold according to the optical parameter detection signal.
Optionally, the optical parameter detection circuit includes an optical power detection circuit, and the optical power detection circuit is connected to the light receiving module and the main controller respectively;
the optical power detection circuit is used for detecting the optical power received by the optical receiving module and outputting the optical power to the main controller as an optical parameter detection signal.
Optionally, the optical power detection circuit includes an APD current detection circuit and a sampling resistor, a detection end of the APD current detection circuit is connected to the light receiving module, and an output end of the APD current detection circuit is interconnected to the sampling resistor and the main controller.
Optionally, the optical parameter detection circuit includes a DSP coding chip, and the DSP coding chip is connected to the output end of the light receiving module and the main controller, respectively;
the DSP coding chip is used for performing clock recovery, amplification and equalization processing on the PAM4 electric signal output by the light receiving module and outputting the PAM4 electric signal to the electric connector; and the number of the first and second groups,
and carrying out CDR locking on the received PAM4 electric signal, generating an LOL signal according to a CDR locking result, and outputting the LOL signal serving as an optical parameter detection signal to the main controller.
Optionally, the light receiving module includes a voltage boost circuit, a photodiode, a transimpedance amplifier, and an amplitude output control circuit; the cathode of the photodiode is connected with the booster circuit, the anode of the photodiode is sequentially connected with the transimpedance amplifier and the amplitude output control circuit, and the controlled end of the amplitude output control circuit is connected with the main controller; wherein the content of the first and second substances,
the photodiode is used for converting the optical signal into a PAM4 electrical signal;
the trans-impedance amplifier is used for converting the PAM4 electrical signal into a PAM4 differential electrical signal;
and the amplitude output control circuit is used for adjusting and outputting the amplitude of the PAM4 differential electric signal according to the control signal of the main controller.
The invention also provides a PAM4 optical module receive output control method, the PAM4 optical module receive output control method is applied to the PAM4 optical module receive output control circuit, the PAM4 optical module receive output control circuit comprises a light detection module, and the PAM4 optical module receive output control method is characterized by comprising the following steps:
receiving the optical signal, converting the optical signal into a PAM4 electric signal and outputting the PAM4 electric signal;
detecting the optical parameters of the optical receiving module in real time and outputting optical parameter detection signals;
and when the optical parameter corresponding to the optical parameter detection signal is determined not to be matched with a first preset parameter threshold value according to the optical parameter detection signal, controlling the optical receiving module to stop outputting the PAM4 electric signal so as to realize PAM4 signal suppression output and output an LOS alarm signal.
Optionally, the PAM4 optical module reception output control method further includes:
determining the LOS type according to a communication protocol with the switch; the LOS types include RSSI LOS and OMA LOS;
when the determined LOS type is RSSI LOS, detecting the light power received by the light receiving module, and taking the light power as the light parameter detection signal;
and when the determined LOS type is OMA LOS, performing CDR locking state judgment on the received PAM4 electrical signal, generating an LOL signal according to a CDR locking result, and outputting the LOL signal as an optical parameter detection signal.
Optionally, the PAM4 optical module reception output control method further includes:
and when determining that the optical parameter corresponding to the optical parameter detection signal is matched with a second preset parameter threshold value according to the optical parameter detection signal, controlling the optical receiving module to recover the output and removing the LOS alarm output.
Optionally, the PAM4 optical module reception output control method further includes:
and when determining that the optical parameter corresponding to the optical parameter detection signal is matched with a second preset parameter threshold value according to the optical parameter detection signal, controlling the optical receiving module to recover the output and removing the LOS alarm output.
When the determined LOS type is the RSSI LOS, detecting the light power received by the light receiving module, and when the light power is used as the light parameter detection signal, the mismatching of the light parameter corresponding to the light parameter detection signal and a first preset parameter threshold value is specific to the fact that the detected light parameter detection signal is smaller than the first preset parameter threshold value;
the matching of the optical parameter corresponding to the optical parameter detection signal and the second preset parameter threshold is that the detected optical parameter detection signal is greater than or equal to the first preset parameter threshold.
Optionally, after the optical parameter detection signal is smaller than a first preset parameter threshold, controlling the optical receiving module to stop outputting and outputting an LOS alarm signal, if the optical parameter detection signal output by the optical receiving module is increased and smaller than a second preset parameter threshold, continuously outputting the LOS alarm signal until the detected optical parameter detection signal is larger than the second preset parameter threshold, and then the LOS is used for alarm output;
when the optical parameter detection signal is greater than a second preset parameter threshold value and the optical receiving module is controlled to output the PAM4 electrical signal, if the optical parameter detection signal output by the optical receiving module is reduced and is greater than the first preset parameter threshold value, the optical receiving module is controlled to normally output until the detected optical parameter detection signal is less than the first preset parameter threshold value, an LOS alarm signal is output.
The invention also provides a PAM4 optical module receiving and output control system, which comprises an exchanger and the PAM4 optical module receiving and output control circuit, wherein the PAM4 optical module receiving and output control circuit is electrically connected with the exchanger.
The received optical signal is converted into the PAM4 electric signal by the optical receiving module and then output to the electric connector, meanwhile, the optical parameter detection circuit is used for detecting the optical parameter of the optical receiving module in real time and outputting an optical parameter detection signal to the main controller, so that when the main controller determines that the optical parameter corresponding to the optical parameter detection signal is not matched with the first preset parameter threshold value according to the optical parameter detection signal, the optical receiving module is controlled to stop outputting and an LOS alarm is output to the electric connector.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The invention provides a PAM4 optical module receiving and output control circuit.
PAM4 is one of PAM (Pulse Amplitude Modulation) Modulation techniques, and a hot-gate signal transmission technique in which a PAM signal is followed by NRZ (Non-Return-to-Zero) is also a representative of multi-order Modulation techniques. The traditional digital signal adopts NRZ (Non-Return-to-Zero) signal at most, that is, 1, 0 information of digital logic signal is expressed by 2 amplitude levels, and each symbol transmits 1 bit information; the PAM4 signal may take 4 amplitude levels, with each symbol conveying 2 bits of information. The PAM4 technology is a more efficient modulation technology, can effectively improve bandwidth utilization efficiency, is a popular signal transmission technology for high-speed signal interconnection in next-generation data centers, and is widely applied to transmission of electrical signals or optical signals of 50G/200G/400G interfaces.
The traditional NRZ signal has low requirement on the linearity of a transmitting end, because even if the NRZ signal is nonlinear, the NRZ signal can be output at 2 different levels; for the PAM4 signal, in order to ensure that 4 levels can be well distinguished under the same transmitter/receiver amplitude, the optimal choice is to distribute the 4 levels at equal intervals to ensure the linearity of the PAM4 signal. Thus, the requirement for the linearity of the optoelectronic chips at the transmitting end and the receiving end is higher. Especially when the amplitude of an input signal is large, transistors in a receiver chip can enter a nonlinear region, so that a PAM4 signal is compressed, 4 levels of an output signal cannot be distributed at equal intervals, and PAM4 transmission has higher requirements on the linearity of the optical receiver chip. However, the existing DSP PAM4 coded chip may have a false trigger of receiving an alarm, or output a PAM4 electrical signal without a pressing function when receiving an alarm, and cannot meet the practical application of an optical module.
To solve the above problem, referring to fig. 1 and 2, in an embodiment of the present invention, the PAM4 optical module rx/output control circuit includes:
an electric connector CN1, which is connected with the switch in communication;
the optical receiving module 10 is connected to the electrical connector CN1, and the optical receiving module 10 is configured to convert a received optical signal into a PAM4 electrical signal and output the electrical signal to the electrical connector CN 1;
an optical parameter detection circuit 20 connected to the light receiving module 10, for detecting an optical parameter of the light receiving module 10 in real time and outputting an optical parameter detection signal;
and the main controller 30 is connected to the optical parameter detection circuit 20, and the main controller 30 is configured to control the optical receiving module 10 to stop outputting and output an LOS alarm to the electrical connector CN1 when it is determined that the optical parameter corresponding to the optical parameter detection signal is not matched with the first preset parameter threshold according to the optical parameter detection signal.
In this embodiment, the electrical connector CN1 may be implemented by a gold finger, but in other embodiments, it may also be implemented by a wire terminal or other connectors capable of implementing electrical connection, and is not limited herein.
The light receiving module 10 can convert the optical signal into an electrical signal and output the electrical signal to the electrical connector CN1, and the electrical connector CN1 outputs the electrical signal to an external device such as a switch.
The optical parameter detecting circuit 20 may directly or indirectly detect optical parameter information, for example, optical power may be obtained through current, voltage, etc., and optical amplitude may also be determined through CDR (clock data recovery) circuit lock state judgment. The optical parameter detection circuit 20 outputs the detected optical parameter to the main controller 30, so that the main controller 30 determines whether the power, amplitude, etc. of the optical parameter are normal at this time according to the received optical parameter detection signal.
The main controller 30 may be implemented by a single chip, where the single chip is used as a microprocessor, and those skilled in the art can control the light receiving module 10 by integrating some hardware circuits and software programs into the single chip. The main controller 30 may be a control center of the communication device, and may be connected to various parts of the entire communication device through various interfaces and lines, and perform various functions of the communication device and process data by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the communication device. The main controller 30 may include one or more processing units. Certainly, in other embodiments, the main controller 30 may also be a microprocessor such as a DSP and a PLC, and the main controller 30 may be integrated with software for comparing and analyzing the threshold, or may adopt hardware circuits such as a comparator and a gate circuit to realize control of the light receiving module 10 by using its peripheral circuit and its own software according to the received optical parameter detection signal. The main controller has stored therein a computer program operable on the processor, wherein: the computer program realizes the steps of the PAM4 optical module reception output control method according to the present invention when executed by the master controller. Referring to fig. 5, specifically, when implementing the PAM4 optical module receive output control method, the main controller may execute a flowchart as shown in fig. 5.
Specifically, the main controller 30 determines whether the optical parameter corresponding to the optical parameter detection signal matches the first preset parameter threshold according to the optical parameter detection signal. If the two signals do not match, it indicates that the optical signal received by the optical receiving module 10 is normal, and at this time, the main controller 30 controls the optical receiving module 10 to output a normal electrical signal to the electrical connector CN 1. If the optical parameter corresponding to the optical parameter detection signal does not match the first preset parameter threshold, it indicates that the optical signal received by the optical receiving module 10 is abnormal, for example, the optical signal is small and abnormal, at this time, the main controller 30 controls the optical receiving module 10 to stop outputting, and outputs the LOS alarm to the electrical connector CN1, thereby ensuring that the received alarm output signal is suppressed.
The received optical signal is converted into a PAM4 electrical signal by the optical receiving module 10 and then output to the electrical connector CN1, meanwhile, the optical parameter of the optical receiving module 10 is detected in real time by the optical parameter detection circuit 20, and an optical parameter detection signal is output to the main controller 30, so that when the main controller 30 determines that the optical parameter corresponding to the optical parameter detection signal is not matched with a first preset parameter threshold value according to the optical parameter detection signal, an OA enabling signal is output to control the optical receiving module 10 to stop outputting, and an LOS alarm is output to the electrical connector CN 1.
Referring to fig. 1 and fig. 2, in an embodiment, the main controller 30 is further configured to control the optical receiving module 10 to recover the output and output a LOS alarm when it is determined that the optical parameter corresponding to the optical parameter detection signal matches the second preset parameter threshold according to the optical parameter detection signal.
Specifically, when the optical parameter is power, and the optical power threshold is set, the first preset parameter threshold, that is, the alarm threshold may be set to-24 dBm, and the second preset parameter threshold, that is, the alarm setting optical power may be set to-22 dBm, when the optical parameter detection signal is less than the first preset parameter threshold, the alarm is performed and the optical receiving module 10 is controlled to stop outputting, so as to suppress the electrical signal, and when the optical parameter detection signal is greater than the second preset parameter threshold, the alarm is removed and the optical receiving module 10 is controlled to resume normal output. In addition, after the optical parameter detection signal is smaller than the first preset parameter threshold, and an alarm is performed and the optical receiving module 10 is controlled to stop outputting, if the received optical power changes from small light to large light and the optical power Pt is still within (-24, -22) dBm, the main controller 30 keeps the LOS alarm output state until the second preset parameter threshold optical power Pt > P2, that is, Pt > -22dBm, performs LOS alarm-removing operation.
When the optical parameter detection signal is larger than a second preset parameter threshold value and normal output is maintained, when the received optical power is changed from large light to small light and Pt is between (-24, -22) dBm, an LOS alarm output state is still kept until Pt is less than P1, namely Pt is less than-24 dBm, and LOS alarm operation is performed.
The invention can effectively realize the function of suppressing the electric signal output by receiving the alarm of the optical module by setting the proper alarm and alarm-removing intervals, and can effectively solve the problem that the PAM4 coding chip is triggered by receiving the alarm by mistake or the output does not have the suppressing function after receiving the alarm in the field of the optical module. In this embodiment, by setting the hysteresis interval, the alarm operation can be effectively maintained, and the false alarm operation can be avoided.
Referring to fig. 1 and 2, in an embodiment, the light receiving module 10 includes a voltage boosting circuit 11, a photodiode APD1, a transimpedance amplifier U1, and an amplitude output control circuit 12; the cathode of the photodiode APD1 is connected to the voltage boost circuit 11, the anode of the photodiode APD1 is sequentially connected to the transimpedance amplifier U1 and the amplitude output control circuit 12, and the controlled end of the amplitude output control circuit 12 is connected to the main controller 30; wherein the content of the first and second substances,
the photodiode APD1 is used for converting an optical signal into a PAM4 electrical signal;
the trans-impedance amplifier U1 is used for converting the PAM4 electric signal into a PAM4 differential electric signal;
the amplitude output control circuit 12 is configured to adjust the amplitude of the PAM4 differential electrical signal and output the adjusted amplitude according to the control signal of the main controller 30.
In this embodiment, the voltage boost circuit 11 is configured to provide a bias high voltage for the APD avalanche photodiode APD 1;
the trans-impedance amplifier U1Linear TIA can convert a small PAM4 electric signal into a four-level PAM4 alternating-current differential electric signal with certain amplitude through the Linear trans-impedance amplifier U1Linear TIA when a PAM4 optical signal is converted into a tiny PAM4 electric signal through an APD avalanche photodiode APD 1. The amplitude output control circuit 12 is configured to perform signal processing on the alternating current differential signal output by the linear transimpedance amplifier U1 (linear tia), where the output amplitude of the amplitude output control circuit 12 is controlled by an analog-to-digital output DAC1 of the control unit of the main controller 30, and the output amplitude is adjustable, for example, when the received optical signal is small and abnormal, the output amplitude OA of the amplitude output control circuit 12 is suppressed and controlled by the DAC1 of the main controller 30, so that the output amplitude of the amplitude output control circuit 12 is zero, and the amplitude of the electrical signal processed and output by the DSP coding unit is zero, thereby ensuring that the received electrical signal is suppressed and output. When the received optical signal is normal, the main controller 30 controls the amplitude output control circuit 12 to output the normal electrical signal amplitude to the DSP encoder for processing, and the PAM4 reception control system works normally.
Referring to fig. 1 and 2, in an embodiment, when the main controller 30 communicates with the external device, there are two types of LOS output Received in the optical module protocol, one type is RSSI (Received Signal Strength Indication) LOS (LOSs of Lock) which determines an LOS output Signal by receiving the optical power intensity of PAM 4; the other is that OMA (Optical Modulation Amplitude) LOS judges an LOS output signal by receiving the Amplitude of the PAM4 Optical signal, and may be specifically set according to the device matched with the Optical module, where some devices require the Optical module to be set as RSSI LOS, and some devices require the Optical module to be set as LOS OMA. For this reason, the optical parameter detection circuit 20 of the present embodiment may include an optical power detection circuit 21 and an LOL (Loss of Lock) signal detection circuit, and the LOL signal detection circuit may be implemented by the DSP code chip U2.
Referring to fig. 4, in an embodiment, the optical parameter detection circuit 20 includes an optical power detection circuit 21, and the optical power detection circuit 21 is respectively connected to the light receiving module 10 and the main controller 30;
the optical power detection circuit 21 is configured to detect the optical power received by the light receiving module 10, and output the optical power to the main controller 30 as an optical parameter detection signal.
Specifically, the optical power detection circuit 21 includes an APD current detection circuit 211 and a sampling resistor R1, a detection end of the APD current detection circuit 211 is connected to the light receiving module 10, and an output end of the APD current detection circuit 211 is interconnected to the sampling resistor R1 and the main controller 30.
In this embodiment, the sampling resistor R1 is used to convert the monitoring current flowing through the APD into a voltage output, which is used as an RSSI signal to be collected at the analog-to-digital ADC1 port of the control unit of the main controller 30, the main controller 30 monitors the optical power Pt of the PAM4 optical signal received by the APD avalanche photodiode APD1 in real time, and converts the optical power Pt into an RSSI voltage signal Vt through the APD current detection circuit 211 and the sampling resistor R1, the main controller 30 sets the receiving optical power LOS alarm threshold value P1, sets the optical power LOS alarm threshold value P2 corresponding to the LOS alarm threshold value V1 monitored by the ADC1 port of the main controller 30, sets the LOS alarm threshold value V2 corresponding to the LOS alarm threshold value monitored by the ADC1 port of the main controller 30, where Vt is the corresponding output RSSI voltage monitoring value when the receiving optical power is Pt, and controls the optical receiving module 10 in the retention interval (V1, V2). In one embodiment, the RSSI voltage signal Vt and the optical power Pt of the PAM4 optical signal may be calibrated through 7 power points to obtain a calibration relation between the RSSI voltage signal Vt and the received PAM4 optical power Pt:
Vt=a4*Pt4+a3*Pt3+a2*Pt2+a1*Pt+a0
wherein a 1-a 4 are constants, and the selected 7 receiving optical power points can be-40 dBm, -24dBm, -20dBm, -16dBm, -12dBm, -8 dBm, -4dBm and the like;
when Pt is more than or equal to P2, namely the voltage Vt collected by RSSI is more than or equal to V2:
the optical signal received by the APD optical receiving module 10 is normal, the main controller 30 controls the optical receiving module 10 to output an electrical signal with a normal amplitude, and at this time, the PAM4 receiving control system works normally;
when Pt < P1 and RSSI collected voltage Vt < V1:
then, it indicates that the optical signal received by the APD optical receiving module 10 is small and abnormal, and at this time, the DAC1 of the main controller 30 performs suppression control output on the output control optical receiving module 10, so that the output amplitude is zero, and it is ensured that the received electrical signal is suppressed and output.
As shown in fig. 3, the PAM4 optical module reception alarm hysteresis interval is set, the LOS alarm threshold is set to P1, and at this time, the corresponding output RSSI voltage monitoring value is V1; the LOS alarm-removing threshold value is set to be P2, and the RSSI voltage monitoring value correspondingly output at the moment is V2; (P2 > P1, V2> V1). In addition, after the optical parameter detection signal is smaller than the first preset parameter threshold (Pt < P1), that is, the voltage Vt acquired by the RSSI is smaller than V1, and an alarm is performed and the optical receiving module 10 is controlled to stop outputting, if the received optical power changes from low light to high light and the optical power Pt is still between (-24, -22) dBm, the main controller 30 keeps the LOS alarm output state until the second preset parameter threshold optical power Pt > P2, that is, when the optical power Pt > -22dBm is used for performing LOS alarm removing operation.
When the optical parameter detection signal is greater than a second preset parameter threshold (Pt is greater than or equal to P2), and normal output is maintained, when the received optical power is changed from large light to small light, and Pt is between (-24, -22) dBm, an LOS alarm output state is still kept until Pt is less than P1, namely Pt is less than-24 dBm, LOS alarm operation is carried out.
Referring to fig. 1 and 2, in an embodiment, the optical parameter detection circuit 20 includes a DSP code chip U2, and the DSP code chip U2 is connected to the output end of the light receiving module 10 and the main controller 30 respectively;
the DSP coding chip U2 is configured to perform clock recovery, amplification and equalization processing on the PAM4 electrical signal output by the light receiving module 10, and output the electrical signal to the electrical connector CN 1; and the number of the first and second groups,
performing CDR locking state judgment on the received PAM4 electrical signal, generating an LOL signal according to a CDR locking result, and outputting the LOL signal to the main controller 30 as an optical parameter detection signal.
In this embodiment, whether the light amplitude is normal or not can be determined through CDR locking state judgment, and specifically, it can be determined according to an LPL signal output by the DSP code chip U2, when the LOL signal of the DSP code chip U2 high level, that is, when the LOL output signal is 1, it indicates that the DSP code chip U2 fails to receive CDR circuit locking, at this time, the main controller 30 monitors whether the IO port IO _2 pin level is high level or not in real time, if so, LOS is set as alarm output, that is, the LOS signal output by the digital IO port IO _1 pin of the main controller 30 is set to high level and output to the gold finger pin, and hardware reports to the switch; meanwhile, the address bit of the software protocol corresponding to the main controller 30 writes 1; when the DSP encoding chip U2 outputs a low level LOL signal, that is, the LOL output signal is 0, it indicates that the CDR receiving circuit of the DSP encoding chip U2 is normally locked, the LOS alarm output is cancelled, the optical module receiving circuit resumes normal operation, and the DSP encoding chip U2 outputs a normal amplitude. At this time, LOS signals output by the digital IO port IO _1 pin of the main controller 30 are set to be low level and are sent to the golden finger pin, and hardware is reported to the switch; while the corresponding software protocol address bit writes a 0.
It can be understood that, in the above embodiment, the PAM4 optical module receive output control circuit can be widely applied to the PAM4 optical module products of QSFP56, QSFP-DD, and OSFP, and has a good popularization value.
The invention also provides a PAM4 optical module receiving and outputting control method, the PAM4 optical module receiving and outputting control method is suitable for the PAM4 optical module receiving and outputting control circuit, and the PAM4 optical module receiving and outputting control circuit comprises a light detection module. Referring to fig. 3, the PAM4 optical module reception output control method includes the steps of:
s100, receiving the optical signal, converting the optical signal into a PAM4 electric signal and outputting the PAM4 electric signal;
step S200, detecting optical parameters of the optical receiving module in real time and outputting optical parameter detection signals;
and step S300, when the optical parameter corresponding to the optical parameter detection signal is determined not to be matched with a first preset parameter threshold value according to the optical parameter detection signal, controlling the optical receiving module to stop outputting the PAM4 electric signal and outputting an LOS alarm signal.
According to the invention, the received optical signal is converted into the PAM4 electric signal and then output to the electric connector, and meanwhile, the optical parameter of the optical receiving module is detected in real time, so that when the optical parameter corresponding to the optical parameter detection signal is determined to be not matched with the first preset parameter threshold value according to the optical parameter detection signal, the optical receiving module is controlled to stop outputting, and the LOS alarm is output to the electric connector.
In an embodiment, the PAM4 optical module receive output control method further includes:
determining the LOS type according to a communication protocol with the switch; the LOS types include RSSI LOS and OMA LOS;
when the determined LOS type is RSSI LOS, detecting the light power received by the light receiving module, and taking the light power as the light parameter detection signal; specifically, when the determined LOS type is RSSI LOS, detecting the optical power received by the optical receiving module, and when the optical power is used as the optical parameter detection signal, the mismatch between the optical parameter corresponding to the optical parameter detection signal and a first preset parameter threshold value is specifically that the detected optical parameter detection signal is smaller than the first preset parameter threshold value;
the matching of the optical parameter corresponding to the optical parameter detection signal and the second preset parameter threshold is that the detected optical parameter detection signal is greater than or equal to the first preset parameter threshold.
And when the determined LOS type is OMA LOS, performing CDR locking state judgment on the received PAM4 electrical signal, generating an LOL signal according to a CDR locking result, and outputting the LOL signal as an optical parameter detection signal. In this embodiment, there are two types of receiving LOS output in the optical module protocol, one type is that an RSSI (Received signal strength Indication) LOS (LOSs of Lock) determines an LOS output signal by receiving the optical power intensity of PAM 4; the other is that OMA (Optical Modulation Amplitude) LOS judges an LOS output signal by receiving the Amplitude of the PAM4 Optical signal, and may be specifically set according to the device matched with the Optical module, where some devices require the Optical module to be set as RSSI LOS, and some devices require the Optical module to be set as LOS OMA.
Referring to fig. 4, in an embodiment, the PAM4 optical module receive output control method further includes:
and when determining that the optical parameter corresponding to the optical parameter detection signal is matched with a second preset parameter threshold value according to the optical parameter detection signal, controlling the optical receiving module to recover the output and removing the LOS alarm output.
Specifically, when the optical parameter is power, the first preset parameter threshold, that is, the alarm threshold may be set to-24 dBm, and the second preset parameter threshold, that is, the alarm setting optical power, that is, the-22 dBm, is performed, when the optical parameter detection signal is less than the first preset parameter threshold, an alarm is performed and the optical receiving module is controlled to stop outputting, so as to suppress the electrical signal, and when the optical parameter detection signal is greater than the second preset parameter threshold, the alarm is removed and the optical receiving module is controlled to recover normal output. In addition, after the optical parameter detection signal is smaller than the first preset parameter threshold, and an alarm is performed and the optical receiving module is controlled to stop outputting, if the received optical power is changed from small light to large light and the optical power Pt is still between (-24, -22) dBm, the main controller keeps the LOS alarm output state until the second preset parameter threshold optical power Pt > P2, namely Pt > -22dBm, LOS alarm-removing operation is performed.
When the optical parameter detection signal is larger than a second preset parameter threshold value and normal output is maintained, when the received optical power is changed from large light to small light and Pt is between (-24, -22) dBm, an LOS alarm output state is still kept until Pt is less than P1, namely Pt is less than-24 dBm, and LOS alarm operation is performed.
The invention can effectively realize the function of suppressing the electric signal output by receiving the alarm of the optical module by setting the proper alarm and alarm-removing intervals, and can effectively solve the problem that the PAM4 coding chip is triggered by receiving the alarm by mistake or the output does not have the suppressing function after receiving the alarm in the field of the optical module. In this embodiment, by setting the hysteresis interval, the alarm operation can be effectively maintained, and the false alarm operation can be avoided.
The invention also provides a PAM4 optical module receiving and output control system, which comprises an exchanger and the PAM4 optical module receiving and output control circuit, wherein the PAM4 optical module receiving and output control circuit is electrically connected with the exchanger.
The detailed structure of the PAM4 optical module receive output control circuit can refer to the above embodiments, and is not described herein again; it can be understood that, because the PAM4 optical module rx/output control circuit is used in the PAM4 optical module rx/output control system of the present invention, embodiments of the PAM4 optical module rx/output control system of the present invention include all technical solutions of all embodiments of the PAM4 optical module rx/output control circuit, and the achieved technical effects are also completely the same, and are not described herein again.
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 modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.