Cascade device

文档序号:911954 发布日期:2021-02-26 浏览:7次 中文

阅读说明:本技术 级联设备 (Cascade device ) 是由 黄炎坡 于 2020-10-27 设计创作,主要内容包括:本申请公开了一种级联设备,包括分光模块、光通道变换组件和开始正常工作时刻早于中央处理器开始正常工作时刻的选通模式控制器。分光模块将上、下行设备的光信号分为两路,分别传输至光通道变换组件和相应光模块。光通道变换组件基于各管脚间的连通关系、管脚与电源和地的连接关系处于内部连通模式和外部连通模式。选通模式控制器电源信号、CPU状态、光模块LOS信号、光模块接收光功率信息、光通道变化组件的各管脚间的连通关系,通过控制光通道变化组件中管脚与电源和地的连接关系控制光通道变化组件处于相应工作模式,从而在级联设备处于异常状况时,对整个级联系统实现有效地应急处理,保障级联系统正常工作,提高整个级联链路的可靠性和稳定性。(The application discloses cascade equipment, which comprises a light splitting module, an optical channel conversion component and a gating mode controller, wherein the time of starting normal work is earlier than that of starting normal work of a central processing unit. The optical splitting module splits the optical signals of the uplink and downlink devices into two paths, and the two paths are respectively transmitted to the optical channel conversion assembly and the corresponding optical module. The optical channel conversion assembly is in an internal communication mode and an external communication mode based on the communication relation among the pins and the connection relation between the pins and the power supply and the ground. The gating mode controller is used for controlling a power supply signal, a CPU state, an LOS signal of an optical module, optical module receiving optical power information and the communication relation among all pins of an optical channel change assembly, and controlling the optical channel change assembly to be in a corresponding working mode by controlling the connection relation among the pins in the optical channel change assembly, a power supply and the ground, so that when the cascade equipment is in an abnormal state, effective emergency treatment is realized on the whole cascade system, the normal work of the cascade system is guaranteed, and the reliability and the stability of the whole cascade link are improved.)

1. A cascade device comprises a first optical module, a second optical module and a central processing unit, and is characterized by also comprising a light splitting module, an optical channel conversion assembly and a gating mode controller, wherein the time of starting normal work is earlier than the time of starting normal work of the central processing unit;

the optical splitting module divides optical signals output by the uplink equipment or the downlink equipment into a first path of optical signals and a second path of optical signals, transmits the first path of optical signals to the optical channel conversion component, and transmits the second path of optical signals to the corresponding optical module;

the optical channel conversion assembly works in an internal communication mode or an external communication mode; if the optical signal link is in the internal communication mode, the optical signal link between the uplink equipment and the downlink equipment is communicated through the optical channel conversion component; if the optical signal link is in the external communication mode, the optical signal link between the uplink equipment and the downlink equipment is communicated through the first optical module, the CPU and the second optical module;

and the gating mode controller enables an optical signal link to be in a connected state by controlling the connection relation between the optical channel conversion assembly and a power supply and the ground according to a power supply signal, a CPU state, an optical module LOS signal, optical module receiving optical power information and the connection relation between pins of the optical channel conversion assembly.

2. The cascade device of claim 1, wherein the optical channel transform component is further operable in a default operating mode; if the gating mode controller is in an abnormal working state, the optical channel conversion assembly is in a default working mode, and an optical signal link between the uplink equipment and the downlink equipment is communicated through the optical channel conversion assembly; and the gating mode controller is in a normal working state, and the gating mode controller controls the grounding pin and the power connection pin of the optical channel conversion assembly to change the default working mode into the internal communication mode or the external communication mode.

3. The cascade device of claim 2, wherein the optical channel changing component comprises an optical switch with a total number of pins of not less than 8, a first switch tube and a second switch tube;

the optical switch is connected or disconnected with the power supply through the open-close state of the first switch tube, and the optical switch determines whether the optical switch is grounded through the open-close state of the second switch tube; the on-off states of the first switch tube and the second switch tube are determined by the gating mode controller according to the power supply signal, the CPU state, the optical module LOS signal and the optical module receiving optical power information;

the optical channel conversion assembly is in the default working mode and the internal communication mode, the optical switch is not connected with the power supply and the ground, and the optical switch transmits an optical signal output by the accessed uplink equipment to the downlink equipment through an internal pin communication line; the optical channel conversion assembly is in the external communication mode, the optical switch is communicated with the power supply through the first switch tube and is grounded through the second switch tube, and an optical signal output by the uplink device is transmitted to the downlink device through the first optical module, the central processing unit and the second optical module.

4. The cascade device of claim 3, wherein the optical switch is a mechanical optical switch, the first switch transistor is a PMOS transistor, and the second switch transistor is an NMOS transistor;

a first side pin of the mechanical optical switch is connected with the uplink device through an optical fiber and a first path of optical signal split by the optical splitting module, a second side pin of the mechanical optical switch is connected with the uplink device through the optical fiber, a second side mirror image pin of the mechanical optical switch is connected with the uplink device and an optical module output optical signal connected with the uplink device, a third side pin of the mechanical optical switch is connected with the downlink device through the optical fiber and an optical module output optical signal connected with the downlink device, a third side mirror image pin of the mechanical optical switch is connected with the downlink device through the optical fiber, a fourth side mirror image pin of the mechanical optical switch is connected with the downlink device through the optical fiber and a first path of optical signal split by the optical splitting module, the first pin is connected with a drain electrode of;

