+

WO2016197606A1 - Method and device for acquiring optical module state information - Google Patents

Method and device for acquiring optical module state information Download PDF

Info

Publication number
WO2016197606A1
WO2016197606A1 PCT/CN2016/071211 CN2016071211W WO2016197606A1 WO 2016197606 A1 WO2016197606 A1 WO 2016197606A1 CN 2016071211 W CN2016071211 W CN 2016071211W WO 2016197606 A1 WO2016197606 A1 WO 2016197606A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical module
signal
state
level signal
status information
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.)
Ceased
Application number
PCT/CN2016/071211
Other languages
French (fr)
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2016197606A1 publication Critical patent/WO2016197606A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for acquiring state information of an optical module.
  • Optical modules are the key components that are used on most interface boards. When an optical module fails, a reliable mechanism is needed to detect the failure. In particular, when a single board uses multiple optical modules, it is necessary to quickly locate which optical module is faulty when the fault occurs.
  • FIG. 1 is a schematic diagram of the connection relationship between the optical module interrupt line and the logic device in the related art. As shown in FIG. 1 , the connection relationship is an optical module. A one-way interrupt signal line connection between the logic device and the processor. When an abnormality occurs in the optical module, a low level signal is output to the interrupt line. After receiving the signal, the logic device transmits the signal to the processor, and the processor accesses the abnormal register of the optical module through the IIC interface simulated by the logic device to locate the cause of the abnormality;
  • the optical module's interrupt signal (INT) is connected to the logic device, and the logic device has a signal connected to the CPU's interrupt pin.
  • the signal will be sent to the interrupt pin of the CPU via the logic device to inform the CPU that the optical module has an abnormality.
  • the status information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted on the board, but the optical module status information is caused by the error signal reported by the external interference.
  • the problem of reporting low accuracy has not yet proposed an effective solution.
  • the embodiment of the invention provides a method and a device for acquiring state information of an optical module, so as to solve at least a serious abnormality of the optical module in the related art, and the state information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted into the board.
  • the optical module status information reporting accuracy is low due to the erroneous reporting of the interrupt signal caused by external interference.
  • a method for obtaining state information of an optical module includes: acquiring a signal for indicating an in-position state of the optical module; and indicating, in the state of the in-position state, the light Module When in position, the state information stored locally by the optical module is obtained.
  • the acquiring a signal for indicating an in-position state of the optical module includes: acquiring a level signal locally stored by the logic device for indicating an in-position state of the optical module, where the level The signal includes a low level signal indicating that the optical module is in position and a high level signal indicating that the optical module is not in position.
  • the optical module is connected to the logic device by a bit signal line.
  • the acquiring state information locally stored by the optical module includes: reading status information locally stored by the optical module; and the status information is abnormal The abnormal state information is reported; when the state information is not abnormal, the state information stored locally by the optical module is continuously read.
  • the method further includes: periodically acquiring a signal for indicating an in-position state of the optical module when the level signal is a high level.
  • a device for acquiring state information of an optical module comprising: a first acquiring module, configured to acquire a signal for indicating an in-position state of the optical module
  • the second obtaining module is configured to acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.
  • the first obtaining module is further configured to acquire a level signal locally stored by the logic device for indicating an in-position state of the optical module, where the level signal includes: a low level signal and A high level signal indicating that the optical module is in position, the high level signal indicating that the optical module is not in position.
  • the optical module is connected to the logic device by a bit signal line.
  • the second acquiring module includes: a first reading unit configured to read state information locally stored by the optical module; and a reporting unit configured to When the status information is abnormal, the abnormal status information is reported; and the second reading unit is configured to continue to read the status information locally stored by the optical module when the status information is not abnormal.
  • the device further includes: a third acquiring module, configured to periodically acquire a signal for indicating an in-position state of the optical module when the level signal is a high level.
  • a third acquiring module configured to periodically acquire a signal for indicating an in-position state of the optical module when the level signal is a high level.
  • the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs.
  • the abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology.
  • a serious abnormality occurred in the optical module, causing status information such as an interrupt signal to fail.
  • the problem that the optical module status information reporting accuracy rate is low is caused by the fact that the optical module status information is reported incorrectly due to the erroneous reporting of the interrupt signal caused by external interference.
  • FIG. 1 is a schematic diagram showing a connection relationship between an optical module interrupt line and a logic device in the related art
  • FIG. 2 is a flowchart of a method for acquiring state information of an optical module according to an embodiment of the present invention
  • FIG. 3 is an optional flowchart 1 of a method for acquiring state information of an optical module according to an embodiment of the present invention
  • FIG. 4 is an optional flowchart 2 of a method for acquiring state information of an optical module according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention.
  • FIG. 6 is a block diagram 1 of an optional structure of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention
  • FIG. 7 is a block diagram 2 of an optional structure of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram showing a connection relationship between an optical module interrupt line and a logic device according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of software processing of a method for acquiring state information of an optical module according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for acquiring state information of an optical module according to an embodiment of the present invention. As shown in FIG. 2, the method of the embodiment of the present invention is shown in FIG. Including steps S102-S104:
  • Step S102 Acquire a signal for indicating an in-position state of the optical module.
  • the signal of the in-position state of the optical module may be saved in the local memory and the external memory.
  • the signal of the in-position state of the optical module is saved in the external memory, and the external memory is used.
  • the acquiring a signal for indicating the in-position state of the optical module further includes acquiring, by the logic device, a level signal locally used to indicate an in-position state of the optical module, and the level signal is according to the light.
  • the level of the interface where the module is located includes: a low level signal and a high level signal, depending on the physical properties and level settings of the optical module interface.
  • the light when the optical module is in position, the light is The level signal of the interface where the module is located is low level.
  • the level signal of the interface where the optical module is located is high level, that is, the low level signal indicates that the optical module is in place.
  • the high level signal indicates that the optical module is not in position.
  • the optical module is connected to the logic device by using a bit signal line.
  • the logic device may be connected to a single optical module through an in-position signal line, or may be an in-position signal line and multiple optical modules.
  • the connection, the in-position signal line may be an independent integrated circuit bus IIC, which is merely illustrative and not limited.
  • the logic device is connected to the plurality of optical modules through the IIC bus.
  • the optical module is connected according to the physical address of the interface where the optical module is located.
  • Corresponding IIC line numbers according to the number, sequentially obtain signals indicating the in-position state of the optical module according to a certain timing, or simultaneously acquire signals indicating the in-position state of the optical module.
  • Step S104 Acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.
  • the signal indicating the in-position state of the optical module is obtained, where the in-position state of the optical module is obtained, where the in-position state includes: the optical module is in position and the optical module is not in position; the signal in the in-position state indicates the optical module
  • the status information of the optical module is obtained, and the status information of the optical module can be stored locally or stored in an external memory, depending on different scenarios and optical modules of different manufacturers.
  • the state information of the working state of the reactive light module is stored in the local memory, and the state information stored locally by the optical module is obtained.
  • FIG. 3 is an optional flowchart 1 of a method for acquiring state information of an optical module according to an embodiment of the present invention. As shown in FIG. 3, when the level signal is a low level signal, indicating that the optical module is in position, The method of the embodiment of the invention includes steps S202-S206:
  • Step S202 Read status information locally stored by the optical module.
  • the state information of the optical module is stored in the local memory, and the state information stored locally by the optical module is obtained by reading the local memory.
  • Step S204 When the status information is abnormal, report the abnormal status information.
  • the status information of the optical module includes real-time status information and historical status information, and the time generated by the status information or the priority of the status information is stored in a local memory.
  • the light is acquired.
  • the real-time status information of the module when the obtained real-time status information indicates that the optical module is in an abnormal state, reports the abnormal status information, and can also generate diagnostic information of the alarm information and the abnormal status information.
  • Step S206 When the status information is not abnormal, continue to read the status information stored locally by the optical module.
  • the read status information is not abnormal, that is, when the optical module is in a normal state, according to a certain period, such as 0.1S, the rotation of the state information stored locally by the optical module is continued until the reading is performed.
  • the status information is abnormal.
  • the signal for indicating the in-position state of the optical module may be acquired first, where the in-position state is The signal indicates that the optical module is in a position to obtain state information stored locally by the optical module, or, after continuing to rotate for a certain period of time, for example, 10 cycles, after 1S, and then returning to obtain the indication for the optical module.
  • the signal of the bit state acquires the state information stored locally by the optical module when the signal of the in-position state indicates that the optical module is in position, and reciprocates once until the read state information is abnormal.
  • FIG. 4 is an optional flowchart 2 of a method for acquiring state information of an optical module according to an embodiment of the present invention.
  • acquiring a signal for indicating an in-position state of the optical module may also be locally stored by the acquiring logic device.
  • a level signal for indicating the in-position state of the above optical module As shown in FIG. 4, when the level signal is a high level signal, that is, when the optical module is not in the position, the method in the embodiment of the present invention includes step S302 and step S102 in the foregoing embodiment:
  • Step S302 periodically acquiring a signal for indicating the in-position state of the optical module.
  • the acquired level signal is a high level signal, that is, when the optical module is not in position, according to a certain period, such as 0.2S, continuing to rotate to read a signal for indicating the in-position state of the optical module, Until the read level signal indicates that the above optical module is in the in-position state.
  • the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs.
  • the abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology.
  • a serious abnormality occurs in the optical module.
  • the status information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted on the board.
  • the error rate of the optical module is reported due to the error signal reported by the external interference. Low technical issues.
  • FIG. 5 is a structural block diagram of obtaining the state information of the optical module according to the embodiment of the present invention. As shown in FIG. 5, the device includes: a first acquiring module 40; and a second acquiring module 42 coupled to the first acquiring module 40.
  • the first obtaining module 40 is configured to acquire a signal for indicating an in-position state of the optical module.
  • the signal of the in-position state of the optical module may be saved in the local memory and the external memory.
  • the signal of the in-position state of the optical module is saved in the external memory, and the external memory is used.
  • the first obtaining module 40 acquires a level signal stored locally by the logic device for indicating the in-position state of the optical module, and the level signal is based on the level of the interface of the optical module, and includes: low
  • the level signal and the high level signal are determined according to the physical properties and level settings of the optical module interface.
  • the level signal of the interface where the optical module is located is low level.
  • the level signal of the interface where the optical module is located is high, that is, the low level signal indicates that the optical module is in position, and the high level signal indicates that the optical module is not in position.
  • the optical module is connected to the logic device by using the bit signal line.
  • the logic device may be connected to the single optical module through the bit signal line, or may be connected to the multiple optical modules by the in-position signal line.
  • the in-position signal line may be an independent integrated circuit bus IIC, which is merely illustrative and not limited.
  • the logic device is connected to the plurality of optical modules through the IIC bus, and the first obtaining module 40 obtains the signal indicating the in-position state of the optical module according to the physical address of the interface where the optical module is located.
  • the IIC line number corresponding to the optical module is connected, and the signal indicating the in-position state of the optical module is sequentially acquired according to the number according to the number, or a signal indicating the in-position state of the optical module is simultaneously acquired.
  • the second obtaining module 42 is configured to acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.
  • the signal indicating the in-position state of the optical module is obtained, and the in-position state of the optical module is obtained.
  • the in-position state includes: the optical module is in position and the optical module is not in position, and the signal in the in-position state indicates that the optical module is in place.
  • the second obtaining module 42 obtains the status information of the optical module, and the status information of the optical module may be
  • the storage is local or stored in an external memory, and is determined according to different scenarios and optical modules of different manufacturers. This embodiment is not limited in any way.
  • state information storage of the working state of the reactive optical module is stored. In the local storage, the second obtaining module 42 acquires state information locally stored by the optical module.
  • FIG. 6 is a block diagram of an optional structure of acquiring optical module status information according to an embodiment of the present invention.
  • the second obtaining module 42 further includes: a first reading unit 50; a reporting unit 52, and the first The reading unit 50 is coupledly coupled; the second reading unit 52 is coupled to the first reading unit 50.
  • the first reading unit 50 is configured to read state information stored locally by the optical module
  • the state information of the optical module is stored in the local memory, and the first reading unit 50 obtains the state information locally stored by the optical module by reading the local memory.
  • the reporting unit 52 is configured to report the abnormal state information when the status information is abnormal.
  • the status information of the optical module includes real-time status information and historical status information, and the time generated by the status information or the priority of the status information is stored in a local memory.
  • the light is acquired.
  • the real-time status information of the module when the read real-time status information indicates that the optical module is in an abnormal state, the reporting unit 52 reports the abnormal status information, and may also generate diagnostic information of the alarm information and the abnormal status information.
  • the second reading unit 54 is configured to continue to read the state information stored locally by the optical module when the state information is not abnormal.
  • the second reading unit 54 continues to rotate the training according to a certain period, such as 0.1S. Status information stored locally by the optical module until the read status information is abnormal.
  • the signal for indicating the in-position state of the optical module may be acquired first, where the in-position state is The signal indicates that the optical module is in a position to obtain state information stored locally by the optical module, or, after continuing to rotate for a certain period of time, for example, 10 cycles, after 1S, and then returning to obtain the indication for the optical module.
  • the signal of the bit state acquires the state information stored locally by the optical module when the signal of the in-position state indicates that the optical module is in position, and reciprocates once until the read state information is abnormal.
  • FIG. 7 is an optional structural block diagram of the acquisition of the optical module status information according to the embodiment of the present invention. As shown in FIG. 7, the apparatus includes: the third obtaining module 60 is coupled to the first obtaining module 40.
  • the third obtaining module 60 is configured to periodically acquire a signal for indicating the in-position state of the optical module when the level signal is at a high level.
  • the third obtaining module 60 continues to perform the training for indicating according to a certain period, such as 0.2S.
  • the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs.
  • the abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology.
  • the technical problem of reporting the status information of the optical module is low.
  • FIG. 8 is a schematic diagram of a connection relationship between an optical module interrupt line and a logic device according to an embodiment of the present invention.
  • the present embodiment provides a set of IIC interface for accessing an optical module internal register.
  • the connection of the interrupt signal line is discarded, and the logic device is connected to the logic device by the high level of the bit signal line.
  • the interrupt register is discarded, and the in-position status register is used to focus on whether the optical module is in place or not, and whether the optical module has an interrupt signal output.
  • the processor polls the in-position condition of the optical module at intervals, and continues to poll for the optical module that is not in position, and performs the operation of reading the internal abnormal register of the optical module for the in-position optical module.
  • an optical module abnormal register is read as abnormal or the IIC access fails, it is directly reported to the user.
  • optical module There are many standards for optical modules. This example uses the parallel optical module CXP under the InfiniBand architecture as an example. However, it is only an example. In the practical application of this solution, it is not limited to such optical modules. Other standard optical module devices can be used. This technical solution is implemented.
  • the optical module is connected to the logic device through the IIC bus, and all optical modules have independent IIC interfaces connected to the logic device.
  • the logic device is connected to the processor through a parallel data bus and an address bus, and the processor can access registers internal to the logic device through the data bus and the address bus.
  • the in-position signal of the optical module is connected to the logic device. The optical module's in-position signal is pulled high.
  • the interrupt signal line in the related art is omitted in the circuit connection, and only the in-position signal line is used.
  • the in-position signal is connected to the high level through the resistor.
  • a set of registers is defined internally by the logic device to store the in-position information of the optical module.
  • the in-position signal of the optical module is usually high when the optical module is not plugged into the interface, and is usually low when the interface is inserted.
  • the current level value of the bit signal of all optical module interfaces is stored in the register, with 0 being the optical module in place and 1 being the optical module not in the bit. deal with
  • the device can simulate the timing of accessing the optical module IIC interface by reading and writing the registers of the logic device.
  • the processor can read the internal registers of the optical module in the above manner.
  • the internal register of the optical module must be a register that stores the abnormal state of the optical module. This register stores the abnormality of the optical module.
  • the processor polls the in-position register at intervals to obtain the optical module in-position state of all current optical ports.
  • the register value is not in bit (1), and the above polling in-place register operation is repeatedly executed.
  • the register value is in bit (0), and the processor accesses the optical module's exception register through the logic device. If the above register value is not abnormal, the above polling in-place register operation is re-executed. If the above register value is abnormal, the exception information is first reported, and then the polling in-place register operation is re-executed.
  • the number of signals connected to the logic device by the optical module can be reduced first, and the interrupt signal can be disconnected, and the processor does not need to specifically open the interrupt response process and related registers for the optical module.
  • the in-position signal line is less susceptible to interference with respect to the interrupt signal line because the signal changes level only when the optical module is inserted or removed from the system board. Even if a misjudgment occurs in the case of external interference, the optical module that is not in place is considered to be in place, and subsequent access to the optical module register through the IIC interface immediately finds that the optical module is actually absent, and the reliability is higher than the common scheme.
  • FIG. 9 is a flowchart of software processing of a method for acquiring state information of an optical module according to an embodiment of the present invention, as shown in FIG.
  • Step S902 reading an optical module in-position state register inside the logic device
  • Step S904 determining whether the optical module is in position, when the determination result is yes, step S906 is performed, and if the determination result is no, step S902 is performed;
  • Step S906 reading an abnormal register inside the corresponding optical module through the IIC;
  • Step S908 determining whether the reading value is abnormal, when the determination result is yes, executing step S910; when the determination result is no, directly executing step S912;
  • Step S910 The abnormal information is reported, and then step S902 is performed;
  • Step S912 delaying for a period of time, and then performing step S902.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative, such as the division of the above units, only For a logical function division, there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above-described integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the related art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, mobile terminal, server or network device, etc.) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
  • the signal of the in-position state of the optical module is obtained, and the signal of the in-position state is used to determine that the optical module is in position, and then the optical module in the local state is stored in the local state.
  • the information is learned whether the optical module is abnormal or not, and the status information cannot be reported or the status information is reported incorrectly when the optical module is seriously abnormal.
  • the effect is to solve the problem that the optical module is seriously abnormal in the related art, and the state information such as the interrupt signal cannot be correctly sent out or the optical module itself is not inserted on the board, but the interrupt signal is incorrectly reported due to external interference.
  • the problem that the optical module status information reporting accuracy is low.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Communication System (AREA)

