Interactive adaptation method of optical module, optical module, storage medium and product
By setting the logic analysis decoding chip inside the optical module, automatically decoding the power-on timing waveform and adjusting the MSA protocol register value, the adaptation problem between the optical module and different switches or network cards is solved, the deployment efficiency and interoperability are improved, and maintenance costs are reduced .
Patent Information
- Application Number
- CN202410951357.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The lack of unified power-on timing standards when interacting with switches or network cards of different manufacturers, resulting in adaptation difficulties, resulting in low deployment efficiency of optical modules and poor customer satisfaction. The existing solutions require a lot of human resources and time.
Set up a logic analysis and decoding chip inside the optical module, obtain the power-on timing decoding value by decoding the power-on timing waveform, and adjust the MSA protocol register value based on these values to adapt to different switches or network cards to achieve automatic adaptation.
It greatly saves adaptation time, improves the interoperability and deployment efficiency of optical modules and switches or network cards, reduces the need for manual intervention, and improves the user experience and device reliability.
Smart Images

Figure CN119031280A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to an interactive adaptation method of an optical module, an optical module, a storage medium and a product. Background Art
[0002] The communication between the optical module and the ASIC (Application Specific Integrated Circuit) switch or network card mainly adopts the I2C (Inter-Integrated Circuit) serial bus, whose communication rate ranges from 400KHz to 1MHz. In some scenarios, the I3C (Improved Inter-Integrated Circuit, an upgraded version of I2C) standard has been introduced to achieve a rate of up to 12.5MHz. This communication method meets the basic monitoring and configuration requirements to a certain extent. However, when the optical module tries to interact with switches or network cards from different manufacturers, the lack of a unified power-on timing standard leads to a series of adaptation problems.
[0003] In order to solve these problems, optical module manufacturers often have to send technical experts to the customer site to use external logic analyzers and optical module extension boards to capture and decode the power-on timing waveform, and then based on these waveform data, software engineers make targeted modifications to the optical module's MCU (Microcontroller Unit) firmware. This process not only consumes a lot of human resources, but also on-site debugging and coordination work often takes a long time, which seriously affects the deployment efficiency of optical modules and customer satisfaction.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide an interactive adaptation method of an optical module, an optical module, a storage medium and a product, aiming to solve the technical problem of how to improve the adaptation efficiency when the optical module interacts with different switches or network cards.
[0006] To achieve the above object, the present application proposes an interactive adaptation method of an optical module, the method comprising:
[0007] Decoding the timing waveform of the optical module during the power-on process by a logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value;
[0008] Sending the power-on timing decoding value to the micro control unit inside the optical module;
[0009] The MSA (Multi-Source Agreement) protocol register value of the optical module is adjusted by a micro control unit according to the power-on timing decoding value to adapt to different switches or network cards.
[0010] In one embodiment, the step of decoding the timing waveform of the optical module during the power-on process by a logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value includes:
[0011] Acquiring the signal of the optical module during the power-on process through the logic analysis and decoding chip;
[0012] converting the signal into a timing waveform;
[0013] The timing waveform is analyzed to obtain a power-on timing decoding value of the optical module.
[0014] In one embodiment, the step of adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value by the micro control unit includes:
[0015] Obtaining target parameters from the power-on timing decoding value according to preset rules;
[0016] Input the target parameter into a preset adaptation model to obtain an output target register value, wherein the adaptation model is obtained by training with the target parameter as input and the MSA protocol register value as a label;
[0017] The MSA protocol register value of the optical module is adjusted to the target register value.
[0018] In one embodiment, after the step of adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value by the micro control unit, the method further includes:
[0019] Run the self-test program through the micro control unit and obtain the self-test result;
[0020] When the self-test result is failure, the MSA protocol register value of the optical module is called back.
[0021] In one embodiment, the method further comprises:
[0022] Outputting the parameters obtained during the operation of the optical module to the remote control platform;
[0023] Various parameters of the optical module are adjusted according to the instructions received from the remote control platform.
[0024] In one embodiment, the method further comprises:
[0025] Acquiring the operating temperature of the optical module through a sensor in the optical module;
[0026] The MSA protocol register value of the optical module is adjusted according to the operating temperature to adapt to different ambient temperatures.
[0027] In addition, to achieve the above-mentioned purpose, the present application also proposes an optical module, the optical module comprising:
[0028] A micro control unit, connected to an external switch or network card, is used to modify the MSA protocol register value according to the received power-on timing decoding value;
[0029] A logic analysis decoding chip is connected to the micro control unit and is used to decode the timing waveform during the power-on process of the optical module and send the decoded power-on timing decoding value to the micro control unit.
[0030] In one embodiment, the optical module further includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the interactive adaptation method of the optical module as described above.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the interactive adaptation method of the optical module as described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the interactive adaptation method of the optical module as described above are implemented.
[0033] The present application provides an interactive adaptation method for an optical module. The present application sets a logic analysis and decoding chip inside the optical module, and uses the logic analysis and decoding chip to parse the timing waveform generated when the optical module is powered on. Then, according to the parsed power-on timing decoding value, the MSA protocol register value of the optical module can be adjusted, so that the optical module adapts to the switch or network card connected to the power-on.
[0034] In summary, the present application sets a logic analysis and decoding chip inside the optical module so that the optical module can automatically parse the generated timing waveform when it is connected to a switch or a network card and powered on, and then adjusts the MSA protocol register value according to the analysis result, so that the MSA protocol register value is adapted to the connected switch or network card, so that the optical module can automatically adapt to normal operation after being connected to the switch or the network card and powered on, which greatly saves the adaptation time and improves the adaptation efficiency when the optical module is powered on. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A flowchart of the first embodiment of the interactive adaptation method of the optical module of the present application is provided;
[0038] Figure 2 A schematic diagram of the interaction between the optical module and the switch or network card for this application;
[0039] Figure 3 This is a schematic diagram of the interaction between the I2C integrated logic analysis and decoding chip inside the optical module of this application and the switch or network card;
[0040] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the interactive adaptation method of the optical module in the embodiment of the present application.
[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The main solution of the embodiment of the present application is: decoding the timing waveform of the optical module during the power-on process through the logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value; sending the power-on timing decoding value to the micro control unit inside the optical module; adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value through the micro control unit to adapt to different switches or network cards.
[0045] In this embodiment, for ease of description, the optical module is used as the execution body for explanation below.
[0046] The communication between the optical module and the ASIC switch or network card mainly uses the I2C serial bus, whose communication rate ranges from 400KHz to 1MHz. In some scenarios, the I3C standard has been introduced to achieve a rate of up to 12.5MHz. This communication method meets the basic monitoring and configuration requirements to a certain extent. However, when the optical module tries to interact with switches or network cards from different manufacturers, the lack of a unified power-on timing standard leads to a series of adaptation problems.
[0047] In order to solve these problems, optical module manufacturers often have to send technical experts to the customer site to use external logic analyzers and optical module extension boards to capture and decode the power-on timing waveform, and then based on these waveform data, software engineers make targeted modifications to the optical module's MCU firmware. This process not only consumes a lot of human resources, but also on-site debugging and coordination work often takes a long time, which seriously affects the deployment efficiency of optical modules and customer satisfaction.
[0048] In response to the above problems, the present application provides an interactive adaptation method for an optical module. The present application sets a logic analysis and decoding chip inside the optical module, and uses the logic analysis and decoding chip to parse the timing waveform generated when the optical module is powered on. Then, according to the parsed power-on timing decoding value, the MSA protocol register value of the optical module can be adjusted, so that the optical module adapts to the switch or network card connected when it is powered on.
[0049] In summary, the present application sets a logic analysis and decoding chip inside the optical module so that the optical module can automatically parse the generated timing waveform when it is connected to a switch or a network card and powered on, and then adjusts the MSA protocol register value according to the analysis result, so that the MSA protocol register value is adapted to the connected switch or network card, so that the optical module can automatically adapt to normal operation after being connected to the switch or the network card and powered on, which greatly saves the adaptation time and improves the adaptation efficiency when the optical module is powered on.
[0050] It should be noted that the execution subject of this embodiment may be an optical module. The optical module is taken as an example to illustrate this embodiment and the following embodiments.
[0051] Based on this, the embodiment of the present application provides an interactive adaptation method of an optical module, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the interactive adaptation method of the optical module of the present application.
[0052] In this embodiment, the interactive adaptation method of the optical module includes steps S10 to S30:
[0053] Step S10, decoding the timing waveform of the optical module during the power-on process by a logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value;
[0054] It should be noted that, in this embodiment, please refer to Figure 2 , the interaction diagram between the optical module and the switch or network card is as follows Figure 2 As shown, SCL (Serial Clock Line) is the clock line of the I2C (serial bus) bus, which is controlled by the host (usually a microcontroller). The signal on the SCL line is used to synchronize data transmission and determine when the data on the data line SDA is valid and when it is sampled. All I2 C devices must follow the clock signal on the SCL line to send and receive data. SDA (Serial Data Line) is the data line of the I2C bus, which is used to send and receive data between devices. The SDA line is bidirectional, which means that data can flow in both directions between the host and the slave. The transmission of data is carried out under the control of the SCL line. When the SCL line is at a high level, the data on the SDA line remains unchanged; when the SCL line becomes a low level, the data on the SDA line can change.
[0055] It should be noted that, in this embodiment, please refer to Figure 3 , Figure 3 This is a schematic diagram of the interaction between the I2C integrated logic analysis and decoding chip inside the optical module and the switch or network card. The I2C of the optical module integrates a logic analysis and decoding chip, which can communicate with the control module and the switch or network card.
[0056] In this embodiment, during the process of the optical module interacting with the switch or gateway to power on, the internal circuits and components will experience a series of timing events such as voltage changes, signal rising edges and falling edges, which form specific timing waveforms, which are essential for understanding the initialization process of the device. The logic analysis decoding chip is responsible for capturing and decoding these timing waveforms. By analyzing the waveforms, it can identify key power-on timing information, such as power-on sequence, signal delay, voltage slope, etc. This information is encoded as a power-on timing decoding value. The power-on timing decoding value provides the precise timing information required for the optical module to interact with different switches or network cards, which helps the optical module to adapt to the target device more accurately.
[0057] In a feasible implementation manner, the above step S10 may include steps S101 to S103:
[0058] Step S101, obtaining the signal of the optical module during the power-on process through a logic analysis decoding chip;
[0059] In this embodiment, during the power-on process of the optical module, its internal circuit will generate various electrical signals, including but not limited to changes in power supply voltage, clock signals, data transmission signals, and control signals. The task of the logic analysis and decoding chip is to capture these signals. It can include multiple input channels, each channel is used to monitor different types of signals. Acquiring these signals is the basis for subsequent analysis, ensuring that all important events in the power-on process are recorded.
[0060] Step S102, converting the signal into a timing waveform;
[0061] In this embodiment, the original signal captured by the logic analysis decoding chip is usually in the form of voltage or current. In order to facilitate analysis, these signals need to be converted into timing waveforms, that is, graphical representations of signal changes over time. This conversion maps the signal from the analog domain to the time domain, making the signal characteristics (such as rise time, fall time, duration, period, etc.) more intuitive and easy to understand.
[0062] Step S103, analyzing the timing waveform to obtain a power-on timing decoding value of the optical module.
[0063] In this embodiment, after converting the signal into a timing waveform, the logic analysis and decoding chip will perform in-depth analysis on these waveforms to identify key timing features, including the trigger point of the signal, the relative delay between signals, the duration of the signal's stable state, etc. The analysis result will be encoded into a value or a group of values, namely, the power-on timing decoding value, which can represent the timing features of the entire power-on process.
[0064] Step S20, sending the power-on timing decoding value to the micro control unit inside the optical module;
[0065] In this embodiment, once the logic analysis and decoding chip completes the decoding of the power-on timing waveform, the generated power-on timing decoding value will be passed to the microcontroller unit (MCU) inside the optical module. The MCU is the "brain" of the optical module and is responsible for processing various control logic and communication tasks. The power-on timing decoding value is sent to the MCU so that the MCU can make subsequent adjustments and configurations based on this information.
[0066] Step S30, adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value by the micro control unit to adapt to different switches or network cards.
[0067] In this embodiment, after receiving the power-on timing decoding value, the microcontroller unit adjusts the MSA (Multi-Source Agreement) protocol register value of the optical module according to a preset algorithm or rule. The MSA protocol register contains key parameters for controlling the communication between the optical module and the switch or network card, such as laser drive current, receiver sensitivity, clock and data recovery (CDR) circuit configuration, etc. Adjusting these register values can better match the performance and characteristics of the optical module with the requirements of the target device, thereby achieving a stable and reliable connection.
[0068] In this implementation, by dynamically adjusting the MSA protocol register value, the optical module can automatically adapt to switches or network cards of various brands and models, thereby improving the interoperability and flexibility of the device.
[0069] Furthermore, in a feasible implementation manner, the above step S30 may include steps S301 to S303:
[0070] Step S301, obtaining target parameters from the power-on timing decoding value according to preset rules;
[0071] In this embodiment, the preset rules define which parameters are most important for the adaptation process and how to extract these parameters from the decoded values. According to the preset rules, target parameters related to power-on adaptation are obtained from the power-on timing decoded values.
[0072] Step S302, inputting the target parameter into a preset adaptation model to obtain an output target register value, wherein the adaptation model is obtained by training with the target parameter as input and the MSA protocol register value as a label;
[0073] In this embodiment, the adaptation model is a pre-trained algorithm or machine learning model, and its purpose is to predict the MSA protocol register value that best suits the current device configuration based on the target parameters. The model training process involves a large amount of historical data, including the optimal register settings under different power-on timings, and the corresponding performance results. By inputting the target parameters into the model, a set of predicted register values, namely the target register values, can be obtained.
[0074] Step S303: Adjust the MSA protocol register value of the optical module to the target register value.
[0075] In this embodiment, once the target register value is obtained, the microcontroller unit (MCU) will perform specific register adjustment operations. This involves updating the register value stored inside the optical module to reflect the configuration specified in the target register value. The adjustment process can include modifying the laser drive current, receiver sensitivity, clock frequency, and other parameters related to communication performance.
[0076] Through the above steps, the optical module can achieve intelligent self-configuration and optimization, significantly improving the compatibility and communication efficiency with different switches or network cards. This method not only reduces the need for manual intervention, but also improves the deployment speed and user experience of the equipment, while reducing maintenance costs and potential failure rates.
[0077] In addition, in a feasible implementation, a technician may manually modify the MSA protocol register value model adaptation by reading the power-on timing decoding value of the MCU.
[0078] It can be understood that the first implementation of step S30 provided above can save more labor costs and improve the adaptability of the optical module, thereby improving the adaptation efficiency of the optical module, compared with the second implementation. Compared with the first implementation, the second implementation can more accurately adapt to different switches or network cards by manually modifying the register value, and can adapt to newly emerging device types, thereby improving the adaptation accuracy and adaptation range of the optical module.
[0079] The above are only two feasible implementations of step S30 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S30.
[0080] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, after the above step S30, the method can also include steps S40 to S50:
[0081] Step S40, running a self-test program through the micro control unit and obtaining a self-test result;
[0082] In this embodiment, after adjusting the MSA protocol register value, in order to ensure the correct operation of the optical module, the microcontroller unit (MCU) will execute a set of built-in self-test programs. The self-test program usually includes a series of test cases to verify whether the various functions of the optical module are normal, such as the transmit power of the laser, the sensitivity of the receiver, signal integrity, clock synchronization, etc. The self-test results will indicate whether each test has passed, thereby determining the validity and stability of the current configuration of the optical module.
[0083] Step S50: When the self-test result is failure, the MSA protocol register value of the optical module is called back.
[0084] In this embodiment, if the self-test program detects any functional anomaly or substandard performance of the optical module, the microcontroller unit will perform a callback operation, that is, restore the MSA protocol register value to the last successful configuration state. The callback operation is a safety mechanism to prevent incorrect configuration from causing irreversible damage to the device or long-term communication problems.
[0085] Through the above steps, the optical module can achieve self-inspection and self-repair capabilities, which not only improves the reliability and stability of the equipment, but also reduces maintenance costs and enhances the user experience of the equipment.
[0086] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned embodiment 1 and / or embodiment 2 can be referred to the above introduction, and will not be repeated later. On this basis, the method can also include steps A10 to A20:
[0087] Step A10, outputting the parameters obtained during the operation of the optical module to the remote control platform;
[0088] In this embodiment, during the operation of the optical module, various parameters such as temperature, voltage, optical power, bit error rate, etc. are continuously monitored and collected. These parameters are essential for evaluating the health status, performance and predicting maintenance needs of the equipment. Uploading these parameters to the remote control platform in real time or periodically enables system administrators or operation and maintenance personnel to monitor and analyze the status of the optical module from a central location without having to go to the physical location in person.
[0089] Step A20: adjusting various parameters of the optical module according to the received instruction from the remote control platform.
[0090] In this embodiment, the remote control platform is not only used to receive and display the operating parameters of the optical module, but also to send instructions to the optical module to adjust its configuration or operation mode. For example, the transmit power of the laser can be changed, the gain of the receiver can be adjusted, certain functional modules can be enabled or disabled, etc. This two-way communication capability enables operation and maintenance personnel to flexibly adjust the settings of the optical module according to network load, performance requirements or fault conditions without physical contact with the equipment.
[0091] Through the above steps, the integration between the optical module and the remote control platform improves the flexibility and response speed of network management, enhances the maintainability of the equipment and the overall performance of the network.
[0092] Based on the first to third embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those of the first to third embodiments can be referred to the above introduction, and will not be repeated in the following. On this basis, the method can also include steps B10 to B20:
[0093] Step B10, obtaining the operating temperature of the optical module through a sensor in the optical module;
[0094] In this embodiment, a temperature sensor is usually installed inside the optical module to monitor the real-time temperature of the device during operation. Temperature is one of the important factors affecting the performance and life of the optical module. Too high or too low temperature may cause the optical module to work unstably or even be damaged. By obtaining the operating temperature through the sensor, the thermal condition of the device can be grasped in real time, which is crucial for taking appropriate temperature control measures and preventive maintenance.
[0095] Step B20, adjusting the MSA protocol register value of the optical module according to the operating temperature to adapt to different ambient temperatures.
[0096] In this embodiment, based on the monitoring results of the operating temperature, the microcontroller unit (MCU) of the optical module adjusts the MSA protocol register value according to a preset temperature compensation algorithm or rule. This may include adjusting the laser drive current, the receiver sensitivity threshold, the clock frequency, etc. to compensate for the impact of temperature changes on the transmission and reception of optical signals. By dynamically adjusting these parameters, the optical module can maintain stable performance and communication quality under different ambient temperatures.
[0097] Through the above steps, the optical module can achieve intelligent response to changes in ambient temperature, which not only improves the durability and service life of the equipment, but also ensures the stability and efficiency of the network connection, especially in application scenarios with large temperature fluctuations or extreme environments.
[0098] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the interactive adaptation method of the optical module of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0099] The present application also provides an optical module, such as Figure 3 As shown, the optical module includes:
[0100] The micro control unit 10 is connected to an external switch or network card and is used to modify the MSA protocol register value according to the received power-on timing decoding value;
[0101] The logic analysis decoding chip 20 is connected to the micro control unit and is used to decode the timing waveform of the optical module during the power-on process and send the decoded power-on timing decoding value to the micro control unit.
[0102] Optionally, the logic analysis decoding chip is also used for:
[0103] Acquiring the signal of the optical module during the power-on process through the logic analysis and decoding chip;
[0104] converting the signal into a timing waveform;
[0105] The timing waveform is analyzed to obtain a power-on timing decoding value of the optical module.
[0106] Optionally, the micro control unit is further used for:
[0107] Obtaining target parameters from the power-on timing decoding value according to preset rules;
[0108] Input the target parameter into a preset adaptation model to obtain an output target register value, wherein the adaptation model is obtained by training with the target parameter as input and the MSA protocol register value as a label;
[0109] The MSA protocol register value of the optical module is adjusted to the target register value.
[0110] Optionally, the optical module is also used for:
[0111] Run the self-test program through the micro control unit and obtain the self-test result;
[0112] When the self-test result is failure, the MSA protocol register value of the optical module is called back.
[0113] Optionally, the optical module is also used for:
[0114] Outputting the parameters obtained during the operation of the optical module to the remote control platform;
[0115] Various parameters of the optical module are adjusted according to the instructions received from the remote control platform.
[0116] Optionally, the optical module is also used for:
[0117] Acquiring the operating temperature of the optical module through a sensor in the optical module;
[0118] The MSA protocol register value of the optical module is adjusted according to the operating temperature to adapt to different ambient temperatures.
[0119] The optical module also includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the interactive adaptation method of the optical module in the above-mentioned embodiment 1.
[0120] Reference below Figure 4 , which shows a schematic structural diagram of an optical module suitable for implementing an embodiment of the present application. Figure 4The optical module shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0121] like Figure 4 As shown, the optical module may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the optical module are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the optical module to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an optical module with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0122] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0123] The optical module provided by the present application adopts the interactive adaptation method of the optical module in the above embodiment, which can solve the technical problem of how to improve the adaptation efficiency of the optical module when interacting with different switches or network cards. Compared with the prior art, the beneficial effects of the optical module provided by the present application are the same as the beneficial effects of the interactive adaptation method of the optical module provided by the above embodiment, and the other technical features in the optical module are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0124] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0126] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the interactive adaptation method of the optical module in the above-mentioned embodiment.
[0127] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0128] The computer-readable storage medium may be included in the optical module; or may exist independently without being assembled into the optical module.
[0129] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the optical module, the optical module: decodes the timing waveform of the optical module during the power-on process through the logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value; sends the power-on timing decoding value to the micro control unit inside the optical module; and adjusts the MSA protocol register value of the optical module according to the power-on timing decoding value through the micro control unit to adapt to different switches or network cards.
[0130] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0133] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned interactive adaptation method of the optical module, and can solve the technical problem of how to improve the adaptation efficiency when the optical module interacts with different switches or network cards. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the interactive adaptation method of the optical module provided by the above-mentioned embodiment, and will not be repeated here.
[0134] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned interactive adaptation method of the optical module when the computer program is executed by a processor.
[0135] The computer program product provided by the present application can solve the technical problem of how to improve the adaptation efficiency when the optical module interacts with different switches or network cards. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the interactive adaptation method of the optical module provided by the above embodiment, which will not be repeated here.
[0136] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An interactive adaptation method of an optical module, characterized in that: The method includes: Decoding the timing waveform of the optical module during the power-on process by a logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value; Sending the power-on timing decoding value to the micro control unit inside the optical module; The micro control unit adjusts the MSA protocol register value of the optical module according to the power-on timing decoding value to adapt to different switches or network cards.
2. The method according to claim 1, characterized in that The step of decoding the timing waveform of the optical module during the power-on process by a logic analysis decoding chip inside the optical module to obtain a power-on timing decoding value comprises: Acquiring the signal of the optical module during the power-on process through the logic analysis and decoding chip; converting the signal into a timing waveform; The timing waveform is analyzed to obtain a power-on timing decoding value of the optical module.
3. The method according to claim 1, characterized in that The step of adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value by the micro control unit includes: Obtaining target parameters from the power-on timing decoding value according to preset rules; Input the target parameter into a preset adaptation model to obtain an output target register value, wherein the adaptation model is obtained by training with the target parameter as input and the MSA protocol register value as a label; The MSA protocol register value of the optical module is adjusted to the target register value.
4. The method according to claim 1, characterized in that After the step of adjusting the MSA protocol register value of the optical module according to the power-on timing decoding value by the micro control unit, the method further includes: Run the self-test program through the micro control unit and obtain the self-test result; When the self-test result is failure, the MSA protocol register value of the optical module is called back.
5. The method according to claim 1, characterized in that The method further comprises: Outputting the parameters obtained during the operation of the optical module to the remote control platform; Various parameters of the optical module are adjusted according to the received instructions from the remote control platform.
6. The method according to claim 1, characterized in that The method further comprises: Acquiring the operating temperature of the optical module through a sensor in the optical module; The MSA protocol register value of the optical module is adjusted according to the operating temperature to adapt to different ambient temperatures.
7. An optical module, characterized in that: The optical module comprises: A micro control unit, connected to an external switch or network card, is used to modify the MSA protocol register value according to the received power-on timing decoding value; A logic analysis decoding chip is connected to the micro control unit and is used to decode the timing waveform during the power-on process of the optical module and send the decoded power-on timing decoding value to the micro control unit.
8. The optical module according to claim 7, characterized in that: The optical module further comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the interactive adaptation method of the optical module according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the interactive adaptation method of the optical module according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the interactive adaptation method of the optical module according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Automatic debugging method and system of optical module
CN101179331A
Automatic test system for time sequence parameters of QSFP28 optical module
CN113507318A
Optical module and power supply voltage monitoring compensation method of optical module
CN115268329A
Test method and system based on chip initialization
CN116203400A
Reinforced server time sequence control method, electronic equipment and storage medium
CN117492513A
Cited By
Communication method and system between test board and optical module based on I3C protocol
CN120090699A
