Mode switching module and mode switching control method

By introducing a mode switching module into the Combo ONU optical module and using the MAC module and MCU unit to analyze the optical signal, automatic mode switching of the Combo ONU optical module is realized, which solves the problems of cumbersome operation and high cost in the existing technology and improves the user experience.

CN121283511BActive Publication Date: 2026-07-24POTRON TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
POTRON TECH CO LTD
Filing Date
2023-06-15
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing Combo ONU optical modules suffer from cumbersome replacement work, complex operations, and high costs when switching modes, making it difficult to meet users' diverse needs for uplink bandwidth.

Method used

A mode switching module is provided, including a media access control (MAC) module and a mode switching module. By setting up a first optical fiber unit, a second optical fiber unit, a four-way optical unit and a microcontroller (MCU) unit, the MCU unit analyzes the optical signal and feeds it back to the MAC module to realize the switching operation of software, hardware or adaptive modes, simplifying the mode switching process.

Benefits of technology

It enables automatic switching between different modes, reduces manual operation, lowers conversion complexity, saves costs, and meets the diverse needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121283511B_ABST
    Figure CN121283511B_ABST
Patent Text Reader

Abstract

The embodiment of the application relates to a mode switching module and a mode switching control method, the module comprising: a media access control (MAC) module and a mode switching module; the MAC module is connected with the mode switching module; an output end of the mode switching module is connected with an external device, and an input end of the mode switching module is connected with an output end of a first power supply; wherein the mode switching module comprises a first optical fiber unit, a second optical fiber unit, a four-way light unit and a micro control unit (MCU); the four-way light unit in the mode switching module is used to analyze whether received light information is received by the first optical fiber unit or the second optical fiber unit, and then the working mode of the module is determined; then the MCU unit feeds back the light signal to the MAC module, and the switching operation is performed through software, hardware or an adaptive mode; thus, the switching strategy of different modes can be realized, the cost can be saved, manual operation can be reduced, the conversion complexity can be reduced, and the technical effects of meeting the diversified needs of users can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Case information

[0002] This application is a divisional application of application number 202310717174.9 filed on June 15, 2023, entitled "Mode Switching Module and Mode Switching Control Method". Technical Field

[0003] This application relates to the technical field of optical communication, and in particular to a mode switching module and a mode switching control method. Background Technology

[0004] The current market for optical communication technology is large, with a huge demand for optical modules. Currently, the Combo Optical Network Unit (Combo ONU) integrates a Gigabit Passive Optical Network (GPON) optical module, an XGS PON optical module, and a WDM multiplexer, and performs optical transmission in either XGSPON ONU mode or GPON ONU mode.

[0005] Currently, the main PON technologies used are GPON and XG PON, both of which are asymmetric PONs. Since the overall uplink / downlink data of users is asymmetric, data shows that uplink traffic in the optical line terminal (OLT) is on average only 22% of downlink traffic. The technical characteristics of asymmetric PON are basically matched with user needs. However, as user demands increase, there are more and more scenarios where users are more concerned about uplink bandwidth, which has promoted the demand for XGSPON. Diverse user needs have driven the emergence of Combo ONU optical module mode switching. Currently, Combo ONU optical modules achieve XGS PON ONU mode or GPON ONU mode switching through manual switching and replacement of ONU equipment. However, this involves cumbersome replacement work, increased workload, complex operation, high cost, and optical transmission loss. Summary of the Invention

[0006] In view of this, in order to solve the above-mentioned technical problem of manual operation of optical mode switching, this application provides a mode switching module and a mode switching control method.

[0007] In a first aspect, embodiments of this application provide a mode switching module, including:

[0008] Media access control (MAC) module, mode switching module;

[0009] The MAC module is connected to the mode switching module;

[0010] The output of the mode switching module is connected to an external device, and the input is connected to the output of the first power supply.

[0011] The mode switching module includes a first optical fiber unit, a second optical fiber unit, a four-way optical unit, and a microcontroller unit (MCU).

[0012] The positive receiving end of the first optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the positive data transmitting end of the MAC module, the negative transmitting end is connected to the first ground end, the input end is connected to the first output end of the MAC module, the first output end is connected to the first input end of the four-way optical unit, and the second output end is connected to the first input end of the MCU unit; wherein, the MCU unit receives 1G optical fiber signals through connection with the first optical fiber unit;

[0013] The positive receiving end of the second optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the second ground end, the negative transmitting end is connected to the negative data transmitting end of the MAC module, the input end is connected to the first output end of the MAC module, the first output end is connected to the second input end of the four-way optical unit, and the second output end is connected to the second input end of the MCU unit; wherein, the MCU unit receives 10G optical fiber signals through connection with the second optical fiber unit;

[0014] The output of the four-way optical unit is connected to an external device;

[0015] The third input terminal of the MCU unit is connected to the second output terminal of the MAC module, the fourth input terminal is connected to the third output terminal of the MAC module, the first output terminal is connected to the first input terminal of the MAC module, and the second output terminal is connected to the second input terminal of the MAC module.

[0016] The fourth output terminal of the MAC module is connected to the internal ground terminal of the mode switching module.

[0017] In one possible implementation, the four-way optical unit includes: a first photonic unit, a second photonic unit, and a multiplexer;

[0018] The first output terminal of the first photonic unit is connected to the first input terminal of the first optical fiber unit, the second input terminal is connected to the second input terminal of the first optical fiber unit, the first input terminal is connected to the first output terminal of the first optical fiber unit, the second input terminal is connected to the second output terminal of the first optical fiber unit, and the third output terminal is connected to the first input terminal of the multiplexer.

[0019] The first output terminal of the second photonic unit is connected to the first input terminal of the second optical fiber unit, the second output terminal is connected to the second input terminal of the second optical fiber unit, the first input terminal is connected to the first output terminal of the second optical fiber unit, the second input terminal is connected to the second output terminal of the second optical fiber unit, and the third output terminal is connected to the second input terminal of the multiplexer.

[0020] The output of the multiplexer is connected to an external device.

[0021] In one possible implementation, the mode switching module further includes: a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, and a ninth capacitor;

[0022] One end of the first resistor and one end of the second resistor are connected to the output terminal of the first power supply, and the other end of the first resistor is connected to the forward receiving terminal of the first optical fiber unit and one end of the fifth capacitor.

[0023] The other end of the second resistor is connected to the negative receiving end of the first optical fiber unit and one end of the sixth capacitor;

[0024] The other end of the fifth capacitor is connected to the positive data receiving end of the MAC module and one end of the seventh capacitor;

[0025] The other end of the sixth capacitor is connected to the negative data receiving end of the MAC module and one end of the eighth capacitor.

[0026] The other end of the seventh capacitor is connected to the positive receiving end of the second optical fiber unit;

[0027] The other end of the eighth capacitor is connected to the negative receiving end of the second optical fiber unit;

[0028] One end of the third resistor is connected to the reverse transmitting end of the first optical fiber unit, and the other end is connected to one end of the first capacitor. The other end of the first capacitor is connected to the first ground terminal.

[0029] One end of the fourth resistor is connected to the forward transmitting end of the first optical fiber unit and one end of the third capacitor, and the other end is connected to one end of the second capacitor. The other end of the second capacitor is connected to the first ground terminal.

[0030] The other end of the third capacitor is connected to the positive data transmission end of the MAC module;

[0031] One end of the fourth capacitor is connected to the negative transmitting end of the second optical fiber unit, and the other end is connected to the negative data transmitting end of the MAC module.

[0032] One end of the fifth resistor is connected to the forward transmitting end of the second optical fiber unit, and the other end is connected to one end of the ninth capacitor;

[0033] The other end of the ninth capacitor is connected to the second ground terminal.