Abstract

Provided are a method and device for acquiring optical module state information. The method comprises: acquiring a signal used for indicating an in-position state of an optical module; and when the signal of the in-position state indicates that the optical module is in position, acquiring locally stored state information about the optical module. By means of the present invention, the problem in the relevant art that state information such as an interrupt signal fails to be correctly sent when a serious abnormality occurs with an optical module, or an accurate rate of reporting the state information about the optical module is low due to an erroneous report of the interrupt signal caused by external interference, when the optical module itself is not inserted into a single board, is solved.

Description

光模块状态信息的获取方法和装置Method and device for acquiring optical module status information 技术领域Technical field

本发明涉及通信领域,具体而言,涉及一种光模块状态信息的获取方法和装置。The present invention relates to the field of communications, and in particular, to a method and an apparatus for acquiring state information of an optical module.

背景技术Background technique

光模块是目前大多数接口板上都会使用到的关键器件,当光模块出现故障时,需要有可靠的机制检测到故障的发生。尤其是当一块单板使用到多个光模块时,需要在故障发生时,迅速定位到具体是哪个光模块出现故障。Optical modules are the key components that are used on most interface boards. When an optical module fails, a reliable mechanism is needed to detect the failure. In particular, when a single board uses multiple optical modules, it is necessary to quickly locate which optical module is faulty when the fault occurs.

