CN111510204B - Protection circuit, protection method and optical module - Google Patents

Protection circuit, protection method and optical module Download PDF

Info

Publication number
CN111510204B
CN111510204B CN202010332312.8A CN202010332312A CN111510204B CN 111510204 B CN111510204 B CN 111510204B CN 202010332312 A CN202010332312 A CN 202010332312A CN 111510204 B CN111510204 B CN 111510204B
Authority
CN
China
Prior art keywords
circuit
signal
data processing
state
protection
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
CN202010332312.8A
Other languages
Chinese (zh)
Other versions
CN111510204A (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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN202010332312.8A priority Critical patent/CN111510204B/en
Publication of CN111510204A publication Critical patent/CN111510204A/en
Application granted granted Critical
Publication of CN111510204B publication Critical patent/CN111510204B/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/03Arrangements for fault recovery
    • H04B10/032Arrangements for fault recovery using working and protection systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the application discloses a protection device, a protection method and an optical module; the device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the output circuit is respectively connected with the data processing circuit and the protection circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit; wherein the input circuit is used for obtaining an electrical input signal; the data processing circuit is used for generating a first electric trigger signal, and the first electric trigger signal is used for representing that a processor of the optical module enters a disordered state; the gating circuit is used for responding to the first electric trigger signal and selecting the protection circuit to be in a gating state; a protection circuit for comparing an electrical input signal with a signal threshold; and the output circuit is used for determining the closing state or the opening state of the output circuit according to the comparison result.

Description

Protection circuit, protection method and optical module
Technical Field
The present disclosure relates to signal protection technologies, and in particular, to a protection circuit, a protection method, and an optical module, which can be applied to the optical field.
Background
An optical fiber module, referred to as an optical module for short, is an important device in an optical fiber communication system. Which has signal processing functions such as modulation, demodulation, power control, and the like, in addition to the photoelectric conversion function. In the field of optical communications, an optical module is an indispensable device. If a device capable of executing a signal processing function in an optical module is called a processor, a program of the processor is upgraded in the optical module, and even if the time (upgrading time) consumed by the program upgrading is shortened as much as possible by various means in the related art, the processor is in an unordered working state within the short upgrading time, and the processing of data may be abnormal in the working state of the unordered column, so that the transmission abnormality of optical fiber communication may be caused, such as optical signal disconnection, flammability of an optical fiber bending part, and flammability of an optical fiber end due to the fact that a protective sleeve is not provided at the end of the optical fiber. The inflammable property generated by the bending part of the optical fiber and the tail end of the optical fiber without a protective sleeve can cause damage to people who are not in time to avoid. Such anomalies cannot meet the optical safety standards. Therefore, how to avoid the transmission exception caused by the unordered working state of the processor becomes a technical problem to be solved urgently.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present application provide a protection method and apparatus, and an optical module.
The technical scheme of the embodiment of the application is realized as follows:
the application provides a protection device, the device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the output circuit is respectively connected with the data processing circuit and the protection circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit; wherein the content of the first and second substances,
an input circuit for obtaining an electrical input signal;
the data processing circuit is used for generating a first electric trigger signal, and the first electric trigger signal is used for representing that a processor of the optical module enters a disordered state;
the gating circuit is used for responding to the first electric trigger signal and selecting the protection circuit to be in a gating state;
a protection circuit for comparing an electrical input signal with a signal threshold;
and the output circuit is used for determining the closing state or the opening state of the output circuit according to the comparison result.
In the above scheme, the protection circuit is configured to: determining whether the electrical input signal is greater than a signal threshold;
generating a first signal in the event that the electrical input signal is greater than a signal threshold;
generating a second signal in the event that the electrical input signal is less than or equal to the signal threshold;
accordingly, the method can be used for solving the problems that,
the output circuit is used for determining the self as the closed state under the condition that the protection circuit generates the first signal; the protection circuit itself is determined to be in an on state in the event that the protection circuit generates the second signal.
In the above-mentioned scheme, the first step of the method,
the data processing circuit is further configured to generate a second electrical trigger signal, where the second electrical trigger signal is used to characterize the processor switching from the disordered state to the normal state;
correspondingly, the gating circuit is used for responding to the second electric trigger signal and selecting the data processing circuit to be in a gating state;
the data processing circuit is used for carrying out service processing on the electrical input signal; and the output circuit is used for determining the closing state or the opening state of the output circuit according to the processing result.
In the above scheme, the data processing circuit is configured to perform service processing on an electrical input signal to generate a third signal or a fourth signal;
accordingly, the method can be used for solving the problems that,
the output circuit is used for determining the self as the closed state under the condition that the data processing circuit generates a third signal; the data processing circuit itself is determined to be in the on state in case it generates the fourth signal.
In the above-mentioned scheme, the first step of the method,
and the output circuit is used for generating and outputting an optical output signal based on the electrical input signal in an opening state.
In the above solution, the data processing circuit includes the processor, and is configured to generate the first electrical trigger signal when detecting that the optical module is upgraded and the upgrade is not completed, the optical module is restarted and the restart is not completed, or the optical module is restarted and the restart is not completed;
and the second electrical trigger signal is generated when the condition that the upgrading is completed by the second electrical trigger signal, the restarting is completed by the second electrical trigger signal or the restarting of the optical module is completed is detected.
In the above scheme, the electrical input signal is an analog signal;
the data processing circuit comprises a conversion circuit for converting the electrical input signal into a digital signal;
correspondingly, the processor is used for collecting the digital signals to obtain sampling signals and performing service processing on the sampling signals.
In the above scheme, the first end of the gating circuit is connected to the second end of the data processing circuit; the second end of the gating circuit is connected with the second end of the protection circuit; the third end of the gating circuit is connected with the output circuit;
accordingly, the method can be used for solving the problems that,
the gating circuit is used for transmitting the comparison result of the electrical input signal and the signal threshold value and the processing result to the output circuit.
The embodiment of the application provides a protection method, which is applied to a protection device, wherein the device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the second end of the data processing circuit and the second end of the protection circuit are respectively connected with the output circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit;
the method comprises the following steps:
obtaining an electrical input signal using an input circuit;
detecting a first electrical trigger signal by using a data processing circuit, wherein the first electrical trigger signal is used for representing that a processor of an optical module enters a disordered state;
responding to the first electric trigger signal through the gating circuit, and selecting the protection circuit to be in a gated state;
comparing the electrical input signal with a signal threshold using a protection circuit;
and is used for determining the closing state or the opening state of the output circuit according to the comparison result.
The embodiment of the application provides an optical module, which comprises the protection device.
The embodiment of the application provides a protection device, a protection method and an optical module; the device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the output circuit is respectively connected with the data processing circuit and the protection circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit; wherein the input circuit is used for obtaining an electrical input signal; the data processing circuit is used for generating a first electric trigger signal, and the first electric trigger signal is used for representing that a processor of the optical module enters a disordered state; the gating circuit is used for responding to the first electric trigger signal and selecting the protection circuit to be in a gating state; a protection circuit for comparing an electrical input signal with a signal threshold; and the output circuit is used for determining the closing state or the opening state of the output circuit according to the comparison result.
In the embodiment of the application, when the data processing circuit detects that the processor of the optical module is in an unordered state, the protection circuit is gated to protect the optical module when the processor of the optical module is in the unordered state through the protection circuit, so that the optical module is protected from being abnormal as much as possible when the processor is in the unordered state, and data transmission of the whole optical fiber communication system is further influenced, and the optical safety requirement is met.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a circuit configuration of a protection device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data processing circuit according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a specific circuit configuration of a protection device according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of the protection method in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Before describing the embodiments of the present application, relevant terms that may be used in the embodiments of the present application will be described.
1) The processor is upgraded: the software upgrading can be realized, and the hardware upgrading can also be realized. It will be understood by those skilled in the art that a software upgrade, for example, corresponds to writing new code that can be written into the Flash memory Flash, and the upgrade requires a certain amount of time, for example, 2s, and the processor at this time can be considered to be in an unordered state because the processor needs to be reloaded with a program and cannot effectively implement effective output to an output unit, such as a laser, connected to the processor.
2) Out-of-order (working) state of the processor: the state in which the processor cannot normally operate is considered to be relative to the state in which the processor can normally operate. Processors may typically be in an out-of-order state due to software upgrades and/or hardware upgrades of the processor.
The embodiment of the application provides a protection device, which is applied to an optical module. As shown in the circuit configuration shown in both fig. 1 and fig. 2, the apparatus includes at least an input circuit 11, a data processing circuit 12, a protection circuit 13, and a gate circuit 14 and an output circuit 15. The input circuit 11 is connected to a first end of the data processing circuit 12 and a first end of the protection circuit 13 respectively; the output circuit 15 is respectively connected with the data processing circuit 12 and the protection circuit 13; the gate circuit 14 is connected to the data processing circuit 12 and the protection circuit 13, respectively.
In the concrete implementation aspect, the method comprises the following steps of,
an input circuit 11 for obtaining an electrical input signal;
a data processing circuit 12, configured to generate a first electrical trigger signal, where the first electrical trigger signal is used to trigger a processor of the optical module to enter a disordered state;
a gate circuit 14 for selecting the protection circuit 13 to a gated state in response to a first electrical trigger signal;
a protection circuit 13 for comparing the electrical input signal with a signal threshold;
and the output circuit 15 is used for determining the closing state or the opening state of the output circuit according to the comparison result.
The first electrical trigger signal may be any reasonable signal that can cause the processor of the optical module to enter the unordered state. For example, when the data processing circuit 12 detects that the processor is upgraded and the upgrade is not completed, the processor is restarted and the restart is not completed, or the optical module is restarted and the restart is not completed, it indicates that the processor enters the disordered state, and generates a first electrical trigger signal, which is a signal indicating that the processor of the optical module enters the disordered state. The signal threshold is a preset reasonable value, and may be a voltage value, a current value, a peak value, or the like. Taking the voltage value as an example, the signal threshold may be 5v or may also be 10v, and specific examples are not given since they cannot be enumerated one by one. The state of the output circuit 15 may be an off state or an on state.
In the embodiment of the present application, a protection circuit 13 and a gating circuit 14 are added to the optical module, and when the data processing circuit 12 detects that the processor of the optical module enters a disordered state, the protection circuit 13 is gated, so that the processor in the disordered state is protected by the protection circuit 13 to protect the optical module. Further, the output circuit 15 determines its own state based on the comparison result of the protection circuit 13. That is, the output circuit 15 determines its own state according to the actual condition of the electrical input signal when the processor of the optical module enters the disordered state, which is a scheme for flexibly determining the state of the output circuit 15 according to the actual condition of the electrical input signal. The situation that the state of the output circuit 15 can not be flexibly determined according to the actual situation of the electrical input signal when the processor enters the disordered state can be greatly avoided, and the situations that the optical fiber is inflammable, the optical signal is disconnected and the like due to the fact that the electrical input signal is too large can be at least avoided. It can be understood that the protection device in the embodiment of the present application is a scheme for protecting the optical module when the processor of the optical module is in an unordered state, so as to protect the optical module from being abnormal as much as possible when the processor is in the unordered state, thereby affecting data transmission of the entire optical fiber communication system, and meeting optical security requirements.
In an alternative embodiment, the protection circuit 13 is configured to: determining whether the electrical input signal is greater than a signal threshold;
generating a first signal in the event that the electrical input signal is greater than a signal threshold;
generating a second signal in the event that the electrical input signal is less than or equal to the signal threshold;
accordingly, the method can be used for solving the problems that,
the output circuit 15 is used for determining the self as the closed state under the condition that the protection circuit 13 generates the first signal; the on state itself is determined in the case where the protection circuit 13 generates the second signal.
In the foregoing optional embodiment, it is equivalent to that, when the processor of the optical module is in the disordered state, and the electrical input signal is larger than the signal threshold (larger than the signal threshold), the output circuit 15 is determined to be in the off state, that is, the output circuit 15 does not output the signal, so as to avoid the situations of flammability of the optical fiber, disconnection of the optical signal, and the like caused by the excessively large electrical input signal. When the electrical input signal is small (less than or equal to the signal threshold), the output circuit is determined to be in an open state, the small electrical input signal can be regarded as a safety signal, and the output circuit 15 can realize normal output of the safety signal, so that normal transmission of optical fiber communication is ensured.
In an optional embodiment, the data processing circuit 12 is further configured to generate a second electrical trigger signal, where the second electrical trigger signal is used to characterize the processor switching from the disordered state to the normal state;
correspondingly, the gating circuit 14 is used for responding to the second electric trigger signal and selecting the data processing circuit 12 to be in a gating state;
the data processing circuit 12 is configured to perform service processing on the electrical input signal; the output circuit 15 is configured to determine a turn-off state or a turn-on state of the output circuit according to the processing result.
In the aforementioned alternative, in the case of detecting that the processor of the optical module enters the normal state from the disordered state, the gated circuit is the data processing circuit 12, in which case the state of the output circuit 15 may be determined according to the traffic processing result of the electrical input signal. That is, the output circuit 15 determines its own state according to the actual condition of the electrical input signal when the processor of the optical module is in a normal state, which is a scheme for flexibly determining the state of the output circuit 15 according to the actual condition of the electrical input signal. The optical module can be normally transmitted under the condition that the processor is recovered to be normal, and the situations that the optical fiber is inflammable, the optical signal is disconnected and the like due to overlarge electric input signal under the condition that the processor is recovered to be normal are avoided. It can be understood that in the embodiment of the present application, the protection of the optical module is also realized by comparing the signals under the condition that the data processing circuit 12 is gated, so as to meet the optical security requirement. That is, in the embodiment of the present application, whether the protection circuit 13 is selected or the data processing circuit 12 is selected, the protection of the optical module can be achieved.
In the foregoing solution, the data processing circuit 12 generates a second electrical trigger signal when detecting that the processor of the optical module completes upgrading, the processor completes restarting, or the optical module completes restarting, where the second electrical trigger signal is a signal indicating that the processor of the optical module recovers to a normal operating state.
In a specific implementation, the data processing circuit 12 is configured to: performing service processing on the electrical input signal according to the service processing logic; further, the electric input signal is subjected to service processing to generate a third signal or a fourth signal;
correspondingly, the output circuit 15 is used for determining the self-closed state under the condition that the data processing circuit 12 generates the third signal; determines itself to be in the on state in case data processing circuit 12 generates the fourth signal.
In the foregoing optional embodiment, it is equivalent to that, when the processor of the optical module is in a normal state, a (third) signal for making the output circuit 15 be in a closed state is generated when the output circuit 15 needs to be closed according to the service processing logic, and in this case, the output circuit 15 does not output the signal, so as to avoid the situations that the optical fiber is flammable and the optical signal is disconnected due to an excessively large electrical input signal when the processor is in the normal state. The (fourth) signal for bringing the output circuit 15 into an on-state is generated when the output circuit 15 needs to be switched off according to the business process logic, in which case the output circuit 15 is in an on-state. When the processor enters a normal state, the output circuit 15 is normally turned on or off according to the service logic, so that normal transmission of optical fiber communication can be ensured.
In one embodiment, the output circuit 15 is configured to generate and output an optical output signal based on the electrical input signal in the on state. The output circuit 15 in the embodiment of the present application generates an optical output signal based on the electrical input signal without being turned off, i.e., turned on, and outputs the optical output signal. The normal transmission of the optical fiber signal is realized.
It should be understood that fig. 1 can be regarded as a circuit composition structure diagram of the protection device in the embodiment of the present application. Specifically, as shown in fig. 1, a first terminal of the gating circuit 14 is connected to a second terminal of the data processing circuit 12; a second terminal of the gating circuit 14 is connected to a second terminal of the protection circuit 13; the third terminal of the gating circuit 14 is connected with the output circuit 15; accordingly, the gating circuit 14 is configured to transmit the comparison result of the electrical input signal and the signal threshold and the service processing result of the electrical input signal to the output circuit 15. The gate circuit 14 in the protection device shown in fig. 1 is connected to the data processing circuit 12, the protection circuit 13 and the output circuit 15, respectively, which is equivalent to the data processing circuit 12 and the protection circuit 13 being located on one side of the gate circuit 14, the output circuit 15 being located on the other side of the gate circuit 14, the gate circuit 14 being located between the data processing circuit 12 (and the protection circuit 13) and the output circuit 15, and the traffic processing result of the data processing circuit 12 and the comparison result of the protection circuit 13 need to be transmitted to the output circuit 15 via the gate circuit 14.
In an alternative, as shown in fig. 2, the data processing circuit 12 includes a conversion circuit 121 and a processor 122 of the optical module, which are connected in sequence; the conversion circuit 121 is connected to the input circuit 11, and the processor 122 is connected to the gating circuit 14; the processor 122 is connected to an output circuit 15, such as a laser, via a gating circuit 14. The protection circuit 13 is connected to the output circuit 15 through the gate circuit 14.
The electrical input signal is an analog signal, the conversion circuit 121 converts the electrical input signal into a digital signal, the processor collects the digital signal to obtain a sampling signal, the sampling signal is subjected to service processing, and the output circuit 15 determines whether the sampling signal is in an on state or an off state according to a service processing result of the sampling signal. The processor 122 is configured to generate a first electrical trigger signal when detecting that the optical module is upgraded and the upgrade is not completed, that the optical module is restarted and the restart is not completed, or that the optical module is restarted and the restart is not completed; and the second electrical trigger signal is generated when the condition that the upgrading is completed by the second electrical trigger signal, the restarting is completed by the second electrical trigger signal or the restarting of the optical module is completed is detected.
As will be understood by those skilled in the art, an optical module is a device that can convert an optical input signal into an electrical input signal, perform processing such as modulation, demodulation, power control, etc. by a processor, and convert the processed electrical signal into an optical signal for output. Just as the output circuit 15 can generate a target optical signal based on a target electrical signal and output the target optical signal, the input circuit 11 in the embodiment of the present application is configured to receive an optical input signal and convert the optical input signal to obtain an electrical input signal.
The Processor 122 of the optical module may be implemented by a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Central Processing Unit (CPU) in practical applications.
The following describes the protection device in the embodiment of the present application in detail with reference to fig. 3, taking as an example that the processor 122 is an FPGA, the conversion circuit 121 is an ADC (analog-to-digital converter), the protection circuit 13 is a comparator (Compare), the gating circuit 14 is a Switch, the input circuit 11 is a PD (photoelectric converter), and the output circuit 15 is a laser. It can be understood that the protection device in the embodiment of the present application may be embedded in an optical module, and protect the optical module as a part of the optical module. The optical module can be an important device in an optical fiber communication system, taking an embedded system as an example of the communication system, and the number of the optical modules in the embedded system may be one or more. One or more protection devices may be provided for each optical module, and each branch signal input to the optical module is subjected to the following protection process.
It will be appreciated that the FPGA itself has a Gate (Gate) signal which in the context of this application is used as the signal to select either the protection circuit 13 (comparator) or the data processing circuit 12 as the selected circuit.
As shown in fig. 3, when the FPGA is in a normal operating state, that is, when the FPGA is not upgraded or restarted, the FPGA generates a high level signal (a second electrical trigger signal) as a Gate signal when knowing that the FPGA, or the optical module where the FPGA is located, or the embedded system where the optical module is located does not have the upgraded/restarted situation. The high-level Gate signal is used as a control signal of the Switch, the Switch is closed towards the FPGA direction, and at the moment, the FPGA is in a gated state. The PD receives an optical signal that is photoelectrically converted to obtain an electrical input signal that flows to the gated ADC. It can be understood that the electrical input signal is an analog signal, the ADC performs analog-to-digital conversion, the FPGA performs sampling, and performs service processing on the sampled signal according to the service processing logic. For example, in the case where the sampling signal is large (i.e., the electrical input signal is large), the FPGA generates a low level (third signal) that turns off the laser, and the laser is in an off state in the case where the FPGA outputs a low level and does not generate an optical signal. A high level (fourth signal) is generated in case the sampled signal, i.e. the electrical input signal, is small. The laser is in an on state under the condition that the FPGA generates a high level, which is equivalent to controlling the laser to be in the on state under the condition that the FPGA generates the high level, and the laser in the on state can output an optical signal. According to the service logic, the FPGA generates a high-level signal for starting the laser under the condition that the laser is required to be started; the low level for turning off the laser is generated without the need for the laser to be turned on. It should be understood that the foregoing description is provided by taking the example of turning on the laser at a high level and turning off the laser at a low level, and vice versa, and repeated descriptions are omitted here.
In the foregoing scheme, when the FPGA of the optical module is in a normal operating state, according to a high-level Gate signal, the first circuit is selected as a selected circuit from the first circuit composed of the ADC and the FPGA and the second circuit composed of the comparator, and for an electrical input signal input by the protection device, the gated FPGA performs service processing on the electrical input signal, and outputs a low level to turn off the laser without outputting the laser without turning on the laser, so as to avoid the occurrence of situations such as flammability of an optical fiber, disconnection of an optical signal, and the like caused by an excessively large electrical input signal when the processor is in a normal state. And outputting high level under the condition that the laser needs to be started so as to enable the laser to be in a starting state and carry out normal output of optical signals, thereby ensuring normal transmission of optical fiber communication.
It can be understood that the Switch in the application scenario may be a single-pole double-throw Switch, and may be closed only in the FPGA direction or in the comparator direction at the same time. The switch can be an alternative circuit, a single-pole multi-throw switch, or any other reasonable switch, and is not limited specifically.
It can be understood that the embedded system can complete the functions thereof by means of upgrading. The partition needing to be upgraded in the embedded system includes but is not limited to an FPGA, a kernel and the like of the optical module. Correspondingly, the upgrading program of the embedded system comprises an FPGA program, a kernel program, an UBOOT program, a DTB program and the like. The FPGA program is concerned in the application scene. The upgrade of the FPGA in fig. 3 is actually a process of writing an FPGA upgrade program into a system Flash (Flash) for a partition opened for the FPGA by the embedded system. It will be appreciated that the embedded system opens up a certain partition for each device or part that needs to be upgraded, and the program code (including version information) of each device or part is stored in Flash. Before program upgrade, the embedded system also needs to confirm which partition is upgraded: acquiring version information recorded in an embedded system FLASH, analyzing version information of each partition and comparing the version information with version information in an upgrading program; and writing the program of the partition needing to be upgraded into the FLASH. Wherein, the information of the partition to be upgraded, such as directory information, file size and/or file check code of the partition, needs to be obtained. The program for writing the partition needing to be upgraded is equivalent to writing the verified upgrade file into the corresponding partition. In the process of writing in the FPGA partition program, that is, upgrading the FPGA of the optical module, it may take 2 seconds for the FPGA to load a new program and load the new program, and the FPGA is in an unordered state during loading the new program, so that the optical security behavior of the optical module cannot be guaranteed.
As shown in fig. 3, when the FPGA enters the disordered state, that is, when the FPGA is upgraded and the upgrade is not completed, the FPGA learns that the FPGA, or the optical module where the FPGA is located, or the embedded system where the optical module is located is upgraded and the upgrade is not completed, and generates a low level signal (a first electrical trigger signal) as a Gate signal. The low-level Gate signal is used as a control signal of the Switch to close the Switch in the comparator direction, and at this time, the comparator is in a gated state. The PD receives an optical signal, which is photoelectrically converted to obtain an electrical input signal, and the electrical input signal flows to a gated comparator (the comparator is used as a protection circuit in this application scenario). It will be appreciated that the electrical input signal is an analogue signal which is converted from analogue to digital by the comparator and compared to a signal threshold, for example 5v, to produce a low level (first signal) when the comparison electrical input signal is greater (greater than the signal threshold) and the laser is off when the FPGA outputs a low level and does not produce an optical signal. When the comparison shows that the electrical input signal is small (less than or equal to the signal threshold), a high level (second signal) is generated, the laser is in an on state when the FPGA generates the high level, and the electrical signal input to the comparator is converted into an optical signal through the laser and is output.
In the foregoing solution, when the FPGA of the optical module is in the disordered state, according to a Gate signal at a low level, the second circuit is selected as a selected circuit from the first circuit composed of the ADC and the FPGA and the second circuit composed of the comparator, and for an electrical input signal input by the protection device, the gated comparator compares the magnitude of the electrical input signal with a signal threshold, and outputs the low level when the electrical input signal is larger, so as to turn off the laser without outputting, thereby avoiding the occurrence of the situations of flammability of the optical fiber, disconnection of the optical signal, and the like caused by an excessively large electrical input signal when the processor is in the disordered state. And when the comparison result shows that the electrical input signal is small (less than or equal to the signal threshold), outputting a high level to enable the laser to be in an open state and normally output an optical signal so as to ensure the normal communication of the optical module.
When the upgrade is completed, once the FPGA knows that the FPGA has completed the upgrade itself, the optical module has completed the upgrade, or the embedded system has completed the upgrade, the low level signal of the Gate changes from the upgrade process to the high level signal (the second electrical trigger signal). The high level signal is used as a Gate signal to select the data processing circuit 12 composed of the ADC and the FPGA as a selected circuit. Therefore, the FPGA can be switched to a normal working state from an unordered state in the restarting process in time. For the subsequent process, see the aforementioned flow when the FPGA is in the normal working state, the repeated parts are not described in detail. It can be understood that, in the application scenario, the FPGA generates a Gate signal in time according to a state that the FPGA is in an upgraded state and the upgrade is not completed or the upgrade is completed, so that the gating of a corresponding circuit is realized in time, and then the laser is turned off in time when an electrical input signal input to the protection device is large, thereby avoiding the situations of optical fiber flammability, optical signal disconnection and the like caused by an overlarge electrical input signal. When the electric input signal input to the protection device is small, the laser is started in time so as to ensure that the safe optical signal is normally output and the normal communication of the optical module is not influenced.
It should be understood by those skilled in the art that when the FPGA, optical module or embedded system is upgraded, a reboot is required to utilize the new program. In the restarting process, the FPGA needs to load a new program, the loading usually needs 2s, and the FPGA is in an unordered state in the period of time. But when the loading is finished, namely the restarting is finished, the FPGA can be switched from the unordered state to the normal working state.
In a specific implementation, the FPGA generates the first electrical trigger signal, i.e., the low level signal, when it detects that it is restarted and the restart is not completed, or that the optical module is restarted and the restart is not completed, or that the embedded system is restarted and the restart is not completed. The low level signal is used as a Gate signal to select the comparator as a selected circuit. The subsequent process refers to the aforementioned flow when the FPGA is in an unordered working state due to the upgrade, and the repeated parts are not described in detail. When the FPGA detects that it has completed restarting, or the optical module has completed restarting, or the embedded system has completed restarting, the low level signal of the Gate changes to a high level signal (a second electrical trigger signal) during the restarting process. And the high-level signal is used as a Gate signal to select the ADC and the FPGA as a selected circuit. Therefore, the FPGA can be switched to a normal working state from an unordered state in the restarting process in time. For the subsequent process, see the aforementioned flow when the FPGA is in the normal working state, the repeated parts are not described in detail. It can be understood that, in the application scenario, the FPGA can implement gating of the corresponding circuit in time according to whether the restart and the restart are completed, and implement switching from the unordered state to the normal state in time.
It will be appreciated that fig. 3 is a refinement of the circuit on the basis of fig. 1. In fig. 3, during the upgrade or restart process (upgrade or restart not completed), the FPGA gives a Gate signal of a low level, gates the comparator, and allows the smaller signal input to the comparator to be output to the laser to realize the normal output of the laser in the case where the comparator compares that the electrical input signal is smaller. And when the upgrading or restarting is completed, the FPGA changes from a low level signal to a high level signal, the ADC and the FPGA are gated, and the laser is turned on or off according to the service processing logic in the FPGA.
In the above scheme, whether the FPGA is in an unordered state or an ordered state (normal state), the laser can be reasonably turned off or turned on, and the optical module is protected when the processor of the optical module is in the unordered state, so that the situations of flammability of the optical fiber, disconnection of the optical signal and the like caused by overlarge electrical input signal can be avoided, and the optical safety requirement is met. In addition, when the FPGA is in an unordered state, the comparator is gated, so that the optical module is protected when the FPGA is in the unordered state through the comparator. And the laser device determines the state of the laser device according to the actual condition of the electric input signal when the FPGA is in the disordered state, so that the scheme for flexibly determining the state of the laser device according to the actual condition of the electric input signal can meet the actual use requirement.
The embodiment of the application also provides a protection method which is applied to the protection device. The protection device is shown in fig. 1 to 3. The device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the second end of the data processing circuit and the second end of the protection circuit are respectively connected with the output circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit.
As shown in fig. 4, the method includes:
s401: obtaining an electrical input signal using an input circuit;
s402: generating a first electrical trigger signal by using a data processing circuit, wherein the first electrical trigger signal is used for representing that a processor of an optical module enters a disordered state;
s403: responding to the first electric trigger signal through the gating circuit, and selecting the protection circuit to be in a gated state;
s404: comparing the electrical input signal with a signal threshold using a protection circuit;
s405: and determining the closing state or the opening state of the output circuit according to the comparison result.
In an alternative embodiment, S404 may further be: determining whether the electrical input signal is greater than a signal threshold;
generating a first signal in the event that the electrical input signal is greater than a signal threshold;
generating a second signal in the event that the electrical input signal is less than or equal to the signal threshold;
accordingly, S405 is: determining that the output circuit is in an off state if the first signal is generated; the output circuit is determined to be in an on state if the second signal is generated.
In an optional embodiment, the method further comprises:
generating a second electrical trigger signal, wherein the second electrical trigger signal is used for representing that the processor is switched from the disordered state to the normal state;
selecting the data processing circuit to be in a gated state in response to the second electrical trigger signal;
performing service processing on the electrical input signal;
and determining the closing state or the opening state of the output circuit according to the service processing result.
In an optional embodiment, the method further comprises: performing service processing on the electrical input signal to generate a third signal or a fourth signal;
accordingly, the output circuit is determined to be in the off state in the case where the third signal is generated; the output circuit is determined to be in an on state if the fourth signal is generated.
In an optional embodiment, the data processing circuit includes the processor, and is configured to generate the first electrical trigger signal when detecting that the optical module is upgraded and the upgrade is not completed, the optical module is restarted and the restart is not completed, or the optical module is restarted and the restart is not completed;
and the second electrical trigger signal is generated when the condition that the upgrading is completed by the second electrical trigger signal, the restarting is completed by the second electrical trigger signal or the restarting of the optical module is completed is detected.
In an alternative embodiment, the electrical input signal is an analog signal;
the data processing circuit comprises a conversion circuit for converting the electrical input signal into a digital signal;
correspondingly, the processor is used for collecting the digital signals to obtain sampling signals and performing service processing on the sampling signals.
In an alternative embodiment, the first terminal of the gating circuit is connected to the second terminal of the data processing circuit; the second end of the gating circuit is connected with the second end of the protection circuit; the third end of the gating circuit is connected with the output circuit; correspondingly, the gating circuit is used for transmitting the comparison result of the electrical input signal and the signal threshold value and the service processing result to the output circuit.
An embodiment of the present application further provides an optical module, where the optical module includes the protection device shown in any one of fig. 1 to 3.
It should be noted that, in the protection method and the optical module according to the embodiments of the present application, because the principles of solving the problems of the method and the optical module are similar to those of the protection device, the implementation process and the implementation principle of the protection method and the optical module can be referred to the implementation process and the implementation principle description of the protection device, and repeated details are not repeated.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A protection device, characterized in that the device comprises at least an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the output circuit is respectively connected with the data processing circuit and the protection circuit through the gating circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit; wherein the content of the first and second substances,
an input circuit for obtaining an electrical input signal;
the data processing circuit is used for generating a first electric trigger signal, and the first electric trigger signal is used for representing that a processor of the optical module enters a disordered state;
the gating circuit is used for responding to the first electric trigger signal and selecting the protection circuit to be in a gating state;
a protection circuit for comparing an electrical input signal with a signal threshold;
and the output circuit is used for determining the closing state or the opening state of the output circuit according to the comparison result.
2. The apparatus of claim 1, wherein the protection circuit is configured to: determining whether the electrical input signal is greater than a signal threshold;
generating a first signal in the event that the electrical input signal is greater than a signal threshold;
generating a second signal in the event that the electrical input signal is less than or equal to the signal threshold;
accordingly, the method can be used for solving the problems that,
the output circuit is used for determining the self as the closed state under the condition that the protection circuit generates the first signal; the protection circuit itself is determined to be in an on state in the event that the protection circuit generates the second signal.
3. The device according to claim 1 or 2,
the data processing circuit is further configured to generate a second electrical trigger signal, where the second electrical trigger signal is used to characterize the processor switching from the disordered state to the normal state;
correspondingly, the gating circuit is used for responding to the second electric trigger signal and selecting the data processing circuit to be in a gating state;
the data processing circuit is used for carrying out service processing on the electrical input signal; and the output circuit is used for determining the closing state or the opening state of the output circuit according to the processing result.
4. The apparatus of claim 3, wherein the data processing circuit is configured to process the electrical input signal to generate a third signal or a fourth signal;
accordingly, the method can be used for solving the problems that,
the output circuit is used for determining the self as the closed state under the condition that the data processing circuit generates a third signal; the data processing circuit itself is determined to be in the on state in case it generates the fourth signal.
5. The apparatus of claim 4,
and the output circuit is used for generating and outputting an optical output signal based on the electrical input signal in an opening state.
6. The apparatus of claim 3, wherein the data processing circuit comprises the processor, configured to generate the first electrical trigger signal when detecting that the optical module is upgraded and the upgrade is not completed, restarted and the restart is not completed, or restarted and the restart is not completed;
and the second electrical trigger signal is generated when the condition that the upgrading is completed by the second electrical trigger signal, the restarting is completed by the second electrical trigger signal or the restarting of the optical module is completed is detected.
7. The apparatus of claim 3, wherein the electrical input signal is an analog signal;
the data processing circuit comprises a conversion circuit for converting the electrical input signal into a digital signal;
correspondingly, the processor is used for collecting the digital signals to obtain sampling signals and performing service processing on the sampling signals.
8. The apparatus of claim 3, wherein a first terminal of the gating circuit is coupled to a second terminal of the data processing circuit; the second end of the gating circuit is connected with the second end of the protection circuit; the third end of the gating circuit is connected with the output circuit;
accordingly, the method can be used for solving the problems that,
the gating circuit is used for transmitting the comparison result of the electrical input signal and the signal threshold value and the processing result to the output circuit.
9. A protection method is applied to a protection device, and is characterized in that the device at least comprises an input circuit, an output circuit, a data processing circuit, a protection circuit and a gating circuit; the input circuit is respectively connected with the first end of the data processing circuit and the first end of the protection circuit; the second end of the data processing circuit and the second end of the protection circuit are respectively connected with the output circuit; the gating circuit is respectively connected with the data processing circuit and the protection circuit;
the method comprises the following steps:
obtaining an electrical input signal using an input circuit;
detecting a first electrical trigger signal by using a data processing circuit, wherein the first electrical trigger signal is used for representing that a processor of an optical module enters a disordered state;
responding to the first electric trigger signal through the gating circuit, and selecting the protection circuit to be in a gated state;
comparing the electrical input signal with a signal threshold using a protection circuit;
and is used for determining the closing state or the opening state of the output circuit according to the comparison result.
10. A light module characterized in that it comprises a protection device according to any one of the preceding claims 1 to 8.
CN202010332312.8A 2020-04-24 2020-04-24 Protection circuit, protection method and optical module Active CN111510204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010332312.8A CN111510204B (en) 2020-04-24 2020-04-24 Protection circuit, protection method and optical module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010332312.8A CN111510204B (en) 2020-04-24 2020-04-24 Protection circuit, protection method and optical module

