Optical module failure alarm method and device, optical module, equipment, medium and program product

CN122932794APending Publication Date: 2026-10-16JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510406349.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0002]光模块产品作为服务器与网络交换机之间的互联介质,主要作用为光电转化,实现设备间信号长距离传输,一旦出现故障,将会导致链路无法通讯

Benefits of technology

[0026] According to the embodiments of this disclosure, by connecting the fault prediction pin to the microcontroller unit and using the microcontroller unit to calculate the remaining lifespan of the optical module based on the digital diagnostic information of the optical module, and controlling the output level state of the fault prediction pin when the remaining lifespan meets the preset threshold condition, and determining whether to send fault alarm information to the server based on the level state, this technical means at least partially overcomes the technical problem in the related art of passively waiting for the server to read and process the fault alarm when the optical module has a fault alarm, which leads to abnormal impact on the network. In this way, the fault alarm is actively triggered to the server, so that users can replace the optical module hardware in a timely manner and avoid network abnormalities caused by optical module failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122932794A_ABST
    Figure CN122932794A_ABST
Patent Text Reader

Abstract

The present disclosure provides a kind of optical module failure alarm method, device, optical module, equipment, medium and program product, which can be applied to the field of communication technology.The optical module includes micro control unit and golden finger, golden finger includes failure prediction pin, micro control unit is connected with failure prediction pin, the method is applied to micro control unit in optical module, the method includes: according to the digital diagnostic information obtained, the life of optical module is calculated, and the remaining life of optical module is obtained, wherein the digital diagnostic information represents the operating state of optical module;In response to the remaining life satisfying preset threshold condition, the failure prediction pin is controlled to output level state, wherein the level state indicates whether to send failure alarm information to server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and more specifically, to a method, apparatus, optical module, device, medium, and program product for optical module fault alarm. Background Technology

[0002] Optical modules serve as the interconnection medium between servers and network switches. Their main function is photoelectric conversion, enabling long-distance signal transmission between devices. If a fault occurs, the link will become unusable.

[0003] In the process of realizing the present invention, the inventors discovered that the related technology has at least the following problems: after the optical module fails, it generally passively waits for the switch or server to actively capture and process the alarm information, which can easily cause network anomalies due to optical module failure. Summary of the Invention

[0004] In view of this, this disclosure provides a method, apparatus, optical module, device, medium, and program product for optical module fault alarm.

[0005] One aspect of this disclosure provides a fault alarm method for an optical module. The optical module includes a microcontroller unit and gold fingers. The gold fingers include fault prediction pins. The microcontroller unit is connected to the fault prediction pins. The method is applied to the microcontroller unit in the optical module, and the method includes:

[0006] Based on the acquired digital diagnostic information, the lifespan of the optical module is calculated to obtain the remaining lifespan of the optical module. The digital diagnostic information represents the operating status of the optical module. In response to the remaining lifespan meeting the preset threshold condition, the output level of the fault prediction pin is controlled, where the level status represents whether to send fault alarm information to the server.

[0007] According to embodiments of this disclosure, the optical module further includes registers, including an alarm register and a remaining lifetime register;

[0008] In response to the remaining lifetime meeting a preset threshold condition, the output level of the fault prediction pin is controlled, including: in response to the remaining lifetime being less than or equal to a first preset threshold, the remaining lifetime is stored in the remaining lifetime register and a value is assigned to the alarm register; in response to the value information of the alarm register indicating that a fault alarm has occurred in the optical module, the fault prediction pin is controlled to output a first level and a fault alarm information is sent to the server.

[0009] According to embodiments of this disclosure, the method further includes: in response to the remaining lifetime being greater than or equal to a second preset threshold, storing the second preset threshold in a remaining lifetime register and maintaining the original value of the alarm register; in response to the original value of the alarm register indicating that the optical module has not experienced a fault alarm, controlling the fault prediction pin to output a second level.

[0010] According to embodiments of this disclosure, the method further includes: in response to the remaining lifetime being greater than a first preset threshold and less than a second preset threshold, storing the remaining lifetime in a remaining lifetime register and maintaining the original value of the alarm register; in response to the original value of the alarm register indicating that the optical module has not experienced a fault alarm, controlling the fault prediction pin to output a third level, wherein the first level is greater than both the second and third levels.