目前的技术是利用光模块提供的中断信号来获取到光模块发生异常,图1是相关技术中光模块中断线和逻辑器件的连接关系示意图,如图1所示,该连接关系为光模块,逻辑器件和处理器之间单向的中断信号线连接。当光模块发生异常时,会向中断线输出一个低电平信号。逻辑器件收到该信号后,将该信号传递给处理器,处理器再通过逻辑器件模拟的IIC接口访问光模块的异常寄存器,定位到异常原因;The current technology uses the interrupt signal provided by the optical module to obtain an abnormality in the optical module. FIG. 1 is a schematic diagram of the connection relationship between the optical module interrupt line and the logic device in the related art. As shown in FIG. 1 , the connection relationship is an optical module. A one-way interrupt signal line connection between the logic device and the processor. When an abnormality occurs in the optical module, a low level signal is output to the interrupt line. After receiving the signal, the logic device transmits the signal to the processor, and the processor accesses the abnormal register of the optical module through the IIC interface simulated by the logic device to locate the cause of the abnormality;

硬件方面,光模块的中断信号(INT)连接到逻辑器件,逻辑器件有信号连接到CPU的中断管脚。当光模块发生异常产生中断信号时,该信号将经由逻辑器件发送到CPU的中断管脚,告知CPU光模块有异常产生。On the hardware side, the optical module's interrupt signal (INT) is connected to the logic device, and the logic device has a signal connected to the CPU's interrupt pin. When an abnormality occurs in the optical module, the signal will be sent to the interrupt pin of the CPU via the logic device to inform the CPU that the optical module has an abnormality.

软件方面,逻辑器件中有寄存器存储1~n个光模块的中断标记,CPU收到中断后,可在逻辑器件的寄存器中读出标记值,并按照该值确定是1~n中的哪个光模块产生了中断。In software, there are registers in the logic device to store the interrupt flag of 1~n optical modules. After receiving the interrupt, the CPU can read the tag value in the register of the logic device, and determine which light is 1~n according to the value. The module generated an interrupt.

针对相关技术中当光模块发生严重异常,导致状态信息如中断信号无法正确送出或光模块本身并没有插到单板上,而是由于外界的干扰引起的中断信号错误上报而导致光模块状态信息上报准确率低的问题,目前尚未提出有效的解决方案。In the related art, when a serious abnormality occurs in the optical module, the status information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted on the board, but the optical module status information is caused by the error signal reported by the external interference. The problem of reporting low accuracy has not yet proposed an effective solution.

发明内容Summary of the invention

本发明实施例提供了一种光模块状态信息的获取方法和装置,以至少解决相关技术中当光模块发生严重异常,导致状态信息如中断信号无法正确送出或光模块本身并没有插到单板上,而是由于外界的干扰引起的中断信号错误上报而导致光模块状态信息上报准确率低的技术问题。The embodiment of the invention provides a method and a device for acquiring state information of an optical module, so as to solve at least a serious abnormality of the optical module in the related art, and the state information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted into the board. On the other hand, it is a technical problem that the optical module status information reporting accuracy is low due to the erroneous reporting of the interrupt signal caused by external interference.

根据本发明实施例的一个方面,提供了一种光模块状态信息的获取方法,包括:获取用于指示所述光模块的在位状态的信号;在所述在位状态的信号指示所述光模块 在位时,获取所述光模块本地存储的状态信息。According to an aspect of the present invention, a method for obtaining state information of an optical module includes: acquiring a signal for indicating an in-position state of the optical module; and indicating, in the state of the in-position state, the light Module When in position, the state information stored locally by the optical module is obtained.

可选地,所述获取用于指示所述光模块的在位状态的信号包括:获取逻辑器件本地存储的用于指示所述光模块的在位状态的电平信号,其中,所述电平信号包括:低电平信号和高电平信号,所述低电平信号指示所述光模块在位,所述高电平信号指示所述光模块不在位。Optionally, the acquiring a signal for indicating an in-position state of the optical module includes: acquiring a level signal locally stored by the logic device for indicating an in-position state of the optical module, where the level The signal includes a low level signal indicating that the optical module is in position and a high level signal indicating that the optical module is not in position.

可选地,所述光模块通过在位信号线与所述逻辑器件连接。Optionally, the optical module is connected to the logic device by a bit signal line.

可选地,在所述电平信号为低电平信号时,所述获取所述光模块本地存储的状态信息包括:读取所述光模块本地存储的状态信息;在所述状态信息为异常时,上报该异常状态信息;在所述状态信息不为异常时,继续读取所述光模块本地存储的状态信息。Optionally, when the level signal is a low level signal, the acquiring state information locally stored by the optical module includes: reading status information locally stored by the optical module; and the status information is abnormal The abnormal state information is reported; when the state information is not abnormal, the state information stored locally by the optical module is continuously read.

可选地,所述方法还包括:在所述电平信号为高电平时,周期性获取用于指示所述光模块的在位状态的信号。Optionally, the method further includes: periodically acquiring a signal for indicating an in-position state of the optical module when the level signal is a high level.

根据本发明实施例的另一方面,还提供了一种光模块状态信息的获取装置,其特征在于,包括:第一获取模块,设置为获取用于指示所述光模块的在位状态的信号;第二获取模块,设置为在所述在位状态的信号指示所述光模块在位时,获取所述光模块本地存储的状态信息。According to another aspect of the present invention, a device for acquiring state information of an optical module is further provided, comprising: a first acquiring module, configured to acquire a signal for indicating an in-position state of the optical module The second obtaining module is configured to acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.

可选地,所述第一获取模块,还设置为获取逻辑器件本地存储的用于指示所述光模块的在位状态的电平信号,其中,所述电平信号包括:低电平信号和高电平信号,所述低电平信号指示所述光模块在位,所述高电平信号指示所述光模块不在位。Optionally, the first obtaining module is further configured to acquire a level signal locally stored by the logic device for indicating an in-position state of the optical module, where the level signal includes: a low level signal and A high level signal indicating that the optical module is in position, the high level signal indicating that the optical module is not in position.

可选地,所述光模块通过在位信号线与所述逻辑器件连接。Optionally, the optical module is connected to the logic device by a bit signal line.

可选地,在所述电平信号为低电平信号时,所述第二获取模块包括:第一读取单元,设置为读取所述光模块本地存储的状态信息;上报单元,设置为在所述状态信息为异常时,上报该异常状态信息;第二读取单元,设置为在所述状态信息不为异常时,继续读取所述光模块本地存储的状态信息。Optionally, when the level signal is a low level signal, the second acquiring module includes: a first reading unit configured to read state information locally stored by the optical module; and a reporting unit configured to When the status information is abnormal, the abnormal status information is reported; and the second reading unit is configured to continue to read the status information locally stored by the optical module when the status information is not abnormal.