[0034] In one possible implementation, the mode switching module further includes an internal power supply unit;

[0035] The module also includes a first inductor, a sixth resistor, a seventh resistor, a tenth capacitor, and an eleventh capacitor;

[0036] The first output terminal of the internal power supply unit is connected to one end of the tenth capacitor, one end of the eleventh capacitor and one end of the first inductor, and the second output terminal is connected to the first output terminal of the internal power supply unit.

[0037] The other end of the first inductor is connected to the output terminal of the second power supply;

[0038] The other end of the tenth capacitor and the other end of the eleventh capacitor are connected to the third ground terminal;

[0039] One end of the sixth resistor is connected to the third input terminal of the MCU unit and the second output terminal of the MAC module, and the other end is connected to one end of the seventh resistor and the output terminal of the third power supply.

[0040] The other end of the seventh resistor is connected to the fourth input terminal of the MCU unit and the third output terminal of the MAC module.

[0041] Secondly, embodiments of this application provide a mode switching control method, applied to any of the mode switching modules described in the first aspect, comprising:

[0042] After the MAC module receives the primary mode selection request, it generates the corresponding primary mode selection instruction.

[0043] The target mode category is determined according to the main mode selection instruction;

[0044] The switching strategy for the corresponding sub-mode of the mode switching module is determined based on the target mode category;

[0045] The switching strategy is used to control the sub-mode.

[0046] In one possible implementation, determining the target mode category according to the main mode selection instruction includes:

[0047] Determine the category of the main mode selection instruction;

[0048] When the main mode selection instruction is a hardware selection instruction, the target mode category is determined to be a hardware mode;

[0049] When the main mode selection instruction is of the type of software selection instruction, the target mode category is determined to be software mode;

[0050] When the main mode selection instruction is of the type of adaptive selection instruction, the target mode category is determined to be adaptive mode.

[0051] In one possible implementation, determining the switching strategy for the corresponding sub-mode based on the target mode category includes:

[0052] When the target mode category is hardware mode, determine the first switching strategy of the corresponding fiber optic network XGS / GPON sub-mode in the hardware mode;

[0053] When the target mode category is software mode, determine the second handover strategy corresponding to the XGS / GPON sub-mode in the software mode;

[0054] When the target mode category is adaptive mode, a third switching strategy corresponding to the XGS / GPON sub-mode in the adaptive mode is determined.

[0055] In one possible implementation, the step of controlling the sub-mode using the switching strategy includes:

[0056] Call the pre-stored target address and write a first set value to the target address to start the hardware mode;

[0057] The level signal of the Pin9 interface of the MAC module is obtained according to the first switching strategy corresponding to the hardware mode.

[0058] When the level signal is a high level signal, the control mode switching module performs the switching control of the XGSPON sub-mode;

[0059] When the level signal is a low level signal, the control mode switching module performs GPON sub-mode switching control.

[0060] In one possible implementation, the step of controlling the sub-mode using the switching strategy includes:

[0061] Call the pre-stored target address and write a second preset value to the target address to start the software mode;

[0062] The digital signal of the I2C interface in the MCU unit is obtained according to the second switching strategy corresponding to the software mode;

[0063] When the digital signal is 1, the switching control of the XGSPON sub-mode is executed;

[0064] When the digital signal is 0, the GPON sub-mode switching control is executed.

[0065] In one possible implementation, the step of controlling the sub-mode using the switching strategy includes:

[0066] When determining the third handover strategy corresponding to the adaptive mode, the application mode of the optical line terminal (OLT) is obtained.

[0067] When the application mode of the OLT is XGSPON application mode, the first optical signal of the MCU unit is monitored from the first optical fiber unit.

[0068] When the first optical signal is detected to be the downlink light of the first target, the switching control of the XGSPON sub-mode is executed;

[0069] or,

[0070] When the application mode of the OLT is GPON application mode, the second optical fiber unit is monitored to send the second optical signal of the MCU unit.

[0071] When the second optical signal is detected as the downlink light of the second target, the GPON sub-mode switching control is executed;

[0072] or,

[0073] When the application mode of the OLT is the Combo application mode, the working mode of the Combo ONU optical mode is determined. The working mode of the Combo ONU optical module includes the XGSPON ONU working mode and the GPON ONU working mode.

[0074] When the Combo ONU optical module is in the XGSPON ONU working mode, the first optical signal sent by the first optical fiber unit to the MCU unit is monitored.

[0075] The first optical signal is received by the MAC module, and a first switching command is generated by the MAC module.

[0076] The power supply switching state is determined according to the first switching instruction, and the control of the sub-mode is performed using the first switching strategy / second switching strategy according to the switching state.

[0077] When the Combo ONU optical module is in GPON ONU working mode, the second optical signal sent by the second optical fiber unit to the MCU unit is monitored.

[0078] The second optical signal is received by the MAC module, and a second switching command is generated by the MAC module.

[0079] The power supply switching state is determined according to the second switching instruction, and the control of the sub-mode is performed using the first switching strategy / second switching strategy according to the switching state.

[0080] The mode switching scheme provided in this application embodiment involves setting up a Media Access Control (MAC) module and a mode switching module. The MAC module is connected to the mode switching module. The output end of the mode switching module is connected to an external device, and the input end is connected to the output end of a first power supply. The mode switching module includes a first optical fiber unit, a second optical fiber unit, a four-way optical unit, and a microcontroller unit (MCU). The positive receiving end of the first optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the positive data transmitting end of the MAC module, the negative transmitting end is connected to a first ground terminal, the input end is connected to the first output terminal of the MAC module, the first output terminal is connected to the first input terminal of the four-way optical unit, and the second output terminal is connected to the first input terminal of the MCU unit. The second optical fiber unit... The positive receiving end of the unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the second ground end, the negative transmitting end is connected to the negative data transmitting end of the MAC module, the input end is connected to the first output end of the MAC module, the first output end is connected to the second input end of the four-way optical unit, and the second output end is connected to the second input end of the MCU unit; the output end of the four-way optical unit is connected to an external device; the third input end of the MCU unit is connected to the second output end of the MAC module, the fourth input end is connected to the third output end of the MAC module, the first output end is connected to the first input end of the MAC module, and the second output end is connected to the second input end of the MAC module; the fourth output end of the MAC module is connected to the internal ground end of the mode switching module. By utilizing the four-way optical unit inside the mode switching module to analyze whether the received optical information is received by the first optical fiber unit or the second optical fiber unit, the operating mode of the module is determined. Then, the optical signal is fed back to the MAC module through the MCU unit, and the switching operation is performed through software, hardware, or adaptive mode. This solution can realize different mode switching strategies, achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users. Attached Figure Description

[0081] 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.

[0082] 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.

[0083] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0084] Figure 1 This is a schematic diagram of the structure of a mode switching module provided in an embodiment of this application;

[0085] Figure 2 This is a schematic diagram of another mode switching module provided in an embodiment of this application;

[0086] Figure 3 A flowchart illustrating a mode switching control method provided in an embodiment of this application;

[0087] Figure 4 A flowchart illustrating another mode switching control method provided in an embodiment of this application;

[0088] Figure 5 A flowchart illustrating the first switching strategy provided in an embodiment of this application;

[0089] Figure 6 A flowchart illustrating the second switching strategy provided in an embodiment of this application;

[0090] Figure 7 A flowchart illustrating the third switching strategy provided in an embodiment of this application;

[0091] Figure 8 This is a schematic diagram of the structure of the XGS / GPON Combo optical module provided in an embodiment of this application. Detailed Implementation

[0092] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0093] The terms "comprising" and "having" in the embodiments of this application are used to indicate an open-ended inclusion, meaning that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms "first" and "second," etc., are used only as labels and are not intended to limit the number of objects. Furthermore, the different elements and areas in the drawings are only schematic, therefore this application is not limited to the dimensions or distances shown in the drawings.

