Optical module, pin multiplexing method of optical module and optical communication system

Switching the working mode in the optical module through the pin multiplexing mechanism solves the function conflict caused by the limited number of pins, realizes the miniaturization and high integration of the optical module, supports compatibility and serial communication of multiple functions, and is suitable for optical communication systems.

CN120601988APending Publication Date: 2025-09-05SICHUAN INTERCONNECT INNOVATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510860630.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

During the process of miniaturization and high integration, traditional optical modules are difficult to take into account multiple functional requirements due to the limited number of pins, resulting in functional conflicts. The existing solutions increase the number of pins or module volume, affecting standardized production and multi-scenario compatibility.

Method used

Through the pin multiplexing mechanism, functional pins are allowed to switch between different operating modes, enabling compatibility and control of multiple functions, including status indication and diagnostic monitoring, supporting data transmission in serial communication mode, avoiding increasing the number of pins and module volume.

Benefits of technology

Without increasing the number of pins and module volume, the functional conflict problem is solved, miniaturization, high integration and multi-scene adaptation of optical modules are realized, and design complexity is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120601988A_ABST
    Figure CN120601988A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of optical communication, in particular to an optical module, a pin multiplexing method of the optical module and an optical communication system. The optical module comprises a plurality of functional pins, and the pin multiplexing method of the optical module comprises the following steps: receiving a switching instruction; and in response to the switching instruction, switching the working mode of the function pin between the first working mode and the second working mode. According to the invention, a pin multiplexing mechanism is introduced into the optical module, and after the optical module receives the switching instruction, the functional pins are allowed to be switched among different working modes, so that compatibility and control of multiple functions are realized. Under the condition that the number of the pins is limited, the function pins of the optical module can be supported to meet basic functions, and a data transmission channel between the optical module and the upper computer can be constructed through the function pins, so that the problem of function conflict caused by the limited number of the pins is solved on the premise that the number of the pins and the size of the module are not increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical communications, and in particular to an optical module, a pin multiplexing method of an optical module, and an optical communication system. Background Art

[0002] As optical communication equipment evolves toward miniaturization and increased integration, optical modules are placing higher demands on size and pin resources in scenarios like data centers and communication base stations. Traditional optical modules utilize multiple pins to implement functions such as signal control, status indication, and diagnostic monitoring. However, the limited number of pins in small modules makes it difficult to simultaneously address all functional requirements.

[0003] For example, when reading module status information via serial communication, communication pins often conflict with existing function control pins. Existing solutions often use extended pins to accommodate multiple functions, but this not only increases module size, cost, and design complexity, but also hinders standardized production and multi-scenario compatibility. Summary of the Invention

[0004] The main purpose of the present invention is to provide an optical module, a pin multiplexing method for an optical module, and an optical communication system, so as to solve the functional conflict problem caused by the limited number of pins without increasing the number of pins and the volume of the module.

[0005] To achieve the above object, the present invention proposes a pin multiplexing method for an optical module, wherein the optical module includes a plurality of functional pins, and the pin multiplexing method for the optical module includes:

[0006] receiving a switching instruction;

[0007] In response to the switching instruction, the operating mode of the function pin is switched between a first operating mode and a second operating mode.

[0008] Optionally, the switching instruction includes a first switching instruction and a second switching instruction;

[0009] The switching of the operating mode of the function pin between the first operating mode and the second operating mode in response to the switching instruction includes:

[0010] When the working mode of the function pin is the first working mode, in response to the first switching instruction, controlling the working mode of the function pin to switch to the second working mode;

[0011] When the working mode of the function pin is the second working mode, in response to the second switching instruction, the working module of the function pin is controlled to switch to the first working mode.

[0012] Optionally, the function pin includes a target pin, and the second switching instruction includes a power-on instruction;

[0013] When the working mode of the function pin is the second working mode, in response to the second switching instruction, controlling the working module of the function pin to switch to the first working mode includes:

[0014] In response to the power-on instruction, performing a power-on initialization operation, the power-on initialization operation including obtaining a level state of the target pin and obtaining a count value of a counter at a current moment;

[0015] When the count value at the current moment is less than a first preset threshold and the level state meets a first preset condition, the count value at the current moment is incremented by one and used as the count value at the next moment, and the next power-on instruction is waited for;

[0016] When the count value at the current moment is less than the first preset threshold but the level state does not meet the first preset condition, use the count value at the current moment as the count value at the next moment and wait for the next power-on instruction;