the grid electrode of the PMOS tube is connected to a control signal of the gating mode controller, and the source electrode of the PMOS tube is connected with the power supply; the grid electrode of the NMOS tube is connected to a control signal of the gating mode controller, and the source electrode of the NMOS tube is grounded.

5. The cascade device of claim 4, wherein the optical fibers of the upstream device and the downstream device are linked to fiber flange adapters to enable optical signals of the upstream device and the downstream device to be coupled to internal circuitry via fiber jumpers.

6. The cascade device of any one of claims 1 to 5, wherein the gating mode controller is configured to invoke a memory-stored control signal generation program to perform the following steps:

if the power good signal is not valid, sending a control signal for disconnecting the power and the ground to the optical channel conversion assembly so as to enable the optical channel conversion assembly to be in the internal communication mode;

if detecting that the central processing unit has no heartbeat, sending a control signal for disconnecting the power supply and the ground to the optical channel conversion assembly so as to enable the optical channel conversion assembly to be in the internal communication mode;

if at least one of the LOS signals of the first optical module and the second optical module is detected to be high level, a control signal for disconnecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in the internal communication mode;

if it is detected that the LOS signals of the first optical module and the second optical module are both low level, and the receiving optical powers of the first optical module and the second optical module are both lower than a preset power threshold, sending a control signal for disconnecting the connection with the power supply and the ground to the optical channel conversion assembly so that the optical channel conversion assembly is in the internal communication mode;

if the power good signal is detected to be effective and the central processing unit has a heartbeat, both the LOS signals of the first optical module and the second optical module are low level, and the receiving optical power of the first optical module and the second optical module is not lower than the preset power threshold value, a control signal for connecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in the external communication mode.

7. The cascade device of claim 6, wherein the gating mode controller is a CPLD or an FPGA, the gating mode controller including a first register, a second register, a third register, a fourth register, and a fifth register;

the first register is used for storing data information used for identifying heartbeat data written by the central processing unit at intervals of a first preset time interval, and if the gating mode controller detects that the data stored in the first register does not change when exceeding a first preset time threshold value, the central processing unit is judged to have no heartbeat;

the second register is used for storing a comparison result of the numerical relationship between the received light power of the first optical module written in according to the corresponding data format and the preset power threshold;

the third register is used for storing the LOS signal of the first optical module written by the gating mode controller according to a corresponding data format;

the fourth register is used for storing a comparison result of the numerical relationship between the received light power of the second optical module written in according to the corresponding data format and the preset power threshold;

the fifth register is used for storing the LOS signal of the second optical module written by the gating mode controller according to the corresponding data format.

8. The cascade device of claim 6, wherein the central processor writes 0x55 and 0xAA to the first register at every first predetermined time interval.

9. The cascade device as claimed in claim 7, wherein the central processor is connected to the first optical module and the second optical module via an I2C channel, and obtains received optical power information of the first optical module and the second optical module via the I2C channel;

the central processing unit writes the comparison result of the numerical relationship between the received optical power of the first optical module and the preset power threshold value into the second register through the I2C channel according to the corresponding data format, and writes the comparison result of the numerical relationship between the received optical power of the second optical module and the preset power threshold value into the fourth register through the I2C channel according to the corresponding data format.

10. The cascade device as claimed in claim 7, wherein the gating mode controller is connected to the first and second optical modules through an I2C channel, and acquires received optical power information of the first and second optical modules through the I2C channel;

and the gating mode controller writes the comparison result of the numerical relationship between the received optical power of the first optical module and the preset power threshold into the second register according to a corresponding data format, and writes the comparison result of the numerical relationship between the received optical power of the second optical module and the preset power threshold into the fourth register according to a corresponding data format.

Technical Field

The application relates to the technical field of internet, in particular to cascade equipment.

Background

With the development of internet technology, the network scale is larger and larger, the networking modes of current servers and network processing devices are also diversified, and the cascade connection is widely applied to the server networking and the network processing device networking as a common networking mode.

Cascade refers to the output of one system as the input of another system, and the cascade device of the whole system applying the cascade mode can be called as a cascade system. In a cascade system, an intermediate device that connects an upstream device and a downstream device is called a cascade device. In the cascade system, an optical module is used as a cascade device to perform the association between the uplink device and the downlink device, as shown in fig. 1 and 2, in the drawing, RX is a receiving end, TX is a transmitting end, and LOS is an indication of an optical signal LOSs of the optical module, and when the level is low, the indication is normal; when high, signal LOSS is indicated. I2C (Inter-Integrated Circuit) is a bidirectional two-wire synchronous serial bus, I/O (input/output) is the input and output of data between an internal memory and an external memory or other peripheral devices such as CPLDs (Complex Programmable Logic devices), and optical fiber connections are usually used between the devices. Specifically, in the existing cascade device, optical fibers of an uplink device and a downlink device are directly connected to an optical module, and are linked to a Central Processing Unit (CPU) of the cascade device.

For the existing cascade system, when the CPU of the cascade device is not powered on and is connected with the optical fibers of the uplink device and the downlink device, no signal is linked, and the link of the whole cascade system is interrupted. When the LOS signal of the optical module is effective, the cascade device cannot receive the signal, and the link of the whole cascade system is interrupted. When the receiving optical power of the optical module is too low, the cascade device cannot normally receive signals, and the error rate, the packet error rate and the packet loss rate of the whole cascade system will increase. The cascade device is located in the middle of the network, and physically plays a role in connecting the uplink device and the downlink device, and once the middle cascade device fails or cannot receive and process data, the service of the whole network link is directly interrupted.