[0094] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustration and has no specific meaning in itself. Therefore, "module" and "part" may be used interchangeably.

[0095] To facilitate understanding of the embodiments of this application, the following will provide further explanation and description with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this application.

[0096] PON (Passive Optical Network) is a typical passive optical fiber network, meaning that it does not contain any electronic devices or power supplies (in the optical distribution network). A passive optical network includes an optical line terminal (OLT) installed at the central control station, and a set of matching optical network units (ONUs) installed at the user sites.

[0097] An Optical Network Unit (ONU) is divided into active and passive optical network units. Generally, a device containing an optical receiver, uplink optical transmitter, multiple bridging amplifiers, and network monitoring is called an optical node. PON uses a single optical fiber to connect to the OLT, and then the OLT connects to the ONU.

[0098] As the name suggests, "Combo" means a combination. Combo PON is a combination of GPON and 10G GPON. It uses two technologies with different bearer wavelengths and combines the two wavelengths within a single optical module to achieve independent transmission and reception of GPON and 10G GPON optical signals. It is compatible with existing GPON network services while providing high-bandwidth services on demand. It reuses existing network equipment and optical distribution networks (ODNs), avoiding modifications to existing network resources and additional equipment room space. According to the service package upgrade, the user-side ONU terminal can be replaced as needed to achieve rapid and smooth upgrades of high-bandwidth services.

[0099] Figure 1 This is a schematic diagram of a mode switching module provided in an embodiment of this application. It is applied in the optical mode switching process. Figure 1 The provided illustration shows that the mode switching module specifically includes:

[0100] Media access control (MAC) module 11, mode switching module 12.

[0101] The MAC module 11 is connected to the mode switching module 12.

[0102] The output of the mode switching module 12 is connected to an external device, and the input is connected to the output of the first power supply.

[0103] The mode switching module 12 includes a first optical fiber unit 121, a second optical fiber unit 122, a four-way optical unit 123, and a microcontroller MCU unit 124.

[0104] The positive receiving end of the first optical fiber unit 121 is connected to the positive data receiving end of the MAC module 11, the negative receiving end is connected to the negative data receiving end of the MAC module 11, the positive transmitting end is connected to the positive data transmitting end of the MAC module 11, the negative transmitting end is connected to the first ground end, the input end is connected to the first output end of the MAC module 11, the first output end is connected to the first input end of the four-way optical unit 123, and the second output end is connected to the first input end of the MCU unit 124.

[0105] The positive receiving end of the second optical fiber unit 122 is connected to the positive data receiving end of the MAC module 11, the negative receiving end is connected to the negative data receiving end of the MAC module 11, the positive transmitting end is connected to the second ground end, the negative transmitting end is connected to the negative data transmitting end of the MAC module 11, the input end is connected to the first output end of the MAC module 11, the first output end is connected to the second input end of the four-way optical unit 123, and the second output end is connected to the second input end of the MCU unit 124.

[0106] The output of the four-way optical unit 123 is connected to an external device.

[0107] The third input terminal of MCU unit 124 is connected to the second output terminal of MAC module 11, the fourth input terminal is connected to the third output terminal of MAC module 11, the first output terminal is connected to the first input terminal of MAC module 11, and the second output terminal is connected to the second input terminal of MAC module 11.

[0108] The fourth output terminal of MAC module 11 is connected to the internal ground terminal of mode switching module 12.

[0109] Reference Figure 1The provided diagram illustrates that the MCU unit 124 in the mode switching module receives a 1G optical signal (1G Loss of Synchronous, 1G_LOS) through connection to the first optical fiber unit and a 10G_LOS through connection to the second optical fiber unit. By detecting optical signals of different wavelengths, the received optical signals are reported to the MAC module 11. The MAC module then issues a mode switching command to control the specified hardware unit in the MCU unit 124 to perform the mode switching operation. Alternatively, software logic detects the specific downlink optical data received by the first optical fiber unit 121 and the second optical fiber unit 122, analyzes and determines whether the first optical fiber unit 121 or the second optical fiber unit 122 is working, and uses software logic to control the optical signal input to the four-way optical unit 123, integrating and outputting the received optical signals to achieve mode switching in a software environment. Similarly, using the specified hardware interface on the MAC module 11, a mode switching design is implemented. The MAC module 11 detects whether the hardware interface meets the conditions for mode switching, and controls the power switch state of the first optical fiber unit 121 or the second optical fiber unit 122 through the hardware interface, thereby achieving the purpose of mode switching. Figure 1 The provided diagram shows that by analyzing the optical signal sent by the optical terminal OLT, the optical mode of the current optical signal is determined, and then the mode switching is automatically completed through an adaptive mechanism. However, if the OLT cannot determine the optical mode, the MAC module 11 detects and performs the mode switching operation to achieve the same purpose. This realizes the switching strategy of different modes, thereby achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users.

[0110] The mode switching module provided in this application embodiment includes a Media Access Control (MAC) module and a mode switching module. The MAC module is connected to the mode switching module. The output of the mode switching module is connected to an external device, and the input is connected to the output of a first power supply. The mode switching module includes a first optical fiber unit, a second optical fiber unit, a four-way optical unit, and a microcontroller unit (MCU). The positive receiving end of the first optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the positive data transmitting end of the MAC module, the negative transmitting end is connected to the first ground terminal, the input is connected to the first output terminal of the MAC module, the first output terminal is connected to the first input terminal of the four-way optical unit, and the second output terminal is connected to the first input terminal of the MCU unit. The positive receiving end of the fiber optic unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the second ground end, the negative transmitting end is connected to the negative data transmitting end of the MAC module, the input end is connected to the first output end of the MAC module, the first output end is connected to the second input end of the four-way optical unit, and the second output end is connected to the second input end of the MCU unit; the output end of the four-way optical unit is connected to an external device; the third input end of the MCU unit is connected to the second output end of the MAC module, the fourth input end is connected to the third output end of the MAC module, the first output end is connected to the first input end of the MAC module, and the second output end is connected to the second input end of the MAC module; the fourth output end of the MAC module is connected to the internal ground end of the mode switching module. By utilizing the four-way optical unit inside the mode switching module to analyze whether the received optical information is received by the first optical fiber unit or the second optical fiber unit, the operating mode of the module is determined. Then, the optical signal is fed back to the MAC module through the MCU unit, and the switching operation is performed through software, hardware, or adaptive mode. This solution can realize different mode switching strategies, achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users.

[0111] In one possible embodiment, the four-way optical unit includes: a first photonic unit, a second photonic unit, and a multiplexer; a first output terminal of the first photonic unit is connected to a first input terminal of the first optical fiber unit, a second input terminal is connected to a second input terminal of the first optical fiber unit, a first input terminal is connected to a first output terminal of the first optical fiber unit, a second input terminal is connected to a second output terminal of the first optical fiber unit, and a third output terminal is connected to a first input terminal of the multiplexer; a first output terminal of the second photonic unit is connected to a first input terminal of the second optical fiber unit, a second output terminal is connected to a second input terminal of the second optical fiber unit, a first input terminal is connected to a first output terminal of the second optical fiber unit, a second input terminal is connected to a second output terminal of the second optical fiber unit, and a third output terminal is connected to a second input terminal of the multiplexer; the output terminal of the multiplexer is connected to an external device.

