A power down bypass protection method and circuit for optical port networks
Patent Information
- Application Number
- CN202610629333.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-09
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2046-05-09
AI Technical Summary
[0004]本申请的主要目的在于提供一种光口网络掉电旁路保护方法,以解决现有技术中存在的难以精准识别真实掉电状态、无法实现真正的旁路保护的问题
在本申请中,通过对12V主电源分压并检测分压电压,能够精准识别主电源掉电异常,及时输出旁路控制信号,控制光旁路开关执行旁路保护动作,为光旁路开关执行旁路保护动作预留了充足的切换时间;同时,将12V主电源转换为5V工作电源为旁路保护动作供电,能够稳定完成光路旁路切换,保障了光信号传输的连续性,显著提升了光口网络运行的稳定性与可靠性。
Smart Images

Figure CN122179011B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, and more specifically, to a method and circuit for power-off bypass protection of optical port networks. Background Technology
[0002] Optical network interfaces are widely used in data centers, communication base stations, industrial control, and other fields. Their stable operation depends on a normal power supply from the main power source. When the main power supply experiences an anomaly such as a power failure or voltage drop, the optical interface equipment is prone to shutdown, causing interruption of optical signal transmission, resulting in network paralysis and corresponding losses.
[0003] Existing optical network bypass protection solutions mostly switch channels by controlling optical switches to ensure transmission when the main power supply is abnormal. However, they have obvious drawbacks: on the one hand, the main power supply detection mechanism lacks effective anti-interference measures and is easily affected by power fluctuations and electromagnetic interference, resulting in false triggering or delayed response, making it difficult to accurately identify the actual power failure state; on the other hand, the power supply for bypass protection actions depends on the main power supply itself. When the main power supply is abnormal, the control circuit and optical switch module cannot complete the switching due to power interruption, thus failing to achieve true bypass protection. Summary of the Invention
[0004] The main purpose of this application is to provide a power-off bypass protection method for optical network to solve the problems in the prior art that make it difficult to accurately identify the actual power-off state and cannot achieve true bypass protection.
[0005] To achieve the above objectives, the first aspect of this application proposes a power-down bypass protection method for optical port networks, comprising: Divide the 12V main power supply and detect the voltage division voltage corresponding to the 12V main power supply voltage at the voltage division point; Determine whether the voltage divider meets the preset power-down condition, wherein the preset power-down condition is that the voltage divider is less than or equal to the preset voltage divider power-down threshold. If the voltage divider meets the preset power-off condition, a bypass control signal is output to control the optical bypass switch to perform a bypass protection action. The power required to perform the bypass protection action is provided by the 5V operating power supply converted from the 12V main power supply.
[0006] Secondly, a power-down bypass protection circuit for optical port networks is proposed, including: The voltage divider detection circuit is connected to the 12V main power supply and is used to divide the 12V main power supply and detect the voltage division voltage corresponding to the 12V main power supply voltage at the voltage division point. A voltage regulator circuit is connected to the 12V main power supply and is used to convert the 12V main power supply into a 5V operating power supply. A microcontroller is connected to the voltage divider detection circuit to receive the voltage divider output by the voltage divider detection circuit and determine whether the voltage divider meets the preset power-down condition. The preset power-down condition is that the voltage divider is less than or equal to the preset voltage divider power-down threshold. When the voltage divider meets the preset power-down condition, a bypass control signal is output to control the optical bypass switch to perform bypass protection action. The voltage regulator circuit is also used to power the bypass protection action through the 5V operating power supply.
[0007] The technical solutions provided by the embodiments of this application may include the following beneficial effects: In this application, by dividing the 12V main power supply and detecting the divided voltage, the abnormality of the main power supply failure can be accurately identified, and a bypass control signal can be output in a timely manner to control the optical bypass switch to perform bypass protection action, thus reserving sufficient switching time for the optical bypass switch to perform bypass protection action. At the same time, converting the 12V main power supply to a 5V working power supply to power the bypass protection action can stably complete the optical path bypass switching, ensuring the continuity of optical signal transmission and significantly improving the stability and reliability of the optical port network operation. Attached Figure Description
[0008] The accompanying drawings, which form part of this application, are used to provide a further understanding of the application and to make other features, objects, and advantages of the application more apparent. The illustrative embodiments and descriptions of this application are used to explain the application and do not constitute an undue limitation of the application. In the drawings: Figure 1 A flowchart illustrating a power-off bypass protection method for optical network provided in this application; Figure 2 A schematic diagram of a power-off bypass protection circuit for an optical port network provided in this application; Figure 3 This is another schematic diagram of the circuit principle of a power-off bypass protection circuit for optical network provided in this application. Detailed Implementation
[0009] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0010] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0011] In this application, the terms "upper," "lower," "left," "right," "front," "rear," "top," "bottom," "inner," "outer," "middle," "vertical," "horizontal," "lateral," and "longitudinal" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are primarily for the purpose of better describing this application and its embodiments, and are not intended to limit the indicated device, element, or component to having a specific orientation, or to be constructed and operated in a specific orientation.
[0012] Furthermore, in addition to indicating location or positional relationship, some of the aforementioned terms may also have other meanings. For example, the term "above" may also be used in some cases to indicate a certain dependency or connection relationship. Those skilled in the art can understand the specific meaning of these terms in this application based on the specific circumstances.
[0013] Furthermore, the terms "installation," "setup," "equipped with," "connection," "linked," and "socketing" should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, components, or parts. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0014] Figure 1 A flowchart illustrating a power-down bypass protection method for optical ports provided in this application is shown below. Figure 1 As shown, the method may include: S110. Divide the 12V main power supply and detect the voltage division voltage corresponding to the 12V main power supply voltage at the voltage division point.
[0015] In this embodiment, the 12V main power supply is the external power supply for the normal operation of the optical communication device.
[0016] The 12V main power supply is divided by a resistor to convert the high voltage main power supply into a low voltage sampling signal that can be recognized by the back end. The sampling voltage is output at the voltage divider point. The voltage divider voltage corresponds to the 12V main power supply voltage in a fixed ratio. The optical communication equipment is stably powered by the 12V main power supply. The voltage divider circuit normally outputs a fixed value of the voltage divider voltage, realizing real-time and continuous monitoring of the main power supply voltage.
[0017] S120. Determine whether the voltage divider meets the preset power-off condition, wherein the preset power-off condition is that the voltage divider is less than or equal to the preset voltage divider power-off threshold.
[0018] S130. If the voltage divider meets the preset power-off condition, a bypass control signal is output to control the optical bypass switch to perform a bypass protection action. The power required to perform the bypass protection action is provided by the 5V operating power supply converted from the 12V main power supply.
[0019] In this embodiment, the preset power-down condition is a pre-set voltage threshold condition used to identify when the 12V main power supply voltage drops to an abnormal power-down critical state. The preset voltage divider power-down threshold can be a pre-calibrated critical voltage value, serving as a criterion for distinguishing between normal main power supply and abnormal power-down.
[0020] Based on the pre-calibrated voltage threshold, the real-time collected voltage divider is compared and judged. When the main power supply is detected to be in an abnormal power failure state, the voltage divider drops synchronously to trigger the preset power failure condition, and a bypass control signal is sent to drive the optical bypass switch to complete the optical path bypass switching. At the same time, the 5V working power generated by the 12V main power supply conversion is used to power the bypass action separately to ensure that the optical bypass switch switches to the bypass optical path.
[0021] According to the embodiments of this application, by dividing the 12V main power supply and detecting the divided voltage, the main power supply failure can be accurately identified, and a bypass control signal can be output in a timely manner to control the optical bypass switch to perform bypass protection action, thus reserving sufficient switching time for the optical bypass switch to perform bypass protection action; at the same time, converting the 12V main power supply to a 5V working power supply to power the bypass protection action can stably complete the optical path bypass switching, ensuring the continuity of optical signal transmission and significantly improving the stability and reliability of the optical port network operation.
[0022] In one implementation, determining whether the voltage divider meets a preset power-off condition may include: When the voltage divider changes from high to low, a falling edge interrupt is triggered. During the falling edge interruption, the voltage divider voltage for at least two detection cycles is continuously acquired; If the voltage divider voltage in at least two detection cycles is less than or equal to the preset voltage divider power-off threshold, then the preset power-off condition is satisfied.
[0023] In this embodiment, the falling edge interrupt is the critical moment when the voltage signal transitions from a high level to a low level. The detection period is the minimum time unit to complete one voltage sampling, reading, and identification.
[0024] The voltage divider voltage changes synchronously with the 12V main power supply voltage. When the main power supply is normal, the voltage divider voltage remains at a high level. When the main power supply drops or is about to lose power, the voltage divider voltage quickly jumps from a high level to a low level.
[0025] To avoid misjudgment in a single sampling due to instantaneous voltage fluctuations, electromagnetic interference, and pulse noise, the voltage divider voltage can be continuously collected for at least two detection cycles after the falling edge interruption. Each voltage divider voltage collected in multiple consecutive cycles is compared with the preset voltage divider power-off threshold. When all voltage dividers are lower than or equal to the voltage divider power-off threshold, the preset power-off condition is determined to be met, confirming that the main power supply has experienced a real power-off anomaly.
[0026] According to the embodiments of this application, the level change signal of the main power supply failure is quickly captured by the falling edge interrupt. Combined with the judgment logic of multi-cycle continuous voltage sampling and threshold consistency comparison within the interrupt, the risk of misjudgment caused by instantaneous power fluctuation and external electromagnetic interference is effectively filtered out, avoiding the bypass protection from malfunction or missed triggering, and realizing accurate and reliable identification of the power failure state.
[0027] In one embodiment, the bypass control signal includes a high-level control signal and a low-level control signal. The control of the optical bypass switch to perform bypass protection actions may include: The high-level control signal and the low-level control signal are level-converted to obtain a 5V drive signal; The 5V drive signal controls the optical bypass switch to perform bypass protection.
[0028] In this embodiment, a high-level control signal is used to send a bypass activation trigger command to the optical bypass switch, and a low-level control signal is used to cooperate in locking and confirming the status of the bypass channel. The two work together to reliably open the optical bypass switch.
[0029] The high-voltage control signal and the low-voltage control signal are converted into a 5V drive signal that the optical bypass switch can recognize. The 5V drive signal after level conversion is transmitted to the optical bypass switch, which drives the optical bypass switch to switch to bypass mode, disconnects the normal working link, and connects the preset bypass channel, so that the upstream optical signal can be continuously transmitted through the bypass channel, avoiding optical signal interruption caused by main power supply abnormality.
[0030] According to the embodiments of this application, by converting high-level control signals and low-level control signals into stable 5V drive signals, the optical bypass switch is driven to perform protection actions, which effectively avoids bypass action failure caused by insufficient control signal drive and improves the stability and fault tolerance of the optical port network.
[0031] In one embodiment, after the output bypass control signal controls the optical bypass switch to perform a bypass protection action, the method may further include: Determine whether the voltage divider meets the preset power-on condition, wherein the preset power-on condition is that the voltage divider is greater than the preset voltage divider power-off threshold; If the voltage divider meets the preset power-on conditions, a power-on reset control signal is output to control the optical bypass switch to perform a power-on reset action.
[0032] In this embodiment of the application, the preset power-on condition is a pre-set voltage judgment threshold condition, which is used to identify the critical state when the 12V main power supply voltage returns to the normal power supply range.
[0033] After the optical bypass switch performs bypass protection, the optical link remains in bypass connection. Simultaneously, it continuously samples the 12V main power supply via voltage divider, monitoring changes in the divided voltage in real time to determine if it meets the preset power-on conditions. When the divided voltage detects that the 12V main power supply has returned to normal (i.e., the divided voltage meets the preset power-on conditions), it outputs a power-on reset control signal. This signal is transmitted to the optical bypass switch, triggering it to perform a power-on reset. The optical bypass switch disconnects the preset bypass channel, reconnects the optical link for normal operation, exits the bypass protection state, and restores the optical network device to its normal operating mode when the main power supply is running.
[0034] According to the embodiments of this application, when the preset power-on conditions are met, a power-on reset control signal is automatically output to control the optical bypass switch to perform a reset action, realizing a fully closed-loop control of "power-off bypass protection and automatic power-on reset". The entire reset process can be completed without manual intervention, reducing labor costs. At the same time, it ensures that the optical port network can quickly resume normal operation after the main power is restored, further improving the stability, continuity and automation level of the optical port network operation.
[0035] In one implementation, determining whether the voltage divider meets the preset power-on conditions may include: When the voltage divider changes from low to high, a rising edge interrupt is triggered. During the rising edge interruption, the voltage divider voltage for at least two detection cycles is continuously acquired; If the voltage divider voltage in at least two detection cycles is greater than the preset voltage divider power-off threshold, then the preset power-on condition is determined to be met.
[0036] In this embodiment, the rising edge interrupt is the critical moment when the voltage divider voltage changes from low level to high level.
[0037] During the bypass protection operation of the optical bypass switch, the voltage divider remains at a low level. When the main power supply fault is cleared and normal power supply is restored, the 12V main power supply voltage gradually rises, and the voltage divider rises synchronously, changing from a low level to a high level.
[0038] To filter out interference factors such as instantaneous voltage fluctuations and electromagnetic interference, after the rising edge interrupt is triggered, the voltage divider voltage is continuously collected for at least two detection cycles. Each voltage divider voltage collected during the rising edge interrupt is compared with the preset voltage divider power-off threshold. When all collected voltage dividers are greater than the voltage divider power-off threshold, it is determined that the preset power-on condition is met, and it is confirmed that the 12V main power supply has been restored to a stable power supply state.
[0039] According to the embodiments of this application, the level change signal of the main power supply recovery is quickly captured by the rising edge interrupt. Combined with the multi-cycle continuous voltage division within the interrupt and the consistency comparison with the voltage division power failure threshold, the interference factors such as voltage fluctuation and electromagnetic interference in the early stage of main power supply recovery are effectively filtered out. This avoids the optical bypass switch being falsely reset due to power-on misjudgment, and ensures that the optical port network returns to normal quickly and smoothly after the main power supply is restored. This improves the stability, reliability and automation level of the optical port network operation.
[0040] Figure 2 A circuit diagram illustrating the power-off bypass protection circuit for optical network provided in this application is shown below. Figure 2 As shown, the circuit may include: The voltage divider detection circuit 220 is connected to the 12V main power supply 210 and can be used to divide the 12V main power supply 210 and detect the voltage divider voltage corresponding to the voltage of the 12V main power supply 210 at the voltage divider point. The voltage regulator circuit 240 is connected to the 12V main power supply 210 and can be used to convert the 12V main power supply 210 into a 5V working power supply. The microcontroller 230 is connected to the voltage divider detection circuit 220 and can be used to receive the voltage divider output by the voltage divider detection circuit 220 and determine whether the voltage divider meets the preset power-down condition. The preset power-down condition is that the voltage divider is less than or equal to the preset voltage divider power-down threshold. When the voltage divider meets the preset power-down condition, a bypass control signal is output to control the optical bypass switch 260 to perform bypass protection action. The voltage regulator circuit 240 can also be used to power the bypass protection action through the 5V operating power supply.
[0041] In this embodiment of the application, one end of the voltage divider detection circuit 220 is connected to the 12V main power supply 210, and the other end is connected to the microcontroller 230. The 12V high voltage is converted into a low voltage divider voltage with a fixed ratio to the voltage of the 12V main power supply 210 through the series voltage divider resistor. The voltage divider voltage is collected in real time at the voltage divider point and the collected voltage divider voltage is continuously transmitted to the microcontroller 230.
[0042] One end of the voltage regulator circuit 240 is connected to the 12V main power supply 210, and the other end is connected to the drive circuit 250. The voltage regulator circuit 240 uses an 1117-5.0V LDO module to convert the high voltage of the 12V main power supply 210 into a stable 5V working power supply, which is directly supplied to the drive circuit 250. It can also provide a stable power supply to the microcontroller 230, ensuring that the microcontroller 230 can normally receive the voltage divider signal, perform status judgment and output control signal. It can also stably output 5V working power supply when the 12V main power supply 210 experiences power failure, voltage drop or other abnormalities, providing continuous power for the optical bypass switch 260 to perform bypass protection action.
[0043] The microcontroller 230 is connected to the voltage divider detection circuit 220 and continuously receives the voltage divider voltage transmitted by the voltage divider detection circuit 220. It determines whether the voltage divider voltage meets the preset power-down condition. When it is determined that the voltage divider voltage meets the preset power-down condition (i.e., the main power supply is abnormal), it outputs a bypass control signal and transmits it to the optical bypass switch 260 to trigger the bypass protection action.
[0044] Specifically, during normal operation, the 12V main power supply 210 provides normal power. The voltage divider detection circuit 220 collects a stable voltage divider at the voltage divider point in real time and transmits it to the microcontroller 230. The normal voltage divider is 2.5V, and the preset voltage divider power-down threshold is 2.35V. After receiving the 2.5V voltage divider, the microcontroller 230 determines that the main power supply 210 is normal and does not output a bypass control signal. The optical bypass switch 260 is in normal operation, and the optical signal is transmitted normally. When the power supply line at the front end of the equipment fails, the 12V main power supply 210 is suddenly interrupted, and the voltage drops rapidly, for example, to 11V. The voltage divider detection circuit 220 collects the voltage divider voltage simultaneously, which drops to 2.32V, lower than the preset voltage divider power-down threshold of 2.35V. After receiving this signal, the microcontroller 230 immediately determines that the preset power-down condition is met and outputs a bypass control signal. Meanwhile, the voltage regulator circuit 240 converts the 12V main power supply 210 into a stable 5V operating power supply to power the microcontroller 230 and the optical bypass switch 260. After receiving the control signal, the optical bypass switch 260 quickly switches to the bypass channel to ensure continuous transmission of the optical signal. The entire circuit forms a complete logic of "detection-judgment-control-power supply" to ensure reliable execution of the bypass protection action.
[0045] According to the embodiments of this application, through the collaborative design of the voltage divider detection circuit 220, the voltage regulator conversion circuit 240, and the microcontroller 230, the voltage divider detection circuit 220 can accurately capture the voltage drop of the 12V main power supply 210, providing timely and accurate detection basis for the microcontroller 230. The voltage regulator conversion circuit 240 stably converts the 12V main power supply 210 into a 5V operating power supply, providing continuous power for the execution of bypass protection actions, ensuring that the optical bypass switch 260 can quickly and stably complete the bypass switching. The microcontroller 230 can monitor the voltage divider voltage in real time, quickly respond to power failure anomalies, accurately determine the preset power failure conditions, and output control signals in a timely manner, reserving sufficient switching time for the optical bypass switch 260 to execute bypass protection actions. This achieves accurate detection of the 12V main power supply 210 status, stable power supply guarantee, and reliable control. The overall circuit structure is simple, and the modules work together efficiently, effectively ensuring the continuity of optical signal transmission during main power failures, improving the operational stability and reliability of optical network equipment, and adapting to the bypass protection requirements of various optical network equipment.
[0046] Furthermore, the voltage divider detection circuit 220 may include a first voltage divider resistor and a second voltage divider resistor. One end of the first voltage divider resistor is connected to the 12V main power supply 210, and the other end of the first voltage divider resistor is connected to one end of the second voltage divider resistor to form the voltage divider point. The other end of the second voltage divider resistor is grounded.
[0047] In this embodiment, one end of the first voltage divider resistor is directly connected to the 12V main power supply 210, receiving the 12V high voltage from the main power supply and serving as the input terminal of the voltage divider circuit. This allows the 12V main power supply 210 voltage to be introduced into the voltage divider circuit. At the same time, it utilizes its own resistance characteristics to share a portion of the 12V main power supply 210 voltage, preventing the high voltage from directly acting on the second voltage divider resistor and the microcontroller 230. This serves as a voltage divider and initial protection function, ensuring the stability and safety of subsequent voltage conversion.
[0048] One end of the second voltage divider resistor is connected to the other end of the first voltage divider resistor to form a voltage divider point, and the other end is grounded, serving as the output terminal and ground terminal of the voltage divider circuit. In conjunction with the first voltage divider resistor, the 12V high voltage of the main power supply is further reduced through the principle of resistor voltage division. At the same time, a complete circuit is formed through grounding to ensure that the voltage divider can be output stably.
[0049] The voltage divider point is the connection node between the first and second voltage divider resistors, and also the node for acquiring the divided voltage. When the 12V main power supply 210 passes through the first voltage divider resistor, the voltage is divided, forming a low-voltage divided voltage at the voltage divider point that is in a fixed ratio to the 12V main power supply 210 voltage. This divided voltage is acquired in real time and transmitted to the microcontroller 230. The magnitude of the voltage at the voltage divider point is determined by the resistance ratio of the first and second voltage divider resistors. Divided voltage = main power supply voltage × (resistance of the second voltage divider resistor ÷ (resistance of the first voltage divider resistor + resistance of the second voltage divider resistor)).
[0050] According to the embodiments of this application, a voltage divider detection circuit 220 is formed by connecting the first voltage divider resistor and the second voltage divider resistor in series. The structure is simple and easy to implement. The two resistors work together to achieve accurate voltage division of the 12V main power supply 210, converting the high voltage into a low voltage divider voltage that can be recognized by the microcontroller 230, ensuring that the voltage divider voltage corresponds accurately to the main power supply voltage, and improving the accuracy of the main power supply status detection.
[0051] Furthermore, the bypass control signal includes a high-level control signal and a low-level control signal, and the optical port network power-down bypass protection circuit may also include: The driving circuit 250 is connected to the microcontroller 230 and the optical bypass switch 260 respectively, and can be used to convert the high-level control signal and the low-level control signal into a 5V driving signal; through the 5V driving signal, the optical bypass switch 260 is controlled to perform bypass protection action.
[0052] In this embodiment, one end of the driving circuit 250 is connected to the signal output terminal of the microcontroller 230 to receive the high-level control signal and low-level control signal output by the microcontroller 230; the other end is connected to the control terminal of the optical bypass switch 260 to transmit the converted 5V driving signal to the optical bypass switch 260.
[0053] When the microcontroller 230 determines that the 12V main power supply 210 meets the preset power-down conditions, it outputs high-level and low-level control signals, which are transmitted to the driver circuit 250 in real time. The driver circuit 250 receives these two control signals and, through transistors and other electronic components, converts them into a 5V drive signal compatible with the optical bypass switch 260. After completing the level conversion, the driver circuit 250 transmits the generated 5V drive signal to the control terminal of the optical bypass switch 260 in real time. Upon receiving the 5V drive signal, the optical bypass switch 260 performs a bypass protection action, disconnecting the normal working optical link of the optical port device and connecting the preset bypass channel, allowing the upstream optical signal to continue transmitting through the bypass channel and preventing optical signal interruption due to 12V main power supply 210 malfunctions. Throughout the process, the driver circuit 250 continuously outputs a stable 5V drive signal until the optical bypass switch 260 completes the bypass switching, ensuring the reliability and stability of the operation.
[0054] According to the embodiments of this application, the driving circuit 250, through its connection with the microcontroller 230 and the optical bypass switch 260, converts the high-level control signal and the low-level control signal into a 5V driving signal that the optical bypass switch 260 can adapt to, thereby ensuring that the optical bypass switch 260 can quickly and stably perform bypass protection actions.
[0055] Furthermore, the microcontroller 230 can also be used to determine whether the voltage divider meets the preset power-on condition, wherein the preset power-on condition is that the voltage divider is greater than the preset voltage divider power-off threshold; when the preset power-on condition is met, a power-on reset control signal is output to control the optical bypass switch 260 to perform a power-on reset action.
[0056] In this embodiment, after the optical bypass switch 260 performs bypass protection, the voltage divider detection circuit 220 continuously samples the 12V main power supply 210 and transmits the real-time sampled voltage to the microcontroller 230. The microcontroller 230 receives the real-time voltage from the voltage divider detection circuit 220 and determines whether the voltage meets the preset power-on conditions. When the voltage divider changes from low to high, a rising edge interrupt is triggered in the microcontroller 230. After entering the rising edge interrupt, the microcontroller 230 continuously samples the voltage divider for at least two detection cycles and compares all sampled voltage dividers with a preset voltage divider power-off threshold. If all voltage dividers are greater than the threshold, the preset power-on conditions are met, confirming that the 12V main power supply 210 has returned to a stable power supply state.
[0057] When the microcontroller 230 determines that the voltage divider meets the preset power-on conditions, it stops outputting the bypass control signal and synchronously outputs the power-on reset control signal. This signal is then transmitted to the control terminal of the optical bypass switch 260 via the drive circuit 250, controlling the optical bypass switch 260 to perform the power-on reset action. The optical bypass switch 260 disconnects the preset bypass channel, reconnects the normal working optical link of the optical port device, and exits the bypass protection state.
[0058] According to the embodiments of this application, through the power-on reset control function of the microcontroller 230, the microcontroller 230 can not only complete the power failure judgment and bypass control of the 12V main power supply 210, but also monitor the recovery status of the 12V main power supply 210 in real time, accurately judge the preset power-on conditions and output the power-on reset control signal, and control the optical bypass switch 260 to perform the reset action. This realizes the fully closed-loop automated control of "power failure protection and power-on reset", ensuring that the optical bypass switch 260 can be quickly and reliably reset after the main power supply 210 is restored, and the optical port network can resume normal operation in a timely manner. This further improves the reliability, automation level and practicality of the entire optical port network power failure bypass protection circuit, ensures the continuity of optical signal transmission, and at the same time reduces the workload and labor costs of operation and maintenance.
[0059] Furthermore, the voltage divider point of the voltage divider detection circuit 220 is connected to the interrupt pin of the microcontroller 230.
[0060] In this embodiment, the voltage divider point formed by connecting the first and second voltage divider resistors in the voltage divider detection circuit 220 is directly soldered to the interrupt pin of the microcontroller 230, forming a direct transmission link between the voltage divider point and the interrupt pin of the microcontroller 230. The voltage level change signal (high to low when the main power is off, low to high when the main power is restored) can be directly and quickly transmitted to the microcontroller 230, triggering an external interrupt in the microcontroller 230. This causes the microcontroller 230 to immediately suspend its regular monitoring tasks and prioritize the execution of the interrupt handler.
[0061] According to the embodiments of this application, the voltage divider point of the voltage divider detection circuit 220 is directly connected to the interrupt pin of the microcontroller 230, which can quickly trigger the falling edge interrupt and rising edge interrupt of the microcontroller 230, improve the response speed of the microcontroller 230 to the state changes of the 12V main power supply 210, and reserve sufficient switching time for the optical bypass switch 260 to perform bypass protection actions.
[0062] In practice, after confirming that the 12V main power supply 210 has experienced a real power failure, the microcontroller 230 reads the power failure bypass strategy pre-stored in the internal EEPROM and quickly executes the power failure bypass action according to the preset strategy to ensure that the optical port link can reliably conduct when the device loses power and that the service flow is not interrupted.
[0063] After confirming that the 12V main power supply 210 has been restored to a stable power supply state, the microcontroller 230 reads the power-on bypass strategy pre-stored in the internal EEPROM and completes the execution and switching of the power-on bypass state according to the preset strategy.
[0064] Both the power-on bypass strategy and the power-off bypass strategy are pre-stored in the EEPROM of the microcontroller 230. The strategy content includes configuration parameters such as the bypass function enable state, the optical switch conduction mode, and the link switching timing. When the bypass action is triggered by power-off and power-on, the microcontroller 230 does not require external instruction intervention, but directly calls the configuration strategy in the EEPROM to execute the corresponding operation, ensuring the real-time performance, reliability, and consistency of bypass switching.
[0065] Figure 3 This application provides another schematic diagram of the circuit principle of a power-off bypass protection circuit for optical network.
[0066] like Figure 3 As shown, point A (12V positive terminal) is connected to point C via resistor R2, and point C is then connected to point B (ground) via resistor R4. The voltage at point C is determined by the voltage division ratio of R2 and R4. The formula for calculating the voltage at the voltage division point is: V C =V A ×R4÷(R2+R4). For example, if R2=20kΩ, R4=5.36kΩ, and the microcontroller is GD32, the normal voltage at point C is approximately 2.5V.
[0067] Point C is connected to the microcontroller's interrupt pin and can be configured to be triggered by a falling edge. When the 12V main power supply voltage drops to approximately 11V, the voltage at point C drops to approximately 2.32V, which is below the voltage drop threshold (e.g., 2.35V). The interrupt pin detects the falling edge and triggers the interrupt.
[0068] After the microcontroller confirms the power failure, it outputs bypass switching control pin 1 and bypass switching control pin 2 through two I / O ports, that is, outputs a high-level control signal and a low-level control signal. These two signals are converted into 5V drive signals by subsequent drive circuits (such as transistors) to control the operation of the optical bypass switch.
[0069] According to the embodiments of this application, the voltage divider network composed of R2 and R4 directly draws power from the 12V main power supply, and the voltage divider point C is connected to the microcontroller's interrupt pin. This allows the power-down interrupt to be triggered before the 12V voltage drops significantly (e.g., to 11V), greatly improving the microcontroller's response speed to the early power-down state of the main power supply. This provides sufficient switching time for the optical bypass switch to perform bypass protection actions. At the same time, this circuit does not require a large-capacity energy storage capacitor and a dedicated voltage detection chip. It only uses two resistors to achieve accurate power-down threshold setting, effectively simplifying the circuit design, reducing the PCB area, lowering component costs, and avoiding the risk of protection failure caused by the decrease in capacitor value under high-temperature environments. This significantly improves the reliability and environmental adaptability of the optical port network power-down bypass protection.
[0070] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0071] Obviously, those skilled in the art should understand that the various units or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0072] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for power-off bypass protection of an optical port network, characterized in that, include: Divide the 12V main power supply and detect the voltage division voltage corresponding to the 12V main power supply voltage at the voltage division point; Determining whether the voltage divider meets a preset power-down condition includes: triggering a falling edge interrupt when the voltage divider changes from a high level to a low level; continuously acquiring the voltage divider for at least two detection cycles during the falling edge interrupt; and determining that the preset power-down condition is met if the voltage divider for at least two detection cycles is less than or equal to a preset voltage divider power-down threshold. If the voltage divider meets the preset power-down condition, a bypass control signal is output to control the optical bypass switch to perform a bypass protection action. The power required to perform the bypass protection action is provided by the 5V operating power supply converted from the 12V main power supply. This allows for the identification of the early power-down state of the 12V main power supply before it drops significantly, reserving sufficient switching time for the optical bypass switch to perform the bypass protection action. The remaining voltage after the 12V main power supply drops continuously supplies power to the optical bypass switch until the optical bypass switch completes the optical path bypass switching.
2. The optical port network power-off bypass protection method according to claim 1, characterized in that, The bypass control signal includes a high-level control signal and a low-level control signal, and the control of the optical bypass switch to perform bypass protection actions includes: The high-level control signal and the low-level control signal are level-converted to obtain a 5V drive signal; The 5V drive signal controls the optical bypass switch to perform bypass protection.
3. The optical port network power-off bypass protection method according to claim 1, characterized in that, After the output bypass control signal controls the optical bypass switch to perform bypass protection action, the method further includes: Determine whether the voltage divider meets a preset power-on condition, wherein the preset power-on condition is that the voltage divider is greater than a preset voltage divider power-off threshold; If the voltage divider meets the preset power-on conditions, a power-on reset control signal is output to control the optical bypass switch to perform a power-on reset action.
4. The optical port network power-off bypass protection method according to claim 3, characterized in that, The step of determining whether the voltage divider meets the preset power-on conditions includes: When the voltage divider changes from low to high, a rising edge interrupt is triggered. The voltage divider voltage is continuously acquired for at least two detection cycles during the rising edge interruption; If the voltage divider voltage in at least two detection cycles is greater than the preset voltage divider power-off threshold, then the preset power-on condition is determined to be met.
5. A power-off bypass protection circuit for optical network, characterized in that, include: The voltage divider detection circuit is connected to the 12V main power supply and is used to divide the 12V main power supply voltage and detect the voltage divider voltage corresponding to the 12V main power supply voltage at the voltage divider point. A voltage regulator circuit, connected to the 12V main power supply, is used to convert the 12V main power supply into a 5V operating power supply. A microcontroller is connected to the voltage divider detection circuit. The voltage divider point of the voltage divider detection circuit is connected to the interrupt pin of the microcontroller. The microcontroller receives the voltage divided by ... The voltage regulation and conversion circuit is also used to supply power to the bypass protection action through the 5V working power supply, so as to identify the early power failure state of the 12V main power supply before the 12V main power supply drops significantly, reserve sufficient switching time for the optical bypass switch to perform the bypass protection action, and use the residual voltage after the 12V main power supply drops to continuously supply power to the optical bypass switch until the optical bypass switch completes the optical path bypass switching.
6. The optical port network power-off bypass protection circuit according to claim 5, characterized in that, The voltage divider detection circuit includes a first voltage divider resistor and a second voltage divider resistor. One end of the first voltage divider resistor is connected to the 12V main power supply, and the other end of the first voltage divider resistor is connected to one end of the second voltage divider resistor to form the voltage divider point. The other end of the second voltage divider resistor is grounded.
7. The optical port network power-off bypass protection circuit according to claim 5, characterized in that, The bypass control signal includes a high-level control signal and a low-level control signal, and the optical port network power-down bypass protection circuit further includes: The driving circuit is connected to the microcontroller and the optical bypass switch respectively, and is used to convert the high-level control signal and the low-level control signal into a 5V driving signal; through the 5V driving signal, the optical bypass switch is controlled to perform a bypass protection action.
8. The optical port network power-off bypass protection circuit according to claim 5, characterized in that, The microcontroller is also used to determine whether the voltage divider meets the preset power-on condition, wherein the preset power-on condition is that the voltage divider is greater than the preset voltage divider power-off threshold; when the preset power-on condition is met, a power-on reset control signal is output to control the optical bypass switch to perform a power-on reset action.
Citation Information
Patent Citations
Intelligent optical-port bypass switching protective system
CN204425348U
Power failure monitoring protection circuit, network security transmission card and security equipment
CN218633980U