[0011] According to embodiments of this disclosure, the optical module further includes a sensor, and the register includes a digital diagnostic information register. The method further includes: acquiring digital diagnostic information of the optical module based on sensor capture; and storing the digital diagnostic information in a preset storage format to the digital diagnostic information register.

[0012] According to embodiments of this disclosure, the remaining lifespan of an optical module is calculated based on the acquired digital diagnostic information, including: retrieving digital diagnostic information stored in a digital diagnostic information register; and calculating the remaining lifespan of the optical module based on the digital diagnostic information and digital diagnostic threshold information.

[0013] According to embodiments of this disclosure, digital diagnostic information includes: output optical power, received optical power, supply voltage, bias current, or temperature.

[0014] Another aspect of this disclosure provides an optical module fault alarm device. The optical module includes a microcontroller unit and gold fingers. The gold fingers include fault prediction pins. The microcontroller unit is connected to the fault prediction pins. The device is applied to the microcontroller unit in the optical module. The device includes:

[0015] The lifespan calculation module is used to calculate the lifespan of the optical module based on the acquired digital diagnostic information to obtain the remaining lifespan of the optical module. The digital diagnostic information represents the operating status of the optical module. The level output module is used to control the output level status of the fault prediction pin in response to the remaining lifespan meeting the preset threshold condition. The level status represents whether to send fault alarm information to the server.

[0016] Another aspect of this disclosure also provides an optical module, including: a microcontroller configured to calculate the remaining lifetime of the optical module based on digital diagnostic information of the optical module, wherein the digital diagnostic information characterizes the operating status of the optical module;

[0017] At least one sensor is configured to connect to a first end of the microcontroller unit to capture digital diagnostic information from the optical module;

[0018] The register is configured to be connected to the second terminal of the microcontroller. The register includes a digital diagnostic information register, an alarm register, and a remaining lifetime register. The digital diagnostic information register is configured to store the digital diagnostic information of the optical module, the alarm register is configured to store the fault alarm information of the optical module, and the remaining lifetime register is configured to store the remaining lifetime of the optical module.

[0019] The gold fingers, including the fault prediction pins, are configured to connect to the third terminal of the microcontroller unit to output fault prediction information of the optical module.

[0020] Another aspect of this disclosure provides an electronic device comprising:

[0021] One or more processors;

[0022] Memory, used to store one or more programs.

[0023] Specifically, when one or more programs are executed by one or more processors, the one or more processors implement the above method.

[0024] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are used to implement the methods described above.

[0025] Another aspect of this disclosure provides a computer program product including computer-executable instructions that, when executed, are used to implement the methods described above.

[0026] According to the embodiments of this disclosure, by connecting the fault prediction pin to the microcontroller unit and using the microcontroller unit to calculate the remaining lifespan of the optical module based on the digital diagnostic information of the optical module, and controlling the output level state of the fault prediction pin when the remaining lifespan meets the preset threshold condition, and determining whether to send fault alarm information to the server based on the level state, this technical means at least partially overcomes the technical problem in the related art of passively waiting for the server to read and process the fault alarm when the optical module has a fault alarm, which leads to abnormal impact on the network. In this way, the fault alarm is actively triggered to the server, so that users can replace the optical module hardware in a timely manner and avoid network abnormalities caused by optical module failure. Attached Figure Description

[0027] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0028] Figure 1A This schematic diagram illustrates an optical module architecture that can be applied to an optical module fault alarm method and apparatus according to embodiments of the present disclosure;

[0029] Figure 1B The diagram illustrates the structure of a gold finger in the relevant technology;

[0030] Figure 1C A schematic diagram of the structure of a gold finger according to an embodiment of the present disclosure is shown.

[0031] Figure 2 A flowchart illustrating an optical module fault alarm method according to an embodiment of the present disclosure is shown schematically.

[0032] Figure 3 A flowchart illustrating a method for sending fault alarm information to a server according to an embodiment of the present disclosure is shown schematically.

[0033] Figure 4A A schematic diagram of an optical module fault alarm method according to an embodiment of the present disclosure is shown.

[0034] Figure 4B A schematic diagram illustrating the storage of digital diagnostic information according to an embodiment of the present disclosure is shown.

[0035] Figure 4C A schematic diagram illustrating the calculation of the remaining lifetime of an optical module according to an embodiment of the present disclosure is shown.

[0036] Figure 4D A schematic diagram illustrating the preservation of remaining lifetime according to an embodiment of the present disclosure is shown.

[0037] Figure 4E A schematic diagram illustrating the acquisition of remaining lifetime according to an embodiment of the present disclosure is shown;

[0038] Figure 5 A block diagram of an optical module fault alarm device according to an embodiment of the present disclosure is schematically shown; and

[0039] Figure 6 A block diagram of an electronic device suitable for implementing the optical module fault alarm method described above, according to an embodiment of the present disclosure, is shown schematically. Detailed Implementation

[0040] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0041] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0042] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0043] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0044] In the embodiments disclosed herein, the collection, updating, analysis, processing, use, transmission, provision, disclosure, and storage of data (e.g., including but not limited to user personal information) comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures have been taken to prevent unauthorized access to user personal information data and to safeguard user personal information security and network security.

[0045] In the embodiments disclosed herein, user authorization or consent is obtained before acquiring or collecting user personal information.

[0046] This disclosure provides an optical module fault alarm method. The optical module includes a microcontroller unit and a gold finger. The gold finger includes a fault prediction pin. The microcontroller unit is connected to the fault prediction pin. The method is applied to the microcontroller unit in the optical module. The method includes: calculating the remaining lifespan of the optical module based on acquired digital diagnostic information, wherein the digital diagnostic information characterizes the operating status of the optical module; and controlling the output level state of the fault prediction pin in response to the remaining lifespan meeting a preset threshold condition, wherein the level state characterizes whether to send fault alarm information to the server.

[0047] Figure 1A The diagram illustrates an optical module architecture that can be applied to an optical module fault alarm method and apparatus according to embodiments of the present disclosure.

[0048] like Figure 1AAs shown, the optical module architecture diagram according to this embodiment may include: a microcontroller unit 101, at least one sensor 102, a register 103, and a gold finger 104.

[0049] The microcontroller unit (MCU) 101 is configured to calculate the remaining lifespan of the optical module based on the digital diagnostic information of the optical module.

[0050] At least one sensor 102 is configured to be connected to a first end of the microcontroller unit 101, and the sensor is used to capture digital diagnostic information of the optical module.

[0051] According to embodiments of this disclosure, digital diagnostic information of the optical module can characterize parameters of the optical module's operating status. This digital diagnostic information may include, but is not limited to, output optical power (Tx Optical Power), received optical power (Rx Optical Power), supply voltage (Vcc), bias current (Bias), or temperature. Each sensor can capture corresponding digital diagnostic information; for example, output optical power can be captured by an output optical power sensor.

[0052] Register 103 is configured to connect to a second terminal of the microcontroller unit. The register may include a digital diagnostic information register 103-1, an alarm register 103-2, and a remaining lifetime register 103-3. In this disclosure, page A2 byte 128 can be defined as alarm register 103-2, and page A2 bytes 129-130 can be defined as remaining lifetime register 103-3.

[0053] According to embodiments of this disclosure, a digital diagnostic information register may include at least one, each configured to store digital diagnostic information of the corresponding optical module; an alarm register is configured to store fault alarm information of the optical module; and a remaining lifetime register is configured to store the remaining lifetime of the optical module.

[0054] Gold finger 104, including fault prediction pin 104-1, is configured to connect to the third terminal of the microcontroller unit for outputting fault prediction information of the optical module.

[0055] For example, Figure 1B The diagram illustrates the structure of a gold finger in the relevant technology; Figure 1C A schematic diagram of the structure of a gold finger according to an embodiment of the present disclosure is shown.

[0056] Combination Figure 1B and 1CAs shown, taking an SFP-packaged optical module as an example, in related technologies, the gold fingers consist of 20 pins. The GND (Ground) signal is typically multiplexed across multiple pins; that is, pins 1, 10, 11, 14, 17, and 20 are ground pins (GND pins), and they are internally interconnected (e.g., ...). Figure 1A In this disclosure, the GND pin of pin 1 is modified into a fault prediction pin Mod_Lif, and is no longer connected to ground. Instead, the MCU's I / O port is connected to the Mod_Lif pin to control the fault prediction pin (e.g., Figure 1B ).