可选地,所述装置还包括:第三获取模块,设置为在所述电平信号为高电平时,周期性获取用于指示所述光模块的在位状态的信号。Optionally, the device further includes: a third acquiring module, configured to periodically acquire a signal for indicating an in-position state of the optical module when the level signal is a high level.

在本发明实施例中,采用获取光模块的在位状态的信号,通过在位状态的信号确定光模块在位,再获取在位的光模块存储在本地的状态信息,得知光模块是否发生异常,避免了光模块发生严重异常或者受到外界干扰时状态信息无法上报状态信息或者状态信息上报错误的状况,从而实现了提高光模块状态信息上报准确率低的技术效果,进而解决了解决相关技术中当光模块发生严重异常,导致状态信息如中断信号无法正 确送出或光模块本身并没有插到单板上,而是由于外界的干扰引起的中断信号错误上报而导致光模块状态信息上报准确率低的问题。In the embodiment of the present invention, the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs. The abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology. A serious abnormality occurred in the optical module, causing status information such as an interrupt signal to fail. The problem that the optical module status information reporting accuracy rate is low is caused by the fact that the optical module status information is reported incorrectly due to the erroneous reporting of the interrupt signal caused by external interference.

附图说明DRAWINGS

构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings, which are incorporated in the claims In the drawing:

图1是相关技术中光模块中断线和逻辑器件的连接关系示意图;1 is a schematic diagram showing a connection relationship between an optical module interrupt line and a logic device in the related art;

图2是根据本发明实施例的光模块状态信息的获取方法的流程图;2 is a flowchart of a method for acquiring state information of an optical module according to an embodiment of the present invention;

图3是根据本发明实施例的光模块状态信息的获取方法的可选流程图一;3 is an optional flowchart 1 of a method for acquiring state information of an optical module according to an embodiment of the present invention;

图4是根据本发明实施例的光模块状态信息的获取方法的可选流程图二;4 is an optional flowchart 2 of a method for acquiring state information of an optical module according to an embodiment of the present invention;

图5是根据本发明实施例的光模块状态信息的获取装置的结构框图;FIG. 5 is a structural block diagram of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention; FIG.

图6是根据本发明实施例的光模块状态信息的获取装置的可选结构框图一;6 is a block diagram 1 of an optional structure of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention;

图7是根据本发明实施例的光模块状态信息的获取装置的可选结构框图二;7 is a block diagram 2 of an optional structure of an apparatus for acquiring state information of an optical module according to an embodiment of the present invention;

图8是根据本发明实施例中光模块中断线和逻辑器件的连接关系示意图;以及8 is a schematic diagram showing a connection relationship between an optical module interrupt line and a logic device according to an embodiment of the present invention;

图9是根据本发明实施例的光模块状态信息的获取方法的软件处理流程图。FIG. 9 is a flowchart of software processing of a method for acquiring state information of an optical module according to an embodiment of the present invention.

具体实施方式detailed description

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步 骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It will be understood that the data so used may be interchanged where appropriate to facilitate the embodiments of the invention described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps The steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.

实施例1Example 1

根据本发明实施例,提供了一种光模块状态信息的获取方法,图2是根据本发明实施例的光模块状态信息的获取方法的流程图,如图2所示,本发明实施例的方法包括步骤S102-S104:An embodiment of the present invention provides a method for acquiring state information of an optical module, and FIG. 2 is a flowchart of a method for acquiring state information of an optical module according to an embodiment of the present invention. As shown in FIG. 2, the method of the embodiment of the present invention is shown in FIG. Including steps S102-S104:

步骤S102:获取用于指示上述光模块的在位状态的信号;Step S102: Acquire a signal for indicating an in-position state of the optical module.

可选地,上述光模块的在位状态的信号可以保存在本地存储器和外部存储器中,在本实施例一个可选实施方式中,光模块的在位状态的信号保存在外部存储器中,外部存储器中位于逻辑器件中。在另一个可选实施方式中,获取用于指示上述光模块的在位状态的信号还包括获取逻辑器件本地存储的用于指示上述光模块的在位状态的电平信号,电平信号根据光模块所在接口的电平的高低,又包括:低电平信号和高电平信号,具体根据光模块接口的物理性质和电平设置而定,在本实施中,当光模块在位时,光模块所在接口的电平信号为低电平,相反,当光模块不在位时,光模块所在接口的电平信号为高电平,也就是说,上述低电平信号指示上述光模块在位,上述高电平信号指示上述光模块不在位。Optionally, the signal of the in-position state of the optical module may be saved in the local memory and the external memory. In an optional implementation manner of the embodiment, the signal of the in-position state of the optical module is saved in the external memory, and the external memory is used. Located in the logic device. In another optional implementation, the acquiring a signal for indicating the in-position state of the optical module further includes acquiring, by the logic device, a level signal locally used to indicate an in-position state of the optical module, and the level signal is according to the light. The level of the interface where the module is located includes: a low level signal and a high level signal, depending on the physical properties and level settings of the optical module interface. In this implementation, when the optical module is in position, the light is The level signal of the interface where the module is located is low level. On the contrary, when the optical module is not in position, the level signal of the interface where the optical module is located is high level, that is, the low level signal indicates that the optical module is in place. The high level signal indicates that the optical module is not in position.

可选地,上述光模块通过在位信号线与上述逻辑器件连接,根据具体的应用场景,逻辑器件可以通过在位信号线与单个光模块连接,也可以通过在位信号线与多个光模块连接,在位信号线可以是独立的集成电路总线IIC,在此只是举例说明,并不做任何限定。在一个可选的实施方式中,逻辑器件通过IIC总线与多个光模块连接,在获取指示上述光模块的在位状态的信号过程中,根据光模块所在接口的物理地址,给连接上述光模块对应的IIC线编号,再根据编号按照一定的时序来依次获取指示上述光模块的在位状态的信号,或者同时获取指示上述光模块的在位状态的信号。Optionally, the optical module is connected to the logic device by using a bit signal line. According to a specific application scenario, the logic device may be connected to a single optical module through an in-position signal line, or may be an in-position signal line and multiple optical modules. The connection, the in-position signal line may be an independent integrated circuit bus IIC, which is merely illustrative and not limited. In an optional implementation, the logic device is connected to the plurality of optical modules through the IIC bus. In the process of obtaining the signal indicating the in-position state of the optical module, the optical module is connected according to the physical address of the interface where the optical module is located. Corresponding IIC line numbers, according to the number, sequentially obtain signals indicating the in-position state of the optical module according to a certain timing, or simultaneously acquire signals indicating the in-position state of the optical module.

步骤S104:在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息。Step S104: Acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.

可选地,指示上述光模块的在位状态的信号,得到光模块的在位状态,其中,在位状态包括:光模块在位和光模块不在位;在上述在位状态的信号指示上述光模块在位时,即光模块在位时,获取上述光模块状态信息,光模块的状态信息可以存储在本地或者存储在外部存储器中,具体根据不同的场景和不同厂家的光模块而定,本实施例并不做任何限定,在一个可选实施方式中,反应光模块工作状态的状态信息存储在本地存储器中,获取上述光模块本地存储的状态信息。 Optionally, the signal indicating the in-position state of the optical module is obtained, where the in-position state of the optical module is obtained, where the in-position state includes: the optical module is in position and the optical module is not in position; the signal in the in-position state indicates the optical module When the optical module is in position, the status information of the optical module is obtained, and the status information of the optical module can be stored locally or stored in an external memory, depending on different scenarios and optical modules of different manufacturers. For example, the state information of the working state of the reactive light module is stored in the local memory, and the state information stored locally by the optical module is obtained.

图3是根据本发明实施例的光模块状态信息的获取方法的可选流程图一,如图3所示,在上述电平信号为低电平信号时,即指示上述光模块在位时,本发明实施例的方法包括步骤S202-S206:FIG. 3 is an optional flowchart 1 of a method for acquiring state information of an optical module according to an embodiment of the present invention. As shown in FIG. 3, when the level signal is a low level signal, indicating that the optical module is in position, The method of the embodiment of the invention includes steps S202-S206:

步骤S202:读取上述光模块本地存储的状态信息;Step S202: Read status information locally stored by the optical module.

可选地,光模块的状态信息存储在本地存储器中,通过读取上述本地存储器,获取上述光模块本地存储的状态信息。Optionally, the state information of the optical module is stored in the local memory, and the state information stored locally by the optical module is obtained by reading the local memory.