Publications (2)

Publication Number Publication Date
CN111510204A CN111510204A (en) 2020-08-07
CN111510204B true CN111510204B (en) 2021-09-10

Family

ID=71864878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010332312.8A Active CN111510204B (en) 2020-04-24 2020-04-24 Protection circuit, protection method and optical module

Country Status (1)

Country Link
CN (1) CN111510204B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100586747B1 (en) * 2003-08-25 2006-06-08 주식회사 쏠리테크 A protection structure for an optical module on passive optical network
CN202168086U (en) * 2011-08-23 2012-03-14 青岛海信宽带多媒体技术有限公司 Optical module having strong light prevention function
CN202906910U (en) * 2012-10-15 2013-04-24 青岛海信宽带多媒体技术有限公司 Optical network unit with power-down protection circuit
CN107204811A (en) * 2016-11-18 2017-09-26 索尔思光电(成都)有限公司 The method of photodetector in optical receiver, the optical transceiver comprising it, and protection optical receiver
CN109450530A (en) * 2018-12-21 2019-03-08 安徽皖兴通信息技术有限公司 A kind of optical module received optical power overload protective device and guard method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100586747B1 (en) * 2003-08-25 2006-06-08 주식회사 쏠리테크 A protection structure for an optical module on passive optical network
CN202168086U (en) * 2011-08-23 2012-03-14 青岛海信宽带多媒体技术有限公司 Optical module having strong light prevention function
CN202906910U (en) * 2012-10-15 2013-04-24 青岛海信宽带多媒体技术有限公司 Optical network unit with power-down protection circuit
CN107204811A (en) * 2016-11-18 2017-09-26 索尔思光电(成都)有限公司 The method of photodetector in optical receiver, the optical transceiver comprising it, and protection optical receiver
CN109450530A (en) * 2018-12-21 2019-03-08 安徽皖兴通信息技术有限公司 A kind of optical module received optical power overload protective device and guard method

