CN114793132A - Optical module detection method and device, electronic equipment and storage medium - Google Patents
Optical module detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114793132A CN114793132A CN202111546774.0A CN202111546774A CN114793132A CN 114793132 A CN114793132 A CN 114793132A CN 202111546774 A CN202111546774 A CN 202111546774A CN 114793132 A CN114793132 A CN 114793132A
- Authority
- CN
- China
- Prior art keywords
- optical module
- fault
- target
- working
- parameter
- 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.)
- Withdrawn
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 267
- 238000001514 detection method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 47
- 230000008439 repair process Effects 0.000 claims description 45
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 abstract description 12
- 230000008569 process Effects 0.000 description 6
- 238000012806 monitoring device Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000013154 diagnostic monitoring Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
- H04B10/0791—Fault location on the transmission path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
- H04B10/0795—Performance monitoring; Measurement of transmission parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/07—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
- H04B10/075—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
- H04B10/079—Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
- H04B10/0795—Performance monitoring; Measurement of transmission parameters
- H04B10/07955—Monitoring or measuring power
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
The application discloses a detection method and device of an optical module, electronic equipment and a storage medium. The method comprises the following steps: detecting an optical module which is inserted into a switch at present to obtain parameter values of all working parameters of the optical module; determining the optical module of which the parameter value does not meet the preset requirement as a fault optical module; determining a fault working parameter corresponding to the fault optical module; and generating alarm information corresponding to the fault optical module based on the fault working parameters, and sending the alarm information. According to the method, the working parameters of the optical module are obtained by monitoring the optical module inserted into the switch, then the optical module of which the parameter value does not meet the preset requirement is automatically determined as the fault optical module, and meanwhile the fault working parameters of the fault optical module are determined.
Description
Technical Field
The present disclosure relates to the field of device detection, and in particular, to a method and an apparatus for detecting an optical module, an electronic device, and a storage medium.
Background
The switch operation process is accompanied with the reading of the DDM alarm information of the optical module, the DDM is Digital diagnosis Monitoring, which is called Digital Diagnostic Monitoring entirely, and is a technology used in the optical module, so that a user can monitor the real-time parameters of the optical module. The parameters comprise working temperature, working voltage, working current, transmitting and receiving optical power and the like, and can also display factory information of the module and prompt alarm/warning. The DDM alarm information can be correspondingly recorded whether the optical module in the switch works normally or fails. By inquiring DDM information of the optical module in the switch in real time, when the optical module fails, the failed optical module needs to be manually checked to screen out failure factors, the failure factors are provided for an administrator to analyze the failure, and the administrator can determine which reason causes the optical module to fail by screening out abnormal working parameters of the failed optical module.
However, the service failure of the switch caused by the failure of the optical module is very serious, the existing troubleshooting process is complex, the repeated labor exists, and the consumed labor and time costs are high.
Disclosure of Invention
In order to solve the above technical problems, or at least partially solve the above technical problems, the present application provides a method, an apparatus, an electronic device, and a storage medium for detecting an optical module.
According to an aspect of an embodiment of the present application, there is provided a method for detecting a light module, including:
detecting an optical module which is inserted into a switch at present to obtain parameter values of all working parameters of the optical module;
determining the optical module of which the parameter value does not meet the preset requirement as a fault optical module;
determining a fault working parameter corresponding to the fault optical module;
and generating alarm information corresponding to the fault optical module based on the fault working parameters, and sending the alarm information.
Further, the detecting an optical module currently inserted into the switch to obtain a parameter value of each operating parameter of the optical module includes:
detecting an optical module which is inserted into a switch at present to obtain state information of the optical module;
determining the optical module with the state information as the working state as an optical module to be detected;
detecting the optical module to be detected to obtain working parameters corresponding to the optical module to be detected, wherein the working parameters comprise at least one of the following items: operating voltage, operating current, temperature, light receiving power, and light emitting power.
Further, the determining the optical module whose parameter value does not meet the preset requirement as a faulty optical module includes:
acquiring a preset value range corresponding to each working parameter, wherein the preset value range is a value range of the optical module under normal working;
and determining the optical module of which the parameter value does not match the preset value range as the fault optical module.
Further, generating warning information corresponding to the faulty optical module based on the faulty operating parameter includes:
acquiring optical module information corresponding to the fault optical module;
and generating the alarm information based on the optical module information and the fault working parameters.
Further, after generating alarm information corresponding to the faulty optical module based on the faulty operating parameter and sending the alarm information, the method further includes:
under the condition that a fault repairing event is monitored, determining a target fault optical module associated with the fault repairing event, wherein the fault repairing event is used for indicating the target fault optical module to repair according to repairing operation;
inquiring the repair progress of the target fault optical module;
under the condition that the repair progress is used for indicating that the target fault optical module finishes the repair operation, detecting the target fault optical module and determining a target working parameter of the target fault optical module;
and determining a repair result of the target fault optical module according to the target working parameters.
Further, the determining, according to the target operating parameter, a repair result of the target failed optical module includes:
comparing the target working parameter with a preset parameter range, wherein the preset value range is a value range of the optical module under normal working;
and under the condition that the target working parameter is matched with the preset parameter range, the repair result of the target fault optical module is successful.
Further, the method further comprises:
under the condition that the repair result is used for indicating that the target fault optical module fails to be repaired, acquiring a candidate optical module matched with the target fault optical module;
and replacing the target fault optical module with the candidate optical module.
According to another aspect of the embodiments of the present application, there is also provided a detection apparatus for an optical module, including:
the detection module is used for detecting the optical module inserted into the switch at present to obtain the working parameters corresponding to the optical module;
the determining module is used for determining the optical module of which the working parameter does not meet the preset requirement as a fault optical module;
the processing module is used for determining the fault working parameters corresponding to the fault optical module;
and the generating module is used for generating alarm information corresponding to the fault optical module based on the fault working parameters and sending the alarm information.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which performs the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages that: according to the method, the working parameters of the optical module are obtained by monitoring the optical module inserted into the switch, then the optical module of which the parameter value does not meet the preset requirement is automatically determined as the fault optical module, and meanwhile the fault working parameters of the fault optical module are determined.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without any inventive exercise.
Fig. 1 is a flowchart of a method for detecting an optical module according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for detecting an optical module according to another embodiment of the present application;
fig. 3 is a block diagram of a detection apparatus for an optical module according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer and more fully described below with reference to the accompanying drawings in the embodiments of the present application, it is obvious that the described embodiments are some, but not all, embodiments of the present application, and the exemplary embodiments and descriptions thereof in the present application are used for explaining the present application and do not constitute an undue limitation on the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.
It is 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 similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a method and a device for detecting an optical module, electronic equipment and a storage medium. The method provided by the embodiment of the present invention may be applied to any required electronic device, for example, the electronic device may be an electronic device such as a server and a terminal, and the method is not specifically limited herein, and for convenience of description, the method is hereinafter simply referred to as an electronic device.
According to an aspect of embodiments of the present application, a method embodiment of a method for detecting an optical module is provided. Fig. 1 is a flowchart of a method for detecting an optical module according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, detecting the optical module currently inserted into the switch, and obtaining parameter values of each operating parameter of the optical module.
In this embodiment of the present application, the step S11 of detecting the optical module currently inserted into the switch to obtain the parameter value of each operating parameter of the optical module includes the following steps a 1-A3:
step a1, detecting the optical module that is currently inserted into the switch to obtain the status information of the optical module.
The method provided by the embodiment of the application is applied to monitoring equipment, and the monitoring equipment is used for monitoring the state information of the optical module inserted into the switch, wherein the state information of the optical module can be a working state and a closing state.
Step A2, determining the optical module with the state information of working state as the optical module to be detected.
In the embodiment of the application, the monitoring device collects the state information of each optical module, and uses the state information to indicate that the optical module in the working state is the optical module to be detected.
And A3, detecting the optical module to be detected to obtain the working parameters corresponding to the optical module to be detected.
In this embodiment, the monitoring device may monitor, in real time, an operating parameter of an optical module that is currently inserted into the switch, where the operating parameter includes at least one of the following: working voltage, working current, temperature, light receiving power and light emitting power. And the follow-up monitoring equipment can determine whether the optical module has a fault according to the working parameters of the optical module.
And step S12, determining the optical module of which the parameter value does not meet the preset requirement as a fault optical module.
In the embodiment of the present application, in step S12, determining the optical module with the parameter value not meeting the preset requirement as the failed optical module includes the following steps B1-B2:
and step B1, acquiring a preset value range corresponding to each working parameter, wherein the preset value range is the value range of the optical module under normal working.
In the embodiment of the application, in order to determine whether the optical module has a fault more accurately, a preset numerical range is added to each working parameter, and the numerical range is used for indicating the numerical range corresponding to the working parameter when the optical module works normally.
In this embodiment of the application, the monitoring device may query a historical monitoring record, where the historical monitoring record includes a plurality of pieces of record information of the optical module, each piece of record information includes a parameter value corresponding to each working parameter when the optical module is in a working state, then determine a minimum value and a maximum value corresponding to each working parameter based on the record information, collect the minimum value in each piece of record information, calculate an average value based on the minimum value in each piece of record information, and determine the average value as a lower limit of a preset numerical range. Meanwhile, collecting the maximum value in each piece of recorded information, calculating an average value based on the maximum value in each piece of recorded information, determining the average value as the upper limit of a preset numerical range, and finally determining the preset numerical range according to the upper limit and the lower limit of the preset numerical range.
And step B2, determining the optical module with the parameter value not matched with the preset value range as a fault optical module.
In the embodiment of the application, after the preset value range is determined, the currently acquired parameter value is matched with the corresponding preset value range, and the optical module of which the parameter value is not matched with the preset value range is determined as the fault optical module.
As an example, the operating parameters include: operating voltage, operating current, temperature, light receiving power, and light emitting power. Determining that the parameter value does not match the preset value range comprises at least one of: the voltage value of the working voltage is not matched with the preset voltage range, or the current value of the working current is not matched with the preset current range, or the temperature is not matched with the preset temperature range, or the power value of the light receiving power is not matched with the preset light receiving power range, or the power value of the light emitting power is not matched with the preset light emitting power range.
And step S13, determining the corresponding fault working parameters of the fault optical module.
In the embodiment of the present application, after the parameter value is matched with the preset value range, the faulty optical module inserted into the switch can be determined, and at this time, the working parameter in the faulty optical module that is not matched with the preset value range is determined as the faulty working parameter.
It should be noted that, when the optical module fails, not all of the parameter values of the operating parameters may be matched with the preset value range, and there is also one or more parameter values of the operating parameters that are not matched with the preset value range.
As an example, the working voltage, the working current, and the temperature of the fault optical module are all normal, but the parameter values of the light receiving frequency and the light emitting frequency are matched with the preset value range, and at this time, the light receiving frequency and the light emitting frequency are determined as the fault working parameters.
And step S14, generating alarm information corresponding to the fault optical module based on the fault working parameters, and sending the alarm information.
In the embodiment of the present application, the step S14 of generating alarm information corresponding to the faulty optical module based on the faulty operating parameter includes the following steps C1-C2:
and step C1, optical module information corresponding to the fault optical module is obtained.
In the embodiment of the application, after the faulty optical module is determined, the optical module type and the optical module identifier corresponding to the faulty optical module are determined, and the optical module type and the optical module identifier are determined as optical module information.
And step C2, generating alarm information based on the optical module information and the fault working parameters.
In the embodiment of the application, the alarm information template is firstly obtained, the optical module information and the fault working parameter are written into the alarm information template to generate the alarm information, and then the alarm information is sent. Specifically, the sending of the warning information may be directly sending the warning information to the specified client. In addition, a target client can be determined according to the type of the optical module carried in the optical module information, and the alarm information is sent to the target client. It should be noted that, a corresponding relationship between the optical module type and the client identifier is determined, a target client identifier corresponding to the optical module type carried in the optical module information is determined based on the corresponding relationship, and then a client corresponding to the target client identifier is determined as a target client.
According to the method provided by the embodiment of the application, the working parameters of the optical module are obtained by monitoring the optical module inserted into the switch, then the optical module of which the parameter value does not meet the preset requirement is automatically determined as the fault optical module, and the fault working parameters of the fault optical module are determined.
Fig. 2 is a flowchart of a method for detecting an optical module according to an embodiment of the present disclosure, and as shown in fig. 2, after generating alarm information corresponding to a faulty optical module based on a faulty working parameter and sending the alarm information, the method may include the following steps:
step S21, determining a target fault optical module associated with the fault repairing event under the condition that the fault repairing event is monitored, wherein the fault repairing event is used for indicating the target fault optical module to repair according to repairing operation.
In this embodiment of the application, after sending the alarm information, the monitoring device monitors whether a fault repair event is sent, and if a fault repair event occurs, determines a target fault optical module associated with the fault repair event, where it is to be noted that the target fault optical module associated with the fault repair event is an optical module that is currently repairing an optical module.
And step S22, inquiring the repair progress of the target fault optical module.
In this embodiment of the present application, after monitoring a fault repair event, the monitoring device may query, in real time, a repair progress corresponding to the target fault optical module, specifically, the repair progress may be obtained according to a state of the current target fault optical module, for example: and under the condition that the target fault optical module is not in the access state at present, the current repair progress is in repair. And if the target fault optical module is in the access state at present, determining that the target fault optical module finishes the repair operation, wherein the repair progress is finished.
And step S23, detecting the target fault optical module and determining the target working parameters of the target fault optical module under the condition that the repair progress is used for indicating that the target fault optical module finishes the repair operation.
In the embodiment of the application, the target failed optical module is detected again when the repair progress is used to indicate that the target failed optical module has performed the repair operation, and specifically, after the target failed optical module is determined to be in the working state, the target failed optical module is detected to obtain the target working parameters of the target failed optical module. The target operating parameters include: working voltage, working current, temperature, light receiving power and light emitting power.
And step S24, determining the repair result of the target fault optical module according to the target working parameters.
In the embodiment of the present application, the step S24 of determining the repair result of the target failed optical module according to the target operating parameters includes the following steps D1-D2:
and D1, comparing the target working parameter with a preset parameter range, wherein the preset value range is the value range of the optical module under normal working.
And D2, under the condition that the target working parameter is matched with the preset parameter range, the repair result of the target fault optical module is that the repair is successful.
In the embodiment of the application, after the target working parameter is obtained, a parameter value corresponding to the target working parameter is matched with a preset parameter range, and if the target working parameter is matched with the preset parameter range, it is determined that the target fault optical module has repaired the fault currently, and the target fault optical module can work normally.
In an embodiment of the application, the method further comprises the following steps E1-E2:
and E1, acquiring a candidate optical module matched with the target fault optical module under the condition that the repair result is used for indicating that the target fault optical module fails to be repaired.
And step E2, replacing the candidate optical module with the target fault optical module.
In the embodiment of the application, if the target working parameter is not matched with the preset parameter range, it is determined that the target fault optical module has not repaired the fault, and the target fault optical module still cannot work normally. And determining whether the fault working parameters in the target working parameters are consistent with the previous fault working parameters, if the fault parameters are inconsistent, determining that a new fault occurs in the target fault optical module, generating new alarm information according to the new fault working parameters, and sending the new alarm information. Therefore, maintenance personnel can quickly position the fault optical module according to the alarm information, analyze the fault working parameters and perform corresponding processing, and solve the fault problem.
The method provided by the embodiment of the application can also carry out secondary detection after the fault optical module is repaired, thereby effectively ensuring the repair efficiency of the fault optical module and simultaneously ensuring that the service of the switch is not influenced.
Fig. 3 is a block diagram of a detection apparatus for an optical module according to an embodiment of the present application, where the detection apparatus may be implemented as part or all of an electronic device through software, hardware, or a combination of the software and the hardware. As shown in fig. 3, the apparatus includes:
the detection module 31 is configured to detect an optical module currently inserted into the switch, and obtain a working parameter corresponding to the optical module;
the determining module 32 is configured to determine an optical module whose working parameter does not meet a preset requirement as a faulty optical module;
the processing module 33 is configured to determine a fault working parameter corresponding to the fault optical module;
and the generating module 34 is configured to generate alarm information corresponding to the fault optical module based on the fault working parameter, and send the alarm information.
In this embodiment of the present application, the detecting module 31 is configured to detect an optical module that is currently inserted into a switch to obtain status information of the optical module; determining the optical module with the state information as the working state as an optical module to be detected; detecting the optical module to be detected to obtain working parameters corresponding to the optical module to be detected, wherein the working parameters comprise at least one of the following items: operating voltage, operating current, temperature, light receiving power, and light emitting power.
In this embodiment of the application, the determining module 32 is configured to obtain a preset value range corresponding to each working parameter, where the preset value range is a value range of the optical module in normal operation; and determining the optical module with the parameter value not matched with the preset value range as a fault optical module.
In this embodiment of the present application, the generating module 34 is configured to obtain optical module information corresponding to a faulty optical module; and generating alarm information based on the optical module information and the fault working parameters.
In this embodiment of the present application, the detection apparatus for an optical module further includes a fault processing module, where the fault processing module includes:
and the monitoring unit is used for determining a target fault optical module associated with the fault repairing event under the condition that the fault repairing event is monitored, wherein the fault repairing event is used for indicating the target fault optical module to repair according to repairing operation.
And the query unit is used for querying the repair progress of the target fault optical module.
The detection unit is used for detecting the target fault optical module and determining a target working parameter of the target fault optical module under the condition that the repair progress is used for indicating that the target fault optical module executes the repair operation;
and the determining module is used for determining the repair result of the target fault optical module according to the target working parameters.
In the embodiment of the application, the determining module is configured to compare the target operating parameter with a preset parameter range, where the preset value range is a value range of the optical module in normal operation; and under the condition that the target working parameters are matched with the preset parameter range, the repairing result of the target fault optical module is that the repairing is successful.
In this embodiment of the present application, the detection apparatus for an optical module further includes an execution module, configured to acquire a candidate optical module matched with a target faulty optical module when a repair result is used to indicate that the target faulty optical module fails to be repaired; and replacing the candidate optical module with the target fault optical module.
According to the embodiment of the application, the optical module inserted into the switch is monitored to obtain the working parameters of the optical module, then the optical module of which the parameter value does not meet the preset requirement is automatically determined as the fault optical module, and meanwhile the fault working parameters of the fault optical module are determined.
An embodiment of the present application further provides an electronic device, as shown in fig. 4, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but does not indicate only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The Memory may include a Random Access Memory (RAM), or may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, there is further provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the method for detecting a light module described in any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for detecting a light module as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the scope of protection of the present application.
The previous description is merely exemplary of the application and is provided to enable any person skilled in the art to understand or practice 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 an optical module, comprising:
detecting an optical module which is inserted into a switch at present to obtain parameter values of all working parameters of the optical module;
determining the optical module of which the parameter value does not meet the preset requirement as a fault optical module;
determining a fault working parameter corresponding to the fault optical module;
and generating alarm information corresponding to the fault optical module based on the fault working parameters, and sending the alarm information.
2. The method according to claim 1, wherein said detecting an optical module currently plugged into a switch to obtain parameter values of respective operating parameters of the optical module comprises:
detecting an optical module which is inserted into a switch at present to obtain state information of the optical module;
determining the optical module with the state information as a working state as an optical module to be detected;
detecting the optical module to be detected to obtain working parameters corresponding to the optical module to be detected, wherein the working parameters comprise at least one of the following items: working voltage, working current, temperature, light receiving power and light emitting power.
3. The method according to claim 1, wherein the determining a light module with the parameter value not meeting preset requirements as a faulty light module comprises:
acquiring a preset value range corresponding to each working parameter, wherein the preset value range is the value range of the optical module under normal working;
and determining the optical module with the parameter value not matched with the preset value range as the fault optical module.
4. The method according to claim 1, wherein generating alarm information corresponding to the faulty optical module based on the faulty operating parameter comprises:
acquiring optical module information corresponding to the fault optical module;
and generating the alarm information based on the optical module information and the fault working parameters.
5. The method according to claim 1, wherein after generating alarm information corresponding to the faulty optical module based on the faulty operating parameter and sending the alarm information, the method further comprises:
determining a target fault optical module associated with a fault repairing event under the condition that the fault repairing event is monitored, wherein the fault repairing event is used for indicating the target fault optical module to repair according to repairing operation;
inquiring the repair progress of the target fault optical module;
under the condition that the repair progress is used for indicating that the target fault optical module finishes the repair operation, detecting the target fault optical module and determining a target working parameter of the target fault optical module;
and determining a repair result of the target fault optical module according to the target working parameters.
6. The method according to claim 5, wherein the determining the repair result of the target fault optical module according to the target operating parameter includes:
comparing the target working parameter with a preset parameter range, wherein the preset value range is the value range of the optical module under normal working;
and under the condition that the target working parameter is matched with the preset parameter range, the repair result of the target fault optical module is successful.
7. The method of claim 5, further comprising:
under the condition that the repair result is used for indicating that the target fault optical module fails to be repaired, acquiring a candidate optical module matched with the target fault optical module;
and replacing the target fault optical module with the candidate optical module.
8. A detection device for a light module, comprising:
the detection module is used for detecting the optical module which is inserted into the switch at present to obtain working parameters corresponding to the optical module;
the determining module is used for determining the optical module of which the working parameter does not meet the preset requirement as a fault optical module;
the processing module is used for determining the fault working parameters corresponding to the fault optical module;
and the generating module is used for generating alarm information corresponding to the fault optical module based on the fault working parameters and sending the alarm information.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method steps of any of the preceding claims 1 to 7.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1-7 by executing a program stored on a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111546774.0A CN114793132A (en) | 2021-12-16 | 2021-12-16 | Optical module detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111546774.0A CN114793132A (en) | 2021-12-16 | 2021-12-16 | Optical module detection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114793132A true CN114793132A (en) | 2022-07-26 |
Family
ID=82460708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111546774.0A Withdrawn CN114793132A (en) | 2021-12-16 | 2021-12-16 | Optical module detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114793132A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115235737A (en) * | 2022-09-08 | 2022-10-25 | 成都思科瑞微电子股份有限公司 | Testing method of photoelectronic device |
CN117193258A (en) * | 2023-10-10 | 2023-12-08 | 朗戈智能系统(上海)有限公司 | Automatic detection method, equipment and computer readable medium for light-operated controller |
WO2024169242A1 (en) * | 2023-02-15 | 2024-08-22 | 华为技术有限公司 | Data processing method applied to fault locating, and optical module |
-
2021
- 2021-12-16 CN CN202111546774.0A patent/CN114793132A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115235737A (en) * | 2022-09-08 | 2022-10-25 | 成都思科瑞微电子股份有限公司 | Testing method of photoelectronic device |
WO2024169242A1 (en) * | 2023-02-15 | 2024-08-22 | 华为技术有限公司 | Data processing method applied to fault locating, and optical module |
CN117193258A (en) * | 2023-10-10 | 2023-12-08 | 朗戈智能系统(上海)有限公司 | Automatic detection method, equipment and computer readable medium for light-operated controller |
CN117193258B (en) * | 2023-10-10 | 2024-05-07 | 朗戈智能系统(上海)有限公司 | Automatic detection method, equipment and computer readable medium for light-operated controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114793132A (en) | Optical module detection method and device, electronic equipment and storage medium | |
CN110716842B (en) | Cluster fault detection method and device | |
CN112148887A (en) | Equipment fault diagnosis method and device, storage medium and electronic equipment | |
CN113259183B (en) | Network relay control method and device, electronic equipment and storage medium | |
CN109254864A (en) | A kind of application failure restorative procedure, device and electronic equipment | |
US8144599B2 (en) | Binary class based analysis and monitoring | |
CN113645085B (en) | Method and device for detecting abnormality of intelligent network card, electronic equipment and storage medium | |
CN113533887B (en) | Intelligent debugging method and system for power distribution terminal | |
CN112148733A (en) | Method, device, electronic device and computer readable medium for determining fault type | |
WO2024148857A1 (en) | Method and apparatus for filtering root cause of server fault, and non-volatile readable storage medium and electronic apparatus | |
WO2014180450A1 (en) | Communications provider network management equipment detection method, device, and computer storage medium | |
CN115718450A (en) | Equipment wire-stopping monitoring method and device, electronic equipment and system | |
US11120037B2 (en) | Test data integration system and method thereof | |
JP2010015246A (en) | Failure information analysis management system | |
KR102150622B1 (en) | System and method for intelligent equipment abnormal symptom proactive detection | |
WO2024098986A1 (en) | Relay protection apparatus defect detection method and system based on intelligent oscillograph | |
CN112817827A (en) | Operation and maintenance method, device, server, equipment, system and medium | |
CN115102838B (en) | Emergency processing method and device for server downtime risk and electronic equipment | |
CN111835566A (en) | System fault management method, device and system | |
CN115878430A (en) | PCIE equipment fault monitoring method and device, communication equipment and storage medium | |
CN114910763A (en) | GIS partial discharge monitoring method and device | |
CN111314103B (en) | Monitoring system and storage medium of data exchange platform | |
CN111556992A (en) | Fault detection device, monitoring control system, and fault detection method | |
TWI794992B (en) | System and method for controlling test jig machine continues to operate based on test results | |
CN110750418B (en) | Information processing method, electronic equipment and information processing system |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220726 |
|
WW01 | Invention patent application withdrawn after publication |