[0057] According to embodiments of this disclosure, the optical module fault alarm method of this disclosure can be implemented based on the optical module structure diagram shown in FIG1.

[0058] Figure 2 A flowchart illustrating an optical module fault alarm method according to an embodiment of the present disclosure is shown schematically.

[0059] like Figure 2 As shown, the method includes operations S210~S220.

[0060] In operation S210, the optical module's lifespan is calculated based on the acquired digital diagnostic information to obtain the remaining lifespan of the optical module. The digital diagnostic information represents the operating status of the optical module.

[0061] In operation S220, in response to the remaining lifetime meeting the preset threshold condition, the fault prediction pin output level state is controlled, wherein the level state indicates whether to send fault alarm information to the server.

[0062] According to embodiments of this disclosure, the optical module includes a microcontroller unit and gold fingers. The gold fingers include fault prediction pins, and the microcontroller unit is connected to the fault prediction pins. This optical module fault alarm method can be applied to the microcontroller unit in the optical module. Digital diagnostic information may include parameter information characterizing the operating status of the optical module. For example, it may include output optical power (Tx Optical Power), received optical power (Rx Optical Power), supply voltage (Vcc), bias current (Bias), or temperature.

[0063] According to embodiments of this disclosure, the microcontroller can retrieve digital diagnostic information of the optical module via an internal bus, and use the computing power of the microcontroller to calculate the remaining lifespan of the optical module based on the retrieved digital diagnostic information.

[0064] According to embodiments of this disclosure, the remaining lifetime can be expressed in hours, representing the remaining time that the optical module can be used normally.

[0065] According to embodiments of this disclosure, the fault prediction pin can be used to output alarms for fault prediction and actively trigger fault alarm information to the server.

[0066] According to embodiments of this disclosure, the level state can characterize whether the fault prediction pin outputs a low level or a high level, and based on the output level state, determine whether to send a fault alarm message to the server.

[0067] According to the embodiments of this disclosure, by connecting the fault prediction pin to the microcontroller unit and using the microcontroller unit to calculate the remaining lifespan of the optical module based on the digital diagnostic information of the optical module, and controlling the output level state of the fault prediction pin when the remaining lifespan meets the preset threshold condition, and determining whether to send fault alarm information to the server based on the level state, the technical means at least partially overcome the technical problem in the related art of passively waiting for the server to read and process the fault alarm when the optical module has a fault alarm, which leads to abnormal impact on the network. In this way, the fault alarm is actively triggered to the server, so that users can replace the optical module hardware in a timely manner and avoid network abnormalities caused by optical module failure.

[0068] According to embodiments of this disclosure, the method further includes: acquiring digital diagnostic information of the optical module based on sensor capture; and storing the digital diagnostic information in a preset storage format to a digital diagnostic information register.

[0069] According to embodiments of this disclosure, the MCU acquires corresponding digital diagnostic information from each sensor. Each piece of digital diagnostic information can be obtained through the corresponding sensor.

[0070] According to embodiments of this disclosure, digital diagnostic information obtained by the MCU can be stored in the corresponding digital diagnostic information register in a preset storage format based on the address and protocol relationship between the MCU and each digital diagnostic information register.

[0071] According to embodiments of this disclosure, the preset storage format can be storage in hexadecimal format.

[0072] According to embodiments of this disclosure, the remaining lifespan of an optical module is calculated based on the acquired digital diagnostic information, including: retrieving digital diagnostic information stored in a digital diagnostic information register; and calculating the remaining lifespan of the optical module based on the digital diagnostic information and digital diagnostic threshold information.

[0073] According to embodiments of this disclosure, the remaining lifespan of the optical module can be calculated based on the digital diagnostic information stored in the digital diagnostic information register by the MCU and the set digital diagnostic threshold information.

[0074] According to embodiments of this disclosure, digital diagnostic threshold information can be information about when an optical module malfunctions.