步骤S204:在上述状态信息为异常时,上报该异常状态信息;Step S204: When the status information is abnormal, report the abnormal status information.

可选地,光模块的状态信息包括实时状态信息和历史状态信息,按照状态信息产生的时间或者状态信息的优先级存储在本地存储器中,根据本发明的一个可选的实施例,获取上述光模块的实时状态信息,在获取的实时状态信息显示上述光模块为异常状态时,上报该异常状态信息,还可以产生报警信息和异常状态信息的诊断信息。Optionally, the status information of the optical module includes real-time status information and historical status information, and the time generated by the status information or the priority of the status information is stored in a local memory. According to an optional embodiment of the present invention, the light is acquired. The real-time status information of the module, when the obtained real-time status information indicates that the optical module is in an abnormal state, reports the abnormal status information, and can also generate diagnostic information of the alarm information and the abnormal status information.

步骤S206:在上述状态信息不为异常时,继续读取上述光模块本地存储的状态信息。Step S206: When the status information is not abnormal, continue to read the status information stored locally by the optical module.

可选地,在读取的上述状态信息不为异常时,即光模块是处于正常状态时,按照一定的周期,如0.1S,继续轮训读取上述光模块本地存储的状态信息,直到读取的状态信息为异常。Optionally, when the read status information is not abnormal, that is, when the optical module is in a normal state, according to a certain period, such as 0.1S, the rotation of the state information stored locally by the optical module is continued until the reading is performed. The status information is abnormal.

作为一个可选实施方式,在读取的上述状态信息不为异常时,即光模块是处于正常状态时,还可以先获取用于指示上述光模块的在位状态的信号,在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息,或者,在继续轮训读取一定周期后,如10个周期,1S后,再回去获取用于指示上述光模块的在位状态的信号,在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息,一次往复,直到读取的状态信息为异常。As an optional implementation manner, when the read status information is not abnormal, that is, when the optical module is in a normal state, the signal for indicating the in-position state of the optical module may be acquired first, where the in-position state is The signal indicates that the optical module is in a position to obtain state information stored locally by the optical module, or, after continuing to rotate for a certain period of time, for example, 10 cycles, after 1S, and then returning to obtain the indication for the optical module. The signal of the bit state acquires the state information stored locally by the optical module when the signal of the in-position state indicates that the optical module is in position, and reciprocates once until the read state information is abnormal.

图4是根据本发明实施例的光模块状态信息的获取方法的可选流程图二,在本实例中,获取用于指示上述光模块的在位状态的信号还可以是获取逻辑器件本地存储的用于指示上述光模块的在位状态的电平信号。如图4所示,在上述电平信号为高电平信号时,即指示上述光模块不在位时,本发明实施例的方法包括步骤S302以及上述实施例中的步骤S102:4 is an optional flowchart 2 of a method for acquiring state information of an optical module according to an embodiment of the present invention. In this example, acquiring a signal for indicating an in-position state of the optical module may also be locally stored by the acquiring logic device. A level signal for indicating the in-position state of the above optical module. As shown in FIG. 4, when the level signal is a high level signal, that is, when the optical module is not in the position, the method in the embodiment of the present invention includes step S302 and step S102 in the foregoing embodiment:

步骤S302,周期性获取用于指示上述光模块的在位状态的信号。Step S302, periodically acquiring a signal for indicating the in-position state of the optical module.

可选地,在获取的电平信号为高电平信号,即上述光模块不在位时,按照一定的周期,如0.2S,继续轮训读取用于指示上述光模块的在位状态的信号,直到读取的电平信号指示上述光模块是在位状态。 Optionally, when the acquired level signal is a high level signal, that is, when the optical module is not in position, according to a certain period, such as 0.2S, continuing to rotate to read a signal for indicating the in-position state of the optical module, Until the read level signal indicates that the above optical module is in the in-position state.

在本发明实施例中,采用获取光模块的在位状态的信号,通过在位状态的信号确定光模块在位,再获取在位的光模块存储在本地的状态信息,得知光模块是否发生异常,避免了光模块发生严重异常或者受到外界干扰时状态信息无法上报状态信息或者状态信息上报错误的状况,从而实现了提高光模块状态信息上报准确率低的技术效果,进而解决了解决相关技术中当光模块发生严重异常,导致状态信息如中断信号无法正确送出或光模块本身并没有插到单板上,而是由于外界的干扰引起的中断信号错误上报而导致光模块状态信息上报准确率低的技术问题。In the embodiment of the present invention, the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs. The abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology. A serious abnormality occurs in the optical module. As a result, the status information such as the interrupt signal cannot be correctly sent or the optical module itself is not inserted on the board. The error rate of the optical module is reported due to the error signal reported by the external interference. Low technical issues.

实施例2Example 2

根据本发明实施例的另一方面,还提供了光模块状态信息的获取装置。图5是根据本发明实施例的光模块状态信息的获取的结构框图,如图5所示,该装置包括:第一获取模块40;第二获取模块42,与第一获取模块40耦合连接。According to another aspect of an embodiment of the present invention, an apparatus for acquiring optical module status information is also provided. FIG. 5 is a structural block diagram of obtaining the state information of the optical module according to the embodiment of the present invention. As shown in FIG. 5, the device includes: a first acquiring module 40; and a second acquiring module 42 coupled to the first acquiring module 40.

第一获取模块40,设置为获取用于指示上述光模块的在位状态的信号;The first obtaining module 40 is configured to acquire a signal for indicating an in-position state of the optical module.

可选地,上述光模块的在位状态的信号可以保存在本地存储器和外部存储器中,在本实施例一个可选实施方式中,光模块的在位状态的信号保存在外部存储器中,外部存储器中位于逻辑器件中,第一获取模块40获取逻辑器件本地存储的用于指示上述光模块的在位状态的电平信号,电平信号根据光模块所在接口的电平的高低,又包括:低电平信号和高电平信号,具体根据光模块接口的物理性质和电平设置而定,在本实施中,当光模块在位时,光模块所在接口的电平信号为低电平,相反,当光模块不在位时,光模块所在接口的电平信号为高电平,也就是说,上述低电平信号指示上述光模块在位,上述高电平信号指示上述光模块不在位。Optionally, the signal of the in-position state of the optical module may be saved in the local memory and the external memory. In an optional implementation manner of the embodiment, the signal of the in-position state of the optical module is saved in the external memory, and the external memory is used. In the logic device, the first obtaining module 40 acquires a level signal stored locally by the logic device for indicating the in-position state of the optical module, and the level signal is based on the level of the interface of the optical module, and includes: low The level signal and the high level signal are determined according to the physical properties and level settings of the optical module interface. In this implementation, when the optical module is in position, the level signal of the interface where the optical module is located is low level. When the optical module is not in position, the level signal of the interface where the optical module is located is high, that is, the low level signal indicates that the optical module is in position, and the high level signal indicates that the optical module is not in position.

可选地,上述光模块通过在位信号线与上述逻辑器件连接,根据具体的场景,逻辑器件可以通过在位信号线与单个光模块连接,也可以通过在位信号线与多个光模块连接,在位信号线可以是独立的集成电路总线IIC,在此只是举例说明,并不做任何限定。在一个可选实施方式中,逻辑器件通过IIC总线与多个光模块连接,第一获取模块40在获取指示上述光模块的在位状态的信号过程中,根据光模块所在接口的物理地址,给连接上述光模块对应的IIC线编号,再根据编号按照一定的时序来依次获取指示上述光模块的在位状态的信号,或者同时获取指示上述光模块的在位状态的信号。Optionally, the optical module is connected to the logic device by using the bit signal line. According to a specific scenario, the logic device may be connected to the single optical module through the bit signal line, or may be connected to the multiple optical modules by the in-position signal line. The in-position signal line may be an independent integrated circuit bus IIC, which is merely illustrative and not limited. In an optional implementation, the logic device is connected to the plurality of optical modules through the IIC bus, and the first obtaining module 40 obtains the signal indicating the in-position state of the optical module according to the physical address of the interface where the optical module is located. The IIC line number corresponding to the optical module is connected, and the signal indicating the in-position state of the optical module is sequentially acquired according to the number according to the number, or a signal indicating the in-position state of the optical module is simultaneously acquired.

第二获取模块42,设置为在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息。The second obtaining module 42 is configured to acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position.