In view of this, how to perform emergency processing on the entire cascade system to ensure the normal operation of the cascade system and improve the reliability of the entire cascade link when the cascade device is in an abnormal state is a technical problem that needs to be solved by technical personnel in the field.

Disclosure of Invention

The application provides a cascade device, when the cascade device is in an abnormal condition, the effective emergency treatment is realized on the whole cascade system, the normal work of the cascade system is ensured, and the reliability and the stability of the whole cascade link are improved.

In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:

the embodiment of the invention provides cascade equipment, which comprises a first optical module, a second optical module and a central processing unit,

the system comprises a light splitting module, an optical channel conversion component and a gating mode controller, wherein the time of starting normal work is earlier than the time of starting normal work of a central processing unit;

the optical splitting module divides optical signals output by the uplink equipment or the downlink equipment into a first path of optical signals and a second path of optical signals, transmits the first path of optical signals to the optical channel conversion component, and transmits the second path of optical signals to the corresponding optical module;

the optical channel conversion assembly works in an internal communication mode or an external communication mode; if the optical signal link is in the internal communication mode, the optical signal link between the uplink equipment and the downlink equipment is communicated through the optical channel conversion component; if the optical signal link is in the external communication mode, the optical signal link between the uplink equipment and the downlink equipment is communicated through the first optical module, the CPU and the second optical module;

and the gating mode controller enables an optical signal link to be in a connected state by controlling the connection relation between the optical channel conversion assembly and a power supply and the ground according to a power supply signal, a CPU state, an optical module LOS signal, optical module receiving optical power information and the connection relation between pins of the optical channel conversion assembly.

Optionally, the optical channel conversion module further operates in a default operating mode; if the gating mode controller is in an abnormal working state, the optical channel conversion assembly is in a default working mode, and an optical signal link between the uplink equipment and the downlink equipment is communicated through the optical channel conversion assembly; and the gating mode controller is in a normal working state, and the gating mode controller controls the grounding pin and the power connection pin of the optical channel conversion assembly to change the default working mode into the internal communication mode or the external communication mode.

Optionally, the optical channel conversion component includes an optical switch, a first switch tube and a second switch tube, where the total number of pins is not less than 8;

the optical switch is connected or disconnected with the power supply through the open-close state of the first switch tube, and the optical switch determines whether the optical switch is grounded through the open-close state of the second switch tube; the on-off states of the first switch tube and the second switch tube are determined by the gating mode controller according to the power supply signal, the CPU state, the optical module LOS signal and the optical module receiving optical power information;

the optical channel conversion assembly is in the default working mode and the internal communication mode, the optical switch is not connected with the power supply and the ground, and the optical switch transmits an optical signal output by the accessed uplink equipment to the downlink equipment through an internal pin communication line; the optical channel conversion assembly is in the external communication mode, the optical switch is communicated with the power supply through the first switch tube and is grounded through the second switch tube, and an optical signal output by the uplink device is transmitted to the downlink device through the first optical module, the central processing unit and the second optical module.

Optionally, the optical switch is a mechanical optical switch, the first switch tube is a PMOS tube, and the second switch tube is an NMOS tube;

a first side pin of the mechanical optical switch is connected with the uplink device through an optical fiber and a first path of optical signal split by the optical splitting module, a second side pin of the mechanical optical switch is connected with the uplink device through the optical fiber, a second side mirror image pin of the mechanical optical switch is connected with the uplink device and an optical module output optical signal connected with the uplink device, a third side pin of the mechanical optical switch is connected with the downlink device through the optical fiber and an optical module output optical signal connected with the downlink device, a third side mirror image pin of the mechanical optical switch is connected with the downlink device through the optical fiber, a fourth side mirror image pin of the mechanical optical switch is connected with the downlink device through the optical fiber and a first path of optical signal split by the optical splitting module, the first pin is connected with a drain electrode of;

the grid electrode of the PMOS tube is connected to a control signal of the gating mode controller, and the source electrode of the PMOS tube is connected with the power supply; the grid electrode of the NMOS tube is connected to a control signal of the gating mode controller, and the source electrode of the NMOS tube is grounded.

Optionally, optical fibers of the uplink device and the downlink device are linked to an optical fiber flange adapter, so that optical signals of the uplink device and the downlink device are accessed to an internal circuit through an optical fiber jumper.

Optionally, the gating mode controller is configured to call a control signal generation program stored in the memory to perform the following steps:

if the power good signal is not valid, sending a control signal for disconnecting the power and the ground to the optical channel conversion assembly so as to enable the optical channel conversion assembly to be in the internal communication mode;

if detecting that the central processing unit has no heartbeat, sending a control signal for disconnecting the power supply and the ground to the optical channel conversion assembly so as to enable the optical channel conversion assembly to be in the internal communication mode;

if at least one of the LOS signals of the first optical module and the second optical module is detected to be high level, a control signal for disconnecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in the internal communication mode;

if it is detected that the LOS signals of the first optical module and the second optical module are both low level, and the receiving optical powers of the first optical module and the second optical module are both lower than a preset power threshold, sending a control signal for disconnecting the connection with the power supply and the ground to the optical channel conversion assembly so that the optical channel conversion assembly is in the internal communication mode;

if the power good signal is detected to be effective and the central processing unit has a heartbeat, both the LOS signals of the first optical module and the second optical module are low level, and the receiving optical power of the first optical module and the second optical module is not lower than the preset power threshold value, a control signal for connecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in the external communication mode.

