Device, system and method for detecting OSFP (Optical Small Form-factor Pluggable) optical module
By designing a detection device including a measurement and control unit, a current detection unit and a gold finger mother port, the power consumption switching moment of the OSFP optical module is accurately detected, and the problems of inaccurate and complex detection in the prior art are solved, and efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202510418544.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-04-03
AI Technical Summary
The prior art is difficult to accurately detect the moment when the OSFP optical module changes from a high-power mode to a low-power mode, resulting in misjudgment of the module's non-compliance, and the detection method is complex and inefficient.
A detection device including a measurement and control unit, a current detection unit and a gold finger mother port is designed, connected to the OSFP optical module through an IIC bus, triggering its low-power pin, controlling power consumption switching, and accurately determining the start and end time of power consumption switching by reading register information and monitoring current changes in real time.
It improves the accuracy of the detection results, reduces the false detection of the OSFP optical module, reduces the complexity of the detection operation, and improves the detection efficiency.
Smart Images

Figure CN119921858A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and in particular to a detection device, system and method for an OSFP optical module. Background Art
[0002] With the development of science and technology, optical communication technology has developed rapidly. Optical modules can convert between optical signals and electrical signals and are important components in the field of optical communication technology. Among them, the Octal Small Form Factor Pluggable (OSFP) optical module is used in scenarios such as model reasoning and big data analysis due to its excellent data transmission rate and heat dissipation performance.
[0003] Usually, the design of OSFP optical modules needs to meet the Octal Small Form Factor Pluggable Multi-Source Agreement (OSFP MSA). The current OSFP MSA stipulates that the time for OSFP optical modules to change from high power consumption mode to low power consumption mode should be less than 200us. Therefore, how to detect the designed and manufactured OSFP optical modules to accurately determine the moment when the OSFP optical modules perform power consumption changes, thereby ensuring that the designed and manufactured OSFP optical modules meet the provisions of OSFP MSA on power consumption changes, is an important issue.
[0004] Based on this, the present application specification provides a detection device, system and method for an OSFP optical module. Summary of the invention
[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a detection device, system and method for an OSFP optical module, which improves the accuracy of the detection result when detecting the time when the OSFP optical module changes from high power consumption to low power consumption, and at the same time improves the detection efficiency and convenience, solves the problem of misjudging the OSFP optical module as non-compliant due to inaccurate detection results, and solves the technical problem of low detection efficiency due to relatively complex detection methods.
[0006] In order to achieve the above object, the main technical solutions adopted by the present invention include: In a first aspect, an embodiment of the present invention provides a detection device for an OSFP optical module, the detection device comprising: a measurement and control unit, a current detection unit, and a gold finger female port; the measurement and control unit, the current detection unit, and the gold finger female port are located on a test board, and the OSFP optical module to be detected is plugged into the test board through the gold finger female port; The measurement and control unit is connected to the OSFP optical module to be detected through the IIC bus, and the first pin of the measurement and control unit is connected to the LPWn pin of the OSFP optical module to be detected, and the second pin of the measurement and control unit is connected to the RSTn pin of the OSFP optical module to be detected; the measurement and control unit is used to control the OSFP optical module to be detected to perform power consumption switching according to the received power consumption switching instruction and using a pre-set power consumption switching mode corresponding to the power consumption switching instruction; The current detection unit is used to monitor the working current of the OSFP optical module to be detected in real time; The measurement and control unit is used to obtain the register information of the OSFP optical module to be detected through the IIC bus, and determine the starting time of the power consumption switching of the OSFP optical module to be detected according to the register information; and determine the ending time of the power consumption switching of the OSFP optical module to be detected through the current detection unit; and determine the detection result of the OSFP optical module to be detected according to the starting time and the ending time.
[0007] Optionally, the power consumption switching instruction includes a first power consumption switching instruction; the measurement and control unit is specifically used to initialize the first pin to a push-pull output high level state; The measurement and control unit is specifically used to switch the push-pull output high level state of the first pin to a floating state according to the first power consumption switching instruction, so as to trigger the LPWn pin of the OSFP optical module to be detected and control the OSFP optical module to be detected to perform power consumption switching.
[0008] Optionally, the register information includes: a level state of an M_LPWn pin of a register corresponding to an LPWn pin in the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the triggering time of the M_LPWn pin of the OSFP optical module to be detected according to the register information, and use the triggering time of the M_LPWn pin as the starting time.
[0009] Optionally, the power consumption switching instruction includes a second power consumption switching instruction; the measurement and control unit is specifically used to initialize the second pin to a floating state; The measurement and control unit is specifically used to switch the floating state of the second pin to a push-pull output low level state according to the second power consumption switching instruction, so as to trigger the RSTn pin of the OSFP optical module to be detected and control the OSFP optical module to be detected to perform power consumption switching.
[0010] Optionally, the register information includes: a level state of an M_RSTn pin of a register corresponding to an RSTn pin in the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the triggering time of the M_RSTn pin of the OSFP optical module to be detected according to the register information, and use the triggering time of the M_RSTn pin as the starting time.
[0011] Optionally, the power consumption switching instruction includes a third power consumption switching instruction; The measurement and control unit is specifically used to write the third power consumption switching instruction into the register corresponding to the ForceLowPwr function of the OSFP optical module to be detected through the IIC bus according to the third power consumption switching instruction, so as to trigger the ForceLowPwr function pin of the OSFP optical module to be detected, and control the OSFP optical module to be detected to perform power consumption switching.
[0012] Optionally, the register information includes: a feedback signal generated by a register corresponding to the ForceLowPwr function of the OSFP optical module to be detected; The measurement and control unit is specifically used to detect, through the IIC bus, a feedback signal generated by a register corresponding to the ForceLowPwr function of the OSFP optical module to be detected, and take the moment when the feedback signal is detected as the starting moment; wherein, the feedback signal is generated at the moment when the third power consumption switching instruction is written.
[0013] Optionally, the measurement and control unit is specifically used to monitor the working current of the OSFP optical module to be detected in real time through the current detection unit. When it is determined that the working current of the OSFP optical module to be detected is less than a preset current threshold, the moment when the working current of the OSFP optical module to be detected is less than the preset current threshold is determined as the termination moment.
[0014] Optionally, the detection device further comprises: an oscilloscope; The oscilloscope is electrically connected to the OSFP optical module to be detected through the IIC bus, and the oscilloscope is used to display the register information of the OSFP optical module to be detected obtained by the IIC bus; the oscilloscope is electrically connected to the current detection unit, and the oscilloscope is used to display the change of the working current of the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the starting time of the power consumption switching of the OSFP optical module to be detected through the register information of the OSFP optical module to be detected displayed by the oscilloscope, and to determine the termination time of the power consumption switching of the OSFP optical module to be detected through the change of the working current of the OSFP optical module to be detected displayed by the oscilloscope.
[0015] Optionally, the current detection unit includes a current sensing amplifier.
[0016] In a second aspect, an embodiment of the present invention provides a detection system for an OSFP optical module, the detection system comprising the detection device described in the first aspect, and the detection system further comprising: a host computer; a measurement and control unit in the detection device is communicatively connected to the host computer; The host computer is used to send a power consumption switching instruction to the measurement and control unit.
[0017] In a third aspect, an embodiment of the present invention provides a detection method for an OSFP optical module, wherein the detection method is a detection method based on the detection device described in the first aspect, and the method includes: The measurement and control unit of the detection device receives the power consumption switching instruction, and adopts the power consumption switching mode corresponding to the power consumption switching instruction to control the OSFP optical module to be detected to perform power consumption switching; The measurement and control unit obtains the register information of the OSFP optical module to be detected through the IIC bus, and determines the starting time of the power consumption switching of the OSFP optical module to be detected according to the register information; and the working current of the OSFP optical module to be detected is monitored in real time through the current detection unit to determine the termination time of the power consumption switching of the OSFP optical module to be detected; The measurement and control unit determines the detection result of the OSFP optical module to be detected according to the start time and the end time.
[0018] The beneficial effects of the present invention are as follows: a detection device for an OSFP optical module of the present invention triggers a low-power pin on an OSFP optical module to be detected through a pin of a measurement and control unit and an IIC bus, so that the OSFP optical module to be detected performs power consumption switching, and then reads register information of the OSFP optical module to be detected through the IIC bus to obtain the starting time of the power consumption switching, and monitors the change of the working current of the OSFP optical module to be detected in real time through a current detection unit to obtain the termination time of the power consumption switching, thereby realizing the detection of the OSFP optical module to be detected.
[0019] Different from the current technology of determining the power consumption conversion moment of the OSFP optical module through the photoelectric conversion device, the solution provided by the present invention controls the power consumption switching of the OSFP optical module to be detected based on the internal hardware circuit of the detection device, and reads the register information in the OSFP optical module to be detected through the IIC bus, thereby obtaining the precise power consumption switching moment, eliminating the time delay of the external device communication, improving the accuracy of the detection result, and reducing the false detection of the OSFP optical module. At the same time, the detection device can realize the detection of the OSFP optical module, reducing the complexity of the detection operation and improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1A schematic diagram of a detection device for an OSFP optical module provided in this specification; Figure 2 A circuit diagram for connecting the pins of a measurement and control unit on a test board provided in this specification with the low-power pins of an OSFP optical module; Figure 3 A circuit diagram of a current detection unit provided in this specification; Figure 4 A schematic diagram of a detection system for an OSFP optical module provided in this specification; Figure 5 The present invention provides a flow chart of a detection method for an OSFP optical module. DETAILED DESCRIPTION
[0021] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0022] As described in the background technology, the design of the OSFP optical module needs to meet the provisions of the OSFP MSA. The OSFP MSA stipulates that the time for the M_LPWn, M_RSTn, and ForceLowPwr trigger module to change from high power consumption to low power consumption mode needs to be less than 200 microseconds. It should be noted that in the OSFP optical module, the pins LPWn and RSTn have power consumption switching functions, which can be called low power consumption pins, and ForceLowPwr is a function of power consumption switching realized by register configuration. In addition, in the OSFP optical module, the LPWn pin is connected to the M_LPWn pin of the corresponding register, and the RSTn pin is connected to the M_RSTn pin of the corresponding register. Therefore, when the level state of the LPWn pin is changed, the level state of the M_LPWn pin of the register corresponding to the LPWn pin will also change, and when the level state of the RSTn pin is changed, the level state of the M_RSTn pin of the register corresponding to the RSTn pin will also change, thereby controlling the OSFP optical module to switch from high power consumption mode to low power consumption mode. In addition, the state of the register corresponding to the ForceLowPwr function can also be rewritten to trigger the ForceLowPwr function, thereby controlling the OSFP optical module to switch from high power consumption mode to low power consumption mode.
[0023] At present, in the general method of detecting the OSFP optical module and determining its power consumption switching time, the low-power pin of the test board is used as a test trigger signal to obtain the starting time of the power consumption switching, and the output level change of the photoelectric conversion device is used as a signal that the OSFP optical module has completed the high power consumption to low power consumption conversion, so as to obtain the end time of the power consumption switching.
[0024] However, since the actual power consumption switching moment is the triggering moment of the pin of the register in the OSFP optical module, it is inaccurate to use the test trigger signal generation moment of the low-power pin of the test board as the starting moment, and there is also a certain delay when the photoelectric conversion device converts the light signal of the OSFP optical module into a level output, so the measured starting and ending moments of the power consumption switching are inaccurate, resulting in misdetection of the OSFP optical module, which may cause the OSFP optical module that originally complies with the regulations to be detected as non-compliant.
[0025] Based on this, an OSFP optical module detection device, system and method are proposed in an embodiment of the present invention. In the detection device, a first pin on the measurement and control unit is connected to the LPWn pin of the OSFP optical module to be detected through a gold finger mother port, and a second pin of the measurement and control unit is connected to the RSTn pin of the OSFP optical module to be detected, and the measurement and control unit is connected to the OSFP module to be detected through an IIC bus, so that the measurement and control unit can trigger the low power pin of the OSFP optical module to be detected by switching the level state of its own pin, control the OSFP optical module to be detected to switch power consumption, and read the register information of the OSFP optical module to be detected through the IIC bus to obtain the starting time of the power consumption switching, and monitor the change of the working current of the OSFP optical module to be detected in real time through the current detection unit to obtain the end time of the power consumption switching, so as to realize the detection of the OSFP optical module to be detected, eliminate the time delay of the external device communication, improve the accuracy of the determined power consumption switching time, thereby improving the accuracy of the detection result, and reducing the false detection of the OSFP optical module. At the same time, the detection device can realize the detection of the OSFP optical module, reduce the complexity of the detection operation, and improve the detection efficiency.
[0026] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0027] like Figure 1 As shown, Figure 1A schematic diagram of a detection device for an OSFP optical module provided in this specification, it can be seen that the detection device includes: a measurement and control unit, a current detection unit and a gold finger female port, and the measurement and control unit, the current detection unit and the gold finger female port are all located on the test board. In one or more embodiments of this specification, the OSFP optical module to be detected can be plugged into the test board through the gold finger female port, and the gold finger female port and the measurement and control unit are both equipped with an IIC interface, so through the gold finger female port, the measurement and control unit and the OSFP optical module to be detected can communicate through the IIC bus, that is, the measurement and control unit can be connected to the OSFP optical module to be detected through the IIC bus. At the same time, there is a first pin and a second pin on the measurement and control unit, and through the gold finger female port, the first pin is connected to the LPWn pin of the OSFP optical module to be detected, and the second pin is connected to the RSTn pin of the OSFP optical module to be detected.
[0028] It should be noted that the measurement and control unit, the current detection unit and the gold finger female port can be welded to the test board through the current mature electrical technology, and this manual will not go into details. Alternatively, they can also be connected to the test board through circuit wiring.
[0029] In one or more embodiments of the present specification, the measurement and control unit may receive a power consumption switching instruction, and according to the received power consumption switching instruction, adopt a pre-set power consumption switching mode corresponding to the power consumption switching instruction to control the OSFP optical module to be detected to perform power consumption switching.
[0030] As mentioned above, the OSFP optical module can be controlled to switch power consumption by changing the level state of the low power pin on the OSFP optical module. The power consumption switching instruction can be an instruction to change the level state of the low power pin in the OSFP optical module to be detected.
[0031] In this specification, the first pin of the measurement and control unit is used to trigger the LPWn pin of the OSFP optical module to be detected, and the second pin is used to trigger the RSTn pin of the OSFP optical module to be detected. The level state of the pin of the measurement and control unit can be configured, so that the level state of the low-power pin of the OSFP optical module to be detected can be controlled in a hardware circuit manner. That is, by configuring the level state of the first pin, the level state of the LPWn pin of the OSFP optical module to be detected is controlled, and by configuring the level state of the second pin, the level state of the RSTn pin of the OSFP optical module to be detected is controlled, thereby controlling the OSFP optical module to perform power consumption switching.
[0032] Then, in one or more embodiments of the present specification, the power consumption switching mode corresponding to the power consumption switching instruction at least includes: switching the state of the target pin on the measurement and control unit. Obviously, the target pin is a pin pre-set to control the level state of the low power consumption pin in the OSFP optical module corresponding to the power consumption switching instruction, that is, the first pin and / or the second pin.
[0033] It should be noted that for each low-power pin of the OSFP optical module, the low-power pin can be controlled by one or more pins on the measurement and control unit. This specification does not limit how many pins on the measurement and control unit control the low-power pin, and it does not limit which one or several pins on the measurement and control unit control the low-power pin. Both can be pre-set according to specific needs. In other words, this specification does not limit the specific form of the first pin and the second pin, as long as the level state of the low-power pin on the OSFP optical module to be detected can be changed by configuring the level state of the pin on the measurement and control unit.
[0034] In one or more embodiments of the present specification, the measurement and control unit may be a MUC, and the pin on the measurement and control unit may be a GPIO pin. As mentioned above, the GPIO pin is used to trigger the low power pin of the OSFP optical module, that is, the GPIO pin is used to change the level state of the low power pin in the OSFP optical module. In the present specification, the level state of the low power pin in the OSFP optical module can be switched by configuring the level state of the GPIO pin, that is, the aforementioned LPWn and RSTn.
[0035] like Figure 2 As shown, Figure 2 This specification provides a circuit diagram of the connection between the pins of a measurement and control unit on a test board and the low-power pins of an OSFP optical module. The measurement and control unit is a MUC, and the MUC includes pins P0_1, P0_2, SDA, and SCL, wherein SDA and SCL constitute an IIC pin, P0_1 is connected to the LPWn pin in the OSFP optical module, P0_2 is connected to the RSTn in the OSFP optical module, the SDA pin on the MUC is connected to the SDA pin on the optical module OSFP, and the SCL pin on the MUC is connected to the SCL pin on the OSFP optical module to be tested, that is, the IIC pin on the MUC is connected to the IIC pin in the OSFP optical module. In addition, the measurement and control unit also includes a peripheral circuit. In actual applications, the peripheral circuit is used to cooperate with the MUC to complete the control of the low-power pins of the OSFP optical module. Figure 2As shown, the peripheral circuit includes: resistors R1, R2, R3, R4 and R5, wherein RSTn is grounded through resistor R3, LPWn is connected to P0_1 in series with resistor R2, and LPWn is connected to power supply VCC through resistor R1, SDA bus is connected to power supply VCC through resistor R4, and SCL bus is connected to power supply VCC through resistor R5. In addition, in practical applications, the test device also includes a power supply module, which is used to power the test device, such as Figure 2 As shown, the MUC on the test board may also include a VCC power input pin and a GND ground terminal pin, which are used to connect a power source to power the MUC.
[0036] It needs to be explained that, Figure 2 The circuit diagram shown is only an example. In addition, the connection relationship and resistance value of the peripheral circuit used to cooperate with the MUC can be preset according to actual needs.
[0037] In one or more embodiments of the present specification, the power consumption switching instruction includes a first power consumption switching instruction and a second power consumption switching instruction. The first pin on the measurement and control unit is used to trigger the LPWn pin, and the second pin on the measurement and control unit is used to trigger the RSTn pin. In one or more embodiments of the present specification, the measurement and control unit may initialize the first pin to a push-pull output high level state, and initialize the second pin to a floating state.
[0038] Furthermore, when the power consumption switching instruction received by the measurement and control unit is the first power consumption switching instruction, the power consumption switching mode corresponding to the first power consumption switching instruction can be used, that is, the push-pull output high level state of the first pin can be switched to a floating state to trigger the LPWn pin of the OSFP optical module to be detected, thereby controlling the OSFP optical module to be detected to perform power consumption switching.
[0039] When the power consumption switching instruction received by the measurement and control unit is the second power consumption switching instruction, the power consumption switching mode corresponding to the second power consumption switching instruction can be used, that is, the floating state of the second pin can be switched to a push-pull output low level state to trigger the RSTn pin of the OSFP optical module to be detected, thereby controlling the OSFP optical module to be detected to perform power consumption switching.
[0040] In one or more embodiments of the present specification, the power consumption switching instruction may further include a third power consumption switching instruction. As mentioned above, since the OSFP optical module also has a ForceLowPwr function, the ForceLowPwr function is a function of switching the power consumption of the OSFP optical module implemented by register configuration. Therefore, in one or more embodiments of the present specification, the power consumption switching method corresponding to the power consumption instruction also includes: an instruction to write the power consumption switching instruction into the register of the OSFP optical module to be detected.
[0041] Therefore, when the power consumption switching instruction received by the measurement and control unit is the third power consumption switching instruction, the measurement and control unit can write the third power consumption switching instruction into the register corresponding to the ForceLowPwr function of the OSFP optical module to be detected through the IIC bus, so as to trigger the ForceLowPwr function of the OSFP optical module to be detected, and control the OSFP optical module to be detected to perform power consumption switching. In one or more embodiments of the present specification, the measurement and control unit can convert the third power consumption switching instruction into an instruction based on the IIC protocol, and the instruction based on the IIC protocol refers to an instruction based on the IIC protocol to trigger the ForceLowPwr function, so that the OSFP optical module to be detected writes the converted instruction based on the IIC protocol into the register corresponding to the ForceLowPwr function through the IIC bus, triggers the ForceLowPwr function, and controls the OSFP optical module to be detected to perform power consumption switching.
[0042] In general, the measurement and control unit can receive a target power consumption switching instruction, and determine the power consumption switching mode corresponding to the target power consumption switching instruction in the correspondence between the pre-set power consumption switching instruction and the power consumption switching mode, so as to adopt the power consumption switching mode corresponding to the target power consumption switching instruction to control the OSFP optical module to be detected to perform power consumption switching. Among them, the target power consumption switching instruction includes: an instruction to trigger the target pin, and includes: an instruction to trigger the target function. The target pin includes the aforementioned RSTn and LPWn, and the target function includes ForceLowPwr. Among them, the power consumption switching mode corresponding to the target power consumption switching instruction includes: configuring the level state of the designated pin on the measurement and control unit, the designated pin is a pre-set pin for controlling the level state of the target pin in the OSFP optical module corresponding to the target power consumption switching instruction, and includes: an instruction to write the target power consumption switching instruction into the register of the OSFP optical module to be detected, specifically an instruction to trigger the ForceLowPwr function, and an instruction to write the register corresponding to the ForceLowPwr function in the OSFP optical module to be detected. Among them, the designated pin includes a first pin and a second pin.
[0043] When the measurement and control unit controls the OSFP optical module to be detected to switch the power consumption according to the power consumption switching instruction, the measurement and control unit can read the register information of the OSFP optical module to be detected through the IIC bus, and the register information includes: the level state of the M_LPWn pin of the register corresponding to the LPWn pin, the level state of the M_RSTn pin of the register corresponding to the RSTn pin, and the feedback signal of the register corresponding to the ForceLowPwr function. Therefore, the measurement and control unit can determine the starting time of the power consumption switching of the OSFP optical module to be detected according to the level state of the M_LPWn pin, the level state of the M_RSTn pin and the feedback signal in the register information of the OSFP optical module to be detected.
[0044] Specifically, when the power consumption switching instruction is the first power consumption switching instruction, the measurement and control unit can determine the triggering time of the M_LPWn pin of the OSFP optical module to be detected, that is, the time when the level state of the M_LPWn pin changes, according to the level state of the M_LPWn pin in the register information of the OSFP optical module to be detected, and use the triggering time of the M_LPWn pin as the starting time.
[0045] When the power consumption switching instruction is the second power consumption switching instruction, the measurement and control unit can determine the triggering moment of the M_RSTn pin of the OSFP optical module to be detected, that is, the moment when the level state of the M_RSTn pin changes, according to the level state of the M_RSTn pin in the register information of the OSFP optical module to be detected, and use the triggering moment of the M_RSTn pin as the starting moment.
[0046] When the power switching instruction is the third power switching instruction, the measurement and control unit can detect the feedback signal generated by the register corresponding to the ForceLowPwr function in the OSFP optical module to be detected through the IIC bus, and use the moment when the feedback signal is detected as the starting moment. The feedback signal is generated when the third power switching instruction is written.
[0047] In one or more embodiments of the present specification, the current detection unit can monitor the working current of the OSFP optical module to be detected in real time. The termination time of the OSFP optical module to be detected completing the power consumption switching is determined by the change of the working current of the OSFP optical module to be detected detected by the current detection unit. Specifically, based on the working current of the OSFP optical module to be detected monitored in real time by the current detection unit, when it is determined that the working current of the OSFP optical module to be detected is less than a preset current threshold, the moment when the working current of the OSFP optical module to be detected is less than the preset current threshold is used as the termination time.
[0048] The preset current threshold represents the operating current of the OSFP optical module in the preset low power consumption mode, and its specific value can be preset according to specific requirements and relevant protocol standards.
[0049] Therefore, the detection result of the OSFP optical module to be detected can be determined according to the obtained starting time and ending time of the power consumption switching of the OSFP optical module to be detected. Specifically, in one or more embodiments of the present specification, the value of the difference between the starting time and the ending time can be determined, and when the value is less than the preset time threshold, it is determined that the OSFP optical module to be detected is qualified, and when the value is not less than the preset time threshold, it is determined that the OSFP optical module to be detected is unqualified.
[0050] The preset time threshold may be 200 microseconds specified in the OSFP MSA protocol.
[0051] based on Figure 1 The detection device shown in the scheme realizes the power consumption switching of the OSFP optical module through a hardware circuit, without going through an external photoelectric conversion device, and determines the power consumption switching time according to the register information of the OSFP optical module read, thereby improving the accuracy of determining the power consumption switching time. At the same time, the detection device can be used to detect whether the OSFP optical module meets the power consumption switching requirements specified in the OSFP MSA, thereby reducing the complexity of the detection operation and improving the detection efficiency.
[0052] In addition, in one or more embodiments of the present specification, the power consumption switching instruction received by the measurement and control unit may be sent by other electronic devices, and the measurement and control unit may be connected to other electronic devices in communication, such as through a USB interface connection, a wireless connection, etc. The power consumption switching instruction may also be set in advance inside the measurement and control unit, and a button for starting the power consumption switching instruction may be installed on the detection device. When performing the detection, the measurement and control unit may respond to the operation of pressing the button, determine the power consumption switching instruction corresponding to the pressed button, and perform subsequent detection steps. This specification does not specifically limit how the measurement and control unit starts the detection process.
[0053] Furthermore, in order to further improve the accuracy of the determined starting time, in one or more embodiments of this specification, the current detection unit may include a current detection amplifier. Figure 3 As shown, Figure 3A circuit diagram of a current detection unit provided in this specification, U1 is an OSFP module to be detected, U2 is a current detection amplifier, the power supply VCC is connected to the VCC power input pin of U1 through a resistor R6, the current detection amplifier U2 includes a VCC power input pin, an EN pin, the VCC power input pin and the EN pin of the current detection amplifier U2 are both connected to the power supply VCC, Prob+ is a positive test point, and Prob- is a negative test point, connected to both ends of the resistor R6. The current detection amplifier U2 includes a Vout pin for outputting a voltage signal to reflect the working changes of U1.
[0054] The working current of the OSFP optical module to be tested is monitored in real time through the current detection amplifier, thereby improving the accuracy of the starting time of the power consumption switching tested.
[0055] In one or more embodiments of the present specification, the detection device further includes: an oscilloscope, which can be electrically connected to the OSFP optical module to be detected via the IIC bus. Further, the register information of the OSFP optical module to be detected obtained by the IIC bus is displayed, mainly displaying the level status of the low-power pin of the OSFP optical module. Specifically, the oscilloscope can be electrically connected to the SDA bus in the IIC bus. In addition, the oscilloscope is also electrically connected to the current detection unit to display the working current of the OSFP optical module to be detected. Figure 3 Taking the current sensing unit shown in FIG. 1 as an example, the oscilloscope can be connected to the Vout pin of the current sensing amplifier.
[0056] In one or more embodiments of the present specification, the oscilloscope can be connected to the measurement and control unit for communication, and the oscilloscope can send the level state of the low-power pin of the OSFP optical module displayed and the working current of the OSFP optical module to be detected to the measurement and control unit. Then, the measurement and control unit can determine the starting time of the power consumption switching of the OSFP optical module to be detected according to the level state of the low-power pin of the OSFP optical module displayed by the oscilloscope, and determine the end time of the power consumption switching of the OSFP optical module to be detected through the working current of the OSFP optical module to be detected displayed by the oscilloscope, thereby determining the detection result. In addition, a detection result notification device, such as a signal light, an alarm, etc., can also be set on the detection device. When the measurement and control unit determines that the OSFP optical module to be detected is qualified according to the starting time and the end time, the detection result notification device can display a first state, such as the signal light is on or the green signal light is on. When the measurement and control unit determines that the OSFP optical module to be detected is unqualified according to the starting time and the end time, the detection notification device can display a second state, such as the signal light is off or the red signal light is on. The above method can improve the convenience and efficiency of detection.
[0057] In one or more embodiments of the present specification, the relevant technicians may pre-set a first test point on the SDA bus of the IIC bus of the detection device, and the oscilloscope may be connected to the first test point to display the internal register information of the OSFP optical module read through the IIC bus. A second test point may also be pre-set on the output bus of the current detector, and the oscilloscope may be connected to the second test point to display the operating current of the OSFP optical module monitored in real time by the current detector.
[0058] It should be noted that the oscilloscope can also be connected to other electronic devices with computing capabilities to send the level status of the low-power pin of the OSFP optical module displayed by the oscilloscope and the change in the working current of the OSFP optical module to be tested to other electronic devices with computing capabilities, so that other electronic devices with computing capabilities can determine the detection results.
[0059] In one or more embodiments of the present specification, when the measurement and control unit determines the termination moment of the OSFP optical module to be detected completing the power consumption switching through the current detection unit, the current detection unit can be communicatively connected with the measurement and control unit, so that the current measurement and control unit can send the working current of the OSFP optical module to be detected monitored in real time to the measurement and control unit, and the measurement and control unit determines the termination moment of the OSFP optical module to be detected completing the power consumption switching based on the working current of the OSFP optical module to be detected monitored in real time by the current measurement and control unit.
[0060] Of course, when the current detection unit is connected to the oscilloscope, the oscilloscope can also transmit the changes in the working current of the OSFP optical module to be detected, which is monitored in real time by the current detection unit, to the measurement and control unit, so that the measurement and control unit can receive the working current of the OSFP optical module to be detected, and then proceed to subsequent steps. This manual does not make specific restrictions.
[0061] like Figure 4 As shown, Figure 4 A schematic diagram of a detection system for an OSFP optical module provided in this specification, the detection system includes Figure 1 The detection device shown in the figure, the detection system also includes a host computer, which is communicatively connected with the measurement and control unit.
[0062] First, the host computer can send a power switching instruction to the measurement and control unit. In one or more embodiments of this specification, the host computer can determine the power switching instruction corresponding to the user's operation in response to the user's operation, and send the power switching instruction corresponding to the user's operation to the measurement and control unit.
[0063] The measurement and control unit can receive the power switching instruction sent by the host computer, and according to the received power switching instruction, adopt the pre-set power switching mode corresponding to the power switching instruction to control the OSFP optical module to be tested to switch the power consumption. It should be noted that the power switching instruction and the power switching mode are the same as those mentioned above. Figure 1 The above is consistent with that in the OSFP optical module detection device shown in the figure, and will not be repeated here.
[0064] Therefore, the host computer can send three power consumption instructions to the measurement and control unit, so that the measurement and control unit controls the OSFP optical module to be detected to switch the power consumption. The measurement and control unit controls the process of the OSFP optical module to be detected to switch the power consumption according to the received power consumption switching instruction and the power consumption switching mode corresponding to the received power consumption switching instruction. Figure 1 The above is consistent with the above-mentioned OSFP optical module detection device, and the specific process is not repeated here.
[0065] Then, the measurement and control unit can obtain the register information of the OSFP optical module to be detected through the IIC bus, and determine the starting time of the power consumption switching of the OSFP optical module to be detected based on the register information. And the end time of the power consumption switching of the OSFP optical module to be detected can be determined by the working current of the OSFP optical module to be detected monitored in real time by the current detection unit. Therefore, the detection result of the OSFP optical module to be detected can be determined according to the starting time and the end time.
[0066] It should be noted that how the measurement and control unit determines the detection result of the OSFP optical module to be detected is different from the above Figure 1 The above is consistent with the above-mentioned OSFP optical module detection device, and the specific process is not repeated here.
[0067] like Figure 5 As shown, Figure 5 A flow chart of a detection method for an OSFP optical module provided in this specification is provided. The detection method is based on Figure 1 The detection method of the detection device shown in the figure specifically comprises the following steps: S500: The measurement and control unit of the detection device receives a power consumption switching instruction, and adopts a power consumption switching mode corresponding to the power consumption switching instruction to control the OSFP optical module to be detected to perform power consumption switching.
[0068] S502: The measurement and control unit obtains the register information of the OSFP optical module to be detected through the IIC bus, and determines the starting time of the power consumption switching of the OSFP optical module to be detected according to the register information; and monitors the working current of the OSFP optical module to be detected in real time through the current detection unit to determine the termination time of the power consumption switching of the OSFP optical module to be detected.
[0069] S504: The measurement and control unit determines the detection result of the OSFP optical module to be detected according to the start time and the end time.
[0070] It should be noted that the specific implementation process of this detection method is the same as the above Figure 1 The implementation process of the detection device shown is consistent and will not be repeated here.
[0071] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0072] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0073] In the present invention, unless otherwise clearly specified and limited, when a first feature is “on” or “below” a second feature, it may be that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Moreover, when a first feature is “above”, “above” or “above” a second feature, it may be that the first feature is directly above or obliquely above the second feature, or it may simply mean that the first feature is higher in level than the second feature. When a first feature is “below”, “below” or “below” a second feature, it may be that the first feature is directly below or obliquely below the second feature, or it may simply mean that the first feature is lower in level than the second feature.
[0074] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0075] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may alter, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A detection device for an OSFP optical module, characterized in that: The detection device comprises: a measurement and control unit, a current detection unit, and a gold finger female port; the measurement and control unit, the current detection unit, and the gold finger female port are located on a test board, and the OSFP optical module to be detected is plugged into the test board through the gold finger female port; The measurement and control unit is connected to the OSFP optical module to be detected through the IIC bus, and the first pin of the measurement and control unit is connected to the LPWn pin of the OSFP optical module to be detected, and the second pin of the measurement and control unit is connected to the RSTn pin of the OSFP optical module to be detected; the measurement and control unit is used to control the OSFP optical module to be detected to perform power consumption switching according to the received power consumption switching instruction and using a pre-set power consumption switching mode corresponding to the power consumption switching instruction; The current detection unit is used to monitor the working current of the OSFP optical module to be detected in real time; The measurement and control unit is used to obtain the register information of the OSFP optical module to be detected through the IIC bus, and determine the starting time of the power consumption switching of the OSFP optical module to be detected according to the register information; and determine the ending time of the power consumption switching of the OSFP optical module to be detected through the current detection unit; and determine the detection result of the OSFP optical module to be detected according to the starting time and the ending time.
2. The detection device according to claim 1, characterized in that The power consumption switching instruction includes a first power consumption switching instruction; the measurement and control unit is specifically used to initialize the first pin to a push-pull output high level state; The measurement and control unit is specifically used to switch the push-pull output high level state of the first pin to a floating state according to the first power consumption switching instruction, so as to trigger the LPWn pin of the OSFP optical module to be detected and control the OSFP optical module to be detected to perform power consumption switching.
3. The detection device according to claim 1, characterized in that: The register information includes: the level state of the M_LPWn pin of the register corresponding to the LPWn pin in the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the triggering time of the M_LPWn pin of the OSFP optical module to be detected according to the register information, and use the triggering time of the M_LPWn pin as the starting time.
4. The detection device according to claim 1, characterized in that: The power consumption switching instruction includes a second power consumption switching instruction; the measurement and control unit is specifically used to initialize the second pin to a floating state; The measurement and control unit is specifically used to switch the floating state of the second pin to a push-pull output low level state according to the second power consumption switching instruction, so as to trigger the RSTn pin of the OSFP optical module to be detected and control the OSFP optical module to be detected to perform power consumption switching.
5. The detection device according to claim 1, characterized in that: The register information includes: the level state of the M_RSTn pin of the register corresponding to the RSTn pin in the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the triggering time of the M_RSTn pin of the OSFP optical module to be detected according to the register information, and use the triggering time of the M_RSTn pin as the starting time.
6. The detection device according to claim 1, characterized in that: The power consumption switching instruction includes a third power consumption switching instruction; The measurement and control unit is specifically used to write the third power consumption switching instruction into the register corresponding to the ForceLowPwr function of the OSFP optical module to be detected through the IIC bus according to the third power consumption switching instruction, so as to trigger the ForceLowPwr function pin of the OSFP optical module to be detected, and control the OSFP optical module to be detected to perform power consumption switching.
7. The detection device according to claim 6, characterized in that: The register information includes: a feedback signal generated by a register corresponding to the ForceLowPwr function of the OSFP optical module to be detected; The measurement and control unit is specifically used to detect, through the IIC bus, a feedback signal generated by a register corresponding to the ForceLowPwr function of the OSFP optical module to be detected, and take the moment when the feedback signal is detected as the starting moment; wherein, the feedback signal is generated at the moment when the third power consumption switching instruction is written.
8. The detection device according to claim 1, characterized in that: The measurement and control unit is specifically used to monitor the working current of the OSFP optical module to be detected in real time through the current detection unit. When it is determined that the working current of the OSFP optical module to be detected is less than a preset current threshold, the moment when the working current of the OSFP optical module to be detected is less than the preset current threshold is determined as the termination moment.
9. The detection device according to claim 1, characterized in that: The detection device also includes: an oscilloscope; The oscilloscope is electrically connected to the OSFP optical module to be detected through the IIC bus, and the oscilloscope is used to display the register information of the OSFP optical module to be detected obtained by the IIC bus; the oscilloscope is electrically connected to the current detection unit, and the oscilloscope is used to display the change of the working current of the OSFP optical module to be detected; The measurement and control unit is specifically used to determine the starting time of the power consumption switching of the OSFP optical module to be detected through the register information of the OSFP optical module to be detected displayed by the oscilloscope, and to determine the termination time of the power consumption switching of the OSFP optical module to be detected through the change of the working current of the OSFP optical module to be detected displayed by the oscilloscope.
10. The detection device according to claim 1, characterized in that: The current detection unit includes a current detection amplifier.
11. A detection system for an OSFP optical module, characterized in that: The detection system comprises the detection device according to claims 1 to 10, and the detection system further comprises: a host computer; the measurement and control unit in the detection device is communicatively connected with the host computer; The host computer is used to send a power consumption switching instruction to the measurement and control unit.
12. A method for detecting an OSFP optical module, characterized in that: The detection method is a detection method based on the detection device of the OSFP optical module according to claims 1 to 10, and the method comprises: The measurement and control unit of the detection device receives the power consumption switching instruction, and adopts the power consumption switching mode corresponding to the power consumption switching instruction to control the OSFP optical module to be detected to perform power consumption switching; The measurement and control unit obtains the register information of the OSFP optical module to be detected through the IIC bus, and determines the starting time of the power consumption switching of the OSFP optical module to be detected according to the register information; and the working current of the OSFP optical module to be detected is monitored in real time through the current detection unit to determine the termination time of the power consumption switching of the OSFP optical module to be detected; The measurement and control unit determines the detection result of the OSFP optical module to be detected according to the start time and the end time.
Citation Information
Patent Citations
Method for efficiently realizing switching control of QSFP module low power consumption mode
CN105827327A
Dynamic power consumption management method based on RISC-V
CN111240457A
Optical module and signal processing method
CN114978323A
Optical module
CN117335883A
Network switch with park mode
CN205195735U