可选地,指示上述光模块的在位状态的信号,得到光模块的在位状态,在位状态包括:光模块在位和光模块不在位,在上述在位状态的信号指示上述光模块在位时,即光模块在位时,第二获取模块42获取上述光模块状态信息,光模块的状态信息可以 存储在本地或者存储在外部存储器中,具体根据不同的场景和不同厂家的光模块而定,本实施例并不做任何限定,在一个可选实施方式中,反应光模块工作状态的状态信息存储在本地存储器中,第二获取模块42获取上述光模块本地存储的状态信息。Optionally, the signal indicating the in-position state of the optical module is obtained, and the in-position state of the optical module is obtained. The in-position state includes: the optical module is in position and the optical module is not in position, and the signal in the in-position state indicates that the optical module is in place. When the optical module is in position, the second obtaining module 42 obtains the status information of the optical module, and the status information of the optical module may be The storage is local or stored in an external memory, and is determined according to different scenarios and optical modules of different manufacturers. This embodiment is not limited in any way. In an optional implementation manner, state information storage of the working state of the reactive optical module is stored. In the local storage, the second obtaining module 42 acquires state information locally stored by the optical module.

图6是根据本发明实施例的光模块状态信息的获取的可选结构框图一,如图6所示,第二获取模块42还包括:第一读取单元50;上报单元52,与第一读取单元50耦合连接;第二读取单元52,与第一读取单元50耦合连接。FIG. 6 is a block diagram of an optional structure of acquiring optical module status information according to an embodiment of the present invention. As shown in FIG. 6, the second obtaining module 42 further includes: a first reading unit 50; a reporting unit 52, and the first The reading unit 50 is coupledly coupled; the second reading unit 52 is coupled to the first reading unit 50.

第一读取单元50,设置为读取上述光模块本地存储的状态信息;The first reading unit 50 is configured to read state information stored locally by the optical module;

可选地,光模块的状态信息存储在本地存储器中,第一读取单元50通过读取上述本地存储器,获取上述光模块本地存储的状态信息。Optionally, the state information of the optical module is stored in the local memory, and the first reading unit 50 obtains the state information locally stored by the optical module by reading the local memory.

上报单元52,设置为在上述状态信息为异常时,上报该异常状态信息;The reporting unit 52 is configured to report the abnormal state information when the status information is abnormal.

可选地,光模块的状态信息包括实时状态信息和历史状态信息,按照状态信息产生的时间或者状态信息的优先级存储在本地存储器中,根据本发明的一个可选的实施例,获取上述光模块的实时状态信息,第一读取单元50在读取的实时状态信息显示上述光模块为异常状态时,上报单元52上报该异常状态信息,还可以产生报警信息和异常状态信息的诊断信息。Optionally, the status information of the optical module includes real-time status information and historical status information, and the time generated by the status information or the priority of the status information is stored in a local memory. According to an optional embodiment of the present invention, the light is acquired. The real-time status information of the module, when the read real-time status information indicates that the optical module is in an abnormal state, the reporting unit 52 reports the abnormal status information, and may also generate diagnostic information of the alarm information and the abnormal status information.

第二读取单元54,设置为在上述状态信息不为异常时,继续读取上述光模块本地存储的状态信息。The second reading unit 54 is configured to continue to read the state information stored locally by the optical module when the state information is not abnormal.

可选地,在第一读取单元50读取的上述状态信息不为异常时,即光模块是处于正常状态时,第二读取单元54按照一定的周期,如0.1S,继续轮训读取上述光模块本地存储的状态信息,直到读取的状态信息为异常。Optionally, when the status information read by the first reading unit 50 is not abnormal, that is, when the optical module is in a normal state, the second reading unit 54 continues to rotate the training according to a certain period, such as 0.1S. Status information stored locally by the optical module until the read status information is abnormal.

作为一个可选实施方式,在读取的上述状态信息不为异常时,即光模块是处于正常状态时,还可以先获取用于指示上述光模块的在位状态的信号,在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息,或者,在继续轮训读取一定周期后,如10个周期,1S后,再回去获取用于指示上述光模块的在位状态的信号,在上述在位状态的信号指示上述光模块在位时,获取上述光模块本地存储的状态信息,一次往复,直到读取的状态信息为异常。As an optional implementation manner, when the read status information is not abnormal, that is, when the optical module is in a normal state, the signal for indicating the in-position state of the optical module may be acquired first, where the in-position state is The signal indicates that the optical module is in a position to obtain state information stored locally by the optical module, or, after continuing to rotate for a certain period of time, for example, 10 cycles, after 1S, and then returning to obtain the indication for the optical module. The signal of the bit state acquires the state information stored locally by the optical module when the signal of the in-position state indicates that the optical module is in position, and reciprocates once until the read state information is abnormal.

图7是根据本发明实施例的光模块状态信息的获取的可选结构框图二,如图7所示,该装置包括:第三获取模块60与第一获取模块40耦合连接。FIG. 7 is an optional structural block diagram of the acquisition of the optical module status information according to the embodiment of the present invention. As shown in FIG. 7, the apparatus includes: the third obtaining module 60 is coupled to the first obtaining module 40.

第三获取模块60,设置为在上述电平信号为高电平时,周期性获取用于指示上述光模块的在位状态的信号。 The third obtaining module 60 is configured to periodically acquire a signal for indicating the in-position state of the optical module when the level signal is at a high level.

可选地,在第一获取模块40获取的电平信号为高电平信号,即上述光模块不在位时,第三获取模块60按照一定的周期,如0.2S,继续轮训读取用于指示上述光模块的在位状态的信号,直到读取的电平信号指示上述光模块是在位状态。Optionally, when the level signal acquired by the first obtaining module 40 is a high level signal, that is, when the optical module is not in position, the third obtaining module 60 continues to perform the training for indicating according to a certain period, such as 0.2S. The signal of the in-position state of the optical module until the read level signal indicates that the optical module is in the in-position state.

在本发明实施例中,采用获取光模块的在位状态的信号,通过在位状态的信号确定光模块在位,再获取在位的光模块存储在本地的状态信息,得知光模块是否发生异常,避免了光模块发生严重异常或者受到外界干扰时状态信息无法上报状态信息或者状态信息上报错误的状况,从而实现了提高光模块状态信息上报准确率低的技术效果,进而解决了解决相关技术中光模块状态信息上报准确率低的技术问题。In the embodiment of the present invention, the signal of the in-position state of the optical module is obtained, and the optical module is determined to be in position by the signal of the in-position state, and then the state information stored in the local optical module is obtained, and it is known whether the optical module occurs. The abnormality prevents the state of the optical module from being reported as a serious abnormality or the external information, and the state information cannot report the status information or the status information is reported incorrectly, thereby improving the technical effect of improving the accuracy of reporting the status information of the optical module, and solving the related technology. The technical problem of reporting the status information of the optical module is low.

实施例3Example 3

图8是根据本发明实施例中光模块中断线和逻辑器件的连接关系示意图,如图8所示,本实施提供了一套IIC接口,用于访问光模块内部寄存器。在硬件连接上,舍去中断信号线的连接,采用在位信号线接高电平的方式连接到逻辑器件。在逻辑器件寄存器设置方面,舍去中断寄存器,采用在位状态寄存器,只关注光模块是否在位,不关注光模块是否有中断信号输出。基于上述电路连接,处理器每隔一段时间轮询光模块的在位情况,对于不在位的光模块则继续轮询,对于在位的光模块则进行读取光模块内部异常寄存器的操作。当读取到某个光模块异常寄存器为异常状态或IIC访问失败时,直接上报给用户。FIG. 8 is a schematic diagram of a connection relationship between an optical module interrupt line and a logic device according to an embodiment of the present invention. As shown in FIG. 8, the present embodiment provides a set of IIC interface for accessing an optical module internal register. On the hardware connection, the connection of the interrupt signal line is discarded, and the logic device is connected to the logic device by the high level of the bit signal line. In the logic device register setting, the interrupt register is discarded, and the in-position status register is used to focus on whether the optical module is in place or not, and whether the optical module has an interrupt signal output. Based on the above circuit connection, the processor polls the in-position condition of the optical module at intervals, and continues to poll for the optical module that is not in position, and performs the operation of reading the internal abnormal register of the optical module for the in-position optical module. When an optical module abnormal register is read as abnormal or the IIC access fails, it is directly reported to the user.

光模块有很多标准,本实施例以InfiniBand架构下的并行光模块CXP为例,但其只是举例说明,在本方案的实际应用中,并不只限于这类光模块,其他标准光模块器件均可采用本技术方案实现。There are many standards for optical modules. This example uses the parallel optical module CXP under the InfiniBand architecture as an example. However, it is only an example. In the practical application of this solution, it is not limited to such optical modules. Other standard optical module devices can be used. This technical solution is implemented.

光模块通过IIC总线连接到逻辑器件,同时所有光模块均有独立的IIC接口连接到逻辑器件。逻辑器件通过并行数据总线和地址总线连接到处理器,处理器可以通过数据总线和地址总线访问逻辑器件内部的寄存器。光模块的在位信号连接到逻辑器件。光模块的在位信号上拉到高电平。The optical module is connected to the logic device through the IIC bus, and all optical modules have independent IIC interfaces connected to the logic device. The logic device is connected to the processor through a parallel data bus and an address bus, and the processor can access registers internal to the logic device through the data bus and the address bus. The in-position signal of the optical module is connected to the logic device. The optical module's in-position signal is pulled high.