[0017] When the count value at the current moment is greater than or equal to the first preset threshold, the working mode of the function pin is controlled to switch to the first working mode, and the count value at the current moment is reset to an initial value as the count value at the next moment.

[0018] Optionally, the first preset condition includes: the level state of the target pin is continuously at a logic high level or continuously at a logic low level within a preset period.

[0019] Optionally, the function pin includes a target pin, and the first switching instruction includes a power-on instruction and a disconnect instruction;

[0020] When the operating mode of the function pin is the first operating mode, in response to the first switching instruction, controlling the operating mode of the function pin to switch to the second operating mode includes:

[0021] In response to the power-on instruction, a power-on initialization operation is performed; the power-on initialization operation includes obtaining the level state of the target pin and obtaining the count value of the counter at the current moment;

[0022] When the count value at the current moment is less than a second preset threshold and the level state meets a second preset condition, the count value at the current moment is incremented by one and used as the count value at the next moment, and the disconnect instruction is waited for;

[0023] When the count value at the current moment is less than the second preset threshold but the level state does not meet the second preset condition, the count value at the current moment is used as the count value at the next moment, and the disconnect instruction is waited for;

[0024] When the count value at the current moment is greater than or equal to the second preset threshold, the working mode of the function pin is controlled to switch to the second working mode, and the count value at the current moment is reset to the initial value as the count value at the next moment.

[0025] Optionally, the second preset condition includes: the level state of the target pin is continuously at a logic low level within a preset time.

[0026] Optionally, when the operating mode of the function pin is the first operating mode, in response to the first switching instruction, controlling the operating mode of the function pin to switch to the second operating mode further includes:

[0027] When the count value at the current moment is less than the second preset threshold, in response to the disconnect instruction, obtaining the level state of the target pin, and when the level state meets a third preset condition, using the count value at the current moment after increment by one as the count value at the next moment, and waiting for the next power-on instruction;

[0028] When the level state does not satisfy the third preset condition, the count value at the current moment is used as the count value at the next moment, and the next power-on instruction is waited for.

[0029] Optionally, when the operating mode of the function pin is the first operating mode, before controlling the operating mode of the function pin to switch to the second operating mode in response to the first switching instruction, the method further includes:

[0030] Respond to the debugging power-on instruction and perform power-on initialization operations;

[0031] After the power-on initialization operation is performed, the function pin for short-circuiting with the target pin is configured to a logic low level, and the target pin is configured to a logic high level.

[0032] Optionally, the third preset condition includes: the level state of the target pin becomes a logic high level.

[0033] The present invention further provides an optical module, comprising a plurality of functional pins, wherein the optical module is configured to adopt any one of the above-mentioned pin multiplexing methods for the optical module.

[0034] The present invention further provides an optical communication system, comprising:

[0035] A control module is configured to output a switching instruction;

[0036] The optical module is a sample of the above-disclosed optical module and is used to receive the switching instruction.

[0037] The pin multiplexing method of the optical module provided by the embodiment of the present invention can solve the function conflict problem caused by the limited number of pins without increasing the number of pins and the volume of the module.

[0038] Specifically, the present invention introduces a pin multiplexing mechanism into an optical module including multiple functional pins, allowing the functional pins to be switched between different working modes after receiving a switching instruction, thereby achieving compatibility and control of multiple functions. In this way, when the number of pins is limited, it is possible to support the functional pins of the optical module to meet basic functions, such as status indication or diagnostic monitoring, and to build a data transmission channel between the optical module and the host computer through the functional pins of the optical module to support the host computer to read and write the optical module through serial communication. Compared with the method of increasing the number of pins in the prior art, the present invention does not need to increase the number of pins and increase the volume of the optical module, reduces the design complexity, helps to achieve miniaturization, high integration and multi-scenario adaptation of the optical module, and effectively solves the problem of functional conflicts caused by limited pin resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0040] Figure 1 This is a schematic diagram of the structure of an optical module disclosed in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of a flow chart of a pin multiplexing method for an optical module disclosed in an embodiment of the present application;

[0042] Figure 3 This is an illustration of common pins of an optical module disclosed in an embodiment of the present application;

[0043] Figure 4 Schematic diagram of the mode switching process disclosed in the embodiment of this application Figure 1 ;

[0044] Figure 5 Schematic diagram of the mode switching process disclosed in the embodiment of this application Figure 2 .