[0112] In one possible embodiment, the mode switching module further includes: a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, and a ninth capacitor; one end of the first resistor and one end of the second resistor are connected to the output terminal of the first power supply, and the other end of the first resistor is connected to the positive receiving end of the first optical fiber unit and one end of the fifth capacitor; the other end of the second resistor is connected to the negative receiving end of the first optical fiber unit and one end of the sixth capacitor; the other end of the fifth capacitor is connected to the positive data receiving end of the MAC module and one end of the seventh capacitor; the other end of the sixth capacitor is connected to the negative data receiving end of the MAC module and one end of the eighth capacitor; the other end of the seventh capacitor is connected to the second optical fiber unit... The first optical fiber unit has a positive receiving end; the other end of the eighth capacitor is connected to the negative receiving end of the second optical fiber unit; one end of the third resistor is connected to the reverse transmitting end of the first optical fiber unit, and the other end is connected to one end of the first capacitor, the other end of the first capacitor is connected to the first ground terminal; one end of the fourth resistor is connected to the positive transmitting end of the first optical fiber unit and one end of the third capacitor, and the other end is connected to one end of the second capacitor, the other end of the second capacitor is connected to the first ground terminal; the other end of the third capacitor is connected to the positive data transmitting end of the MAC module; one end of the fourth capacitor is connected to the negative transmitting end of the second optical fiber unit, and the other end is connected to the negative data transmitting end of the MAC module; one end of the fifth resistor is connected to the positive transmitting end of the second optical fiber unit, and the other end is connected to one end of the ninth capacitor; the other end of the ninth capacitor is connected to the second ground terminal.

[0113] In one possible embodiment, the mode switching module further includes an internal power supply unit; the module also includes a first inductor, a sixth resistor, a seventh resistor, a tenth capacitor, and an eleventh capacitor; the first output terminal of the internal power supply unit is connected to one end of the tenth capacitor, one end of the eleventh capacitor, and one end of the first inductor, and the second output terminal is connected to the first output terminal of the internal power supply unit; the other end of the first inductor is connected to the output terminal of the second power supply; the other end of the tenth capacitor and the other end of the eleventh capacitor are connected to the third ground terminal; one end of the sixth resistor is connected to the third input terminal of the MCU unit and the second output terminal of the MAC module, and the other end is connected to one end of the seventh resistor and the output terminal of the third power supply; the other end of the seventh resistor is connected to the fourth input terminal of the MCU unit and the third output terminal of the MAC module.

[0114] The following description will use the MAC module, first optical fiber unit, second optical fiber unit, MCU unit, four-way optical unit including: first photonic unit, second photonic unit and multiplexer, mode switching module including: first resistor, second resistor, third resistor, fourth resistor, fifth resistor, first capacitor, second capacitor, third capacitor, fourth capacitor, fifth capacitor, sixth capacitor, seventh capacitor, eighth capacitor and ninth capacitor as examples. The mode switching module also includes an internal power supply unit; the module also includes first inductor, sixth resistor, seventh resistor, tenth capacitor and eleventh capacitor as examples. Figure 2 This is a schematic diagram of another mode switching module provided in an embodiment of this application. Figure 2 This is based on the previous embodiment. Figure 2 The provided illustration shows that the mode switching module specifically includes:

[0115] Media access control (MAC) module 11, mode switching module 12.

[0116] The mode switching module includes a first optical fiber unit 121, a second optical fiber unit 122, a four-way optical unit 123, and a microcontroller MCU unit 124.

[0117] The MAC module, as described here, is the main control chip, used to receive external response signals and feed back corresponding instructions, as well as control various hardware and software structures. The mode switching module is used to switch between different optical modes within the optical module. For example, it handles the switching between GPON ONU and XGSPON ONU optical modes. The first fiber unit receives and transmits 1G GPON optical signals; the second fiber unit receives and transmits 10G XGSPON optical signals. The four-way optical unit integrates the received and transmitted optical signals and outputs optical signals to external devices. The MCU unit receives software instructions from the MAC module, as well as the 1G_LOS optical signal from the first fiber unit and the 10G_LOS optical signal from the second fiber unit, and feeds the optical signals back to the MAC module.

[0118] according to Figure 2 The provided diagram shows that the four-way optical unit in the mode switching module includes: a first photonic unit, a second photonic unit, and a WDM multiplexer.

[0119] The first output terminal of the first photonic unit is connected to the first input terminal of the first optical fiber unit 121, the second input terminal is connected to the second input terminal of the first optical fiber unit 121, the first input terminal is connected to the first output terminal of the first optical fiber unit 121, the second input terminal is connected to the second output terminal of the first optical fiber unit 121, and the third output terminal is connected to the first input terminal of the WDM multiplexer.

[0120] The first output terminal of the second photonic unit is connected to the first input terminal of the second optical fiber unit 122, the second output terminal is connected to the second input terminal of the second optical fiber unit 122, the first input terminal is connected to the first output terminal of the second optical fiber unit 122, the second input terminal is connected to the second output terminal of the second optical fiber unit 122, and the third output terminal is connected to the second input terminal of the WDM multiplexer.

[0121] The output of the WDM multiplexer is connected to an external device.

[0122] according to Figure 2The provided diagram shows that the mode switching module has three mode switching methods. The first method is hardware switching: the MAC module controls the designated Pin 9 interface to enter hardware switching mode, and the mode selection is achieved by different high and low electrical signals received by the Pin 9 interface. When the Pin 9 interface receives a high-level signal, the XGSPON ONU mode is selected, and when the Pin 9 interface receives a low-level signal, the GPON ONU mode is selected. The BEN pin in the MAC module controls the switching state of the first and second fiber optic units. Uplink and downlink optical communication is carried out between the first fiber optic unit and the first photonic unit. The first photonic unit sends the received downlink optical to the WDM multiplexer. At the same time, the 1170nm uplink optical and 1577nm downlink optical communication between the second fiber optic unit and the second photonic unit sends the received optical signal to the WDM multiplexer. The WDM multiplexer outputs the optical signal corresponding to the selected optical wavelength, providing the XGS / GPON ONU mode optical signal to external devices. The second method involves switching via software: the MAC module controls the software interface to select the software mode, and then the MAC module outputs I2C interface commands to the MCU unit to select the optical mode. For example, controlling the MAC module to input logic 1 to the I2C interface of the MCU unit indicates the selection of XGSPON ONU mode, and controlling the MAC module to input logic 0 to the I2C interface of the MCU unit indicates the selection of GPON ONU mode. The third method uses adaptive switching: the optical mode is determined by the type of application signal sent by the OLT. When the OLT is an XGSPON OLT application, both the transmitter and receiver are in XGSPON ONU mode. It detects the presence of a 1G_LOS optical signal. When a 1G_LOS downlink optical signal is detected and received at 1490nm, it automatically switches to XGSPON ONU mode. When the OLT is a GPON OLT application, both the transmitter and receiver are in GPON ONU mode. It detects the presence of a 10G_LOS optical signal. When a 10G_LOS downlink optical signal is detected and received at 1577nm, it automatically switches to GPON ONU mode. When the OLT is a Combo OLT application, both the transmitter and receiver are in XGS / GPON ONU mode. The MAC module controls the mode switching command to execute software or hardware switching.

[0123] according to Figure 2 The provided diagram shows that the mode switching module in the mode switching module also includes: a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a seventh capacitor C7, an eighth capacitor C8, and a ninth capacitor C9.

[0124] One end of the first resistor R1 and one end of the second resistor R2 are connected to the output terminal of the first power supply, and the other end of the first resistor R1 is connected to the positive receiving terminal of the first optical fiber unit 121 and one end of the fifth capacitor C5.

[0125] The other end of the second resistor R2 is connected to the negative receiving end of the first optical fiber unit 121 and one end of the sixth capacitor C6.

[0126] The other end of the fifth capacitor C5 is connected to the positive data receiving end of the MAC module 11 and one end of the seventh capacitor C7.

[0127] The other end of the sixth capacitor C6 is connected to the negative data receiving end of the MAC module 11 and one end of the eighth capacitor C8.