Optionally, the gating mode controller is a CPLD or an FPGA, and the gating mode controller includes a first register, a second register, a third register, a fourth register, and a fifth register;

the first register is used for storing data information used for identifying heartbeat data written by the central processing unit at intervals of a first preset time interval, and if the gating mode controller detects that the data stored in the first register does not change when exceeding a first preset time threshold value, the central processing unit is judged to have no heartbeat;

the second register is used for storing a comparison result of the numerical relationship between the received light power of the first optical module written in according to the corresponding data format and the preset power threshold;

the third register is used for storing the LOS signal of the first optical module written by the gating mode controller according to a corresponding data format;

the fourth register is used for storing a comparison result of the numerical relationship between the received light power of the second optical module written in according to the corresponding data format and the preset power threshold;

the fifth register is used for storing the LOS signal of the second optical module written by the gating mode controller according to the corresponding data format.

Optionally, the central processing unit writes 0x55 and 0xAA to the first register at intervals of a first preset time.

Optionally, the central processing unit is connected to the first optical module and the second optical module through an I2C channel, and acquires received optical power information of the first optical module and the second optical module through the I2C channel;

the central processing unit writes the comparison result of the numerical relationship between the received optical power of the first optical module and the preset power threshold value into the second register through the I2C channel according to the corresponding data format, and writes the comparison result of the numerical relationship between the received optical power of the second optical module and the preset power threshold value into the fourth register through the I2C channel according to the corresponding data format.

Optionally, the gating mode controller is connected to the first optical module and the second optical module through an I2C channel, and acquires received optical power information of the first optical module and the second optical module through the I2C channel;

and the gating mode controller writes the comparison result of the numerical relationship between the received optical power of the first optical module and the preset power threshold into the second register according to a corresponding data format, and writes the comparison result of the numerical relationship between the received optical power of the second optical module and the preset power threshold into the fourth register according to a corresponding data format.

The technical scheme provided by the application has the advantages that the optical signals of the uplink equipment and the downlink equipment are divided into two paths by the optical splitting module, one path of optical signals is subjected to signal transmission through the original link of the optical module and the CPU, the other path of optical signals is transmitted through the optical channel conversion assembly, the working mode of the optical channel conversion assembly is determined by the communication relation among all pins and the connection relation between the control pin of the gating mode controller and the power supply and the ground, the optical channel conversion assembly is controlled to be in an internal communication state under the abnormal conditions of the cascade equipment such as incomplete power-on of the CPU, no work of the CPU, effective LOS (local output) signals of the optical module, low received optical power of the optical module and the like, so that the optical signals between the uplink equipment and the downlink equipment can be communicated through the optical channel conversion assembly, the effective emergency treatment of the whole cascade system is realized, the uplink optical fiber and, the risk of link disconnection of the cascade system is reduced, and the reliability and stability of the whole cascade link are improved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a schematic diagram of a framework structure of a cascade network in an exemplary cascade system in the prior art according to an embodiment of the present invention;

fig. 2 is a schematic diagram of an internal structure of a cascade device in an exemplary cascade system in the prior art according to an embodiment of the present invention;

fig. 3 is a schematic diagram of a framework structure of a cascade device according to an embodiment of the present invention;

fig. 4 is a schematic diagram of an internal structure of a cascade device according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of an optical switch of an illustrative example provided by the embodiment of the present invention in one state;

fig. 6 is a schematic structural diagram of an optical switch of an illustrative example provided by the embodiment of the present invention in another state;

fig. 7 is a schematic workflow diagram of a cascading device according to an embodiment of the present invention;

fig. 8 is an equivalent diagram of an optical link channel when the entire cascade device provided in the embodiment of the present invention is not powered on;

fig. 9 is an equivalent diagram of an optical link channel when a power signal is not valid in the cascading device according to the embodiment of the present invention;

fig. 10 is an equivalent diagram of an optical link channel of the cascade device provided in the embodiment of the present invention when the CPU does not operate;

fig. 11 is an equivalent diagram of an optical link channel of the cascade device according to the embodiment of the present invention when an LOS signal of an optical module is at a high level;

fig. 12 is an equivalent diagram of an optical link channel when the received power of an optical module is too low in the cascade device according to the embodiment of the present invention;

fig. 13 is an equivalent diagram of another optical link channel when the optical module receiving power of the cascade device provided in the embodiment of the present invention is too low;

fig. 14 is an equivalent diagram of an optical link channel in the external connection mode of the tandem device according to the embodiment of the present invention.

Detailed Description

In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.

Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.

Referring to fig. 3, fig. 3 is a schematic diagram of a framework structure of a cascade device according to an embodiment of the present invention, where the embodiment of the present invention includes the following:

the cascade device includes a first optical module 31, a second optical module 32, a central processing unit 33, an optical splitting module 34, an optical channel transforming component 35 and a gating mode controller 36.