[0045] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0047] In addition, in the present invention, descriptions such as "first" and "second" are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] An embodiment of the present application provides a pin multiplexing method for an optical module.

[0049] Reference Figure 1 and Figure 2 , Figure 1 This is a schematic diagram of the structure of an optical module disclosed in an embodiment of the present application. Figure 2 This is a flow chart of a pin multiplexing method for an optical module disclosed in an embodiment of the present application.

[0050] The optical module 100 includes several functional pins and several common pins. The pin multiplexing method of the optical module includes:

[0051] S100: Receive a switching instruction.

[0052] S200: In response to the switching instruction, the operating mode of the function pin is switched between the first operating mode and the second operating mode.

[0053] Specifically, in some embodiments, the switching instruction includes a first switching instruction and a second switching instruction. Step S200 switches the working mode of the function pin between the first working mode and the second working mode in response to the switching instruction, specifically including the following steps:

[0054] When the working mode of the function pin is the first working mode, in response to the first switching instruction, the working mode of the function pin is controlled to switch to the second working mode;

[0055] When the working mode of the function pin is the second working mode, in response to the second switching instruction, the working module of the function pin is controlled to switch to the first working mode.

[0056] The present invention introduces a pin multiplexing mechanism into an optical module 100 including multiple functional pins, allowing the functional pins to be switched between different working modes after receiving a switching instruction, thereby achieving compatibility and control of multiple functions. In this way, when the number of pins is limited, it is possible to support the functional pins of the optical module 100 to meet basic functions, such as status indication or diagnostic monitoring, and to build a data transmission channel between the optical module 100 and the host computer through the functional pins of the optical module 100 to support the host computer to read and write the optical module 100 through serial communication. Compared with the method of relying on increasing the number of pins in the prior art, the present invention does not need to increase the number of pins and increase the volume of the optical module 100, reduces the design complexity, helps to achieve miniaturization, high integration and multi-scenario adaptation of the optical module 100, and effectively solves the problem of functional conflicts caused by limited pin resources.

[0057] Specifically, in some embodiments, the function pins are configured as level pins in the first operating mode, and the level state of each function pin is used to transmit specific information. In the first operating mode, the function pins can be configured with a level state by the optical module 100, and the function pins can also be configured with a level state by an external device coupled to the optical module 100.

[0058] When the function pin is configured with a level state by the optical module 100, the optical module 100 can transmit whether the first optical signal is normally received by the configured level state of the function pin. When the function pin is configured to a logic high level, it indicates that the optical module 100 is normally receiving the first optical signal. When the function pin is configured to a logic low level, it indicates that the optical module 100 is not normally receiving the first optical signal.

[0059] When the function pin is configured with a level state by an external device, the external device can transmit and drive the optical module 100 to output the second optical signal by configuring the level state of the function pin. When the function pin is configured to a logic high level, the optical module 100 is enabled to stop outputting the second optical signal. When the function pin is configured to a logic low level, the optical module 100 is enabled to output the second optical signal.

[0060] Reference Figure 1 and Figure 3The embodiment of the present application provides an optical module 100, which includes ten pins, among which pins 1, 2, 3, 4, 7, 8, 9, and 10 are all ordinary pins, and the ordinary pins have the same functions in the first working mode and the second working mode. In this embodiment, pins 1 and 3 are used to transmit a set of differential signals, pin 1 is the first transmitting signal receiving end TD+, and pin 3 is the second transmitting signal receiving end TD-. Pins 7 and 9 are used to transmit a set of differential signals, pin 7 is the first receiving signal output end RD+, and pin 9 is the second receiving signal output end RD-. Specifically, an external device transmits the differential signal to pins 1 and 3 of the optical module 100. After the optical module 100 receives the differential signal, it undergoes electrical-to-optical conversion internally and outputs an optical signal from the optical transmitting end. The optical module 100 receives the external optical signal through the optical receiving end, undergoes photoelectric conversion internally, and transmits the electrical signal to the external device through pins 7 and 9.

[0061] Pins 4 and 8 are both power pins, coupled to a power source. Specifically, Pin 4 is the first power supply terminal, VCCT, used to provide 3.3V power to the optical transmitter, and Pin 8 is the second power supply terminal, VCCR, used to provide 3.3V voltage to the optical receiver. Pins 2 and 10 are ground pins. Specifically, Pin 2 is the first ground terminal, VEET, used as a reference ground for the optical transmitter, and Pin 10 is the second ground terminal, VEER, used as a reference ground for the optical receiver.