[0128] The other end of the seventh capacitor C7 is connected to the positive receiving end of the second optical fiber unit 122.

[0129] The other end of the eighth capacitor C8 is connected to the negative receiving end of the second optical fiber unit 122.

[0130] One end of the third resistor R3 is connected to the reverse transmitter of the first optical fiber unit 121, and the other end is connected to one end of the first capacitor C1. The other end of the first capacitor C1 is connected to the first ground terminal.

[0131] One end of the fourth resistor R4 is connected to the forward transmitting end of the first optical fiber unit 121 and one end of the third capacitor C3, and the other end is connected to one end of the second capacitor C2. The other end of the second capacitor C2 is connected to the first ground terminal.

[0132] The other end of the third capacitor C3 is connected to the positive data transmitter of the MAC module 11.

[0133] One end of the fourth capacitor C4 is connected to the negative transmitter of the second optical fiber unit 122, and the other end is connected to the negative data transmitter of the MAC module 11.

[0134] One end of the fifth resistor R5 is connected to the positive transmitter of the second optical fiber unit 122, and the other end is connected to one end of the ninth capacitor C9.

[0135] The other end of the ninth capacitor C9 is connected to the second ground terminal.

[0136] Among them, the first and second resistors are 100Ω, the third, fourth and fifth resistors are 50Ω, and the first to ninth capacitors are 0.1UF.

[0137] The positive and negative transmitting ends (TD+ / - ends) of the MAC module are used as single-ended receivers via 10G and 1G receivers. Furthermore, a 50Ω impedance matching is added to the original Combo ONU optical module to ensure that the input signal quality is considerable.

[0138] The positive and negative receivers (RD+ / - terminals) of the MAC module share a common connection, which will affect the 10G high-speed optical signal. To ensure the quality of the 10G receiver output signal, a pull-up impedance matching is added at the 1G terminal.

[0139] A 0.1uF capacitor is set at the positive / negative receiving end R+ / - and the positive / negative transmitting end T+ / - to filter out low-frequency ripple interference and to stabilize the voltage.

[0140] according to Figure 2 The provided diagram shows that the first and second resistors achieve the purpose of pull-up impedance matching for the first optical fiber unit; the RC circuit composed of the first capacitor and the third resistor achieves the purpose of voltage stabilization and anti-interference; the RC circuit formed by the second capacitor and the fourth resistor also provides a stable voltage for the receiving end in the first optical fiber unit; and the RC circuit formed by the ninth capacitor and the fifth resistor provides a stable voltage for the receiving end of the second optical fiber unit.

[0141] according to Figure 2 The provided illustration shows that the mode switching module in the mode switching module also includes an internal power supply unit.

[0142] The module also includes a first inductor L, a sixth resistor R6, a seventh resistor R7, a tenth capacitor C10, and an eleventh capacitor C11.

[0143] The first output terminal of the internal power supply unit is connected to one end of the tenth capacitor C10, one end of the eleventh capacitor C11, and one end of the first inductor L. The second output terminal is connected to the first output terminal of the internal power supply unit.

[0144] The other end of the first inductor L is connected to the output terminal of the second power supply.

[0145] The other end of the tenth capacitor C10 and the other end of the eleventh capacitor C11 are connected to the third ground terminal.

[0146] One end of the sixth resistor R6 is connected to the third input terminal of the MCU unit 124 and the second output terminal of the MAC module 11, and the other end is connected to one end of the seventh resistor R7 and the output terminal of the third power supply.

[0147] The other end of the seventh resistor R7 is connected to the fourth input terminal of the MCU unit 124 and the third output terminal of the MAC module 11.

[0148] according to Figure 2The provided diagram shows that resistors R6 and R7 are selected as 10KΩ, providing impedance matching for the I2C communication interface between the MAC module and the MCU unit. The first inductor L and the tenth and eleventh capacitors C10 and C11 provide a stable digital power signal for the internal power supply of the mode switching module. The IAC interface of the MAC module corresponds to the SDA data signal interface and the SCL clock signal interface, providing software logic signals to the MCU unit. The MAC module receives optical signals sent by the MCU unit through the LOS interface and receives hardware signals fed back by the MCU unit through the Pin9 interface. The output of the MAC module is connected to the internal ground of the mode switching module.

[0149] The mode switching module provided in this application, by setting up a MAC module and a mode switching module, controls the MCU unit to select a specified optical mode through the MAC module software; and executes the hardware control of the MCU unit to select a specified optical mode through a designated pin of the MAC module. Then, based on the downlink light received by the first or second fiber unit, the optical signal is integrated using a WDM multiplexer, and the switched optical signal is output to an external device; or, by analyzing the application of the optical module at the OLT end, the wavelength of the optical signal received by the MCU unit is analyzed to determine the optical mode, realizing adaptive switching of optical mode; when the OLT end is in ComboOLT application, the switching command of the MAC module executes software switching or hardware switching operation to achieve the same switching processing of different optical modes, thereby realizing different mode switching strategies, achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users.

[0150] Figure 3 This is a flowchart illustrating a mode switching control method provided in an embodiment of this application. It is applied in a mode switching module. According to... Figure 3 The provided diagrams and mode switching control methods specifically include:

[0151] S301. After the MAC module receives the main mode selection request, it generates the corresponding main mode selection instruction.

[0152] This application is applied to automatic optical mode switching applications. By setting hardware switching mode, software switching mode, and adaptive switching mode, the switching logic is executed using the user-selected switching mode. The system logic is controlled through a specified I2C software interface, distinguishing different optical modes based on the signal strength set by the software interface to achieve mode switching. Alternatively, a MAC module controls specified pin interfaces to set different signal strengths, setting different optical modes based on the different signals, and achieving mode switching by controlling the received signal. Different control methods are used depending on the OLT application: when the OLT is in single-ended application mode, automatic mode switching is achieved by analyzing and determining the wavelength of the received optical signal; when the OLT is in Combo application mode, automatic mode switching is achieved by selecting the optical mode through the MAC module output control commands and then using either software or hardware switching methods.

[0153] The term "main mode" here can be understood as various methods for implementing optical mode switching. The term "main mode selection request" can be understood as a request sent or interactively selected by the user to specify a particular mode switching method. The term "main mode selection instruction" can be understood as a control instruction generated by the main control chip's MAC module to specify the mode switching operation.

[0154] Furthermore, after the main control chip receives a main mode selection request sent by an external device or user terminal, it parses the request through the main control chip's MAC module and generates a corresponding main mode selection instruction, preparing for the next step of optical mode switching.

[0155] S302. Determine the target mode category based on the main mode selection instruction.

[0156] The target mode category mentioned here can be understood as a specified mode switching category among multiple switching methods.

[0157] Furthermore, the MAC module sends the main mode selection command to the mode switching module. After parsing, the category of the mode switching method specified in the information contained in the main mode selection command is determined, which prepares for the next step of performing different optical mode switching according to the specified mode switching method.

[0158] S303. Determine the switching strategy of the corresponding sub-mode of the mode switching module according to the target mode category.

[0159] The sub-modes mentioned here can be understood as the different optical mode categories that the device supports and can switch between. The switching strategy mentioned here can be understood as the specific execution steps corresponding to each mode switching method.

[0160] Furthermore, after selecting a specific mode switching method, different execution strategies corresponding to different mode switching methods are obtained based on the structure of the mode switching module, in preparation for the next step of realizing optical mode switching.

[0161] S304. Use the switching strategy to control the sub-mode.

[0162] The control mentioned here can be understood as the operation process of mode switching.

[0163] Furthermore, based on the specified mode switching strategy and the structural design of the mode switching module, automatic switching of different optical modes is achieved, realizing different mode switching strategies, thereby saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users.