通过本实施例的硬件方案,电路连接上省去了相关技术中的中断信号线,仅采用在位信号线。在位信号通过电阻连接到高电平,当光模块插入光口时,由于该电平被光模块外壳下拉到低电平,就可以在对应的光模块在位寄存器中读出改模块在位信息由不在位变成在位。Through the hardware scheme of the embodiment, the interrupt signal line in the related art is omitted in the circuit connection, and only the in-position signal line is used. The in-position signal is connected to the high level through the resistor. When the optical module is inserted into the optical port, since the level is pulled down to the low level by the optical module housing, the corresponding module can be read and read in the corresponding optical module in the bit register. Information is changed from in place to in place.

以上是硬件连接方案,软件方案如下:The above is the hardware connection scheme, the software scheme is as follows:

逻辑器件内部定义一组寄存器,用来存储光模块的在位信息。光模块的在位信号在光模块没有插入接口时通常为高电平,插入接口时通常为低电平。寄存器内存储所有光模块接口在位信号的当前电平值,以0为光模块在位,1为光模块不在位。处理 器可以通过读写逻辑器件的寄存器,模拟访问光模块IIC接口的时序。处理器可通过上述方式读取到光模块的内部寄存器。光模块的内部寄存器必须是存放光模块异常状态的寄存器,该寄存器存放光模块出现的异常。处理器每隔一段时间轮询在位寄存器,获取当前所有光口的光模块在位状态。寄存器值为不在位(1)的,重复执行上述轮询在位寄存器的操作。寄存器值为在位(0)的,处理器通过逻辑器件访问光模块的异常寄存器。上述寄存器值为没有异常的,重新执行上述轮询在位寄存器的操作。上述寄存器值为有异常的,首先将异常信息上报,而后重新执行上述轮询在位寄存器的操作。A set of registers is defined internally by the logic device to store the in-position information of the optical module. The in-position signal of the optical module is usually high when the optical module is not plugged into the interface, and is usually low when the interface is inserted. The current level value of the bit signal of all optical module interfaces is stored in the register, with 0 being the optical module in place and 1 being the optical module not in the bit. deal with The device can simulate the timing of accessing the optical module IIC interface by reading and writing the registers of the logic device. The processor can read the internal registers of the optical module in the above manner. The internal register of the optical module must be a register that stores the abnormal state of the optical module. This register stores the abnormality of the optical module. The processor polls the in-position register at intervals to obtain the optical module in-position state of all current optical ports. The register value is not in bit (1), and the above polling in-place register operation is repeatedly executed. The register value is in bit (0), and the processor accesses the optical module's exception register through the logic device. If the above register value is not abnormal, the above polling in-place register operation is re-executed. If the above register value is abnormal, the exception information is first reported, and then the polling in-place register operation is re-executed.

根据本实施提供的方案,首先可以减少光模块连接到逻辑器件的信号数,中断信号可以不用连接,处理器也不需要专门为光模块开辟中断响应的进程和相关的寄存器。在位信号线相对于中断信号线,更加不容易被干扰,原因是只有在光模块被插入或者拔出系统板时,该信号才会有电平的变化。即使在受到外界干扰的情况下发生误判,将不在位的光模块认为在位,后续通过IIC接口访问光模块寄存器的操作也会立即发现该光模块实际不在位,可靠性高于常用方案。需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。According to the solution provided by the implementation, the number of signals connected to the logic device by the optical module can be reduced first, and the interrupt signal can be disconnected, and the processor does not need to specifically open the interrupt response process and related registers for the optical module. The in-position signal line is less susceptible to interference with respect to the interrupt signal line because the signal changes level only when the optical module is inserted or removed from the system board. Even if a misjudgment occurs in the case of external interference, the optical module that is not in place is considered to be in place, and subsequent access to the optical module register through the IIC interface immediately finds that the optical module is actually absent, and the reliability is higher than the common scheme. It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

图9是根据本发明实施例的光模块状态信息的获取方法的软件处理流程图,如图9所示:FIG. 9 is a flowchart of software processing of a method for acquiring state information of an optical module according to an embodiment of the present invention, as shown in FIG.

步骤S902:读取逻辑器件内部的光模块在位状态寄存器;Step S902: reading an optical module in-position state register inside the logic device;

步骤S904:判断光模块是否在位,在判断结果为是时,执行步骤S906,在判断结果为否时,执行步骤S902;Step S904: determining whether the optical module is in position, when the determination result is yes, step S906 is performed, and if the determination result is no, step S902 is performed;

步骤S906:通过IIC读取对应光模块内部的异常寄存器;Step S906: reading an abnormal register inside the corresponding optical module through the IIC;

步骤S908:判断读值是否有异常,在判断结果为是时,执行步骤S910;在判断结果为否时,直接执行步骤S912;Step S908: determining whether the reading value is abnormal, when the determination result is yes, executing step S910; when the determination result is no, directly executing step S912;

步骤S910:将异常信息上报,之后执行步骤S902;Step S910: The abnormal information is reported, and then step S902 is performed;

步骤S912:延时一段时间,之后执行步骤S902。Step S912: delaying for a period of time, and then performing step S902.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅 仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative, such as the division of the above units, only For a logical function division, there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、移动终端、服务器或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the related art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, mobile terminal, server or network device, etc.) to perform all or part of the steps of the above-described methods of various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

以上仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

工业实用性Industrial applicability

在本发明实施例中光模块状态信息的获取过程中,采用获取光模块的在位状态的信号,通过在位状态的信号确定光模块在位,再获取在位的光模块存储在本地的状态信息,得知光模块是否发生异常,避免了光模块发生严重异常或者受到外界干扰时状态信息无法上报状态信息或者状态信息上报错误的状况,从而实现了提高光模块状态信息上报准确率低的技术效果,进而解决了解决相关技术中当光模块发生严重异常,导致状态信息如中断信号无法正确送出或光模块本身并没有插到单板上,而是由于外界的干扰引起的中断信号错误上报而导致光模块状态信息上报准确率低的问题。 In the process of acquiring the state information of the optical module in the embodiment of the present invention, the signal of the in-position state of the optical module is obtained, and the signal of the in-position state is used to determine that the optical module is in position, and then the optical module in the local state is stored in the local state. The information is learned whether the optical module is abnormal or not, and the status information cannot be reported or the status information is reported incorrectly when the optical module is seriously abnormal. The effect is to solve the problem that the optical module is seriously abnormal in the related art, and the state information such as the interrupt signal cannot be correctly sent out or the optical module itself is not inserted on the board, but the interrupt signal is incorrectly reported due to external interference. The problem that the optical module status information reporting accuracy is low.

Claims (10)