The optical splitting module 34 splits an optical signal output by the uplink device or the downlink device into a first optical signal and a second optical signal, transmits the first optical signal to the optical channel conversion module, and transmits the second optical signal to the corresponding optical module. For example, the optical splitting module 34 splits a received optical signal output by the uplink device into two optical signals, one of which is transmitted to the first optical module, so that the first optical module 31 is connected to the uplink device, the optical signal output by the downlink device is firstly accessed to the optical splitting module 34, and is split into two optical signals under the action of the optical splitting module 34, and the other one of which is transmitted to the second optical module 32, so that the second optical module 32 is connected to the downlink device, and the central processing unit 33 can be connected to the first optical module 31 and the second optical module 32 through I2C. The optical splitting module 34 transmits another optical signal to the optical channel conversion module 35, so that whether a link of the optical channel conversion module 35 is connected or not is controlled, so that two optical links exist for the optical signal transmitted between the uplink device and the downlink device at the same time, taking the case that the uplink device transmits data to the downlink device, one of the optical signals output by the uplink device is transmitted to the downlink device through the optical splitting module 34, the first optical module 31, the central processing unit 33, and the second optical module 32, that is, the existing optical link, and the other optical signal is transmitted to the downlink device through the optical splitting module 34 and the optical channel conversion module 35. The light splitting module 34 may be any optical element having a light splitting function, such as a prism, a light splitter, and the like, and an appropriate splitting ratio may be selected according to characteristics of each component in the system, such as transmission, reception, attenuation, and the like, and those skilled in the art may select the splitting ratio according to actual requirements, which is not limited in this application.

In the application, the optical channel conversion module 35 works in different working modes based on the connection relationship between the pins and the power supply and the ground, the working mode of the optical channel conversion module is controlled by the gating mode controller 36 based on the actual running state information of the whole cascade system, and the working mode is an internal connection mode or an external connection mode, so that the whole cascade system can always be connected with the uplink and downlink devices, and the normal work of the cascade system is ensured.

The power-on speed of the gating mode controller 36 is greater than the power-on speed of the central processing unit 33, that is, the time when the gating mode controller 36 starts to work normally is earlier than the time when the central processing unit starts to work normally, so that after the cascade system is powered on, the gating mode controller 36 is in a working state first, and whether the power-on action of the central processing unit 33 is completed or not can be monitored according to the monitored power signal. The gating pattern controller 36 may be, for example, a CPLD (Complex Programmable Logic Device) or an FPGA (Field Programmable Gate Array), and of course, other electronic devices that are Programmable or can be embedded with a computer program and have a fast power-on speed may also be used, which does not affect the implementation of the present application. The gating mode controller 36 controls the optical channel changing module 35 to be in the internal communication mode or the external communication mode according to whether an abnormality occurs in the cascade device. Whether the cascade equipment is abnormal can be judged through a power supply signal, a CPU state, an LOS signal of an optical module and received optical power information of the optical module. That is, the gating mode controller 36 can control the optical channel changing component 35 to be in the internal communication mode or the external communication mode according to the power signal, the CPU state, the optical module LOS signal, and the optical module received optical power information. If the gating mode controller 36 determines that the optical channel changing module 35 is in the internal communication mode and the link of the entire cascade system is not broken, it sends a control signal to the optical channel changing module 35 to keep the internal communication mode, so that the optical signal links between the uplink device and the downlink device are communicated through the optical channel changing module. If the gating mode controller 36 determines that the optical channel changing component 35 is in the external communication mode, and the link of the entire cascade system is not broken, a control signal for keeping the optical channel changing component 35 in the external communication mode is sent to the optical channel changing component 35, so that the optical signal link between the uplink device and the downlink device is communicated through the first optical module and the second optical module.

Finally, it should be noted that the cascading device of the present application may be applied to optical link systems of all cascading systems, such as a server networking form in a cloud edge mode, an SDN cascading networking form, serial modes of other optical modules, and the like, and those skilled in the art may select the cascading device according to actual situations.

The technical proposal provided by the embodiment of the invention divides the optical signals of the uplink equipment and the downlink equipment into two paths by using the optical splitting module, one path of the optical signals is transmitted by the optical module and the CPU which are the original links, the other path of the optical signals is transmitted by the optical channel conversion component, the working mode of the optical channel conversion component is determined by the communication relation among all pins and the connection relation between the gating mode controller control pin and the power supply and the ground, and the optical channel conversion component is controlled to be in an internal communication state under the abnormal conditions of the cascade equipment such as incomplete power-on of the CPU, non-working of the CPU, effective LOS signal of the optical module, low receiving optical power of the optical module and the like, so that the optical signals between the uplink equipment and the downlink equipment can be communicated by the optical channel conversion component, thereby realizing effective emergency treatment of the whole cascade system, directly physically linking the uplink optical fiber and the downlink, the risk of link disconnection of the cascade system is reduced, and the reliability and stability of the whole cascade link are improved.

It can be understood that the operating state of the optical channel transforming component 35 is determined by the connection relationship between the pins and the gating mode controller 36, in other words, the control of the two operating states needs to be implemented only when the gating mode controller 36 is in a normal operating state, and the gating mode controller 36 inevitably is in an abnormal operating state, if not powered on or has a fault, the optical signal link is disconnected and the cascade device cannot operate normally, based on which, the optical channel transforming component 35 also has a default operating mode, that is, the optical channel transforming component 35 controls the connection relationship between the pins and the power supply and the ground to be in different operating modes based on the operating state of the gating mode controller 36. The whole cascade equipment is not powered on or the gating mode controller 36 is in a fault state, the optical channel conversion component 35 is in a default working mode, namely in a connected state, the uplink equipment, the downlink equipment, the light splitting module 34 and the optical channel conversion component 35 form an optical link, so that the uplink equipment and the downlink equipment can normally transmit data, after the whole cascade equipment is powered on or the working state is normal, the working mode of the optical channel conversion component 35 is controlled by the gating mode controller 36 based on the actual running state information of the whole cascade system, and the working mode is an internal connected mode or an external connected mode, so that the whole cascade equipment can always be connected with the uplink equipment and the downlink equipment, and the normal work of the cascade system is ensured.