[0075] According to embodiments of this disclosure, the remaining lifetime of the optical module can also be calculated based on the acquired digital diagnostic information using a built-in algorithm of the MCU. Since the built-in algorithm can be any algorithm that achieves the remaining lifetime of the optical module, this disclosure does not specifically limit it, as long as it can achieve the desired remaining lifetime of the optical module.

[0076] Figure 3 A flowchart illustrating a method for sending fault alarm information to a server according to an embodiment of the present disclosure is shown schematically.

[0077] like Figure 3 As shown, the method includes operations S310~S320.

[0078] In operation S310, in response to the remaining lifetime being less than or equal to a first preset threshold, the remaining lifetime is stored in the remaining lifetime register, and a value is assigned to the alarm register.

[0079] When operating S320, in response to the value assigned to the alarm register indicating a fault alarm in the optical module, the control fault prediction pin outputs the first level and sends the fault alarm information to the server.

[0080] According to an embodiment of this disclosure, the first preset threshold can be, for example, 720h. When it is determined that the calculated remaining lifetime of the optical module is less than or equal to the first preset threshold, the remaining lifetime can be stored in the remaining lifetime register, and the original value of the alarm register can be updated to the new value.

[0081] According to an embodiment of this disclosure, the MCU obtains the remaining lifetime of the optical module from the remaining lifetime register and obtains a new value from the alarm register. When it is determined that the new value indicates that the optical module has a fault alarm, the MCU obtains the fault alarm information, controls the fault prediction pin to output the first level, and actively sends the fault alarm to the server.

[0082] According to embodiments of this disclosure, the first voltage level can be a high voltage level. Specifically, when a fault alarm occurs, the MCU can control the fault prediction pin to pull high, causing the fault prediction pin to output a high voltage level and send a fault alarm to the server. The high voltage level can be 2.1~3.5.

[0083] According to embodiments of this disclosure, the remaining lifetime register is stored in hexadecimal. For example, the pageA2 byte 129 register and the pageA2 byte 130 register in the optical module can be defined as the remaining lifetime register; the pageA2 byte 128 register can be defined as the alarm register.

[0084] According to an embodiment of this disclosure, when the calculated remaining lifetime of the optical module is 240 hours, which is less than the first preset threshold of 720 hours, the original value "0" in the alarm register is updated to a new value "1", and the remaining lifetime of 720 hours is stored in the remaining lifetime register in hexadecimal storage format. At this time, bytes 128-130 are respectively: 0x01; 0x00; 0xF0. This indicates that the remaining lifetime of the optical module is 240 hours, and a fault alarm has been triggered. The MCU obtains the remaining lifetime and fault alarm information from the register, controls the fault prediction pin output level to the first level, i.e., a high level, and sends a fault alarm to the server.

[0085] According to embodiments of this disclosure, the method further includes: in response to the remaining lifetime being greater than or equal to a second preset threshold, storing the second preset threshold in a remaining lifetime register and maintaining the original value of the alarm register; in response to the original value of the alarm register indicating that the optical module has not experienced a fault alarm, controlling the fault prediction pin to output a second level.

[0086] According to embodiments of this disclosure, the second preset threshold can be, for example, 65535h. It should be noted that the second preset threshold is determined based on the maximum storage space that the remaining lifetime register can store in hexadecimal format. The first and second preset thresholds exemplified above are merely examples.

[0087] According to embodiments of this disclosure, when the calculated remaining lifetime of the optical module is determined to be greater than or equal to a second preset threshold, for example, when the remaining lifetime is 70,000 hours, which is greater than the second preset threshold of 65,535 hours, the alarm register retains its original value of "0". Since the maximum storage space of the remaining lifetime register is 65,535 hours, the second preset threshold of 65,535 hours is stored in the remaining lifetime register in hexadecimal format. At this time, bytes 128-130 are respectively: 0x00; 0xFF; 0xFF. This indicates that the remaining lifetime of the optical module is greater than or equal to 65,535 hours, and there is no fault alarm. The MCU obtains the remaining lifetime and fault alarm information from the register. Since the alarm register retains its original value of "0", the MCU controls the fault prediction pin to output a second level, indicating no fault alarm and not sending a fault alarm to the server. The second level can be a low level, which can be -0.3 to 0.4V.

[0088] According to an embodiment of this disclosure, the method further includes: in response to the remaining lifetime being greater than a first preset threshold and less than a second preset threshold, storing the remaining lifetime in a remaining lifetime register and maintaining the original value of the alarm register; in response to the original value of the alarm register indicating that the optical module has not experienced a fault alarm, controlling the fault prediction pin to output a third level, wherein the first level is greater than both the second and third levels.

[0089] According to embodiments of this disclosure, when the remaining lifetime is determined to be less than the first preset threshold and less than the second preset threshold, for example, when the remaining lifetime is 5000 hours (i.e., the first preset threshold (720 hours) < the remaining lifetime (5000 hours) < the second preset threshold (65535 hours), the remaining lifetime of 5000 hours is stored in the remaining lifetime register in hexadecimal format. Bytes 128-130 are 0x00, 0x13, and 0x88, respectively. This indicates that the remaining lifetime of the optical module is 5000 hours, with no fault alarm. The MCU obtains the remaining lifetime and fault alarm information from the register. Since the alarm register retains its original value of "0", the MCU controls the fault prediction pin to output a third level, indicating no fault alarm and not sending a fault alarm to the server. The third level can be a low level, which can be -0.3 to 0.4V.

[0090] Figure 4A A schematic diagram of an optical module fault alarm method according to an embodiment of the present disclosure is shown. Figure 4B A schematic diagram illustrating the storage of digital diagnostic information according to an embodiment of the present disclosure is shown. Figure 4C A schematic diagram illustrating the calculation of the remaining lifetime of an optical module according to an embodiment of the present disclosure is shown. Figure 4D A schematic diagram illustrating the preservation of remaining lifetime according to an embodiment of the present disclosure is shown. Figure 4E A schematic diagram illustrating the acquisition of remaining lifetime according to an embodiment of the present disclosure is shown.

[0091] Combination Figures 4A-4E As shown, digital diagnostic information 401 of the optical module based on sensor-based capture is obtained, and the digital diagnostic information 401 of the optical module is stored in the digital diagnostic information register 402 (e.g., Figure 4B ). Retrieve digital diagnostic information 403 from the digital diagnostic information register, calculate the remaining lifetime of the optical module 404 (e.g.) Figure 4C In response to the remaining lifetime meeting a preset threshold condition 405, specifically, when the remaining lifetime is less than or equal to a first preset threshold 406, the remaining lifetime obtained from the register is stored in the remaining lifetime register and the alarm register is updated 407, the fault prediction pin is controlled to output a first level, and a fault alarm message is sent to the server 408; when the remaining lifetime is greater than or equal to a second preset threshold 409, the second preset threshold is stored in the remaining lifetime register 410, and the fault prediction pin is controlled to output a second level 411; when the remaining lifetime is greater than the first preset threshold but less than the second preset threshold 412, the remaining lifetime is stored in the remaining lifetime register 413, and the fault prediction pin is controlled to output a third level 414. (e.g.) Figure 4D-4E ).

[0092] Figure 5A block diagram of an optical module fault alarm device according to an embodiment of the present disclosure is shown schematically.

[0093] like Figure 5 As shown, the device 500 includes a lifespan calculation module 510 and a level output module 520.

[0094] The lifetime calculation module 510 is used to calculate the lifetime of the optical module based on the acquired digital diagnostic information to obtain the remaining lifetime of the optical module. The digital diagnostic information represents the operating status of the optical module.

[0095] The level output module 520 is used to control the output level state of the fault prediction pin in response to the remaining lifespan meeting the preset threshold condition. The level state indicates whether to send fault alarm information to the server.

[0096] According to embodiments of this disclosure, an optical module includes a microcontroller unit and gold fingers. The gold fingers include fault prediction pins, and the microcontroller unit is connected to the fault prediction pins. This device is applied to the microcontroller unit in the optical module.

[0097] According to embodiments of this disclosure, the optical module further includes registers, including an alarm register and a remaining lifetime register.

[0098] According to an embodiment of this disclosure, the level output module 520 includes: a remaining lifetime storage first submodule and a first level control submodule.

[0099] The remaining lifetime storage first submodule is used to store the remaining lifetime in the remaining lifetime register and assign a value to the alarm register in response to the remaining lifetime being less than or equal to a first preset threshold.