[0164] This application provides a mode switching control method. After receiving a main mode selection request, the MAC module generates a corresponding main mode selection instruction; the target mode category is determined based on the main mode selection instruction; the switching strategy for the corresponding sub-mode of the mode switching module is determined based on the target mode category; the switching strategy is used to control the sub-mode; multiple mode switching methods are set, and a main mode selection instruction is generated based on the main mode selection request to select the specified mode switching method; then, the internal logic control of the mode switching module is used to achieve the switching operation of different optical modes, thereby realizing different mode switching strategies, achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting diverse user needs.

[0165] Figure 4 This is a flowchart illustrating another mode switching control method provided in an embodiment of this application. It is applied in a mode switching module. Figure 4 This is based on the previous embodiment. Figure 4 The provided diagrams and mode switching control methods also include:

[0166] S401. After the MAC module receives the main mode selection request, it generates the corresponding main mode selection instruction.

[0167] After the main control chip receives a main mode selection request from an external device or user terminal, it parses the request through the main control chip's MAC module and generates a corresponding main mode selection instruction, preparing for the next step of optical mode switching.

[0168] S402. Determine the type of main mode selection instruction.

[0169] Based on the various mode switching methods set, the specific type of the selected mode switching method is obtained through the main mode selection command. For example, by designing and implementing three automatic mode switching methods: mode A, mode B, and mode C, the mode category is determined to be mode A after parsing the information of mode A switching carried in the main mode selection command.

[0170] S403. When the main mode selection instruction is a hardware selection instruction, the target mode category is determined to be hardware mode.

[0171] S404. When the main mode selection instruction is a software selection instruction, the target mode category is determined to be a software mode.

[0172] S405. When the main mode selection instruction is an adaptive selection instruction, the target mode category is determined to be adaptive mode.

[0173] Furthermore, the target mode category is determined based on the type of the main mode selection instruction. The main mode is categorized into hardware mode, software mode, and adaptive mode according to the type of the main mode selection instruction. When the main mode selection instruction is a software selection instruction, it indicates that the current main mode selection request carries a software selection mode, thus determining the target mode category for mode switching as software mode; when the main mode selection instruction is a hardware selection instruction, it indicates that the current main mode selection request carries a hardware selection mode, thus determining the target mode category for mode switching as hardware mode; when the main mode selection instruction is an adaptive selection instruction, it indicates that the current main mode selection request carries an adaptive selection mode, thus determining the target mode category for mode switching as adaptive mode.

[0174] S406. When the target mode category is hardware mode, determine the first switching strategy of the corresponding fiber optic network XGS / GPON sub-mode in the hardware mode.

[0175] S407. When the target mode category is software mode, determine the second handover strategy for the corresponding XGS / GPON sub-mode in the software mode.

[0176] S408. When the target mode category is adaptive mode, determine the third switching strategy for the corresponding XGS / GPON sub-mode in adaptive mode.

[0177] S409. Use the switching strategy to control the sub-mode.

[0178] Furthermore, the mode switching strategy is determined based on the target mode category. According to the set mode switching module structure, the mode switching strategy is divided into a first switching strategy, a second switching strategy, and a third switching strategy. When the target mode category is software mode, it indicates that the software mode switching method is currently selected, and the XGS / GPON sub-mode switching operation is performed according to the set first switching strategy; when the target mode category is hardware mode, it indicates that the hardware mode switching method is currently selected, and the XGS / GPON sub-mode switching operation is performed according to the set second switching strategy; when the target mode category is adaptive mode, it indicates that the adaptive mode switching method is currently selected, and the XGS / GPON sub-mode switching operation is performed according to the set third switching strategy.

[0179] in, Figure 8 This is a schematic diagram of the XGS / GPON Combo optical module provided in an embodiment of this application. (Refer to...) Figure 8 The provided diagram shows that the XGS / GPON Combo optical module includes: the XGS / GPON Combo OLT and the XGS / GPON Combo ONU optical network unit. Optical transmission between the two is completed through the physical channel of optical fiber and optical cable network (Optical Distribution Network, ODN). The main functions of the OLT are traffic scheduling, buffer control, providing a passive optical fiber network interface for users and allocating bandwidth. That is, it completes the uplink access of the PON network to the upper level and sends and distributes to all ONU user terminal equipment through the ODN network to the lower level. The OLT (Optical Line Terminal) has XGS / GPON receiver (RX) and transmitter (TX) ports, which can present three states: both the transmitter (TX) and receiver (RX) are in XGSPON ONU mode (XGSPON OLT application); both the transmitter (TX) and receiver (RX) are in GPON ONU mode (GPON OLT application); and the transmitter (TX) is in XGSPON ONU mode, the receiver (RX) is in GPON ONU mode, or both the transmitter (TX) and receiver (RX) are in GPON ONU mode (ComboOLT application). The ONU (Optical Line Unit) selectively receives broadcast data sent by the OLT and collects and buffers Ethernet data sent by users. Optical transmission and communication are achieved using uplink light from the transmitter and downlink light from the receiver within a 20km fiber optic range.

[0180] The mode switching control method provided in this application generates a corresponding main mode selection instruction after receiving a main mode selection request, determines the category of the target mode according to the category of the main mode selection instruction, thereby selecting the mode switching implementation method, and sets different switching strategies for different modes. The XGS / GPON sub-mode switching operation is executed according to the strategy to realize the switching strategy of different modes, thereby achieving the technical effects of saving costs, reducing manual operation, reducing the complexity of conversion, and meeting the diverse needs of users.

[0181] Figure 5 This is a flowchart illustrating the first switching strategy provided in an embodiment of this application. (Refer to...) Figure 5 The provided diagram illustrates the specific implementation steps of the first switching strategy, including:

[0182] S501: Call the pre-stored target address and write the first set value to the target address to start the hardware mode.

[0183] S502: Obtain the level signal of the Pin9 interface of the MAC module according to the first switching strategy corresponding to the hardware mode.

[0184] The target address mentioned here can be understood as the specified register interface address in the hardware. The first set value mentioned here can be understood as the fixed value set to start the hardware mode. For example, setting the target address to 1 to start the hardware mode, or setting the target address to 1111 / 0001 to start the hardware mode. The Pin9 interface mentioned here can be understood as the hardware interface set in the mode switching module circuit structure for detecting signals.

[0185] Furthermore, the address of register 3, which is open address 118, is set to the target address. When calling the target address (e.g., address 118 of page A2 in the system), 1 is written to set it to start the hardware mode interface. Then, the XGS / GPON ONU mode is selected by inputting high and low levels through the Pin9 interface.

[0186] S503. When the level signal is a high level signal, the control mode switching module performs the switching control of the XGSPON sub-mode.

[0187] S504. When the level signal is a low level signal, the control mode switching module performs GPON sub-mode switching control.

[0188] In one possible implementation, mode switching is achieved by detecting the level signal at the Pin 9 interface. For example, a high input level selects the XGSPON ONU mode, and a low input level selects the GPON ONU mode; or, a low input level selects the XGSPON ONU mode, and a high input level selects the GPON ONU mode.

[0189] The first switching strategy method provided in this application starts the hardware mode by selecting a hardware interface, and selects different optical modes by specifying different received levels of the Pin9 interface, thereby achieving the purpose of mode switching using the hardware interface.

[0190] Figure 6 This is a flowchart illustrating the second switching strategy provided in an embodiment of this application. (Refer to...) Figure 6 The provided diagram illustrates the specific implementation steps of the second switching strategy, including:

[0191] S601: Call the pre-stored target address and write the second set value to the target address to start the software mode.

[0192] S602. Obtain the digital signal of the I2C interface in the MCU unit according to the second switching strategy corresponding to the software mode.