[0062] Pin 5 and Pin 6 are both functional pins. In this embodiment, in the first operating mode, Pin 5 is configured with a level state by the optical module 100 and is used to transmit information to the external device whether the optical module 100 normally receives the first optical signal by outputting the level state. Pin 6 is used to receive the level state configured by the external device to control whether the optical module 100 outputs the second optical signal. In this embodiment, in the second operating mode, Pin 5 and Pin 6 are communication channels between the optical module 100 and the host computer. Pin 5 is a data communication channel, and Pin 6 is a clock communication channel. It is worth mentioning that in this embodiment, in the second operating mode, the optical module 100 can establish a communication channel with the host computer through Pin 5 and Pin 6 based on a two-wire serial communication protocol (I2C communication protocol).

[0063] In some embodiments, one of the functional pins is a target pin. In the embodiment of the present application, pin 5 is the target pin. In the embodiment disclosed in the present application, the optical module 100 switches the operating mode of all functional pins between the first operating mode and the second operating mode by detecting the level state of the target pin.

[0064] Reference Figure 4 , Figure 4Schematic diagram of the mode switching process disclosed in the embodiment of this application Figure 1 The second switching instruction includes a power-on instruction. When the working mode of the function pin is the second working mode, the specific steps of controlling the working module of the function pin to switch to the first working mode in response to the second switching instruction are:

[0065] In response to the power-on instruction, a power-on initialization operation is performed, wherein the power-on initialization operation includes obtaining the level state of the target pin and obtaining the count value of the counter at the current moment.

[0066] When the current count value is less than the first preset threshold and the level state meets the first preset condition, the current count value is increased by one and used as the count value at the next moment, and the next power-on instruction is waited for.

[0067] When the count value at the current moment is less than the first preset threshold but the level state does not meet the first preset condition, the count value at the current moment is used as the count value at the next moment, and the next power-on instruction is waited for.

[0068] When the count value at the current moment is greater than or equal to the first preset threshold, the working mode of the control function pin is switched to the first working mode, and the count value at the current moment is reset to the initial value as the count value at the next moment.

[0069] Specifically, between the power-on instruction and the next power-on instruction, a power-off instruction is sent to the optical module 100 so that the optical module 100 can perform initialization operations after receiving the next power-on instruction. Usually, there is enough time between the power-off instruction and the next power-on instruction to allow the optical module 100 to be completely powered off.

[0070] In the embodiment of the present application, resetting the count value at the current moment to the initial value generally involves clearing the count value of the counter to zero.

[0071] In some embodiments, the first preset condition includes: the target pin's level state is continuously at a logic high level or continuously at a logic low level within a preset period. Specifically, but not limiting, the preset period can be configured as sixteen periods, each period separated by three milliseconds, that is, the preset period is approximately within fifty milliseconds. The optical module 100 detects the target pin's level state every three seconds. If the target pin's level state remains consistent (all logic high levels or all logic low levels) in all sixteen detections, then the level state is considered to meet the first preset condition.

[0072] Furthermore, when switching the working mode of the functional pin, the target pin can be short-circuited so that the level state of the target pin can meet the first preset condition after the subsequent optical module responds to the second switching instruction. In an embodiment of the present application, pin 5 is the target pin, and before the second switching instruction is issued, pin 5 and pin 6 are short-circuited so that pin 5 and pin 6 are in the same level state. Since in the second working mode, pin 6 is a clock communication channel and is usually in a pull-up state or a pull-down state, after short-circuiting, pin 5 will be forced to maintain the same stable level state as pin 6. Thus, when the level state of the target pin (pin 5) is detected within a preset period, a consistent logic level can be continuously detected. Specifically, the detected level may be a logic high level or a logic low level, depending on the specific level state of pin 6 when short-circuited.

[0073] In an embodiment of the present application, after the count value at the current moment meets the first preset threshold, the short-circuited pins 5 and 6 will be disconnected so that pins 5 and 6 can work normally after the working module is switched.

[0074] Reference Figure 5 , Figure 5 Schematic diagram of the mode switching process disclosed in the embodiment of this application Figure 2 The first switching instruction includes a power-on instruction and a disconnect instruction. When the working mode of the function pin is the first working mode, the specific steps of controlling the working mode of the function pin to switch to the second working mode in response to the first switching instruction are:

[0075] In response to the power-on instruction, a power-on initialization operation is performed; the power-on initialization operation includes obtaining the level state of the target pin and obtaining the count value of the counter at the current moment.

[0076] When the count value at the current moment is less than the second preset threshold and the level state meets the second preset condition, the count value at the current moment is increased by one and used as the count value at the next moment, and a disconnect instruction is waited for;

[0077] When the count value at the current moment is less than the second preset threshold but the level state does not meet the second preset condition, the count value at the current moment is used as the count value at the next moment, and the disconnect instruction is waited for.

[0078] When the count value at the current moment is greater than or equal to the second preset threshold, the working mode of the control function pin is switched to the second working mode, and the count value at the current moment is reset to the initial value as the count value at the next moment.

[0079] In some embodiments, the second preset condition includes: the target pin's voltage level remains at a logic low level continuously for a preset time. Specifically, but not limiting of the preset time, the preset time can be configured as 100 milliseconds. If the optical module 100 detects that the target pin's voltage level remains at a logic low level continuously for 100 milliseconds, the optical module 100 determines that the voltage level satisfies the second preset condition.

[0080] Furthermore, when switching the operating mode of the functional pin, the target pin can be short-circuited so that the target pin's level state satisfies the second preset condition after the subsequent optical module responds to the first switching instruction. In this embodiment of the present application, pin 5 is the target pin. Before the first switching instruction is issued, the functional pin is in the first operating mode, the optical module 100 is in a normal transceiver state, pin 5 is at a logic high level, and pin 6 is at a logic low level. After short-circuiting pins 5 and 6, pin 5 is forced to maintain the same stable level state as pin 6. As a result, the target pin's level state remains at a logic low level for a predetermined period of time.

[0081] Furthermore, when the working mode of the function pin is the first working mode, in response to the first switching instruction, controlling the working mode of the function pin to switch to the second working mode further includes:

[0082] When the count value at the current moment is less than the second preset threshold, responding to the disconnect instruction, obtaining the level state of the target pin, and when the level state meets the third preset condition, using the count value at the current moment after incrementing by one as the count value at the next moment, and waiting for the next power-on instruction;

[0083] When the level state does not meet the third preset condition, the count value at the current moment is used as the count value at the next moment, and the next power-on instruction is waited for.

[0084] In some embodiments, the third preset condition includes: the level of the target pin changes to a logic high level. Specifically, after a preset time has passed since the power-on command was issued, the connection between pins 5 and 6 is disconnected, causing the level of pin 5 to change from a logic low level to a logic high level. In response to the disconnection between pins 5 and 6, the optical module 100 detects that the level of pin 5 meets the third preset condition and increments the current count value by one.

[0085] In order to ensure that the working mode of the function pin can be successfully switched from the first working mode to the second working mode, before controlling the working mode of the function pin to switch to the second working mode in response to the first switching instruction, the pin multiplexing method further includes:

[0086] Respond to the debugging power-on instruction and perform power-on initialization operations;

[0087] After performing a power-on initialization operation, the function pin for short-circuiting with the target pin is configured to be a logic low level, and the target pin is configured to be a logic high level.

[0088] This ensures that after shorting pins 5 and 6, the level state of pin 5 is a logic low level. It is worth mentioning that the operation of shorting pins 5 and 6 can be completed after responding to the debug power-on instruction, and after ensuring that the target pin is a logic high level and the functional pin shorted to the target pin is a logic low level. This can further ensure that the level state of pin 5 is a logic low level when responding to the first switching instruction.

[0089] In the embodiments of the present application, the first preset threshold value and the second preset threshold value may be the same or different. In some embodiments, the first preset threshold value and the second preset threshold value are typically natural numbers greater than one. This setting can prevent the operating mode of the function pin from being switched due to accidental touches, etc.

[0090] The present invention further provides an optical module, comprising a plurality of functional pins, wherein the optical module is configured to adopt any one of the pin multiplexing methods disclosed above for an optical module.

[0091] The present invention further provides an optical communication system, comprising:

[0092] A control module is configured to output a switching instruction;

[0093] The optical module includes several functional pins and adopts the optical module disclosed above. Specifically, the optical module is configured to: receive a switching instruction and, in response to the switching instruction, switch the working mode of the functional pin between a first working mode and a second working mode.

[0094] The above are only optional embodiments of the present invention and do not limit the patent scope of the present invention. All equivalent structural transformations made by using the contents of the present invention description and drawings under the inventive concept of the present invention, or direct / indirect application in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A pin multiplexing method for an optical module, characterized in that: The optical module includes several functional pins, and the pin multiplexing method of the optical module includes: receiving a switching instruction; In response to the switching instruction, the operating mode of the function pin is switched between a first operating mode and a second operating mode.