一种光模块状态信息的获取方法,包括:A method for obtaining state information of an optical module includes: 获取用于指示所述光模块的在位状态的信号;Obtaining a signal for indicating an in-position state of the optical module; 在所述在位状态的信号指示所述光模块在位时,获取所述光模块本地存储的状态信息。When the signal of the in-position state indicates that the optical module is in position, acquiring state information locally stored by the optical module. 根据权利要求1所述的方法,其中,所述获取用于指示所述光模块的在位状态的信号包括:The method of claim 1, wherein the obtaining a signal for indicating an in-position state of the optical module comprises: 获取逻辑器件本地存储的用于指示所述光模块的在位状态的电平信号,其中,所述电平信号包括:低电平信号和高电平信号,所述低电平信号指示所述光模块在位,所述高电平信号指示所述光模块不在位。Obtaining a level signal locally stored by the logic device for indicating an in-position state of the optical module, wherein the level signal includes: a low level signal and a high level signal, the low level signal indicating the The optical module is in position and the high level signal indicates that the optical module is not in position. 根据权利要求2所述的方法,其中,所述光模块通过在位信号线与所述逻辑器件连接。The method of claim 2 wherein said optical module is coupled to said logic device by a bit signal line. 根据权利要求3所述的方法,其特征在于,在所述电平信号为低电平信号时,所述获取所述光模块本地存储的状态信息包括:The method of claim 3, wherein the obtaining the state information locally stored by the optical module when the level signal is a low level signal comprises: 读取所述光模块本地存储的状态信息;Reading status information stored locally by the optical module; 在所述状态信息为异常时,上报该异常的状态信息;When the status information is abnormal, the status information of the abnormality is reported; 在所述状态信息不为异常时,继续读取所述光模块本地存储的状态信息。When the status information is not abnormal, the status information stored locally by the optical module is continuously read. 根据权利要求3所述的方法,其中,所述方法还包括:The method of claim 3, wherein the method further comprises: 在所述电平信号为高电平时,周期性获取用于指示所述光模块的在位状态的信号。When the level signal is at a high level, a signal for indicating an in-position state of the optical module is periodically acquired. 一种光模块状态信息的获取装置,包括:An apparatus for acquiring status information of an optical module includes: 第一获取模块,设置为获取用于指示所述光模块的在位状态的信号;a first acquiring module, configured to acquire a signal for indicating an in-position state of the optical module; 第二获取模块,设置为在所述在位状态的信号指示所述光模块在位时,获取所述光模块本地存储的状态信息。And a second acquiring module, configured to acquire state information locally stored by the optical module when the signal of the in-position state indicates that the optical module is in position. 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein 所述第一获取模块,还设置为获取逻辑器件本地存储的用于指示所述光模块的在位状态的电平信号,其中,所述电平信号包括:低电平信号和高电平信号,所述低电平信号指示所述光模块在位,所述高电平信号指示所述光模块不在位。 The first acquiring module is further configured to acquire a level signal locally stored by the logic device for indicating an in-position state of the optical module, where the level signal includes: a low level signal and a high level signal The low level signal indicates that the optical module is in position, and the high level signal indicates that the optical module is not in position. 根据权利要求7所述的装置,其中,所述光模块通过在位信号线与所述逻辑器件连接。The apparatus of claim 7, wherein the optical module is coupled to the logic device by a bit signal line. 根据权利要求8所述的装置,其中,在所述电平信号为低电平信号时,所述第二获取模块包括:The apparatus according to claim 8, wherein when the level signal is a low level signal, the second obtaining module comprises: 第一读取单元,设置为读取所述光模块本地存储的状态信息;a first reading unit configured to read state information stored locally by the optical module; 上报单元,设置为在所述状态信息为异常时,上报该异常的状态信息;The reporting unit is configured to report status information of the abnormality when the status information is abnormal; 第二读取单元,设置为在所述状态信息不为异常时,继续读取所述光模块本地存储的状态信息。The second reading unit is configured to continue to read the state information stored locally by the optical module when the state information is not abnormal. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises: 第三获取模块,设置为在所述电平信号为高电平时,周期性获取用于指示所述光模块的在位状态的信号。 The third obtaining module is configured to periodically acquire a signal for indicating an in-position state of the optical module when the level signal is at a high level.
PCT/CN2016/071211 2015-06-11 2016-01-18 Method and device for acquiring optical module state information Ceased WO2016197606A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510321411.5 2015-06-11
CN201510321411.5A CN106294040B (en) 2015-06-11 2015-06-11 Method and device for acquiring optical module state information

Publications (1)

Publication Number Publication Date
WO2016197606A1 true WO2016197606A1 (en) 2016-12-15

Family

ID=57502837

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/071211 Ceased WO2016197606A1 (en) 2015-06-11 2016-01-18 Method and device for acquiring optical module state information

Country Status (2)

Country Link
CN (1) CN106294040B (en)
WO (1) WO2016197606A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098313A (en) * 2022-07-08 2022-09-23 浪潮(山东)计算机科技有限公司 A memory stick position detection device
CN115563040A (en) * 2022-09-30 2023-01-03 超聚变数字技术有限公司 A firmware information acquisition method and server
CN116546352A (en) * 2023-05-12 2023-08-04 苏州浪潮智能科技有限公司 Control method and control device of optical module

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814045A (en) * 2017-11-17 2019-05-28 中兴通讯股份有限公司 A kind of device and method for testing optical interface
CN109995436B (en) 2017-12-29 2021-08-31 北京华为数字技术有限公司 Optical line terminal single board and optical line terminal
CN108667515B (en) * 2018-04-23 2020-01-14 新华三技术有限公司 Port configuration method and communication equipment
CN109100116B (en) * 2018-05-24 2021-04-27 烽火通信科技股份有限公司 Optical module fault diagnosis system and method
CN109450530A (en) * 2018-12-21 2019-03-08 安徽皖兴通信息技术有限公司 A kind of optical module received optical power overload protective device and guard method
CN110417464B (en) * 2019-07-18 2021-01-15 锐捷网络股份有限公司 Fault processing method and device, computer device and readable storage medium
CN112825050A (en) * 2019-11-21 2021-05-21 中兴通讯股份有限公司 Method and system for accessing optical module register
CN111224715B (en) * 2019-11-29 2020-10-23 四川天邑康和通信股份有限公司 Method for rapidly screening LOS state abnormality based on 10G PON optical module
CN111147320A (en) * 2019-11-29 2020-05-12 苏州浪潮智能科技有限公司 A method, device, device and readable storage medium for port information monitoring
CN119299889A (en) * 2024-09-30 2025-01-10 新华三技术有限公司 A method and device for implementing hardware delay of inserted optical module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584790A (en) * 2004-06-11 2005-02-23 Ut斯达康通讯有限公司 Pick up device and method for data in plugable optical modular inner memory
WO2006087805A1 (en) * 2005-02-18 2006-08-24 Fujitsu Limited Optical communication device and optical communication control method
JP2006313071A (en) * 2005-05-06 2006-11-16 Seikoh Giken Co Ltd Optical electric field sensor with abnormality detection function
CN102590689A (en) * 2011-01-14 2012-07-18 中兴通讯股份有限公司 Device for detecting in-place of small form-factor pluggable (SFP) optical modules

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867488B (en) * 2010-06-11 2015-04-01 中兴通讯股份有限公司 Single board in-place information monitoring and recording device and method
JP2012160027A (en) * 2011-02-01 2012-08-23 Hitachi Ltd Diagnostic method for channel device
CN104063296B (en) * 2014-06-30 2018-01-02 华为技术有限公司 Veneer condition detection method in place and device
CN104639375A (en) * 2015-03-03 2015-05-20 大唐移动通信设备有限公司 Interface management method and network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584790A (en) * 2004-06-11 2005-02-23 Ut斯达康通讯有限公司 Pick up device and method for data in plugable optical modular inner memory
WO2006087805A1 (en) * 2005-02-18 2006-08-24 Fujitsu Limited Optical communication device and optical communication control method
JP2006313071A (en) * 2005-05-06 2006-11-16 Seikoh Giken Co Ltd Optical electric field sensor with abnormality detection function
CN102590689A (en) * 2011-01-14 2012-07-18 中兴通讯股份有限公司 Device for detecting in-place of small form-factor pluggable (SFP) optical modules

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098313A (en) * 2022-07-08 2022-09-23 浪潮(山东)计算机科技有限公司 A memory stick position detection device
CN115563040A (en) * 2022-09-30 2023-01-03 超聚变数字技术有限公司 A firmware information acquisition method and server
CN116546352A (en) * 2023-05-12 2023-08-04 苏州浪潮智能科技有限公司 Control method and control device of optical module

Also Published As

Publication number Publication date
CN106294040B (en) 2020-07-03
CN106294040A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016197606A1 (en) Method and device for acquiring optical module state information
CN109558282B (en) A PCIE link detection method, system, electronic device and storage medium
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
CN104320308B (en) A kind of method and device of server exception detection
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN104461805A (en) CPLD-based system state detecting method, CPLD and server mainboard
CN110362435B (en) PCIE fault positioning method, device, equipment and medium for Purley platform server
US20120137027A1 (en) System and method for monitoring input/output port status of peripheral devices
CN102662808B (en) Method and device for realizing hardware fault detection on PCIE (peripheral component interconnect express)
CN104794033A (en) CPU low-frequency fault positioning method and device based on BMC
CN102902613B (en) Computer system and diagnosis method thereof
CN116382968B (en) Fault detection method and device for external equipment
US20140365813A1 (en) Watchdogable register-based i/o
TWI611289B (en) Server and error detecting method thereof
WO2014082275A1 (en) Method and apparatus for detecting cable connection condition
CN113568806A (en) SAS card link state monitoring method, system, device and readable storage medium
WO2023024248A1 (en) Bus anomaly handling method and apparatus, electronic device and readable storage medium
CN114448915A (en) Link fault diagnosis method and device, electronic equipment and readable storage medium
WO2024124862A1 (en) Server-based memory processing method and apparatus, processor and an electronic device
CN104239174A (en) BMC (baseboard management controller) remote debugging system and method
CN115934446A (en) A self-test method, server, device and storage medium
CN106030544B (en) Method for detecting memory of computer equipment and computer equipment
JP6217086B2 (en) Information processing apparatus, error detection function diagnosis method, and computer program
CN115292113B (en) Fault detection method, device and electronic equipment for memory of server
CN112596983A (en) A monitoring method for a connector in a server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16806504

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16806504

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载