[0100] The first level control submodule is used to respond to the value information of the alarm register to indicate that the optical module has a fault alarm, control the fault prediction pin to output the first level, and send the fault alarm information to the server.

[0101] According to embodiments of this disclosure, the level output module 520 further includes: a remaining lifetime storage second submodule and a second level control submodule.

[0102] The remaining lifetime storage second submodule is used to store the second preset threshold in the remaining lifetime register in response to the remaining lifetime being greater than or equal to the second preset threshold, while maintaining the original value of the alarm register.

[0103] The second-level control submodule is used to respond to the original assignment of the alarm register to indicate that the optical module has not experienced a fault alarm, and to control the fault prediction pin to output the second level.

[0104] According to embodiments of this disclosure, the level output module 520 further includes a remaining lifetime storage second submodule and a third level control submodule.

[0105] The remaining lifetime storage second submodule is used to store the remaining lifetime in the remaining lifetime register in response to the remaining lifetime being greater than the first preset threshold and less than the second preset threshold, while maintaining the original value of the alarm register.

[0106] The third level control submodule is used to respond to the original assignment of the alarm register to indicate that the optical module has not experienced a fault alarm, and to control the fault prediction pin to output a third level, wherein the first level is greater than the second level and the third level.

[0107] According to embodiments of this disclosure, the optical module further includes a sensor, and the register includes a digital diagnostic information register.

[0108] According to embodiments of this disclosure, the device 500 further includes an information acquisition module and an information storage module.

[0109] The information acquisition module is used to acquire digital diagnostic information from the optical module based on sensor capture.

[0110] The information storage module is used to store digital diagnostic information in a preset storage format to the digital diagnostic information register.

[0111] According to embodiments of this disclosure, the lifetime calculation module 510 includes a retrieval submodule and a calculation submodule.

[0112] The retrieval submodule is used to retrieve the digital diagnostic information stored in the digital diagnostic information register.

[0113] The calculation submodule is used to calculate the remaining lifetime of the optical module based on digital diagnostic information and digital diagnostic threshold information.

[0114] According to embodiments of this disclosure, digital diagnostic information includes: output optical power, received optical power, supply voltage, bias current, or temperature.

[0115] Any one or more of the modules and sub-modules according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules and sub-modules according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.

[0116] For example, any plurality of lifetime calculation modules 510 and level output modules 520 can be combined into one module / submodule, or any one of these modules / submodules can be split into multiple modules / submodules. Alternatively, at least part of the functionality of one or more of these modules / submodules can be combined with at least part of the functionality of other modules / submodules and implemented in one module / submodule. According to embodiments of this disclosure, at least one of lifetime calculation modules 510 and level output modules 520 can be at least partially implemented as hardware circuitry, such as field-programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems-on-a-chip, systems-on-a-substrate, systems-on-package, application-specific integrated circuits (ASICs), or any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of lifetime calculation modules 510 and level output modules 520 can be at least partially implemented as a computer program module, which, when run, can perform corresponding functions.

[0117] It should be noted that the optical module fault alarm device part in the embodiments of this disclosure corresponds to the optical module fault alarm method part in the embodiments of this disclosure. For a detailed description of the optical module fault alarm device part, please refer to the optical module fault alarm method part, which will not be repeated here.

[0118] Figure 6 A block diagram of an electronic device suitable for implementing the optical module fault alarm method described above, according to an embodiment of the present disclosure, is shown schematically. Figure 6The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0119] like Figure 6 As shown, an electronic device according to an embodiment of this disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage portion 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this disclosure.

[0120] RAM 603 stores various programs and data required for the operation of electronic device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Processor 601 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 602 and / or RAM 603. It should be noted that programs may also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.

[0121] According to embodiments of this disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to a bus 604. The electronic device 600 may also include one or more of the following components connected to the input / output (I / O) interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 610 as needed so that computer programs read from it can be installed into the storage section 608 as needed.

[0122] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by processor 601, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0123] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0124] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0125] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0126] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the optical module fault alarm method provided in the embodiments of this disclosure.

