Interactive adaptation method of optical module, optical module, storage medium and product
By setting up a logic analysis and decoding chip and a microcontroller unit inside the optical module, the power-on timing waveform is automatically decoded and the MSA protocol register value is adjusted, which solves the compatibility problem between the optical module and different devices and improves the compatibility efficiency and interoperability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SICHUAN TRIXON COMM TECH CORP LTD
- Filing Date
- 2024-07-16
- Publication Date
- 2026-04-21
AI Technical Summary
The lack of a unified power-on sequence standard when optical modules interact with switches or network cards from different manufacturers leads to adaptation problems, which are time-consuming and require a lot of human resources.
A logic analysis and decoding chip is set inside the optical module to decode the power-on timing waveform to obtain the decoded value, and the MSA protocol register value is adjusted by the microcontroller unit to adapt to different devices.
It enables optical modules to automatically adapt after being connected to a switch or network card and powered on, saving adaptation time and improving adaptation efficiency and device interoperability.
Smart Images

Figure CN119031280B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technology, and in particular to an interactive adaptation method for an optical module, an optical module, a storage medium, and a product. Background Technology
[0002] Communication between optical modules and ASIC (Application Specific Integrated Circuit) switches or network interface cards (NICs) primarily uses the I2C (Inter-Integrated Circuit) serial bus, with communication rates ranging from 400kHz to 1MHz. In some scenarios, the I3C (Improved Inter-Integrated Circuit, an upgraded version of I2C) standard has been introduced, achieving rates up to 12.5MHz. This communication method meets basic monitoring and configuration requirements to a certain extent. However, when optical modules attempt to interact with switches or NICs from different manufacturers, the lack of a unified power-on sequence standard leads to a series of compatibility challenges.
[0003] To address these issues, optical module manufacturers often have to send technical experts to customer sites to capture and decode power-on timing waveforms using external logic analyzers and optical module extension boards. Based on this waveform data, software engineers then modify the firmware of the optical module's MCU (Microcontroller Unit). This process not only consumes significant human resources, but also involves time-consuming on-site debugging and coordination, severely impacting the deployment efficiency of optical modules and customer satisfaction.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide an optical module interaction adaptation method, an optical module, a storage medium and a product, aiming to solve the technical problem of how to improve the adaptation efficiency when optical modules interact with different switches or network cards.
[0006] To achieve the above objectives, this application proposes an interactive adaptation method for optical modules, the method comprising:
[0007] The power-on timing decoding value is obtained by decoding the timing waveform of the optical module during the power-on process using the logic analysis and decoding chip inside the optical module.
[0008] The power-on timing decoding value is sent to the microcontroller unit inside the optical module;
[0009] The microcontroller adjusts the MSA (Multi-Source Agreement) protocol register value of the optical module according to the power-on timing decoding value to adapt to different switches or network cards.
[0010] In one embodiment, the step of obtaining the power-on timing decoded value by decoding the timing waveform of the optical module during the power-on process through the logic analysis and decoding chip inside the optical module includes:
[0011] The signal of the optical module during the power-on process is obtained through the logic analysis and decoding chip;
[0012] Convert the signal into a timing waveform;
[0013] The power-on timing decoding value of the optical module is obtained by analyzing the timing waveform.
[0014] In one embodiment, the step of adjusting the MSA protocol register value of the optical module by the microcontroller unit according to the power-on timing decoding value includes:
[0015] The target parameters are obtained from the power-on timing decoding values according to preset rules;
[0016] The target parameters are input into a preset adaptation model to obtain the output target register value, wherein the adaptation model is trained using the target parameters as input and the MSA protocol register value as a label;
[0017] Adjust the MSA protocol register value of the optical module to the target register value.
[0018] In one embodiment, after the step of adjusting the MSA protocol register value of the optical module by the microcontroller unit according to the power-on timing decoding value, the method further includes:
[0019] The self-test program is run through the microcontroller unit, and the self-test results are obtained.
[0020] If the self-test result fails, the MSA protocol register value of the optical module will be returned.
[0021] In one embodiment, the method further includes:
[0022] The parameters acquired during the operation of the optical module are output to the remote control platform;
[0023] The parameters of the optical module are adjusted according to the instructions received from the remote control platform.
[0024] In one embodiment, the method further includes:
[0025] The operating temperature of the optical module is obtained through sensors 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] Furthermore, to achieve the above objectives, this application also proposes an optical module, the optical module comprising:
[0028] The microcontroller unit connects to an external switch or network card and is used to modify the MSA protocol register value based on the received power-on timing decoded value.
[0029] A logic analysis and decoding chip, connected to the microcontroller unit, is used to decode the timing waveforms during the power-on process of the optical module and send the decoded power-on timing values to the microcontroller 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, the computer program being configured to implement the steps of the interactive adaptation method for the optical module as described above.
[0031] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the optical module interaction adaptation method described above.
[0032] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the optical module interaction adaptation method described above.
[0033] This application provides an interactive adaptation method for optical modules. The application sets a logic analysis and decoding chip inside the optical module to analyze the timing waveform generated when the optical module is powered on. Then, based on the analyzed power-on timing decoding value, the MSA protocol register value of the optical module can be adjusted, thereby enabling the optical module to adapt to the switch or network card connected after power-on.
[0034] In summary, this application enables the optical module to automatically analyze the generated timing waveforms when it is powered on and connected to a switch or network card by setting a logic analysis and decoding chip inside the optical module. Then, based on the analysis results, the MSA protocol register value is adjusted to adapt the MSA protocol register value to the connected switch or network card. This allows the optical module to automatically adapt and work normally after being powered on and connected to the switch or network card, greatly saving adaptation time and improving the adaptation efficiency of the optical module when it is powered on. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating an embodiment of the optical module interaction adaptation method of this application.
[0038] Figure 2 This is a schematic diagram illustrating the interaction between the optical module and the switch or network card in this application;
[0039] Figure 3 This is a schematic diagram illustrating the interaction between the internal I2C integrated logic analysis and decoding chip of the optical module in this application and the switch or network card;
[0040] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the optical module interaction adaptation method in the embodiments of this application.
[0041] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0042] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0043] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The main solution of this application embodiment is: to obtain the power-on timing decoding value by decoding the timing waveform of the optical module during the power-on process through the logic analysis and decoding chip inside the optical module; to send the power-on timing decoding value to the microcontroller unit inside the optical module; and to adjust the MSA protocol register value of the optical module according to the power-on timing decoding value by the microcontroller unit to adapt to different switches or network cards.
[0045] In this embodiment, for ease of description, the optical module will be used as the execution subject in the following description.
[0046] Communication between optical modules and ASIC switches or network interface cards (NICs) primarily uses the I2C serial bus, with communication rates ranging from 400kHz to 1MHz. In some scenarios, the I3C standard has been introduced, achieving rates up to 12.5MHz. This communication method meets basic monitoring and configuration requirements to a certain extent. However, when optical modules attempt to interact with switches or NICs from different manufacturers, the lack of a unified power-on sequence standard leads to a series of compatibility challenges.
[0047] To address these issues, optical module manufacturers often have to send technical experts to customer sites to capture and decode power-on timing waveforms using external logic analyzers and optical module extension boards. Based on this waveform data, software engineers then make targeted modifications to the optical module's MCU firmware. This process not only consumes significant human resources, but the on-site debugging and coordination work is also often time-consuming, severely impacting the deployment efficiency of optical modules and customer satisfaction.
[0048] To address the aforementioned issues, this application provides an interactive adaptation method for optical modules. This application incorporates a logic analysis and decoding chip within the optical module. This chip analyzes the timing waveforms generated when the optical module is powered on. Based on the decoded power-on timing values, the MSA protocol register value of the optical module can be adjusted, thereby enabling the optical module to adapt to the power-on connected switch or network card.
[0049] In summary, this application enables the optical module to automatically analyze the generated timing waveforms when it is powered on and connected to a switch or network card by setting a logic analysis and decoding chip inside the optical module. Then, based on the analysis results, the MSA protocol register value is adjusted to adapt the MSA protocol register value to the connected switch or network card. This allows the optical module to automatically adapt and work normally after being powered on and connected to the switch or network card, greatly saving adaptation time and improving the adaptation efficiency of the optical module when it is powered on.
[0050] It should be noted that the execution subject of this embodiment can be an optical module. The following description uses an optical module as an example to illustrate this embodiment and the subsequent embodiments.
[0051] Based on this, embodiments of this application provide an interactive adaptation method for optical modules, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the optical module interaction adaptation method of this application.
[0052] In this embodiment, the interaction adaptation method of the optical module includes steps S10 to S30:
[0053] Step S10: The power-on timing decoding value is obtained by decoding the timing waveform of the optical module during the power-on process through the logic analysis and decoding chip inside the optical module.
[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, controlled by the master (usually a microcontroller). The signal on the SCL line is used to synchronize data transmission, determining when the data on the SDA data line is valid and when it is sampled. All I2C 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, used to send and receive data between devices. The SDA line is bidirectional, meaning that data can flow in both directions between the master and slave. Data transmission is controlled by the SCL line; when the SCL line is high, the data on the SDA line remains unchanged; when the SCL line goes low, 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 diagram illustrates the interaction between the I2C integrated logic analysis and decoding chip inside the optical module and a switch or network card. The optical module's I2C 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 power-on process of the optical module interacting with a switch or gateway, the internal circuits and components experience a series of timing events such as voltage changes, signal rising edges, and falling edges. These events form specific timing waveforms, which are crucial for understanding the device's initialization process. The logic analysis and decoding chip is responsible for capturing and decoding these timing waveforms. Through waveform analysis, it can identify key power-on timing information, such as power-on sequence, signal delay, and voltage slope. This information is encoded into power-on timing decoded values. These values provide the precise timing information required for the optical module to interact with different switches or network interface cards, helping the optical module to more accurately adapt to the target device.
[0057] In one feasible implementation, step S10 above may include steps S101 to S103:
[0058] Step S101: Obtain the signal of the optical module during the power-on process by analyzing the decoding chip through logic;
[0059] In this embodiment, during the power-on process of the optical module, its internal circuitry generates 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 contain multiple input channels, each channel being used to monitor different types of signals. Acquiring these signals is the basis for subsequent analysis, ensuring that all important events during the power-on process are recorded.
[0060] Step S102: Convert the signal into a timing waveform;
[0061] In this embodiment, the raw signals captured by the logic analysis and decoding chip are typically in the form of voltage or current. For ease of analysis, these signals need to be converted into timing waveforms, i.e., a graphical representation of the signal changing 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 understandable.
[0062] Step S103: Analyze the timing waveform to obtain the power-on timing decoding value of the optical module.
[0063] In this embodiment, after the signal is converted into a timing waveform, the logic analysis and decoding chip performs in-depth analysis on these waveforms to identify key timing characteristics, including the trigger point of the signal, the relative delay between signals, and the duration of the signal's steady state. The analysis result is encoded into a single value or a set of values, namely the power-on timing decoding value, which represents the timing characteristics of the entire power-on process.
[0064] Step S20: Send the power-on timing decoding value to the microcontroller 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 is transmitted to the microcontroller unit (MCU) inside the optical module. The MCU is the "brain" of the optical module, responsible for handling various control logic and communication tasks. Sending the power-on timing decoding value to the MCU enables the MCU to make subsequent adjustments and configurations based on this information.
[0066] Step S30: The microcontroller 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.
[0067] In this embodiment, after receiving the power-on timing decoded 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 controlling the communication between the optical module and the switch or network interface card, such as laser drive current, receiver sensitivity, clock, and data recovery (CDR) circuit configuration. Adjusting these register values allows the performance and characteristics of the optical module to better match the requirements of the target device, thereby achieving a stable and reliable connection.
[0068] In this embodiment, by dynamically adjusting the MSA protocol register value, the optical module can automatically adapt to various brands and models of switches or network cards, improving the interoperability and flexibility of the device.
[0069] Furthermore, in a feasible implementation, step S30 above may include steps S301 to S303:
[0070] Step S301: Obtain the target parameter from the power-on timing decoding value according to the preset rules;
[0071] In this embodiment, preset rules define which parameters are most important for the adaptation process and how to extract these parameters from the decoded values. Target parameters related to power-on adaptation are obtained from the power-on timing decoded values according to the preset rules.
[0072] Step S302: Input the target parameters into the preset adaptation model to obtain the output target register value, wherein the adaptation model is trained with the target parameters as input and the MSA protocol register value as the label;
[0073] In this embodiment, the adaptation model is a pre-trained algorithm or machine learning model whose purpose is to predict the most suitable MSA protocol register values for the current device configuration based on target parameters. The model training process involves a large amount of historical data, including optimal register settings under different power-on sequences and corresponding performance results. By inputting the target parameters into the model, a set of predicted register values, i.e., 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 values stored internally in the optical module to reflect the configuration specified in the target register value. The adjustment process may include modifying the laser's drive current, the receiver's sensitivity, the clock frequency, and other parameters related to communication performance.
[0076] Through the steps described above, the optical module can achieve intelligent self-configuration and optimization, significantly improving compatibility and communication efficiency with different switches or network interface cards (NICs). This method not only reduces the need for manual intervention but also increases equipment deployment speed and user experience, while lowering maintenance costs and potential failure rates.
[0077] Alternatively, in one feasible implementation, technicians can manually modify the MSA protocol register value for model adaptation by reading the MCU's power-on timing decoding value.
[0078] It is understandable that the first implementation of step S30 provided above can save more labor costs and improve the adaptability of optical modules compared to the second implementation, thereby improving the adaptation efficiency of optical modules. Compared to the first implementation, the second implementation allows for more accurate adaptation to different switches or network cards by manually modifying the register values, and can also adapt to newly emerging device types, thereby improving the adaptation accuracy and range of optical modules.
[0079] The above are only two feasible implementation methods of step S30 provided in this embodiment. This embodiment does not specifically limit the specific implementation method of step S30.
[0080] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Furthermore, after step S30 above, the method may further include steps S40 to S50:
[0081] Step S40: Run the self-test program through the microcontroller unit and obtain the self-test results;
[0082] In this embodiment, after adjusting the MSA protocol register value, the microcontroller unit (MCU) executes a built-in self-test program to ensure the correct operation of the optical module. The self-test program typically includes a series of test cases to verify the normal operation of various functions of the optical module, such as laser emission power, receiver sensitivity, signal integrity, and clock synchronization. The self-test results indicate whether each test passed, thereby determining the validity and stability of the current configuration of the optical module.
[0083] Step S50: If the self-test result is a 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 abnormality or substandard performance of the optical module, the microcontroller unit will perform a callback operation, which restores 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 steps described above, the optical module is able to perform self-checks and self-repairs, which not only improves the reliability and stability of the device but also reduces maintenance costs and enhances the user experience.
[0086] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the first and / or second embodiments described above can be referred to the above description and will not be repeated hereafter. Furthermore, the method may further include steps A10 to A20:
[0087] Step A10: Output the parameters acquired during the operation of the optical module to the remote control platform;
[0088] In this embodiment, various parameters, such as temperature, voltage, optical power, and bit error rate, are continuously monitored and collected during the operation of the optical module. These parameters are crucial for assessing the health status and performance of the equipment and predicting maintenance needs. Uploading these parameters to a remote control platform in real time or periodically allows system administrators or maintenance personnel to monitor and analyze the status of the optical module from a central location without having to physically visit it.
[0089] Step A20: Adjust the various parameters of the optical module according to the instructions received from the remote control platform.
[0090] In this embodiment, the remote control platform not only receives and displays the operating parameters of the optical module, but also sends commands to the optical module to adjust its configuration or operating mode. For example, it can change the laser's emission power, adjust the receiver's gain, enable or disable certain functional modules, etc. This two-way communication capability allows maintenance personnel to flexibly adjust the optical module settings according to network load, performance requirements, or fault conditions without physical contact with the equipment.
[0091] Through the steps described above, the integration between the optical module and the remote control platform improves the flexibility and responsiveness of network management, enhances the maintainability of the equipment, and improves the overall performance of the network.
[0092] Based on the first to third embodiments of this application, in the fourth embodiment of this application, the content that is the same as or similar to the first to third embodiments described above can be referred to the above description and will not be repeated hereafter. Furthermore, the method may further include steps B10 to B20:
[0093] Step B10: Obtain the operating temperature of the optical module through the sensor in the optical module;
[0094] In this embodiment, the optical module is typically equipped with a temperature sensor to monitor the real-time temperature of the device during operation. Temperature is one of the important factors affecting the performance and lifespan of the optical module. Excessively high or low temperatures can lead to unstable operation or even damage to the optical module. Obtaining the operating temperature through the sensor allows for real-time monitoring of the device's thermal status, which is crucial for taking appropriate temperature control measures and preventative maintenance.
[0095] Step B20: Adjust 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 optical signal transmission and reception. 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 intelligently respond to changes in ambient temperature, which not only improves the durability and lifespan of the device, but also ensures the stability and efficiency of network connections, especially in application scenarios with large temperature fluctuations or extreme environments.
[0098] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the interactive adaptation method of the optical module of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0099] This application also provides an optical module, such as Figure 3 As shown, the optical module includes:
[0100] The microcontroller 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 decoded value;
[0101] The logic analysis and decoding chip 20 is connected to the microcontroller 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 value to the microcontroller unit.
[0102] Optionally, the logic analysis and decoding chip is also used for:
[0103] The signal of the optical module during the power-on process is obtained through the logic analysis and decoding chip;
[0104] Convert the signal into a timing waveform;
[0105] The power-on timing decoding value of the optical module is obtained by analyzing the timing waveform.
[0106] Optionally, the microcontroller is also used for:
[0107] The target parameters are obtained from the power-on timing decoding values according to preset rules;
[0108] The target parameters are input into a preset adaptation model to obtain the output target register value, wherein the adaptation model is trained using the target parameters as input and the MSA protocol register value as a label;
[0109] Adjust the MSA protocol register value of the optical module to the target register value.
[0110] Optionally, the optical module is also used for:
[0111] The self-test program is run through the microcontroller unit, and the self-test results are obtained.
[0112] If the self-test result fails, the MSA protocol register value of the optical module will be returned.
[0113] Optionally, the optical module is also used for:
[0114] The parameters acquired during the operation of the optical module are output to the remote control platform;
[0115] The 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] The operating temperature of the optical module is obtained through sensors 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 further 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, the instructions being executed by the at least one processor to enable the at least one processor to perform the optical module interaction adaptation method of the above embodiment 1.
[0120] The following is for reference. Figure 4 It shows a schematic diagram of the structure of an optical module suitable for implementing the embodiments of this application. Figure 4The optical module shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0121] like Figure 4 As shown, the optical module may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the optical module. The processing device 1001, ROM 1002, and RAM 1004 are interconnected 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: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the optical module to communicate wirelessly or wiredly with other devices to exchange data. Although optical modules with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0122] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0123] The optical module provided in this application, employing the optical module interaction adaptation method in the above embodiments, 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 optical module provided in this application are the same as those of the optical module interaction adaptation method provided in the above embodiments, and other technical features in this optical module are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0124] It should be understood that the various parts disclosed in this application can be implemented using 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 suitable manner in one or more embodiments or examples.
[0125] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0126] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the optical module interaction adaptation method in the above embodiments.
[0127] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0128] The aforementioned computer-readable storage medium may be included in the optical module; or it may exist independently and not be assembled into the optical module.
[0129] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned 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 and decoding chip inside the optical module to obtain the power-on timing decoding value; sends the power-on timing decoding value to the microcontroller 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 microcontroller unit to adapt to different switches or network cards.
[0130] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "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 a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0132] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0133] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described optical module interaction adaptation method. This solves the technical problem of how to improve the adaptation efficiency when optical modules interact with different switches or network interface cards. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the optical module interaction adaptation method provided in the above embodiments, and will not be repeated here.
[0134] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described optical module interaction adaptation method.
[0135] The computer program product provided in this application can solve the technical problem of how to improve the adaptation efficiency when optical modules interact with different switches or network cards. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the optical module interaction adaptation method provided in the above embodiments, and will not be repeated here.
[0136] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for interactive adaptation of an optical module, characterized in that, The method includes: The power-on timing decoding value is obtained by decoding the timing waveform of the optical module during the power-on process using the logic analysis and decoding chip inside the optical module. The step of obtaining the power-on timing decoded value by decoding the timing waveform of the optical module during the power-on process through the logic analysis and decoding chip inside the optical module includes: The signal of the optical module during the power-on process is obtained through the logic analysis and decoding chip; Convert the signal into a timing waveform; The power-on timing decoding value of the optical module is obtained by analyzing the timing waveform; The power-on timing decoding value is sent to the microcontroller unit inside the optical module; The microcontroller 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; The step of adjusting the MSA protocol register value of the optical module by the microcontroller unit according to the power-on timing decoding value includes: The target parameters are obtained from the power-on timing decoding values according to preset rules; The target parameters are input into a preset adaptation model to obtain the output target register value. The adaptation model is trained using the target parameters as input and the MSA protocol register value as a label. The adaptation model predicts the MSA protocol register value that is most suitable for the current device configuration based on the target parameters. Adjust the MSA protocol register value of the optical module to the target register value.
2. The method as described in claim 1, characterized in that, After the step of adjusting the MSA protocol register value of the optical module by the microcontroller unit according to the power-on timing decoding value, the method further includes: The self-test program is run through the microcontroller unit, and the self-test results are obtained. If the self-test result fails, the MSA protocol register value of the optical module will be returned.
3. The method as described in claim 1, characterized in that, The method further includes: The parameters acquired during the operation of the optical module are output to the remote control platform; The parameters of the optical module are adjusted according to the instructions received from the remote control platform.
4. The method as described in claim 1, characterized in that, The method further includes: The operating temperature of the optical module is obtained through sensors 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.
5. An optical module, characterized in that, The optical module includes: a microcontroller unit, which connects to an external switch or network card, and is used to modify the MSA protocol register value according to the received power-on timing decoded value; A logic analysis and decoding chip, connected to the microcontroller unit, is used to decode the timing waveforms during the power-on process of the optical module and send the decoded power-on timing values to the microcontroller unit.
6. The optical module as described in claim 5, characterized in that, The optical module further includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the interactive adaptation method of the optical module as described in any one of claims 1 to 4.
7. 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, it implements the steps of the optical module interaction adaptation method as described in any one of claims 1 to 4.
8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the interactive adaptation method for the optical module as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Optical module and power supply voltage monitoring compensation method of optical module
CN115268329A