[0193] The target address mentioned here can be understood as the register interface address specified in the hardware. The second setting value mentioned here can be understood as a fixed value set to start the software mode. For example, setting the target address to 1 to start the software mode, or setting the target address to 1111 / 0001 to start the software mode. The I2C interface mentioned here can be understood as the software protocol interface set in the software code logic for detecting signals.

[0194] Furthermore, the address of register 118, bit 3 of the open address is set to the target address. When calling the target address (e.g., address 118 of page A2 in the system), 0 is written to the target address to enter the software interface. Then, 0 or 1 is written to register 118, bit 3 of the MCU unit through the I2C interface located on the MCU unit.

[0195] S603. When the digital signal is 1, execute the switching control of XGSPON sub-mode.

[0196] S604. When the digital signal is 0, execute the GPON sub-mode switching control.

[0197] In one possible implementation, mode switching is achieved by detecting the magnitude of the digital signal on the I2C interface. For example, writing a 1 corresponds to switching the XGSPON ONU mode, while writing a 0 corresponds to switching the GPON ONU mode; or, writing a 0 corresponds to switching the XGSPON ONU mode, while writing a 1 corresponds to switching the GPON ONU mode.

[0198] The second switching strategy method provided in this application starts the software mode by selecting a software interface, and selects different optical modes by specifying different digital signals received by the I2C interface, thereby achieving the purpose of mode switching using the software interface.

[0199] Figure 7 This is a flowchart illustrating the third switching strategy provided in an embodiment of this application. (Refer to...) Figure 7 The provided diagram illustrates the specific implementation steps for the third switching strategy, including:

[0200] S701. When determining the third handover strategy corresponding to the adaptive mode, obtain the application mode of the optical line terminal (OLT).

[0201] The Combo ONU optical module requires the OLT to be in a separate XGSPON OLT application or GPON OLT application to determine its working mode. It can automatically adapt and switch between XGSPON or GPON ONU modes according to the application mode of the OLT.

[0202] The OLT is located in the main server room. It connects to multiple optical modems at the branch end through a 20km optical fiber to complete optical transmission. The optical fiber contains four different wavelengths of optical signals: uplink 2.5G 1270nm, uplink 1.25G 1310nm; downlink 2.5G 1490nm, downlink 10G 1577nm.

[0203] S702. When the application mode of the OLT is XGSPON application mode, monitor the first optical signal sent by the first optical fiber unit to the MCU unit.

[0204] S703. When the first optical signal is detected to be the downlink light of the first target, the XGSPON sub-mode switching control is executed.

[0205] The first fiber unit mentioned here can be understood as the GPON ONU optical module.

[0206] When the OLT is a standalone XGSPON OLT application, that is, when the transmitter TX+ / - and receiver RX+ / - of the OLT are both in XGSPON ONU mode, the first optical signal 1G_LOS output by the first fiber unit does not detect any interference from the GPON ONU. At the same time, the first optical signal 1G_LOS is automatically monitored in real time. When the first optical signal 1G_LOS detects 1577nm downlink light, the ComboONU optical module will automatically switch to XGS ONU mode.

[0207] S704. When the application mode of the OLT is GPON application mode, monitor the second optical signal sent by the second optical fiber unit to the MCU unit.

[0208] S705. When the second optical signal is detected to be the downlink light of the second target, the GPON sub-mode switching control is executed.

[0209] The second fiber unit mentioned here can be understood as the XGSPON ONU optical module.

[0210] When the OLT is a standalone GPON OLT application, that is, when the transmitter TX+ / - and receiver RX+ / - of the OLT are both in GPON ONU mode, and the second optical signal 10G_LOS does not detect any interference from XGSPON ONU, and the second optical signal 10G_LOS automatically monitors in real time, when the second optical signal 10G_LOS detects 1490nm downlink light during the monitoring process, the Combo ONU optical module will automatically switch to GPON ONU mode.

[0211] S706. When the application mode of the OLT is the Combo application mode, determine the working mode of the Combo ONU optical module. The working mode of the Combo ONU optical module includes the XGSPON ONU working mode and the GPON ONU working mode.

[0212] The Combo ONU optical module operates in either XGSPON ONU mode or GPON ONU mode, while the OLT can be used in ComboOLT application. That is, during the operation of the overall Combo ONU optical module, while the OLT is using either GPON OLT or XGSPON OLT application, the opposite application mode may appear. At this time, the MAC module needs to issue an instruction to switch the mode.

[0213] S707. When the Combo ONU optical module is in the XGSPON ONU working mode, monitor the first optical signal sent by the first optical fiber unit to the MCU unit.

[0214] S708: Receives the first optical signal through the MAC module and generates the first switching command of the MAC module.

[0215] S709. Determine the power supply switching state according to the first switching instruction, and execute the step of controlling the sub-mode using the first switching strategy / second switching strategy according to the switching state.

[0216] When the Combo ONU is in XGSPON ONU operating mode, the first optical signal 1G_LOS is used to detect the 1490nm downlink optical signal at the GPON OLT in real time. At this time, the MCU unit reports the situation to the MAC module. The OLT can be used as a Combo OLT. It needs to wait for the MAC module to send a command to determine whether to switch between XGSPON optical mode and GPON ONU optical mode. Then, the power switch will perform the corresponding circuit switching operation according to the command from the MAC module. If the MAC module issues a mode switching command, it will switch using either software or hardware control; otherwise, it will remain in the original state.

[0217] S710. When the Combo ONU optical module is in GPON ONU working mode, monitor the second optical signal sent by the second optical fiber unit to the MCU unit.

[0218] S711: Receives the second optical signal through the MAC module and generates the second switching command for the MAC module.

[0219] S712. Determine the power supply switching state according to the second switching instruction, and perform the step of controlling the sub-mode using the first switching strategy / second switching strategy according to the switching state.

[0220] When the Combo ONU optical module is in GPON ONU working mode, the second optical signal 10G_LOS can detect the 1577nm downlink optical signal at the XGSPON OLT in real time. At this time, the MCU unit reports the situation to the MAC module. The OLT can be used for ComboXGS / GPON OLT application. At that time, it is necessary to wait for the MAC module to send an instruction to determine whether to switch between XGSPON ONU optical mode and GPON ONU optical mode. Then, the power switch will perform the corresponding circuit switching operation according to the instruction of the MAC module. If the MAC module issues a mode switching instruction, it will switch using the control method of selecting software mode or hardware mode; otherwise, it will remain in the original state.

[0221] It can be observed that the 10G and 1G high-speed signals share the same MAC interface. The MAC is connected to the multi-terminal Combo ONU optical module and the Combo ONU optical module with a bidirectional transmission optical fiber capable of transmitting for 20 kilometers. However, the Combo ONU optical module can only select one of the GPON ONU mode and XGSPON ONU mode to work at the same time. The mode switching is assisted by the target address 118, bit3 register and power switch in the MCU unit.

[0222] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A mode switching module, characterized in that, include: Media access control (MAC) module, mode switching module; The MAC module is connected to the mode switching module; The output of the mode switching module is connected to an external device, and the input is connected to the output of the first power supply. The mode switching module includes a first optical fiber unit, a second optical fiber unit, a four-way optical unit, and a microcontroller unit (MCU). The positive receiving end of the first optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the positive data transmitting end of the MAC module, the negative transmitting end is connected to the first ground end, the input end is connected to the first output end of the MAC module, the first output end is connected to the first input end of the four-way optical unit, and the second output end is connected to the first input end of the MCU unit; wherein, the MCU unit receives 1G optical fiber signals through connection with the first optical fiber unit; The positive receiving end of the second optical fiber unit is connected to the positive data receiving end of the MAC module, the negative receiving end is connected to the negative data receiving end of the MAC module, the positive transmitting end is connected to the second ground end, the negative transmitting end is connected to the negative data transmitting end of the MAC module, the input end is connected to the first output end of the MAC module, the first output end is connected to the second input end of the four-way optical unit, and the second output end is connected to the second input end of the MCU unit; wherein, the MCU unit receives 10G optical fiber signals through connection with the second optical fiber unit; The output of the four-way optical unit is connected to an external device; The third input terminal of the MCU unit is connected to the second output terminal of the MAC module, the fourth input terminal is connected to the third output terminal of the MAC module, the first output terminal is connected to the first input terminal of the MAC module, and the second output terminal is connected to the second input terminal of the MAC module. The fourth output terminal of the MAC module is connected to the internal ground terminal of the mode switching module.