[0127] When the computer program is executed by the processor 601, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0128] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and / or installed from the removable medium 611. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0129] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0130] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways, even if such combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0131] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A method for alarming optical module faults, the optical module comprising a microcontroller unit and gold fingers, the gold fingers including fault prediction pins, the microcontroller unit being connected to the fault prediction pins, the method being applied to the microcontroller unit in the optical module, the method comprising: Based on the acquired digital diagnostic information, the lifespan of the optical module is calculated to obtain the remaining lifespan of the optical module, wherein the digital diagnostic information characterizes the operating status of the optical module; In response to the remaining lifetime meeting a preset threshold condition, the output level state of the fault prediction pin is controlled, wherein the level state indicates whether to send a fault alarm message to the server.

2. The method according to claim 1, wherein, The optical module also includes registers, which include an alarm register and a remaining lifetime register; The step of controlling the output level state of the fault prediction pin in response to the remaining lifetime meeting a preset threshold condition includes: In response to the remaining lifetime being less than or equal to a first preset threshold, the remaining lifetime is stored in the remaining lifetime register, and a value is assigned to the alarm register; In response to the value assigned to the alarm register indicating a fault alarm in the optical module, the fault prediction pin is controlled to output a first level and a fault alarm message is sent to the server.

3. The method according to claim 2, wherein, The method further includes: In response to the remaining lifetime being greater than or equal to a second preset threshold, the second preset threshold is stored in the remaining lifetime register, and the original value of the alarm register is maintained; In response to the original value assigned to the alarm register indicating that no fault alarm has occurred in the optical module, the fault prediction pin is controlled to output a second level.

4. The method according to claim 3, wherein, The method further includes: In response to the remaining lifetime being greater than the first preset threshold and less than the second preset threshold, the remaining lifetime is stored in the remaining lifetime register, and the original value of the alarm register is maintained; In response to the original value of the alarm register indicating that no fault alarm has occurred in the optical module, the fault prediction pin is controlled to output a third level, wherein the first level is greater than the second level and the third level.

5. The method according to any one of claims 1 to 4, wherein, The optical module further includes a sensor, the register includes a digital diagnostic information register, and the method further includes: Obtain digital diagnostic information of the optical module based on the sensor; The digital diagnostic information is stored in the digital diagnostic information register in a preset storage format.

6. The method according to claim 5, wherein, The step of calculating the remaining lifespan of the optical module based on the acquired digital diagnostic information includes: Retrieve the digital diagnostic information stored in the digital diagnostic information register; The remaining lifetime of the optical module is calculated based on the digital diagnostic information and digital diagnostic threshold information.

7. The method according to claim 6, wherein, The digital diagnostic information includes: output optical power, received optical power, supply voltage, bias current, or temperature.

8. An optical module fault alarm device, wherein the optical module includes a microcontroller unit and gold fingers, the gold fingers including fault prediction pins, the microcontroller unit being connected to the fault prediction pins, the device being applied to the microcontroller unit in the optical module, the device comprising: The lifespan calculation module is used to calculate the lifespan of the optical module based on the acquired digital diagnostic information to obtain the remaining lifespan of the optical module, wherein the digital diagnostic information characterizes the operating status of the optical module. A level output module is used to control the output level state of the fault prediction pin in response to the remaining lifetime meeting a preset threshold condition, wherein the level state indicates whether to send fault alarm information to the server.

9. An optical module, comprising: The microcontroller unit is configured to calculate the remaining lifetime of the optical module based on digital diagnostic information of the optical module, wherein the digital diagnostic information characterizes the operating status of the optical module; At least one sensor is configured to connect to a first end of the microcontroller unit to capture digital diagnostic information from the optical module; A register is configured to be connected to a second terminal of the microcontroller unit. The register includes a digital diagnostic information register, an alarm register, and a remaining lifetime register. The digital diagnostic information register is configured to store digital diagnostic information of the optical module, the alarm register is configured to store fault alarm information of the optical module, and the remaining lifetime register is configured to store the remaining lifetime of the optical module. The gold finger, including the fault prediction pin, is configured to connect to the third terminal of the microcontroller unit and output fault prediction information of the optical module.

10. An electronic device, comprising: One or more processors; Memory, used to store one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 7.

11. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.

12. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7.