According to the embodiment, the default working mode is set, so that the link disconnection risk of the cascade system is reduced, and the reliability and the stability of the whole cascade link are improved.

In the above embodiment, how to structure the optical channel transforming component 35 is not limited, and the embodiment also provides an optical channel transforming component 35 in a specific implementation manner, which may include the following contents:

the optical channel conversion assembly comprises an optical switch, a first switch tube and a second switch tube, wherein the total number of pins of the optical switch is not less than 8; the optical switch is connected or disconnected with the power supply by controlling the open-close state of the first switch tube, and the optical switch determines whether the second switch tube is grounded or not by controlling the open-close state of the second switch tube; the on-off states of the first switch tube and the second switch tube are determined by the gating mode controller according to a power supply signal, a CPU state, an LOS signal of the optical module and optical module receiving optical power information; the optical channel conversion assembly is in a default working mode and an internal communication mode, the optical switch is not connected with a power supply and the ground, and the optical switch transmits an optical signal output by the accessed uplink equipment to the downlink equipment through an internal pin communication circuit; the optical channel conversion assembly is in an external communication mode, the optical switch is communicated with a power supply through the first switch tube and is grounded through the second switch tube, and an optical signal output by the uplink equipment is transmitted to the downlink equipment through the first optical module, the central processing unit and the second optical module.

In this embodiment, the optical switch may be any optical switch, such as a mechanical optical switch or an electronic optical switch, and the first switching tube and the second switching tube may also be any switching tubes, such as a transistor, a diode, etc., which can be selected by those skilled in the art according to the actual situation, and the present application is not limited thereto. As a specific implementation manner of this embodiment, the optical switch may be, for example, a mechanical optical switch such as a D2x2B type optical switch, the first switch transistor may be a PMOS transistor, and the second switch transistor may be an NMOS transistor. The mechanical optical switch is characterized in that a first side pin of the mechanical optical switch is connected with a first path of optical signal which is separated by an uplink device through an optical fiber and is connected with the uplink device through an optical fiber, a second side pin of the mechanical optical switch is connected with an output optical signal of an optical module which is connected with the uplink device through an optical fiber, a second side mirror image pin of the mechanical optical switch is connected with an output optical signal of the optical module which is connected with the downlink device through an optical fiber, a third side pin of the mechanical optical switch is connected with an output optical signal of the optical module which is connected with the downlink device through an optical fiber, a fourth side mirror image pin of the mechanical optical switch is connected with a first path of optical signal which is. For a P-channel MOS tube, namely PMOS, Vgs is conducted when the Vgs is smaller than a certain value, and the method is suitable for the condition that a source electrode is connected with VCC; for an N-channel MOS tube, namely an NMOS, the Vgs is conducted when the Vgs is larger than a certain value, and the N-channel MOS tube is suitable for the situation when a source electrode is grounded; the grid of the NMOS tube is connected to a control signal of the gating mode controller, and the source is grounded.

The embodiment adopts the mechanical optical switch, the PMOS tube and the NMOS tube to jointly realize optical channel selection, so that the operation is more convenient and faster, and the cost is not high.

In the above embodiment, how to control the gating mode controller 36 is not limited, and this embodiment also provides an optical switch mode control implementation in a specific implementation, which may include the following:

the gating pattern controller 36 is used to invoke the memory-stored control signal generation program to perform the following steps:

if it is detected that the power good signal is not asserted, a control signal for disconnecting the power and ground is sent to the optical channel conversion module 35 to place the optical channel conversion module 35 in the internal connection mode. The gating mode controller 36 can sense POWER GOOD signals of the POWER supply through one or more I/O, the POWER GOOD signals can be used for identifying information such as POWER failure or incomplete POWER supply, when the complete machine is not powered on, the gating mode controller 36 does not have POWER, after the complete machine is powered on again, the gating mode controller 36 can supply POWER faster than a CPU (central processing unit), and the CPU can be activated faster, so that POWER supply information of the CPU can be obtained by monitoring the POWER GOOD signals, whether the CPU in the system is in a non-working state due to non-POWER supply can be accurately judged based on the POWER GOOD signals, the signals cannot be transmitted according to an original link, and a signal link of an upstream device and a downstream device needs to be switched on through the optical channel conversion component 35.

If no heartbeat is detected by the central processing unit, a control signal for disconnecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in an internal communication mode. Whether the central processing unit has a heartbeat is suitable for judging whether the central processing unit works normally, when the central processing unit does not work, signals cannot be transmitted according to an original link, and a signal link of uplink and downlink equipment needs to be connected through the optical channel conversion component 35.

And if at least one of the LOS signals of the first optical module and the second optical module is detected to be in a high level, sending a control signal for disconnecting the power supply and the ground to the optical channel conversion assembly so as to enable the optical channel conversion assembly to be in an internal communication mode. When the LOSS signal of the optical module is at low level, the LOSS signal shows normal; when the signal level is high, the signal LOSS is indicated, that is, when the LOS signal of the optical module is effective, the cascade device cannot receive the signal, the link of the entire cascade system is interrupted, the signal cannot be transmitted according to the original link, and the signal link of the uplink and downlink device needs to be connected through the optical channel conversion module 35.