2. The pin multiplexing method of the optical module according to claim 1, wherein: The switching instruction includes a first switching instruction and a second switching instruction; The switching of the operating mode of the function pin between the first operating mode and the second operating mode in response to the switching instruction includes: When the working mode of the function pin is the first working mode, in response to the first switching instruction, controlling the working mode of the function pin to switch to the second working mode; When the working mode of the function pin is the second working mode, in response to the second switching instruction, the working module of the function pin is controlled to switch to the first working mode.

3. The pin multiplexing method of the optical module according to claim 2, wherein: The functional pin includes a target pin, and the second switching instruction includes a power-on instruction; When the working mode of the function pin is the second working mode, in response to the second switching instruction, controlling the working module of the function pin to switch to the first working mode includes: In response to the power-on instruction, performing a power-on initialization operation, the power-on initialization operation including obtaining a level state of the target pin and obtaining a count value of a counter at a current moment; When the count value at the current moment is less than a first preset threshold and the level state meets a first preset condition, the count value at the current moment is incremented by one and used as the count value at the next moment, and the next power-on instruction is waited for; When the count value at the current moment is less than the first preset threshold but the level state does not meet the first preset condition, use the count value at the current moment as the count value at the next moment and wait for the next power-on instruction; When the count value at the current moment is greater than or equal to the first preset threshold, the working mode of the function pin is controlled to switch to the first working mode, and the count value at the current moment is reset to an initial value as the count value at the next moment.

4. The pin multiplexing method of the optical module according to claim 3, wherein: The first preset condition includes: the level state of the target pin is continuously at a logic high level or continuously at a logic low level within a preset period.

5. The pin multiplexing method of the optical module according to claim 2, wherein: The functional pin includes a target pin, and the first switching instruction includes a power-on instruction and a disconnect instruction; When the operating mode of the function pin is the first operating mode, in response to the first switching instruction, controlling the operating mode of the function pin to switch to the second operating mode includes: In response to the power-on instruction, a power-on initialization operation is performed; the power-on initialization operation includes obtaining the level state of the target pin and obtaining the count value of the counter at the current moment; When the count value at the current moment is less than a second preset threshold and the level state meets a second preset condition, the count value at the current moment is incremented by one and used as the count value at the next moment, and the disconnect instruction is waited for; When the count value at the current moment is less than the second preset threshold but the level state does not meet the second preset condition, the count value at the current moment is used as the count value at the next moment, and the disconnect instruction is waited for; When the count value at the current moment is greater than or equal to the second preset threshold, the working mode of the function pin is controlled to switch to the second working mode, and the count value at the current moment is reset to the initial value as the count value at the next moment.

6. The pin multiplexing method of the optical module according to claim 5, characterized in that: The second preset condition includes: the level state of the target pin is continuously at a logic low level within a preset time.

7. The pin multiplexing method of the optical module according to claim 6, characterized in that: When the working mode of the function pin is the first working mode, in response to the first switching instruction, controlling the working mode of the function pin to switch to the second working mode further includes: When the count value at the current moment is less than the second preset threshold, in response to the disconnect instruction, obtaining the level state of the target pin, and when the level state meets a third preset condition, using the count value at the current moment after increment by one as the count value at the next moment, and waiting for the next power-on instruction; When the level state does not satisfy the third preset condition, the count value at the current moment is used as the count value at the next moment, and the next power-on instruction is waited for.

8. The pin multiplexing method of the optical module according to claim 7, wherein: When the working mode of the function pin is the first working mode, before controlling the working mode of the function pin to switch to the second working mode in response to the first switching instruction, the method further includes: Respond to the debugging power-on instruction and perform power-on initialization operations; After the power-on initialization operation is performed, the function pin for short-circuiting with the target pin is configured to a logic low level, and the target pin is configured to a logic high level.

9. The pin multiplexing method of the optical module according to claim 7, wherein: The third preset condition includes: the level state of the target pin becomes a logic high level.

10. An optical module, characterized in that: The optical module comprises several functional pins, and is configured to adopt the pin multiplexing method of the optical module according to any one of claims 1 to 9.

11. An optical communication system, characterized in that: include: A control module is configured to output a switching instruction; The optical module adopts the optical module as claimed in claim 10, and is used to receive the switching instruction.