2. The module according to claim 1, characterized in that, The four-way optical unit includes: a first photonic unit, a second photonic unit, and a multiplexer; The first output terminal of the first photonic unit is connected to the first input terminal of the first optical fiber unit, the second output terminal is connected to the second input terminal of the first optical fiber unit, the first input terminal is connected to the first output terminal of the first optical fiber unit, the second input terminal is connected to the second output terminal of the first optical fiber unit, and the third output terminal is connected to the first input terminal of the multiplexer. The first output terminal of the second photonic unit is connected to the first input terminal of the second optical fiber unit, the second output terminal is connected to the second input terminal of the second optical fiber unit, the first input terminal is connected to the first output terminal of the second optical fiber unit, the second input terminal is connected to the second output terminal of the second optical fiber unit, and the third output terminal is connected to the second input terminal of the multiplexer. The output of the multiplexer is connected to an external device.

3. The module according to claim 1, characterized in that, The mode switching module further includes: a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, and a ninth capacitor; One end of the first resistor and one end of the second resistor are connected to the output terminal of the first power supply, and the other end of the first resistor is connected to the forward receiving terminal of the first optical fiber unit and one end of the fifth capacitor. The other end of the second resistor is connected to the negative receiving end of the first optical fiber unit and one end of the sixth capacitor; The other end of the fifth capacitor is connected to the positive data receiving end of the MAC module and one end of the seventh capacitor; The other end of the sixth capacitor is connected to the negative data receiving end of the MAC module and one end of the eighth capacitor. The other end of the seventh capacitor is connected to the positive receiving end of the second optical fiber unit; The other end of the eighth capacitor is connected to the negative receiving end of the second optical fiber unit; One end of the third resistor is connected to the negative transmitting end of the first optical fiber unit, and the other end is connected to one end of the first capacitor. The other end of the first capacitor is connected to the first ground terminal. One end of the fourth resistor is connected to the forward transmitting end of the first optical fiber unit and one end of the third capacitor, and the other end is connected to one end of the second capacitor. The other end of the second capacitor is connected to the first ground terminal. The other end of the third capacitor is connected to the positive data transmission end of the MAC module; One end of the fourth capacitor is connected to the negative transmitting end of the second optical fiber unit, and the other end is connected to the negative data transmitting end of the MAC module. One end of the fifth resistor is connected to the forward transmitting end of the second optical fiber unit, and the other end is connected to one end of the ninth capacitor; The other end of the ninth capacitor is connected to the second ground terminal.

4. The module according to claim 1, characterized in that, The mode switching module also includes an internal power supply unit; The module also includes a first inductor, a sixth resistor, a seventh resistor, a tenth capacitor, and an eleventh capacitor; The first output terminal of the internal power supply unit is connected to one end of the tenth capacitor, one end of the eleventh capacitor and one end of the first inductor, and the second output terminal is connected to the first output terminal of the internal power supply unit. The other end of the first inductor is connected to the output terminal of the second power supply; The other end of the tenth capacitor and the other end of the eleventh capacitor are connected to the third ground terminal; One end of the sixth resistor is connected to the third input terminal of the MCU unit and the second output terminal of the MAC module, and the other end is connected to one end of the seventh resistor and the output terminal of the third power supply. The other end of the seventh resistor is connected to the fourth input terminal of the MCU unit and the third output terminal of the MAC module.

5. A mode switching control method, applied to the mode switching module according to any one of claims 1-4, characterized in that, include: After receiving the primary mode selection request, the MAC module generates the corresponding primary mode selection instruction. The target mode category is determined according to the main mode selection instruction; The switching strategy for the corresponding sub-mode of the mode switching module is determined based on the target mode category; The switching strategy is used to control the sub-mode.

6. The method according to claim 5, characterized in that, Determining the target mode category according to the main mode selection instruction includes: Determine the category of the main mode selection instruction; When the main mode selection instruction is a hardware selection instruction, the target mode category is determined to be a hardware mode; When the main mode selection instruction is of the type of software selection instruction, the target mode category is determined to be software mode; When the main mode selection instruction is of the type of adaptive selection instruction, the target mode category is determined to be adaptive mode.

7. The method according to claim 6, characterized in that, The step of determining the switching strategy for the corresponding sub-mode based on the target mode category includes: When the target mode category is hardware mode, determine the first switching strategy of the corresponding fiber optic network XGS / GPON sub-mode in the hardware mode; When the target mode category is software mode, determine the second handover strategy corresponding to the XGS / GPON sub-mode in the software mode; When the target mode category is adaptive mode, a third switching strategy corresponding to the XGS / GPON sub-mode in the adaptive mode is determined.

8. The method according to claim 7, characterized in that, The step of controlling the sub-mode using the switching strategy includes: Call the pre-stored target address and write a first set value to the target address to start the hardware mode; The level signal of the Pin9 interface of the MAC module is obtained according to the first switching strategy corresponding to the hardware mode. When the level signal is a high level signal, the control mode switching module performs the switching control of the XGSPON sub-mode; When the level signal is a low level signal, the control mode switching module performs GPON sub-mode switching control.

9. The method according to claim 7, characterized in that, The step of controlling the sub-mode using the switching strategy includes: Call the pre-stored target address and write a second preset value to the target address to start the software mode; The digital signal of the I2C interface in the MCU unit is obtained according to the second switching strategy corresponding to the software mode; When the digital signal is 1, the switching control of the XGSPON sub-mode is executed; When the digital signal is 0, the GPON sub-mode switching control is executed.

10. The method according to claim 7, characterized in that, The step of controlling the sub-mode using the switching strategy includes: When determining the third handover strategy corresponding to the adaptive mode, the application mode of the optical line terminal (OLT) is obtained. When the application mode of the OLT is XGSPON application mode, the first optical signal of the MCU unit is monitored from the first optical fiber unit. When the first optical signal is detected to be the downlink light of the first target, the switching control of the XGSPON sub-mode is executed; or, When the OLT is in GPON application mode, the second optical fiber unit is monitored to send the second optical signal of the MCU unit. When the second optical signal is detected as the downlink light of the second target, the GPON sub-mode switching control is executed; or, When the application mode of the OLT is the Combo application mode, the working mode of the Combo ONU optical module is determined. The working mode of the Combo ONU optical module includes the XGSPON ONU working mode and the GPON ONU working mode. When the Combo ONU optical module is in the XGSPON ONU working mode, the first optical signal sent by the first optical fiber unit to the MCU unit is monitored. The first optical signal is received by the MAC module, and a first switching command is generated by the MAC module. The power supply switching state is determined according to the first switching instruction, and the control of the sub-mode is performed using the first switching strategy / second switching strategy according to the switching state. When the Combo ONU optical module is in GPON ONU working mode, the second optical signal sent by the second optical fiber unit to the MCU unit is monitored. The second optical signal is received by the MAC module, and a second switching command is generated by the MAC module. The power supply switching state is determined according to the second switching instruction, and the control of the sub-mode is performed using the first switching strategy / second switching strategy according to the switching state.