If the LOS signals of the first optical module and the second optical module are detected to be low levels, the receiving optical power of the first optical module and the receiving optical power of the second optical module are both lower than a preset power threshold value, and a control signal for disconnecting the connection with a power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in an internal communication mode. When the receiving optical power of the optical module is too low, the cascade device cannot normally receive a signal, and the error rate, the packet error rate, and the packet loss rate of the whole cascade system will increase, in order to avoid this situation, a preset power threshold may be determined based on an actual situation, and after the preset power threshold is lower, the error rate, the packet error rate, and the packet loss rate of the whole cascade system will increase, and the signal is not transmitted according to the original link, but the optical channel conversion component 35 switches on the signal links of the uplink and downlink devices, and transmits the optical signal through the optical channel conversion component 35.

If the condition that power good signals of the power supply are effective and the central processing unit has a heartbeat is detected, both LOS signals of the first optical module and the second optical module are low level, and the receiving optical power of the first optical module and the receiving optical power of the second optical module are not lower than a preset power threshold value, a control signal for connecting the power supply and the ground is sent to the optical channel conversion assembly so that the optical channel conversion assembly is in an external communication mode.

In some embodiments of the present embodiment, the gating mode controller 36 may include a first register, a second register, a third register, a fourth register, and a fifth register;

the first register is used for storing data information used for identifying heartbeat data written by the central processing unit at first preset time intervals, for example, the central processing unit can write 0x55 and 0xAA into the first register at first preset time intervals, for example, 0.5 s. If the gating mode controller detects that the data stored in the first register exceeds a first preset time threshold value, for example, no change occurs within 1s, it is determined that the central processing unit has no heartbeat. The second register is used for storing a comparison result of the numerical relationship between the received light power of the first optical module written according to the corresponding data format and a preset power threshold. The third register is used for storing the LOS signal of the first optical module written by the gating mode controller according to the corresponding data format. And the fourth register is used for storing a comparison result of the numerical relation between the received light power of the second optical module written according to the corresponding data format and a preset power threshold value. The fifth register is used for storing the LOS signal of the second optical module written by the gating mode controller according to the corresponding data format.

In some embodiments of this embodiment, the gating mode controller may obtain the received optical power of the optical module by itself, then compare the received optical power with a preset power threshold, and write the optical power comparison result into the register, that is, the gating mode controller may be connected to the first optical module and the second optical module through the I2C channel, and obtain the received optical power information of the first optical module and the second optical module through the I2C channel; and the gating mode controller writes the comparison result of the numerical relationship between the received light power of the first optical module and the preset power threshold value into the second register according to a corresponding data format, and writes the comparison result of the numerical relationship between the received light power of the second optical module and the preset power threshold value into the fourth register according to a corresponding data format.

In other embodiments of this embodiment, the central processing unit is connected to the first optical module and the second optical module through an I2C channel, and acquires received optical power information of the first optical module and the second optical module through an I2C channel; and the central processing unit writes the comparison result of the numerical relationship between the received light power of the first optical module and the preset power threshold value into the second register through the I2C channel according to the corresponding data format, and writes the comparison result of the numerical relationship between the received light power of the second optical module and the preset power threshold value into the fourth register through the I2C channel according to the corresponding data format. That is, the CPU may perform service connection with the optical modules through the high-speed optical signal, connect the two optical modules through I2C, monitor the received optical power, and compare the optical power with the threshold set by the device; the optical power comparison result is written to a strobe mode controller such as a CPLD through I2C, for example, 0x55, 0xAA may be alternately written to register REG 1 of the CPLD through I2C.

The corresponding data format of each register when writing data can be determined according to the type and the actual scene of the actual gating mode controller, which is not limited in this application. Taking the gating mode controller as the CPLD as an example, the CPLD can receive the optical POWER comparison result written by the CPU through I2C, sense LOS signals of two optical modules through I/O and sense POWER GOOD signals of a POWER supply through one or more I/O; the operating mode of the optical channel transforming component 35 is determined by determining whether the value of REG 1 changes by 0x55 or 0xAA to sense whether the CPU is operating, where the CPLD internal register list is shown in table 1:

TABLE 1 CPLD INTERNAL REGISTER List

As can be seen from the above, the gating mode controller according to the embodiment of the present invention can effectively control the signal direction of the cascade system, so that the data transmission link between the uplink device and the downlink device is not disconnected, and the stability of the cascade system is ensured.

In order to make the technical solutions of the present application more clear to those skilled in the art, the technical solutions of the present application are described by taking an optical channel transforming component 35 composed of a D2x2B type optical switch, a PMOS transistor and an NMOS transistor, and a CPLD as a gating mode controller 36 as examples in conjunction with fig. 4-14, and the structural diagram of the whole cascade device is shown in fig. 4, which may include the following contents:

the optical switch of the D2x2B type can gate different optical channels by controlling the way that pins are connected with a power supply and the ground, the optical switch of the D2x2B type has two modes, namely a Non-self-locking Non-locking mode and a self-locking mode, taking the Non-locking mode as an example, the treatment of bypass and Non-bypass is carried out by using StateA as shown in FIG. 5 and StateB as shown in FIG. 6. The D2x2B mechanical optical switch is connected into an optical path through connecting or blocking an optical signal, the product achieves the switching of the optical path through the control of an electric signal, the excellent design enables the product to have the advantages of high stability, high reliability, low loss, low cost and the like, and the D2x2B mechanical optical switch can be widely used for switching and protecting an optical network. Wherein, Bypass is for referring to can let two networks not pass through intermediate contact system such as the system of network security equipment through specific trigger state such as outage or crash, and direct physical switch-on, so have Bypass back, after network security equipment trouble, can also let the network of connecting on this equipment switch on each other, this time of course this network equipment just can not do the processing to the packet in the network again, the mode that the photoswitch passes through different light channels earlier is shown in table 1:

