CN112272053B - Optical module health detection method, device and equipment and readable storage medium - Google Patents

Optical module health detection method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN112272053B
CN112272053B CN202011109353.7A CN202011109353A CN112272053B CN 112272053 B CN112272053 B CN 112272053B CN 202011109353 A CN202011109353 A CN 202011109353A CN 112272053 B CN112272053 B CN 112272053B
Authority
CN
China
Prior art keywords
optical module
detected
information
health
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011109353.7A
Other languages
Chinese (zh)
Other versions
CN112272053A (en
Inventor
管彦广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011109353.7A priority Critical patent/CN112272053B/en
Publication of CN112272053A publication Critical patent/CN112272053A/en
Application granted granted Critical
Publication of CN112272053B publication Critical patent/CN112272053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/073Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an out-of-service signal
    • H04B10/0731Testing or characterisation of optical devices, e.g. amplifiers

Abstract

The application discloses an optical module health detection method, an optical module health detection device, optical module health detection equipment and a computer readable storage medium, wherein the method comprises the following steps: identifying the type of a board card connected with an optical module to be detected; calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface; comparing the health information with the corresponding nominal value to obtain a comparison result; and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information. According to the technical scheme, the health detection of the optical modules connected with the board cards of various types is achieved, different detection tools do not need to be developed and designed for the board cards of different types respectively, accordingly, the universality and the efficiency of the health detection of the optical modules are improved, the positioning of the optical modules to be detected can be achieved through the background information of the optical modules to be detected, and the health detection results of the different optical modules can be identified according to the background information.

Description

Optical module health detection method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of optical module health detection technologies, and in particular, to an optical module health detection method, apparatus, device, and computer-readable storage medium.
Background
In a cloud computing data center, with the development of internet technology, network data increases dramatically, requirements for network storage are higher and higher, bandwidth of a data center server network is also increasing, bandwidth of a network card, an FC (Fiber Channel) card and the like for data transmission is also widening, data transmission rate of an optical module responsible for data photoelectric conversion is also increased from 155M, 622M, 1.25G, 2.5G, 4.25G, 10G, 40G and the like to 100G, such high-speed data transmission is essential for health stability of the optical module, and therefore, health detection needs to be performed on the optical module.
At present, for optical modules connected to different boards, different detection tools are generally required to be developed and designed for different boards during health detection of the optical modules, and then the corresponding detection tools are used to perform health detection on the optical modules connected to the corresponding boards. Because the corresponding detection tools need to be developed and designed for different board cards to perform health detection on the optical module connected with the board card, the health detection efficiency of the optical module can be reduced.
In summary, how to improve the health detection efficiency of the optical module is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a computer readable storage medium for optical module health detection, which are used to improve the health detection efficiency of an optical module.
In order to achieve the above purpose, the present application provides the following technical solutions:
a light module health detection method, comprising:
identifying the type of a board card connected with an optical module to be detected;
calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface;
comparing the health information with a corresponding nominal value to obtain a comparison result;
and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information.
Preferably, when the type of the board card is identified as an onboard network card, calling an interface corresponding to the type of the board card, and acquiring the health information of the optical module to be detected through the interface, the method includes:
calling an I2C read-write interface corresponding to the onboard network card, detecting the EEPROM component of the optical module to be detected through the I2C read-write interface to identify the EEPROM data mode of the optical module to be detected, and reading the health information of the optical module to be detected according to the EEPROM data mode.
Preferably, when the type of the board card is identified as an add-in card, calling an interface corresponding to the type of the board card, and acquiring the health information of the optical module to be detected through the interface, the method includes:
and calling a corresponding external plug-in card firmware interface according to the type of the external plug-in card, and acquiring the health information of the optical module to be detected through the external plug-in card firmware interface.
Preferably, identifying the type of the board card connected to the optical module to be detected includes:
and acquiring the type of the board card connected with the optical module to be detected according to the input type of the board card.
Preferably, identifying the type of the board card connected to the optical module to be detected includes:
and inquiring information by sending an lspci instruction, and identifying the type of the board card connected with the optical module to be detected according to the inquired information.
Preferably, the acquiring background information of the optical module to be detected includes:
acquiring basic information of the optical module to be detected;
reading VPD information through a BMC (baseboard management controller) to acquire position information of a control frame according to the VPD information;
and traversing pci bus information of the type of the board card connected with the optical module to be detected, and mapping out slot position information and silk screen information of the optical module to be detected according to the pci bus information.
Preferably, after obtaining the health detection result of the optical module to be detected according to the comparison result and the background information, the method further includes:
and displaying the health detection result.
A light module health detection device, comprising:
the identification module is used for identifying the type of the board card connected with the optical module to be detected;
the calling module is used for calling an interface corresponding to the type of the board card and acquiring the health information of the optical module to be detected through the interface;
the comparison module is used for comparing the health information with a corresponding nominal value to obtain a comparison result;
and the acquisition module is used for acquiring the background information of the optical module to be detected and obtaining the health detection result of the optical module to be detected according to the comparison result and the background information.
A light module health detection device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the light module health detection method as defined in any of the above when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of a light module health detection method as claimed in any one of the above.
The application provides a method, a device, equipment and a computer readable storage medium for optical module health detection, wherein the method comprises the following steps: identifying the type of a board card connected with an optical module to be detected; calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface; comparing the health information with the corresponding nominal value to obtain a comparison result; and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information.
According to the technical scheme, the type of the board card connected with the optical module to be detected is identified, the interface corresponding to the identified type of the board card is called, the health information of the optical module to be detected is acquired through the interface, then the health information is compared with the nominal value to obtain a comparison result, then the health detection result of the optical module to be detected is obtained according to the comparison result and the acquired background information of the optical module to be detected, the health detection of the optical module connected with each type of board card is achieved through the method, different detection tools do not need to be developed and designed respectively for different types of board cards, therefore, the universality and the efficiency of the optical module health detection are improved, the positioning of the optical module to be detected can be achieved through the background information of the optical module to be detected, and the health detection results of different optical modules can be identified according to the background information.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for detecting health of an optical module according to an embodiment of the present disclosure;
fig. 2 is a schematic connection diagram of an onboard network card and an optical module provided in the embodiment of the present application;
fig. 3 is a schematic connection diagram of an add-in card and an optical module according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an optical module health detection apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an optical module health detection device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, which shows a flowchart of an optical module health detection method provided in an embodiment of the present application, the optical module health detection method provided in the embodiment of the present application may include:
s11: and identifying the type of the board card connected with the optical module to be detected.
In view of the fact that different detection tools need to be developed and designed for different board cards at present to perform health detection on the optical module connected with the board card by using the detection tools, the health detection efficiency of the optical module can be reduced.
Specifically, the type of the board card connected to the optical module to be detected may be identified, where the type of the board card mentioned herein may include an on-board network card and an add-in card, that is, the present application may be applicable to an optical module interface of the on-board network card and an optical module interface in the Form of an add-in card, and the add-in card includes but is not limited to an ethernet card with an optical module interface, an FC card, a PCIe adapter card, an IB (information button) card, a QAT (Quick Assist Technology, which is a hardware acceleration Technology that intel proposes for network security and data storage), and the type of the optical module mentioned herein includes but is not limited to an SFP (Small Form-factor plug, compact Small heat-Pluggable transceiver module), an SFP +, an SFP28, a QSFP (Quick Form-factor plug, a four-channel SFP interface)/QSFP +, QSFP28, and the like, and the connection structure of the optical module may specifically be the following two types:
one is an onboard network card + optical module structure, specifically refer to fig. 2, which shows a schematic connection diagram of the onboard network card and the optical module provided in the embodiment of the present application, as shown in fig. 2, a PCH (Platform Controller Hub, an Integrated south bridge of intel corporation) in a HOST is connected to the onboard network card through PCIe (Peripheral Component Interconnect Express, high speed serial computer extended bus standard), the onboard network card manages Data Input and Output through MDIO (Management Data Input/Output), this path mainly performs high-bandwidth service Data transmission, and the PCH is directly connected to the optical module through I2C (Inter-Integrated Circuit);
the other is an add-in card + optical module structure, specifically refer to fig. 3, which shows a schematic connection diagram of an add-in card and an optical module provided in the embodiment of the present application, as shown in fig. 3, a PCH is connected to an add-in card (including but not limited to an ethernet card with an optical module interface, an FC card, a PCIe adapter card, an IB card, and a QAT compression card) through PCIe, an optical module is connected to the add-in card through an MDIO and an I2C, where the MDIO is responsible for high-bandwidth service data transmission, the I2C is responsible for reading and writing information of an EEPROM (Electrically Erasable Programmable read only memory) inside the optical module, and the HOST communicates with an add-in card firmware in an in-band manner.
S12: and calling an interface corresponding to the type of the board card, and acquiring the health information of the optical module to be detected through the interface.
After the type of the board card connected to the optical module to be detected is identified, an Interface corresponding to the type of the board card may be called, health information of the optical module to be detected is acquired through the called Interface, and the acquired health information of the optical module to be detected is stored, where the health information of the optical module to be detected is DDMI (digital Diagnostics monitoring Interface) data of the optical module to be detected, and specifically includes working voltage, bias current, temperature, received optical power, and transmitted optical power.
It should be noted that, if the health information of the optical module to be detected cannot be read through the called interface, the information of the detection failure is displayed, and the detection process may be exited.
S13: and comparing the health information with the corresponding nominal value to obtain a comparison result.
After the health information of the optical module to be detected is acquired, the health information of the optical module to be detected can be compared with a corresponding nominal value which is input in advance or stored in advance, specifically, the acquired working voltage, bias current, temperature, received optical power and transmitted optical power are respectively compared with the corresponding nominal value to obtain a comparison result, and whether the health information of the optical module to be detected meets the requirement of the nominal value or not is determined according to the comparison result, so that whether the optical module to be detected is healthy or not is judged.
S14: and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information.
In addition, when the optical module is subjected to health detection, background information of the optical module to be detected can be acquired, and then a health detection result of the optical module to be detected can be obtained according to the comparison result of the optical module to be detected and the background information of the optical module to be detected, that is, the health detection result of the optical module to be detected can include the comparison result and the background information of the optical module to be detected, wherein the optical module to be detected can be positioned through the background information of the optical module to be detected, so that it is convenient to know which optical module to be detected is subjected to health detection, and the health condition of the optical module to be detected can be determined through the comparison result of the optical module to be detected.
Through the process, the health information of the optical modules connected with different board card types can be acquired, the health detection of the optical modules connected with different board card types is realized without developing and designing different detection tools for different board card types, the complexity of the health detection of the optical modules is reduced, and the efficiency of the health detection of the optical modules is improved.
According to the technical scheme, the type of the board card connected with the optical module to be detected is identified, the interface corresponding to the identified type of the board card is called, the health information of the optical module to be detected is acquired through the interface, then the health information is compared with the nominal value to obtain a comparison result, then the health detection result of the optical module to be detected is obtained according to the comparison result and the acquired background information of the optical module to be detected, the health detection of the optical module connected with each type of board card is achieved through the method, different detection tools do not need to be developed and designed respectively for different types of board cards, therefore, the universality and the efficiency of the optical module health detection are improved, the positioning of the optical module to be detected can be achieved through the background information of the optical module to be detected, and the health detection results of different optical modules can be identified according to the background information.
According to the optical module health detection method provided by the embodiment of the application, when the board card type is identified as the board-mounted network card, an interface corresponding to the board card type is called, and the health information of the optical module to be detected is acquired through the interface, which can include:
and calling an I2C read-write interface corresponding to the onboard network card, detecting the EEPROM component of the optical module to be detected through the I2C read-write interface to identify the EEPROM data mode of the optical module to be detected, and reading the health information of the optical module to be detected according to the EEPROM data mode.
In this application, when the type of the board card connected to the optical module to be detected is identified as the board-mounted network card, the interface corresponding to the type of the board card is called, and the specific process of acquiring the health information of the optical module to be detected through the interface may be: calling an I2C read-write interface corresponding to the onboard network card, detecting an EEPROM assembly of an optical module to be detected by using the I2C read-write interface, firstly identifying an EEPROM data mode (EEPROM data format) of the optical module to be detected, then reading health information of the optical module to be detected with the 8079, 8472 or 8636 protocol according to the EEPROM data mode, and storing the read health information, namely, the health detection of the optical module to be detected connected with the onboard network card can be realized conveniently through the process.
According to the optical module health detection method provided by the embodiment of the application, when the type of the board card is identified as the external plug-in card, an interface corresponding to the type of the board card is called, and health information of the optical module to be detected is acquired through the interface, and the method can include the following steps:
and calling the corresponding external plug-in card firmware interface according to the type of the external plug-in card, and acquiring the health information of the optical module to be detected through the external plug-in card firmware interface.
In the application, when the type of the board card connected with the optical module to be detected is identified as the external plug-in card, the external plug-in card firmware interface corresponding to the external plug-in card can be called correspondingly according to the type of the connected external plug-in card, the health information of the optical module to be detected can be acquired through the called external plug-in card firmware interface, specifically, the internal EEPROM information of the optical module can be read and written through I2C between the external plug-in card and the optical module, so that the health information of the optical module to be detected can be acquired, and the acquired health information can be stored, namely, the health detection of the optical module to be detected connected with the external plug-in card can be realized conveniently through the processes.
The method for detecting the health of the optical module, provided by the embodiment of the application, identifies the type of the board card connected with the optical module to be detected, and may include:
and acquiring the type of the board card connected with the optical module to be detected according to the input type of the board card.
When the type of the board card connected with the optical module to be detected is identified, the type of the board card input by a user can be specifically received, then the type of the board card connected with the optical module to be detected can be obtained according to the input type of the board card, and the identification mode can improve the identification efficiency of the type of the board card, so that the health detection efficiency of the optical module can be improved conveniently.
The optical module health detection method provided by the embodiment of the application identifies the type of the board card connected with the optical module to be detected, and may include:
and inquiring information by sending an lspci instruction, and identifying the type of the board card connected with the optical module to be detected according to the inquired information.
The method includes the steps that the type of the board card is identified according to the type of the input board card, the type of the board card can be identified in an automatic identification mode, so that the accuracy of the type identification of the board card is improved, specifically, information can be inquired by sending an lspci instruction, wherein the lspci instruction is a tool used for displaying all PCI bus equipment in a system or all equipment connected to the PCI bus, and then the type of the board card connected with an optical module to be detected can be identified according to the inquired information.
The method for detecting health of an optical module, provided by the embodiment of the application, is used for acquiring background information of the optical module to be detected, and may include:
acquiring basic information of an optical module to be detected;
reading the VPD information through the BMC to acquire the position information of the control frame according to the VPD information;
and traversing pci bus information of the type of the board card connected with the optical module to be detected, and mapping out slot position information and silk screen information of the optical module to be detected according to the pci bus information.
Specifically, the background information of the optical module to be detected can be acquired in the following manner:
acquiring basic information of an optical module to be detected, wherein the basic information includes but is not limited to the type, part Number, serial Number (SN), and version of the optical module to be detected;
reading VPD (Virtual Product Development) information through a BMC (Baseboard Management Controller), and acquiring position information of a control frame according to the VPD information, wherein the position information of the control frame comprises mtm, pn and sn information of the control frame; if the VPD information cannot be obtained, a log is printed, detection failure information is displayed, and the detection process exits;
and traversing pci bus (Peripheral Component Interconnect standard bus) information of the type of the board card connected with the optical module to be detected, and mapping slot position information and silk screen information of the optical module to be detected according to the pci bus information.
Through the above process, the background information of the optical module to be detected may include basic information, position information of the control frame, slot position information, and screen printing information, so as to perform a positioning function on the optical module to be detected according to the background information of the optical module to be detected.
In addition, it should be noted that after the pci bus information of the type of the board connected to the optical module to be detected is traversed, the type information of the board may be obtained according to the pci bus information, where the type information of the board mentioned herein includes, but is not limited to, vendor id, device id, sub vendor id, sub device id, class id, and version information.
After obtaining the health detection result of the optical module to be detected according to the comparison result and the background information, the method for detecting health of an optical module provided by the embodiment of the application may further include:
and displaying the health detection result.
After the health detection result of the optical module to be detected is obtained according to the comparison result and the background information, the health detection result of the optical module to be detected can be displayed, so that a user can know the health condition of the optical module to be detected in time.
An embodiment of the present application further provides an optical module health detection apparatus, see fig. 4, which shows a schematic structural diagram of the optical module health detection apparatus provided in the embodiment of the present application, and the optical module health detection apparatus may include:
the identification module 41 is used for identifying the type of the board card connected with the optical module to be detected;
the calling module 42 is used for calling an interface corresponding to the type of the board card and acquiring the health information of the optical module to be detected through the interface;
a comparing module 43, configured to compare the health information with a corresponding nominal value to obtain a comparison result;
and the obtaining module 44 is configured to obtain background information of the optical module to be detected, and obtain a health detection result of the optical module to be detected according to the comparison result and the background information.
According to the optical module health detection device provided by the embodiment of the application, when the board card type is identified as an onboard network card, the calling module 42 may include:
the first calling unit is used for calling an I2C read-write interface corresponding to the onboard network card, detecting the EEPROM component of the optical module to be detected through the I2C read-write interface so as to identify the EEPROM data mode of the optical module to be detected, and reading the health information of the optical module to be detected according to the EEPROM data mode.
According to the optical module health detection device provided by the embodiment of the application, when the type of the board card is identified as an external plug-in card, the calling module 42 may include:
and the second calling unit is used for calling the corresponding external plug-in card firmware interface according to the type of the external plug-in card and acquiring the health information of the optical module to be detected through the external plug-in card firmware interface.
In an optical module health detection apparatus provided in an embodiment of the present application, the identification module 41 may include:
and the first identification unit is used for acquiring the type of the board card connected with the optical module to be detected according to the input type of the board card.
In an optical module health detection apparatus provided in an embodiment of the present application, the identification module 41 may include:
and the second identification unit is used for inquiring information by sending the lspci instruction and identifying the type of the board card connected with the optical module to be detected according to the inquired information.
In an optical module health detection apparatus provided in an embodiment of the present application, the obtaining module 44 may include:
the acquisition unit is used for acquiring basic information of the optical module to be detected;
the reading unit is used for reading the VPD information through the BMC so as to obtain the position information of the control frame according to the VPD information;
and the mapping unit is used for traversing pci bus information of the type of the board card connected with the optical module to be detected and mapping slot position information and silk screen information of the optical module to be detected according to the pci bus information.
The optical module health detection device provided by the embodiment of the application can further include:
and the display module is used for displaying the health detection result after the health detection result of the optical module to be detected is obtained according to the comparison result and the background information.
An embodiment of the present application further provides an optical module health detection device, referring to fig. 5, which shows a schematic structural diagram of an optical module health detection device provided in the embodiment of the present application, and the optical module health detection device may include:
a memory 51 for storing a computer program;
the processor 52, when executing the computer program stored in the memory 51, may implement the following steps:
identifying the type of a board card connected with an optical module to be detected; calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface; comparing the health information with the corresponding nominal value to obtain a comparison result; and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps may be implemented:
identifying the type of a board card connected with an optical module to be detected; calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface; comparing the health information with the corresponding nominal value to obtain a comparison result; and acquiring background information of the optical module to be detected, and acquiring a health detection result of the optical module to be detected according to the comparison result and the background information.
For a description of a relevant part in an optical module health detection apparatus, a device, and a computer readable storage medium provided in the embodiments of the present application, reference may be made to detailed descriptions of a corresponding part in an optical module health detection method provided in the embodiments of the present application, and details are not repeated here.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for detecting health of an optical module is characterized by comprising the following steps:
identifying the type of a board card connected with an optical module to be detected; the board card is used for carrying out service data transmission with the connected optical module to be detected;
calling an interface corresponding to the type of the board card, and acquiring health information of the optical module to be detected through the interface; the health information of the optical module to be detected is DDMI data of the optical module to be detected, and specifically comprises working voltage, bias current, temperature, received optical power and transmitted optical power;
comparing the health information with a corresponding nominal value to obtain a comparison result; comparing the health information with the corresponding nominal value to obtain a comparison result, comprising: comparing the obtained working voltage, bias current, temperature, received optical power and transmitted optical power with corresponding nominal values respectively to obtain comparison results;
acquiring background information of the optical module to be detected, and obtaining a health detection result of the optical module to be detected according to the comparison result and the background information; the health detection result of the optical module to be detected comprises a comparison result and background information of the optical module to be detected, wherein the optical module to be detected can be positioned through the background information of the optical module to be detected.
2. The optical module health detection method according to claim 1, wherein when it is recognized that the type of the board card is an onboard network card, an interface corresponding to the type of the board card is called, and the health information of the optical module to be detected is acquired through the interface, and the method includes:
calling an I2C read-write interface corresponding to the onboard network card, detecting the EEPROM component of the optical module to be detected through the I2C read-write interface to identify the EEPROM data mode of the optical module to be detected, and reading the health information of the optical module to be detected according to the EEPROM data mode.
3. The optical module health detection method according to claim 1, wherein when the type of the board card is identified as an add-in card, an interface corresponding to the type of the board card is called, and health information of the optical module to be detected is acquired through the interface, and the method includes:
and calling a corresponding external plug-in card firmware interface according to the type of the external plug-in card, and acquiring the health information of the optical module to be detected through the external plug-in card firmware interface.
4. The optical module health detection method according to any one of claims 1 to 3, wherein identifying the type of the board card connected to the optical module to be detected includes:
and acquiring the type of the board card connected with the optical module to be detected according to the input type of the board card.
5. The optical module health detection method according to any one of claims 1 to 3, wherein identifying the type of the board card connected to the optical module to be detected includes:
and inquiring information by sending an lspci instruction, and identifying the type of the board card connected with the optical module to be detected according to the inquired information.
6. The optical module health detection method according to claim 1, wherein the obtaining of the background information of the optical module to be detected comprises:
acquiring basic information of the optical module to be detected;
reading VPD information through a BMC (baseboard management controller) to acquire position information of a control frame according to the VPD information;
and traversing the pcibus information of the type of the board card connected with the optical module to be detected, and mapping the slot position information and the silk screen information of the optical module to be detected according to the pcibus information.
7. The method for health detection of an optical module according to claim 1, further comprising, after obtaining the health detection result of the optical module to be detected according to the comparison result and the background information:
and displaying the health detection result.
8. A light module health detection device, comprising:
the identification module is used for identifying the type of the board card connected with the optical module to be detected; the board card is used for carrying out service data transmission with the connected optical module to be detected;
the calling module is used for calling an interface corresponding to the type of the board card and acquiring the health information of the optical module to be detected through the interface; the health information of the optical module to be detected is DDMI data of the optical module to be detected, and specifically comprises working voltage, bias current, temperature, received optical power and transmitted optical power;
the comparison module is used for comparing the health information with a corresponding nominal value to obtain a comparison result; comparing the health information with the corresponding nominal value to obtain a comparison result, including: comparing the obtained working voltage, bias current, temperature, received optical power and transmitted optical power with corresponding nominal values respectively to obtain comparison results;
the acquisition module is used for acquiring background information of the optical module to be detected and obtaining a health detection result of the optical module to be detected according to the comparison result and the background information; the health detection result of the optical module to be detected comprises a comparison result and background information of the optical module to be detected, wherein the optical module to be detected can be positioned through the background information of the optical module to be detected.
9. A light module health detection device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the light module health detection method as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the light module health detection method according to any of the claims 1 to 7.
CN202011109353.7A 2020-10-16 2020-10-16 Optical module health detection method, device and equipment and readable storage medium Active CN112272053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011109353.7A CN112272053B (en) 2020-10-16 2020-10-16 Optical module health detection method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109353.7A CN112272053B (en) 2020-10-16 2020-10-16 Optical module health detection method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112272053A CN112272053A (en) 2021-01-26
CN112272053B true CN112272053B (en) 2022-10-21

Family

ID=74338171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109353.7A Active CN112272053B (en) 2020-10-16 2020-10-16 Optical module health detection method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112272053B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115041429B (en) * 2022-08-15 2023-01-31 中国电子科技集团公司第三十研究所 Multi-variety mixed line testing device and method for communication module products

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835460A (en) * 2005-03-16 2006-09-20 华为技术有限公司 Method and device of detecting mono-board electrical interface by using optical modular
CN105306324A (en) * 2015-09-22 2016-02-03 上海斐讯数据通信技术有限公司 Ethernet multiplexed communication system and Ethernet interface setting method applied to Ethernet multiplexed communication system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494500A (en) * 2009-02-23 2009-07-29 华为技术有限公司 Optical communication method, veneer and equipment
US10484100B2 (en) * 2017-08-25 2019-11-19 Source Photonics (Chengdu) Co. Ltd. Optical module, optical module system and monitor method using the same
TWI672587B (en) * 2018-07-20 2019-09-21 威剛科技股份有限公司 Light-emitting control system and method
CN110501533A (en) * 2019-08-13 2019-11-26 深圳市迅特通信技术有限公司 A kind of QSFP28 optical module test switching device and test method
CN110784259B (en) * 2019-11-05 2020-11-10 中电科仪器仪表有限公司 PAM 4-based integrated optical module error code tester
CN110855353B (en) * 2019-11-19 2021-08-06 中电科思仪科技股份有限公司 Error code tester and test system suitable for various types of optical modules

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835460A (en) * 2005-03-16 2006-09-20 华为技术有限公司 Method and device of detecting mono-board electrical interface by using optical modular
CN105306324A (en) * 2015-09-22 2016-02-03 上海斐讯数据通信技术有限公司 Ethernet multiplexed communication system and Ethernet interface setting method applied to Ethernet multiplexed communication system

Also Published As

Publication number Publication date
CN112272053A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN109558371B (en) Method for communicating with a microcontroller, and computing system
CN111131936B (en) Optical module monitoring method, monitoring device, switch and storage medium
CN102893269A (en) System and method for routing i/o expansion requests and responses in a pcie architecture
CN106789386A (en) The method and the error detector for network system of mistake on detection communication bus
CN112272053B (en) Optical module health detection method, device and equipment and readable storage medium
US9619354B2 (en) Mobile device and chassis with contactless tags to diagnose hardware and software faults
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
CN211505789U (en) PCIE board card testing arrangement
US11422699B2 (en) Storage device and component management method of storage device
US20140068352A1 (en) Information processing apparatus and fault processing method for information processing apparatus
CN104903865A (en) Restoring a previous version of a virtual machine image
CN102455965A (en) Electronic device test system and method
US7707336B2 (en) Universal serial bus (USB) system with single port and host controller thereof
CN116582471B (en) PCIE equipment, PCIE data capturing system and server
US11719890B2 (en) Passive optical couplers having passive optical activity indicators and methods of operating the same
US10664339B2 (en) Information processing apparatus, information processing system, and information processing apparatus control method
CN111626387B (en) Single data source label detection device and method
CN110248181A (en) External equipment self-resetting method, device, system and computer-readable medium
CN205644589U (en) License plate classification device
CN113869201A (en) Image identification method and electronic equipment
US9742654B1 (en) Communication interface testing
CN214473764U (en) Board card detection system
CN211656237U (en) AI intelligent camera
CN104102515A (en) Method and server for processing logical unit number of plug-in storage equipment
RU2715361C1 (en) Monitoring system of split connections of cable path

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant