Optical module and power failure warning method based on double-MCU optical module
By adopting the dual MCU optical module solution in the optical communication system, message transmission between optical modules is realized, cumbersome problems of fault handling in the case of power outage of optical network units, and the efficiency and accuracy of fault handling are improved.
Patent Information
- Application Number
- CN202310988488.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
AI Technical Summary
In optical communication systems, when the optical network unit has equipment failure or power failure, the near-end optical module cannot determine the cause of the failure in time, resulting in cumbersome troubleshooting and ineffective solution to the power failure problem.
The dual MCU optical module scheme is adopted, where the main MCU is responsible for the conventional function processing of the optical module and the interaction with the upper computer, the slave MCU is responsible for the transmission and reception of message information, and transmits a power-off alarm message through the optical signal.
It realizes that the near-end optical module timely obtains power-down messages from the far-end optical module, simplifies the fault processing process and avoids unnecessary losses.
Smart Images

Figure CN119445779A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical fiber communication technology, and in particular to an optical module and a power-off alarm method based on a dual-MCU optical module. Background Art
[0002] Optical communication technology is used in new services and application models such as cloud computing, mobile Internet, and video. In optical communication, the optical module is a device that realizes the conversion of optical and electrical signals and is one of the key components in optical communication equipment.
[0003] In the access network communication system, an optical connection is established between the optical line terminal and the optical network unit to achieve data communication. Specifically, the optical line terminal has a near-end optical module, the optical network unit has a far-end optical module, and an optical connection is established between the near-end optical module and the far-end optical module; the optical line terminal sends an optical signal to the far-end optical module through the near-end optical module, so that the optical line terminal sends data to the optical network unit; the optical line terminal receives the optical signal from the far-end optical module through the near-end optical module, so that the optical line terminal receives data from the optical network unit.
[0004] However, in actual applications, when the optical network unit fails due to equipment failure or other reasons, data communication cannot be carried out between the near-end optical module and the far-end optical module, and the control center connected to the optical line terminal cannot determine whether the optical network unit fails due to power failure. It is necessary to find the cause through other means. The process is cumbersome and cannot effectively solve the power failure problem of the optical network unit. Summary of the invention
[0005] The embodiment of the present application provides an optical module and a power-off alarm method based on a dual-MCU optical module, so that a near-end optical module can obtain a power-off message of a far-end optical module in a timely manner.
[0006] In a first aspect, the present application provides an optical module, including:
[0007] Circuit boards;
[0008] A first optical emitting component, electrically connected to the circuit board, the first optical emitting component being configured to emit a first optical signal carrying a first low-frequency message channel, the first low-frequency message channel being used to indicate a power-off message;
[0009] A first main MCU is electrically connected to the circuit board, and the first main MCU is configured to generate a power-off alarm command when the host computer modifies the value of the power-off message enable register to a first value;
[0010] The first slave MCU is connected to the first master MCU and the first optical emitting component. The first slave MCU is configured to receive a power-off alarm command from the first master MCU, load the power-off alarm message stored in the first slave MCU into the first low-frequency message channel, and control the first optical emitting component to cyclically send the first optical signal.
[0011] In a second aspect, the present application provides an optical module, including:
[0012] Circuit boards;
[0013] A second light receiving component, electrically connected to the circuit board, the second light receiving component being configured to receive a first optical signal carrying a first low-frequency message channel;
[0014] a second slave MCU connected to the second optical receiving component, wherein the second slave MCU is configured to, upon receiving the first optical signal and parsing to obtain a power-off alarm message indicated by the first low-frequency message channel, modify the value of the temporary power-off status register in the second slave MCU to a fifth value; and, after the second master MCU reads the value of the temporary power-off status register, modify the value of the temporary power-off status register to a sixth value;
[0015] The second master MCU is connected to the second slave MCU, and the second master MCU is configured to read the value of the power-off status temporary register, modify the value of the power-off alarm status register in the second master MCU to the seventh value, and wait for the host computer to read the value of the power-off alarm status register.
[0016] In a third aspect, the present application provides a power-off alarm method based on a dual MCU optical module, the method comprising:
[0017] The first main MCU generates a power-off alarm command when the host computer modifies the value of the power-off message enable register to the first value;
[0018] The first slave MCU receives the power-off alarm command and turns off the communication response function of the first slave MCU, so that the first master MCU cannot perform communication access to the first slave MCU;
[0019] The first slave MCU loads the power-off alarm message stored in the first slave MCU to the first low-frequency message channel;
[0020] The first MCU controls the first optical emitting component to emit a first optical signal carrying a first low-frequency message channel.
[0021] In a fourth aspect, the present application provides a power-off alarm method based on a dual MCU optical module, the method comprising:
[0022] The second optical receiving component receives the first optical signal carrying the first low-frequency message channel;
[0023] The second slave MCU receives the first optical signal and parses it to obtain a power-off alarm message indicated by the first low-frequency message channel;
[0024] The second slave MCU modifies the value of the power-off status temporary register in the second slave MCU to a fifth value, and enables a communication response function of the second slave MCU, so that the second master MCU can perform communication access to the second slave MCU;
[0025] The second main MCU reads the value of the temporary power-off status register, modifies the value of the power-off alarm status register in the second main MCU to the seventh value, and waits for the host computer to read the value of the power-off alarm status register;
[0026] After the second master MCU reads the value of the temporary power-off status register, the second slave MCU modifies the value of the temporary power-off status register to the sixth value and turns off the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU.
[0027] As can be seen from the above embodiments, the embodiments of the present application provide an optical module and a power-off alarm method based on a dual-MCU optical module. The optical module adopts a dual-MCU solution of a master MCU and a slave MCU. The master MCU is responsible for the conventional general function processing of the optical module and for interacting with the host computer, and the slave MCU is responsible for the sending and receiving processing of message information and for interacting with the master MCU. When the host computer at the receiving end modifies the value of its internal power-off message enable register to the first value, the first master MCU at the receiving end generates a power-off alarm command to indicate that the host computer at the receiving end is powered off; the first slave MCU at the receiving end receives the power-off alarm command from the first master MCU, and the first slave MCU loads the power-off alarm message stored therein to the first low-frequency message channel, and controls the first optical transmitting component to cyclically send the first optical signal to the optical module at the transmitting end until the host computer at the receiving end is powered off. The second optical receiving component of the optical module at the transmitting end receives the first optical signal carrying the first low-frequency message. When the second slave MCU receives the first optical signal and parses to obtain the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU modifies the value of the temporary power-off status register therein to the fifth value, to indicate that the second slave MCU has received the power-off alarm message; the second master MCU reads the value of the temporary power-off status register in the second slave MCU, and modifies the value of the power-off alarm status register in the second master MCU to the seventh value, the host computer at the transmitting end reads the value of the power-off alarm status register to inform the host computer at the receiving end of the power-off, and the host computer at the transmitting end then sends the power-off alarm message to the control center, so that the control center can clearly know that the host computer at the receiving end has been powered off; after the second master MCU of the optical module at the transmitting end reads the value of the temporary power-off status register, the second slave MCU modifies the value of the temporary power-off status register therein to the sixth value, to indicate that the second master MCU has read the power-off alarm message.
[0028] The present disclosure establishes a message sending function of optical modules at both ends by using dual MCUs, and can timely obtain power-off messages of the optical modules at the receiving end through the optical fiber link, thereby avoiding unnecessary losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required to be used in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams, and are not intended to limit the actual size of the product involved in the embodiments of the present disclosure, the actual process of the method, the actual timing of the signal, etc.
[0030] Figure 1 A partial structural diagram of an optical communication system provided according to some embodiments of the present disclosure;
[0031] Figure 2 A partial structural diagram of a host computer provided according to some embodiments of the present disclosure;
[0032] Figure 3 A structural diagram of an optical module provided according to some embodiments of the present disclosure;
[0033] Figure 4 An exploded view of an optical module provided according to some embodiments of the present disclosure;
[0034] Figure 5 A schematic diagram of using dual MCUs in an optical module according to some embodiments of the present disclosure;
[0035] Figure 6 A schematic diagram of sending power-off information of a receiving end optical module according to some embodiments of the present disclosure Figure 1 ;
[0036] Figure 7 A schematic diagram of sending power-off information of a receiving end optical module according to some embodiments of the present disclosure Figure 2 ;
[0037] Figure 8 A schematic diagram of receiving power-off information of a transmitting end optical module according to some embodiments of the present disclosure Figure 1 ;
[0038] Fig. 9 A schematic diagram of receiving power-off information of a transmitting end optical module according to some embodiments of the present disclosure Figure 2 ;
[0039] Fig.10 The present invention is a flowchart of a power-off alarm method based on a dual-MCU optical module according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] In optical communication technology, in order to establish information transmission between information processing devices, it is necessary to load information onto light and use the propagation of light to achieve information transmission. Here, the light loaded with information is an optical signal. When optical signals are transmitted in information transmission equipment, the loss of optical power can be reduced, so high-speed, long-distance, and low-cost information transmission can be achieved. The signals that information processing equipment can recognize and process are electrical signals. Information processing equipment usually includes optical network terminals (Optical Network Unit, ONU), gateways, routers, switches, mobile phones, computers, servers, tablets, televisions, etc., and information transmission equipment usually includes optical fibers and optical waveguides.
[0042] The optical module can realize the mutual conversion between optical signals and electrical signals between information processing equipment and information transmission equipment. For example, at least one of the optical signal input end or the optical signal output end of the optical module is connected to an optical fiber, and at least one of the electrical signal input end or the electrical signal output end of the optical module is connected to an optical network terminal; the first optical signal from the optical fiber is transmitted to the optical module, and the optical module converts the first optical signal into a first electrical signal, and transmits the first electrical signal to the optical network terminal; the second electrical signal from the optical network terminal is transmitted to the optical module, and the optical module converts the second electrical signal into a second optical signal, and transmits the second optical signal to the optical fiber. Since multiple information processing devices can transmit information through electrical signals, at least one of the multiple information processing devices needs to be directly connected to the optical module, and all information processing devices do not need to be directly connected to the optical module. Here, the information processing device directly connected to the optical module is called the upper computer of the optical module. In addition, the optical signal input end or the optical signal output end of the optical module can be called an optical port, and the electrical signal input end or the electrical signal output end of the optical module can be called an electrical port.
[0043] Figure 1 FIG. 1 is a partial structural diagram of an optical communication system provided according to some embodiments of the present disclosure. Figure 1 As shown, the optical communication system mainly includes a remote information processing device 1000 , a local information processing device 2000 , a host computer 100 , an optical module 200 , an optical fiber 101 and a network cable 103 .
[0044] One end of the optical fiber 101 extends toward the remote information processing device 1000, and the other end of the optical fiber 101 is connected to the optical module 200 through the optical port of the optical module 200. The optical signal can be totally reflected in the optical fiber 101, and the propagation of the optical signal in the total reflection direction can almost maintain the original optical power. The optical signal undergoes multiple total reflections in the optical fiber 101 to transmit the optical signal from the remote information processing device 1000 to the optical module 200, or to transmit the optical signal from the optical module 200 to the remote information processing device 1000, thereby realizing long-distance, low-power loss information transmission.
[0045] The optical communication system may include one or more optical fibers 101, and the optical fibers 101 are detachably connected or fixedly connected to the optical module 200. The host computer 100 is configured to provide data signals to the optical module 200, receive data signals from the optical module 200, or monitor or control the working state of the optical module 200.
[0046] The host computer 100 includes a substantially rectangular housing and an optical module interface 102 disposed on the housing. The optical module interface 102 is configured to connect to the optical module 200 so that the host computer 100 and the optical module 200 establish a unidirectional or bidirectional electrical signal connection.
[0047] The host computer 100 also includes an external electrical interface, which can be connected to an electrical signal network. For example, the external electrical interface includes a Universal Serial Bus (USB) interface or a network cable interface 104, and the network cable interface 104 is configured to access the network cable 103 so that the host computer 100 establishes a unidirectional or bidirectional electrical signal connection with the network cable 103. One end of the network cable 103 is connected to the local information processing device 2000, and the other end of the network cable 103 is connected to the host computer 100, so as to establish an electrical signal connection between the local information processing device 2000 and the host computer 100 through the network cable 103. For example, the third electrical signal sent by the local information processing device 2000 is transmitted to the host computer 100 through the network cable 103, and the host computer 100 generates a second electrical signal according to the third electrical signal. The second electrical signal from the host computer 100 is transmitted to the optical module 200, and the optical module 200 converts the second electrical signal into a second optical signal, and transmits the second optical signal to the optical fiber 101, and the second optical signal is transmitted to the remote information processing device 1000 in the optical fiber 101. For example, the first optical signal from the remote information processing device 1000 is transmitted through the optical fiber 101, and the first optical signal from the optical fiber 101 is transmitted to the optical module 200, and the optical module 200 converts the first optical signal into a first electrical signal, and the optical module 200 transmits the first electrical signal to the host computer 100, and the host computer 100 generates a fourth electrical signal according to the first electrical signal, and transmits the fourth electrical signal to the local information processing device 2000. It should be noted that the optical module is a tool for realizing the mutual conversion between optical signals and electrical signals. During the conversion process between the optical signals and electrical signals, the information does not change, but the encoding and decoding methods of the information can change.
[0048] In addition to the optical network terminal, the host computer 100 also includes an optical line terminal (OLT), an optical network device (ONT), or a data center server.
[0049] Figure 2 1 is a partial structural diagram of a host computer provided according to some embodiments of the present disclosure. In order to clearly show the connection relationship between the optical module 200 and the host computer 100, Figure 2 Only the structure of the host computer 100 related to the optical module 200 is shown. Figure 2 As shown, the host computer 100 further includes a PCB circuit board 105 disposed in the housing, a cage 106 disposed on the surface of the PCB circuit board 105, a heat sink 107 disposed on the cage 106, and an electrical connector disposed inside the cage 106. The electrical connector is configured to access the electrical port of the optical module 200; the heat sink 107 has a protruding structure such as fins to increase the heat dissipation area.
[0050] The optical module 200 is inserted into the cage 106 of the host computer 100, and the cage 106 fixes the optical module 200. The heat generated by the optical module 200 is transferred to the cage 106 and then diffused through the heat sink 107. After the optical module 200 is inserted into the cage 106, the electrical port of the optical module 200 is connected to the electrical connector inside the cage 106, so that the optical module 200 establishes a bidirectional electrical signal connection with the host computer 100. In addition, the optical port of the optical module 200 is connected to the optical fiber 101, so that the optical module 200 establishes a bidirectional optical signal connection with the optical fiber 101.
[0051] Figure 3 is a structural diagram of an optical module provided according to some embodiments of the present disclosure, Figure 4 FIG. 1 is an exploded view of an optical module provided according to some embodiments of the present disclosure. Figure 3 and Figure 4 As shown, the optical module 200 includes a shell, a circuit board 300 disposed in the shell, a light emitting component 400 and a light receiving component 500. However, the present disclosure is not limited thereto. In some embodiments, the optical module 200 includes one of the light emitting component 400 and the light receiving component 500.
[0052] The housing comprises an upper housing 201 and a lower housing 202 . The upper housing 201 covers the lower housing 202 to form the housing having two openings 204 and 205 . The outer contour of the housing is generally a square body.
[0053] In some embodiments, the lower shell 202 includes a bottom plate 2021 and two lower side plates 2022 located on both sides of the bottom plate 2021 and arranged perpendicular to the bottom plate 2021; the upper shell 201 includes a cover plate 2011, and the cover plate 2011 covers the two lower side plates 2022 of the lower shell 202 to form the above-mentioned shell.
[0054] In some embodiments, the lower shell 202 includes a bottom plate 2021 and two lower side plates 2022 located on both sides of the bottom plate 2021 and vertically arranged with the bottom plate 2021; the upper shell 201 includes a cover plate 2011 and two upper side plates located on both sides of the cover plate 2011 and vertically arranged with the cover plate 2011, and the two upper side plates are combined with the two lower side plates 2022 to realize that the upper shell 201 covers the lower shell 202.
[0055] The direction of the line connecting the two openings 204 and 205 may be consistent with the length direction of the optical module 200, or may be inconsistent with the length direction of the optical module 200. For example, the opening 204 is located at the end of the optical module 200 ( Figure 3 The opening 205 is also located at the end of the optical module 200 ( Figure 3 Alternatively, the opening 204 is located at the end of the optical module 200, and the opening 205 is located at the side of the optical module 200. The opening 204 is an electrical port, and the gold finger 301 of the circuit board 300 extends from the electrical port and is inserted into the electrical connector of the host computer 100; the opening 205 is an optical port, which is configured to access the external optical fiber 101, so that the optical fiber 101 connects the optical emitting component 400 and the optical receiving component 500 in the optical module 200.
[0056] The upper shell 201 and the lower shell 202 are combined to facilitate the installation of the circuit board 300, the light emitting component 400, the light receiving component 500, etc. into the above-mentioned shell, and the upper shell 201 and the lower shell 202 can encapsulate and protect the above-mentioned components. In addition, when assembling the circuit board 300, the light emitting component 400 and the light receiving component 500, etc., the above-mentioned upper shell 201 and the lower shell 202 are combined to facilitate the deployment of the positioning components, heat dissipation components and electromagnetic shielding components of these components, which is conducive to the automated production.
[0057] In some embodiments, the upper shell 201 and the lower shell 202 are made of metal materials to facilitate electromagnetic shielding and heat dissipation.
[0058] In some embodiments, the optical module 200 further includes an unlocking component 600 located outside its housing. The unlocking component 600 is configured to achieve a fixed connection between the optical module 200 and the host computer, or to release the fixed connection between the optical module 200 and the host computer.
[0059] For example, the unlocking component 600 is located on the outside of the two lower side plates 2022 of the lower housing 202, and includes a snap-fit component that matches the cage 106 of the host computer 100. When the optical module 200 is inserted into the cage 106, the snap-fit component of the unlocking component 600 fixes the optical module 200 in the cage 106; when the unlocking component 600 is pulled, the snap-fit component of the unlocking component 600 moves accordingly, thereby changing the connection relationship between the snap-fit component and the host computer, so as to release the fixation of the optical module 200 and the host computer, so that the optical module 200 can be pulled out of the cage 106.
[0060] The circuit board 300 includes circuit traces, electronic components and chips, etc. The electronic components and chips are connected according to the circuit design through the circuit traces to realize the functions of power supply, electrical signal transmission and grounding. The electronic components may include capacitors, resistors, transistors, metal-oxide-semiconductor field-effect transistors (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET), etc. The chips may include microcontroller units (Microcontroller Unit, MCU), laser driver chips, transimpedance amplifiers (Transimpedance Amplifier, TIA), limiting amplifiers (Limiting amplifier, LA), clock and data recovery chips (Clock and Data Recovery, CDR), power management chips, digital signal processing (Digital Signal Processing, DSP) chips.
[0061] The circuit board 300 is generally a rigid circuit board. Due to its relatively hard material, the rigid circuit board can also realize the load-bearing function. For example, the rigid circuit board can stably carry the above-mentioned electronic components and chips; the rigid circuit board can also be inserted into the electrical connector in the cage 106 of the host computer 100.
[0062] The circuit board 300 also includes a gold finger 301 formed on the end surface thereof. The gold finger 301 is composed of a plurality of independent pins. The circuit board 300 is inserted into the cage 106, and the gold finger 301 is connected to the electrical connector in the cage 106. The gold finger 301 can be provided on only one side of the circuit board 300 (e.g. Figure 4The upper surface shown in the figure) can also be set on the upper and lower surfaces of the circuit board 300 to provide more pins, so as to adapt to occasions where the number of pins is large. The gold finger 301 is configured to establish an electrical connection with the host computer to achieve power supply, grounding, two-wire synchronous serial (Inter-Integrated Circuit, I2C) signal transmission, data signal transmission, etc. Of course, flexible circuit boards are also used in some optical modules. Flexible circuit boards are generally used in conjunction with rigid circuit boards to supplement rigid circuit boards.
[0063] At least one of the light emitting component 400 or the light receiving component 500 is located on a side of the circuit board 300 away from the gold finger 301 .
[0064] In some embodiments, the light emitting component 400 and the light receiving component 500 are physically separated from the circuit board 300 and then electrically connected to the circuit board 300 through corresponding flexible circuit boards or electrical connectors.
[0065] In some embodiments, at least one of the light emitting component or the light receiving component may be directly disposed on the circuit board 300. For example, at least one of the light emitting component or the light receiving component may be disposed on a surface of the circuit board 300 or a side of the circuit board 300.
[0066] In the access network communication system, an optical connection is established between the optical line terminal and the optical network unit to realize data communication. Specifically, the optical line terminal has a near-end optical module (second optical module), the optical network unit has a far-end optical module (second optical module), and an optical connection is established between the first optical module and the second optical module; the optical line terminal sends an optical signal to the first optical module through the second optical module, so that the optical line terminal sends data to the optical network unit; the optical line terminal receives the optical signal from the first optical module through the second optical module, so that the optical line terminal receives data from the optical network unit.
[0067] The optical line terminal and optical network unit are the host computers of the optical module. The host computer inputs the data electrical signal into the optical module, and the optical module converts the data electrical signal into an optical signal and sends it out, so that the host computer can send data; the optical module converts the optical signal from the outside into a data electrical signal, and inputs the data electrical signal into the host computer, so that the host computer can receive data.
[0068] The optical module is only a data transmitter in the host computer. The optical module can only be controlled by its host computer. Humans need to indirectly control the optical module through the host computer. In the physical network of the access network, the optical line terminal and / or the optical network unit are often located in an environment that is not convenient for manual operation, such as mountains, forests, or even water bodies. When the remote system equipment fails or other reasons cause power failure, the near-end optical module can only receive the remote optical module failure, but cannot identify that the remote optical module is due to power failure, resulting in the need to find the cause of the failure through other means. The process is cumbersome and cannot effectively solve the problem of power failure of the remote system equipment in a timely manner.
[0069] In this regard, a new communication method can be proposed. The remote optical module transmits the power-off information to the near-end optical module, so that the near-end optical module can obtain the power-off information of the remote optical module in time. Then the equipment manufacturer can deal with the power-off problem of the remote system equipment in a timely and effective manner to avoid unnecessary losses.
[0070] Based on this, an embodiment of the present application provides an optical module, which can realize the function of timely transmitting the power-off information of the tail end equipment (TEE) to the head end equipment (HEE) through the coordinated application between the sending end host computer, the sending end MCU, the receiving end MCU and the receiving end host computer.
[0071] A TEE device power-off message enable register is set in the TEE optical module, and a TEE device power-off alarm indication register is set in the HEE optical module. After the TEE device detects that the power supply is abnormally lower than the normal threshold, it will start the temporary power supply, and then immediately set the TEE device power-off message enable register to 1 to trigger the sending of the power-off alarm message of the TEE optical module. After receiving the command, the MCU of the TEE optical module will send the pre-programmed alarm information in a continuous loop as the highest priority until the device is powered off and the optical module is powered off.
[0072] The HEE optical module receives the information sent by the TEE optical module. After parsing the power-off alarm message in the information, the MCU of the HEE optical module sets the TEE device power-off alarm indication register to 1 to indicate that the TEE device has been powered off and waits for the host computer on the sending end to read it.
[0073] In some embodiments, the host computer at the sending end will continuously and uninterruptedly access the HEE-end optical module, including the optical module's own monitoring information, various alarm information, and the TEE-end device power-off alarm indication register. When the HEE-end optical module passively receives the power-off alarm message sent by the TEE-end optical module and parses it successfully, the HEE-end optical module will immediately set the TEE-end device power-off alarm indication register to 1. When the host computer polls the optical module information and finds that the register is 1, it will report to the control center to inform the control center that the TEE-end device has lost power. The control center will then send someone to repair it, avoiding unnecessary losses.
[0074] After the TEE device recovers and the module restarts, the HEE host computer can clear the TEE device power-off alarm indication register in the HEE optical module until the next power-off alarm message arrives.
[0075] In some embodiments, the MCU in the HEE-end optical module and the MCU in the TEE-end optical module are responsible for the routine general function processing of the optical module and for interacting with the host computer, as well as for sending and receiving message information. This makes the information processing of the MCU complicated, which may affect the sending and receiving of message information, and may also affect the routine general function processing of the optical module.
[0076] In order to solve the above problems, the embodiment of the present application provides an optical module, which adopts a dual MCU solution of a master (Master) and a slave (Slave) MCU. The master MCU is responsible for the conventional general function processing of the optical module and for interacting with the host computer, and the slave MCU is responsible for the sending and receiving processing of message information and for interacting with the master MCU. Through the coordinated application between the host computer at the sending end, the main MCU at the sending end, the slave MCU at the sending end, the main MCU at the receiving end, and the slave MCU at the receiving end, the optical module at the sending end (optical module at the HEE end) can obtain the power-off message of the optical module at the receiving end (optical module at the TEE end) in time, and timely handle the power-off problem of the optical module at the receiving TEE end.
[0077] Figure 5 A schematic diagram of using dual MCUs in an optical module according to some embodiments of the present disclosure is provided. Figure 6 FIG. 1 is a schematic diagram of sending power-off information of a receiving end optical module according to some embodiments of the present disclosure. Figure 5 and Figure 6 As shown, the receiving end optical module (first optical module) provided in the embodiment of the present disclosure includes a circuit board 300 and a first master MCU, a first slave MCU, a first optical transmitting component and a first optical receiving component electrically connected to the circuit board 300, wherein:
[0078] The first master MCU is connected to the receiving end host computer in communication. A power-off message enable register is set in the first master MCU. The first master MCU is configured to generate a power-off alarm command when the receiving end host computer modifies the value of the power-off message enable register to a first value. That is, when the receiving end host computer monitors that its own voltage is abnormally lower than the normal threshold, the receiving end host computer will start a temporary power supply (which can maintain the operation of the device for a short time), and then the receiving end host computer immediately sets the value of the power-off message enable register to 1 to trigger the sending of the power-off alarm message of the receiving end optical module. When the first master MCU detects that the value of the power-off message enable register is 1, it will generate a power-off alarm command and send the power-off alarm command to the first slave MCU.
[0079] The first slave MCU is connected to the first master MCU. The first slave MCU is configured to receive a power-off alarm command from the first master MCU and load the power-off alarm message stored in the first slave MCU into the first low-frequency message channel.
[0080] In some embodiments, the first slave MCU includes a memory storing a preprogrammed power-off alarm message. When the first slave MCU receives a power-off alarm command, the first slave MCU loads the preprogrammed power-off alarm message stored in the memory to the first low-frequency message channel.
[0081] The first optical transmitting component is connected to the first slave MCU, and the first optical transmitting component is configured to transmit a first optical signal carrying a first low-frequency message channel, that is, the first slave MCU controls the first optical transmitting component to transmit a first optical signal to the transmitting end optical module, and the first optical signal carries a low-frequency message of a power-off alarm message to indicate that the receiving end system equipment is powered off.
[0082] In some embodiments, in order to improve the success rate of sending the power-off alarm message, the first slave MCU controls the first optical transmitting component to cyclically send the first optical signal until the receiving end host computer and the receiving end optical module are powered off.
[0083] The first optical receiving component is connected to the first slave MCU. When the receiving optical module works normally, the first optical receiving component is configured to receive the message sent by the sending optical module to achieve communication interaction between the sending optical module and the receiving optical module.
[0084] In some embodiments, in order to further improve the success rate of sending power-off alarm messages, after the first slave MCU receives the power-off alarm command from the first master MCU, the communication response function of the first slave MCU is turned off, so that the first master MCU cannot communicate with the first slave MCU. That is, after the first slave MCU receives the power-off alarm command sent by the first master MCU, the communication response function of the first slave MCU is immediately turned off, so that the first slave MCU cannot respond to the communication access of the first master MCU, which can prevent the first master MCU from making other communication accesses to the first slave MCU. The first slave MCU regards the power-off alarm message as the highest priority and does not perform other operations.
[0085] After the receiving optical module provided in the embodiment of the present disclosure is powered on, the communication response function of the first slave MCU is turned on by default, and the first master MCU can communicate with the first slave MCU. When the first master MCU sends a power-off alarm command to the first slave MCU, the first slave MCU turns off the communication response function, so that the first master MCU cannot communicate with the first slave MCU, and the first slave MCU only performs the power-off alarm operation.
[0086] In some embodiments, a communication response module and an ACK response flag are provided in the first slave MCU, and the communication response module responds to or does not respond to the communication access of the first master MCU according to the value of the ACK response flag.
[0087] When the first slave MCU receives the power-off alarm command, the first slave MCU modifies the ACK response flag to a third value, for example, sets the ACK response flag to 0 to turn off the communication response function of the first slave MCU. The first slave MCU does not respond to the communication access of the first master MCU, so that the first master MCU cannot communicate with the first slave MCU.
[0088] Figure 7 A schematic diagram of sending power-off information of a receiving end optical module according to some embodiments of the present disclosure Figure 2 .like Figure 7 As shown, in some embodiments, a power-off status indication pin may be provided between the first slave MCU and the first master MCU, and the communication response module responds to or does not respond to the communication access of the first master MCU according to the level state of the power-off status indication pin.
[0089] When the first slave MCU receives the power-off alarm command, the first slave MCU modifies the level of the power-off status indication pin to the first level. For example, the first slave MCU pulls down the level of the power-off status indication pin to turn off the communication response function of the first slave MCU. The first slave MCU does not respond to the communication access of the first master MCU, so that the first master MCU cannot communicate with the first slave MCU.
[0090] When the receiving end host computer loses power, the receiving end optical module sends a power-off alarm command to the first slave MCU by turning off the communication response function of the first slave MCU. This allows the first slave MCU to be uninterrupted by the receiving end host computer and the first master MCU when sending the power-off alarm message, thereby improving the success rate of power-off alarm message transmission.
[0091] Figure 8 A schematic diagram of receiving power-off information of a transmitting end optical module according to some embodiments of the present disclosure Figure 1 .like Figure 5 and Figure 8 As shown, the transmitting end optical module (second optical module) provided in the embodiment of the present disclosure includes a circuit board 300 and a second main MCU, a second slave MCU, a second optical transmitting component and a second optical receiving component electrically connected to the circuit board 300, wherein:
[0092] The second optical receiving component is configured to receive a first optical signal carrying a first low-frequency message channel, where the first low-frequency message channel is used to indicate a power-off alarm message, i.e., the transmitting optical module receives the first optical signal sent by the receiving optical module through the second optical receiving component to receive the power-off alarm message sent by the receiving optical module.
[0093] The second slave MCU is connected to the second optical receiving component. The second slave MCU is configured to, when receiving the first optical signal and parsing to obtain the power-off alarm message indicated by the first low-frequency message channel, modify the value of the power-off status temporary register in the second slave MCU to the fifth value; and, after the second master MCU reads the value of the power-off status temporary register, modify the value of the power-off status temporary register to the sixth value.
[0094] In some embodiments, a temporary power-off status register is provided in the second slave MCU. When the second slave MCU receives the first optical signal and parses to obtain the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU sets the value of the temporary power-off status register to 1 to indicate that the second slave MCU has received the power-off alarm message sent by the receiving optical module.
[0095] In some embodiments, when the second optical receiving component does not receive the first optical signal, or the second slave MCU does not parse the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU sets the value of the power-off status temporary register to 0 to indicate that the second slave MCU has not successfully received the power-off alarm message sent by the receiving optical module.
[0096] The second master MCU is connected to the second slave MCU. The second master MCU is configured to read the value of the temporary power-off status register, modify the value of the power-off alarm status register in the second master MCU to the seventh value, and wait for the sending end host computer to read the value of the power-off alarm status register.
[0097] In some embodiments, after the transmitting optical module is powered on, the communication response function of the second slave MCU is turned off by default, so that the second slave MCU does not respond to the communication access of the second master MCU, thereby preventing other communications from affecting the second slave MCU from receiving the first optical signal.
[0098] After parsing the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU turns on the second slave MCU communication response function, so that the second master MCU can communicate with the second slave MCU, so that the second master MCU can access the value of the temporary register of the power-off status in the second slave MCU.
[0099] After the second master MCU reads the value of the temporary register of the power-off status, the second slave MCU turns off the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU to avoid other communications affecting the second slave MCU from receiving the first optical signal again.
[0100] In some embodiments, a power-off alarm status register is provided in the second master MCU. After the second slave MCU turns on its communication response function, when the second master MCU polls and accesses the second slave MCU, the second master MCU reads the value of the power-off status temporary register inside the second slave MCU. After reading the value of the power-off status temporary register, the second master MCU may set the value of the power-off alarm status register to 1 to indicate that the second master MCU has received the power-off alarm message and is waiting for the sending host computer to read it.
[0101] In some embodiments, after reading the value of the temporary power-off status register, the second main MCU may copy the value of the temporary power-off status register to the power-off alarm status register to set the value of the power-off alarm status register to 1, and wait for the sending end host computer to read it.
[0102] After the second master MCU reads the value of the temporary power-off status register, the second slave MCU is also configured to modify the value of the temporary power-off status register to the sixth value and turn off the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU.
[0103] That is, after the second master MCU reads the power-off alarm message of the second slave MCU, the second slave MCU immediately clears the value of the temporary power-off status register, and turns off the communication response function of the second slave MCU, waiting for the next power-off alarm message to come.
[0104] Reference Figure 8In some embodiments, in order to turn on or off the communication response function of the second slave MCU, a communication response module and an ACK response flag are provided in the second slave MCU. The communication response module responds to the communication access of the second master MCU or does not respond according to the value of the ACK response flag.
[0105] When the second slave MCU receives and parses the power-off alarm message, the second slave MCU modifies the ACK response flag bit in it to the ninth value, for example, sets the ACK response flag bit to 1 to enable the communication response function of the second slave MCU, so that the second master MCU can communicate with the second slave MCU, and the second master MCU can read the power-off alarm message in the second slave MCU.
[0106] After the second master MCU reads the power-off alarm message, the second slave MCU modifies its ACK response flag to the tenth value, for example, clears the ACK response flag to disable the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU.
[0107] The second optical emitting component is connected to the second slave MCU. When the receiving optical module works normally, the second optical emitting component is configured to send an optical signal to the receiving optical module to achieve communication interaction between the sending optical module and the receiving optical module.
[0108] Fig. 9 A schematic diagram of receiving power-off information of a transmitting end optical module according to some embodiments of the present disclosure Figure 2 .like Fig. 9 As shown, in some embodiments, the transmitting optical module turns on the communication response function of the second slave MCU by default after power-on, and a power-off status indication pin is set between the second master MCU and the second slave MCU. The second master MCU accesses and reads the power-off alarm message in the second slave MCU according to the level state of the power-off status indication pin, which will not hinder other communication access between the second master MCU and the second slave MCU.
[0109] When the second slave MCU receives and parses the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU modifies the level of the power-off status indication pin to the third level. For example, the second slave MCU pulls up the level of the power-off status indication pin, so that the second master MCU accesses and reads the value of the power-off status temporary register in the second slave MCU.
[0110] After the second master MCU reads the value of the power-off status temporary register, the second slave MCU modifies the level of the power-off status indication pin to the fourth level. For example, the second slave MCU lowers the level of the power-off status indication pin so that the second master MCU cannot access and read the value of the power-off status indication pin in the second slave MCU.
[0111] In some embodiments, the host computer at the sending end reads the value of the power-off alarm status register in the second main MCU. When the value of the power-off alarm status register is 1, the host computer at the sending end sends a message that the system device at the receiving end has lost power to the control center to make it clear that the system device at the receiving end has failed due to power failure, and the control center will send someone to repair it.
[0112] When the receiving end system equipment is powered on again after maintenance, the value of the power-off message enable register in the first master MCU is cleared, and the communication response function of the first slave MCU is enabled, so that the receiving end optical module can work normally.
[0113] When the receiving end system equipment is powered on and restarted after maintenance (for example, the business signal is reconnected), the sending end host computer modifies the value of the power-off alarm status register in the second master MCU to the eighth value, for example, clears the value of the power-off alarm status register, and the communication response function of the second slave MCU is still turned off. When the second slave MCU receives the power-off message of the receiving end optical module again, the communication response function of the second slave MCU is turned on again, but it does not affect the business signal interaction between the sending end optical module and the receiving end optical module.
[0114] In some embodiments, the service signal is a high-frequency data signal, and the power-off alarm message loaded into the message channel is a low-frequency signal.
[0115] The optical module provided by the embodiment of the present disclosure increases the function of a message channel. By using dual MCUs, a message sending function between a proximal optical module and a remote optical module is established. When the remote optical module loses power, the proximal optical module sends a power-off alarm message to the proximal optical module, so that the proximal optical module can obtain the power-off message of the remote optical module in time, so that the power-off problem can be handled promptly and effectively on the device to avoid unnecessary losses. In addition, by turning on and off the communication response function of the slave MCU, the slave MCU is not disturbed by the host computer and the main MCU when sending and receiving messages, thereby improving the success rate of power-off message transmission.
[0116] Based on the optical module described in the above embodiment, the embodiment of the present disclosure also provides a power-off alarm method based on a dual MCU optical module. The method adopts a dual MCU optical module of a master and a slave MCU. Through the coordinated application between the first master MCU and the first slave MCU of the receiving optical module and the second master MCU and the second slave MCU of the sending optical module, the sending optical module can obtain the power-off message of the receiving optical module in time, and handle the power-off problem of the receiving optical module in time.
[0117] Fig.10 The following is a flow chart of a power failure alarm method based on a dual MCU optical module according to some embodiments of the present disclosure. Fig.10As shown, the power-off alarm method based on the dual MCU optical module provided in the embodiment of the present disclosure includes:
[0118] S100: When the host computer modifies the value of the power-off message enable register to a first value, the first main MCU generates a power-off alarm command.
[0119] When the receiving end host computer monitors that its own voltage is abnormally lower than the normal threshold, the receiving end host computer will start a temporary power supply, and then the receiving end host computer immediately sets the value of the power-off message enable register in the first master MCU to 1, which is used to trigger the sending of the power-off alarm message of the receiving end optical module. When the first master MCU detects that the value of the power-off message enable register is 1, it will generate a power-off alarm command and send the power-off alarm command to the first slave MCU.
[0120] S200: The first slave MCU receives a power-off alarm command and turns off a communication response function of the first slave MCU, so that the first master MCU cannot perform communication access to the first slave MCU.
[0121] After the first slave MCU receives the power-off alarm command sent by the first master MCU, it immediately turns off the communication response function of the first slave MCU, so that the first slave MCU does not respond to the communication access to the first master MCU, which can prevent the first master MCU from making other communication accesses to the first slave MCU, so that the first slave MCU regards the power-off alarm message as the highest priority and does not perform other operations.
[0122] S300: The first slave MCU loads the power-off alarm message stored in the first slave MCU to the first low-frequency message channel.
[0123] When the first slave MCU receives the power-off alarm command, the first slave MCU loads the pre-programmed power-off alarm message stored in the memory to the first low-frequency message channel.
[0124] S400: The first slave MCU controls the first optical emitting component to emit a first optical signal carrying a first low-frequency message channel.
[0125] The first slave MCU controls the first optical transmitting component to transmit a first optical signal to the transmitting end optical module. The first optical signal carries a low-frequency message of a power-off alarm message to indicate that the receiving end system device is powered off.
[0126] In order to improve the success rate of sending the power-off alarm message, the first slave MCU controls the first optical transmitting component to cyclically send the first optical signal until the receiving end host computer and the receiving end optical module are powered off.
[0127] S500: The second optical receiving component receives a first optical signal carrying a first low-frequency message channel.
[0128] The transmitting end optical module receives the first optical signal sent by the receiving end optical module through the second optical receiving component, so as to receive the power-off alarm message sent by the receiving end optical module.
[0129] S600: The second slave MCU receives the first optical signal, and parses it to obtain a power-off alarm message indicated by the first low-frequency message channel.
[0130] S700: The second slave MCU modifies the value of the temporary register of the power-off state in the second slave MCU to the fifth value, and enables the communication response function of the second slave MCU, so that the second master MCU can perform communication access to the second slave MCU.
[0131] When the second slave MCU receives the first optical signal and parses to obtain the power-off alarm message indicated by the first low-frequency message channel, the second slave MCU sets the value of the temporary power-off status register to 1 to indicate that the second slave MCU has received the power-off alarm message sent by the receiving optical module, and then the second slave MCU turns on its communication response function, allowing the second master MCU to communicate with the second slave MCU.
[0132] S800: The second main MCU reads the value of the temporary power-off status register, modifies the value of the power-off alarm status register in the second main MCU to the seventh value, and waits for the host computer to read the value of the power-off alarm status register.
[0133] After the second slave MCU turns on its communication response function, when the second master MCU polls and accesses the second slave MCU, the second master MCU reads the value of the temporary power-off status register inside the second slave MCU. After reading the value of the temporary power-off status register, the second master MCU can set the value of the power-off alarm status register to 1 to indicate that the second master MCU has received the power-off alarm message and is waiting for the sending host computer to read it.
[0134] S900: After the second master MCU reads the value of the temporary power-off status register, the second slave MCU modifies the value of the temporary power-off status register to the sixth value and turns off the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU.
[0135] After the second master MCU reads the power-off alarm message of the second slave MCU, the second slave MCU immediately clears the value of the temporary power-off status register, turns off the communication response function of the second slave MCU, and waits for the next power-off alarm message to come.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An optical module, characterized in that: include: Circuit boards; A first optical emitting component, electrically connected to the circuit board, the first optical emitting component being configured to emit a first optical signal carrying a first low-frequency message channel, the first low-frequency message channel being used to indicate a power-off message; A first main MCU is electrically connected to the circuit board, and the first main MCU is configured to generate a power-off alarm command when the host computer modifies the value of the power-off message enable register to a first value; The first slave MCU is connected to the first master MCU and the first optical emitting component. The first slave MCU is configured to receive a power-off alarm command from the first master MCU, load the power-off alarm message stored in the first slave MCU into the first low-frequency message channel, and control the first optical emitting component to cyclically send the first optical signal.
2. The optical module according to claim 1, characterized in that: When the first slave MCU receives the power-off alarm command, the first slave MCU is further configured to disable a communication response function of the first slave MCU, so that the first master MCU cannot perform communication access to the first slave MCU.
3. The optical module according to claim 2, characterized in that: An ACK response flag is set in the first slave MCU, and the first slave MCU is also configured to modify the ACK response flag in the first slave MCU to a third value when receiving the power-off alarm command, so that the first master MCU cannot communicate with the first slave MCU.
4. The optical module according to claim 2, characterized in that: A power-off status indication pin is provided between the first master MCU and the first slave MCU. The first slave MCU is also configured to, upon receiving the power-off alarm command, modify the level of the power-off status indication pin to a first level, so that the first master MCU cannot communicate with the first slave MCU.
5. An optical module, characterized in that: include: Circuit boards; A second light receiving component, electrically connected to the circuit board, the second light receiving component being configured to receive a first optical signal carrying a first low-frequency message channel; a second slave MCU connected to the second optical receiving component, wherein the second slave MCU is configured to, upon receiving the first optical signal and parsing to obtain a power-off alarm message indicated by the first low-frequency message channel, modify the value of the temporary power-off status register in the second slave MCU to a fifth value; and, after the second master MCU reads the value of the temporary power-off status register, modify the value of the temporary power-off status register to a sixth value; The second master MCU is connected to the second slave MCU, and the second master MCU is configured to read the value of the power-off status temporary register, modify the value of the power-off alarm status register in the second master MCU to the seventh value, and wait for the host computer to read the value of the power-off alarm status register.
6. The optical module according to claim 5, characterized in that: The second slave MCU is also configured to, when parsing the power-off alarm message indicated by the first low-frequency message channel, turn on the communication response function of the second slave MCU so that the second master MCU can communicate with the second slave MCU; and, after the second master MCU reads the value of the power-off status temporary register, turn off the communication response function of the second slave MCU so that the second master MCU cannot communicate with the second slave MCU.
7. The optical module according to claim 6, characterized in that: An ACK response flag is set in the second slave MCU, and the second slave MCU is also configured to, when parsing the power-off alarm message indicated by the first low-frequency message channel, modify the ACK response flag to a ninth value to enable the communication response function of the second slave MCU; and, after the second master MCU reads the value of the power-off status temporary register, modify the ACK response flag to a tenth value to disable the communication response function of the second slave MCU.
8. The optical module according to claim 6, characterized in that: A power-off status indication pin is provided between the second master MCU and the second slave MCU, and the second slave MCU is further configured to, when parsing the power-off alarm message indicated by the first low-frequency message channel, modify the level of the power-off status indication pin to a third level to enable the communication response function of the second slave MCU; and, after the second master MCU reads the value of the power-off status temporary register, modify the level of the power-off status indication pin to a fourth level to disable the communication response function of the second slave MCU.
9. A power-off alarm method based on a dual MCU optical module, characterized in that: The method comprises: The first main MCU generates a power-off alarm command when the host computer modifies the value of the power-off message enable register to the first value; The first slave MCU receives the power-off alarm command and turns off the communication response function of the first slave MCU, so that the first master MCU cannot perform communication access to the first slave MCU; The first slave MCU loads the power-off alarm message stored in the first slave MCU to the first low-frequency message channel; The first slave MCU controls the first optical emitting component to cyclically emit the first optical signal carrying the first low-frequency message channel.
10. A power-off alarm method based on a dual MCU optical module, characterized in that: The method comprises: The second optical receiving component receives the first optical signal carrying the first low-frequency message channel; The second slave MCU receives the first optical signal and parses it to obtain a power-off alarm message indicated by the first low-frequency message channel; The second slave MCU modifies the value of the power-off status temporary register in the second slave MCU to a fifth value, and enables a communication response function of the second slave MCU, so that the second master MCU can perform communication access to the second slave MCU; The second main MCU reads the value of the temporary power-off status register, modifies the value of the power-off alarm status register in the second main MCU to the seventh value, and waits for the host computer to read the value of the power-off alarm status register; After the second master MCU reads the value of the temporary power-off status register, the second slave MCU modifies the value of the temporary power-off status register to the sixth value and turns off the communication response function of the second slave MCU, so that the second master MCU cannot communicate with the second slave MCU.