TABLE 2 optical channel control scheme for optical switches

As shown in fig. 4, the optical fibers of the upstream device and the downstream device are first linked to the optical fiber flange adapter, and the optical fibers are connected to the internal circuits of the devices through the ports of the optical fiber flange adapter, so that the optical signals of the upstream device and the downstream device are connected to the internal circuits through the optical fiber jumpers. The optical fiber jumper is also called an optical fiber connector, which means that connector plugs are arranged at two ends of an optical cable and are used for realizing movable connection of an optical path. Optical signals output by the uplink equipment and the downlink equipment pass through the optical splitter, wherein one path of the optical signals is connected with an optical input port of the optical module, and the other path of the optical signals is connected with a D2x2B optical switch; the output optical signal is connected with the D2x2B optical switch, and the optical output port of the optical module is connected with the D2x2B optical switch. A P1 pin of a D2x2B optical switch is connected with a first optical signal which is branched by an optical splitter through an optical fiber access uplink device, an internal transmission optical signal is connected with the uplink device through an optical fiber access uplink device through a P2 pin, an optical signal which is connected with an optical module and connected with the uplink device through a P2 ' pin, an optical signal which is connected with a downlink device through a P3 pin, an internal transmission optical signal is connected with the downlink device through an optical fiber access downlink device through a P3 ' pin, a first optical signal which is branched by an optical splitter through an optical fiber access downlink device through a P4 ' pin, a 1 pin is connected with a drain D of a PMOS tube, a 10 pin is connected with a drain D of an NMOS tube, and 5 and 6 pins are not connected. A grid G of the PMOS tube is connected with a control signal of the gating mode controller, and a source S is connected with a power supply; the grid G of the NMOS tube is connected to a control signal of the gating mode controller, and the source S is grounded.

The mode control flow chart of the CPLD can be as shown in fig. 7, if the cascade device is not powered on, the optical switch works under State a, the optical switch connects the optical fibers of the uplink device and the downlink device, and the bypass and the link channel of the cascade system are equivalent as shown in fig. 8.

When the cascade device POWER supply is not powered on, the CPLD senses that the POWER supply GOOD does not work, the PMOS and the NMOS are respectively controlled, the optical switch is disconnected from the V + and the GND, the optical switch works in the State a mode at this time, the optical switch is connected with the optical fibers of the uplink device and the downlink device, and the bypass and the link channel of the cascade system are equivalent as shown in fig. 9.

When the CPU does not write 0x55 and 0xAA into the CPLD register REG 1 every 0.5 second, the CPLD judges that the CPU does not work when sensing that the REG 1 does not have data change of 0x55 and 0xAA after exceeding 1 second, and disconnects the optical switch from V + and GND by respectively controlling the PMOS and the NMOS, and at the moment, the optical switch works in a stateA mode, and is connected with optical fibers of uplink and downlink equipment to connect the bypass of the cascade system. The link path equivalent is shown in fig. 10.

When the optical modules of the cascade equipment send out LOS signals, when the CPLD senses that any one of the LOS signals of the two optical modules is at a high level, the connection between the optical switch and V + and GND is disconnected by respectively controlling the PMOS and the NMOS, at the moment, the optical switch works in a stateA mode, the optical switch is connected with optical fibers of uplink equipment and downlink equipment, and the bypass of the cascade system is realized. The link path equivalent is shown in fig. 11.

When the LOS signals of the two optical modules are both low level, the CPU polls the received optical power of the two optical modules through I2C, compares the received optical power with a set value in the device, and modifies the registers REG2 and REG4 in the CPLD to 0x0 according to the corresponding optical module if the received optical power is lower than the set value. When the CPLD senses that any value of REG2 and REG4 is 0x0, the PMOS and the NMOS are respectively controlled to disconnect the optical switch from V + and GND, at the moment, the optical switch works in a stateA mode, the optical switch is connected with optical fibers of uplink equipment and downlink equipment, and the bypass of the cascade system is formed. The link path equivalent is shown in fig. 12. The CPU realizes that the comparison of the optical power is relatively simple, the function can also be independently realized by the CPLD, namely the CPU does not participate in the judgment process and the switching process of the bypass and non-bypass modes at all, the CPLD realizes that the I2C is connected with the optical module, reads the optical power received by the optical module and judges the optical power through internal logic. The overall block diagram at this time is shown in fig. 13.

When the POWER supply GOOD of the cascade equipment is normal, the CPU works normally, LOS signals of the two optical modules are low, and the receiving optical POWER of the two modules reading light by the CPU is not lower than a threshold value, the CPLD respectively controls the PMOS and the NMOS to connect the pins of the optical switches 1 and 10 with the V + and the GND respectively, at the moment, the optical switches work in a StateB mode, optical fiber signals of the optical switches, which are connected with uplink equipment and downlink equipment, are respectively connected to the CPU through the optical modules, and the cascade equipment works in a non-bypass mode. The link path equivalent is shown in fig. 14.

Therefore, the embodiment of the invention realizes effective emergency treatment on the whole cascade system, ensures the normal work of the cascade system and improves the reliability and stability of the whole cascade link.

The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

A cascading device provided by the present application is described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are provided only to help understand the core ideas of the present application. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种光功率检测电路的升压模块

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!