Also Published As

Publication number Publication date
CN111510204A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
RU2627735C2 (en) System and device for providing power supply of network peripheral device and work method of such system and device
EP2821882B1 (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN103425506A (en) Powering off method, starting up method and communication terminal
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN106997313B (en) Signal processing method and system of application program and terminal equipment
CN111064737B (en) Power supply switch control method and device and terminal equipment
CN111510204B (en) Protection circuit, protection method and optical module
CN110459260B (en) Automatic test switching device, method and system
CN109614153A (en) Multi core chip and system
CN105930190B (en) A kind of program self-start method and device based on operating system
CN111093125B (en) Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal
CN111263892A (en) Method, device and equipment for detecting functions of adapter and storage medium
CN110704288B (en) Information processing method and electronic equipment
CN101202458B (en) Power supply circuit
CN108595195A (en) A kind of application program update method, apparatus, terminal and storage medium
CN108829442A (en) Program starts method and device
CN103631611A (en) Method and equipment for updating optical transmitter and receiver
CN116707508A (en) Standby optocoupler switching circuit, method and device, storage medium and electronic equipment
CN110333964A (en) Abnormal log processing method and processing device, electronic equipment, storage medium
CN115309340A (en) Memory control method, memory controller and electronic equipment
CN110336616B (en) Burst received optical power processing method, device, optical line terminal and storage medium
CN114076894B (en) Detection method and device for disconnecting link operation, electronic equipment and storage medium
US11169936B2 (en) Method for checking program execution of a microcontroller, external device, system and non-transitory computer readable medium
CN114825594A (en) Control method and control device of uninterruptible power supply
CN114537146A (en) Vehicle control method and device, electronic equipment and storage medium

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