[go: up one dir, main page]

CN113452446A - Optical module and channel switching method - Google Patents

Optical module and channel switching method Download PDF

Info

Publication number
CN113452446A
CN113452446A CN202110693476.8A CN202110693476A CN113452446A CN 113452446 A CN113452446 A CN 113452446A CN 202110693476 A CN202110693476 A CN 202110693476A CN 113452446 A CN113452446 A CN 113452446A
Authority
CN
China
Prior art keywords
optical module
channel
instruction
address
register address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110693476.8A
Other languages
Chinese (zh)
Other versions
CN113452446B (en
Inventor
吴堂猛
李刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN202110693476.8A priority Critical patent/CN113452446B/en
Publication of CN113452446A publication Critical patent/CN113452446A/en
Application granted granted Critical
Publication of CN113452446B publication Critical patent/CN113452446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/40Transceivers

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

In the optical module and the optical module channel switching method provided by the application, the optical module comprises a circuit board and an MCU (microprogrammed control unit), the MCU is in I2C communication with an upper computer, when the upper computer needs to monitor a first channel, the upper computer sends a first instruction to the MCU, when the MCU monitors the first instruction, the MCU writes monitoring information of the first channel and an optical module equipment address into a third register address, and the upper computer reads the monitoring information of the first channel and the optical module equipment address so as to monitor the first channel; when the upper computer needs to monitor the second channel, the upper computer sends a second instruction to the MCU, when the MCU monitors the second instruction, the MCU writes the monitoring information of the second channel and the optical module equipment address into the third register address, and the upper computer reads the monitoring information of the second channel and the optical module equipment address so as to monitor the second channel.

Description

Optical module and channel switching method
Technical Field
The present application relates to the field of optical communications technologies, and in particular, to an optical module and a channel switching method.
Background
At present, with the continuous improvement of the transmission rate of an optical module, the number of transmission channels in the optical module is continuously increased, for example, a dual-transmitting dual-receiving optical module, that is, an optical module includes two sets of tosa and two sets of tosa, one tosa and the other tosa are called a first channel, and the other tosa are called a second channel.
The dual-transmitting dual-receiving optical module mainly adopts an SFF-8472 packaging protocol, the packaging protocol comprises four device addresses of two groups of [0xA0,0xA2], [0xB0 and 0xB2], one channel in each group of device address monitoring module, such as [0xA0 and 0xA2], can monitor and acquire first channel data, and [0xB0 and 0xB2] can monitor and acquire second channel data.
However, some upper computers are limited by packaging protocols, hardware communication chips and the like, and the system only has the capability of sending [0xA0,0xA2] one group of device addresses, and cannot send [0xB0,0xB2] device addresses, so that the content of the second channel of the module cannot be monitored and acquired.
Disclosure of Invention
The embodiment of the application provides an optical module, which can monitor information of a first channel and information of a second channel through a group of equipment communication addresses.
In a first aspect, the present application provides an optical module, comprising:
the circuit board is provided with a golden finger at one end;
MCU, set up on the circuit board, including the I2C interface, through I2C interface connection the golden finger so that MCU and host computer I2C communication still include:
the first register address is used for storing monitoring information of the first channel;
the second register address is used for storing the monitoring information of the second channel;
a third register address for storing the monitoring information of the first channel or the monitoring information of the second channel;
and the fourth register address is used for storing a channel switching instruction sent by an upper computer, and the channel switching instruction is used for indicating that the monitoring information of the first channel or the monitoring information of the second channel is written into the third register address.
In a second aspect, the present application provides an optical module channel switching method, for an optical module, the method includes:
receiving a channel switching instruction sent by an upper computer, and storing the channel switching instruction in a fourth register address;
monitoring a channel switching instruction in the fourth register address;
when the channel switching instruction is a first instruction, writing the monitoring information of the first channel and the optical module equipment address into the third register address, and reading the monitoring information of the first channel and the optical module equipment address by an upper computer;
and when the channel switching instruction is a second instruction, writing the monitoring information of the second channel and the optical module equipment address into the third register address, and reading the monitoring information of the second channel and the optical module equipment address by an upper computer.
Has the advantages that: in the optical module and the optical module channel switching method provided by the application, the optical module comprises a circuit board and an MCU (microprogrammed control unit), a golden finger is arranged on the circuit board, the MCU comprises an I2C interface, the golden finger is connected through an I2C interface to realize I2C communication between the MCU and an upper computer, when the upper computer needs to monitor a first channel, the upper computer sends a first instruction to the MCU, when the MCU monitors the first instruction, the MCU writes monitoring information of the first channel and an optical module equipment address into a third register address, and the upper computer reads the monitoring information of the first channel and the optical module equipment address so as to monitor the first channel; when the upper computer needs to monitor the second channel, the upper computer sends a second instruction to the MCU, when the MCU monitors the second instruction, the MCU writes the monitoring information of the second channel and the optical module equipment address into the third register address, and the upper computer reads the monitoring information of the second channel and the optical module equipment address so as to monitor the second channel. Therefore, the optical module provided by the application can monitor the information of the first channel and the second channel through a group of equipment communication addresses.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic diagram of a connection relationship of an optical communication terminal;
fig. 2 is a schematic structural diagram of an optical network terminal;
fig. 3 is a schematic structural diagram of an optical module according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an exploded structure of an optical module according to an embodiment of the present application;
fig. 5 is a schematic diagram of an internal structure of an optical module according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an MCU of an optical module according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
One of the core links of optical fiber communication is the interconversion of optical and electrical signals. The optical fiber communication uses optical signals carrying information to transmit in information transmission equipment such as optical fibers/optical waveguides, and the information transmission with low cost and low loss can be realized by using the passive transmission characteristic of light in the optical fibers/optical waveguides; meanwhile, the information processing device such as a computer uses an electric signal, and in order to establish information connection between the information transmission device such as an optical fiber or an optical waveguide and the information processing device such as a computer, it is necessary to perform interconversion between the electric signal and the optical signal.
The optical module realizes the function of interconversion of optical signals and electrical signals in the technical field of optical fiber communication, and the interconversion of the optical signals and the electrical signals is the core function of the optical module. The optical module is electrically connected with an external upper computer through a golden finger on an internal circuit board of the optical module, and the main electrical connection comprises power supply, I2C signals, data signals, grounding and the like; the electrical connection mode realized by the gold finger has become the mainstream connection mode of the optical module industry, and on the basis of the mainstream connection mode, the definition of the pin on the gold finger forms various industry protocols/specifications.
Fig. 1 is a schematic diagram of connection relationship of an optical communication terminal. As shown in fig. 1, the connection of the optical communication terminal mainly includes the interconnection among the optical network terminal 100, the optical module 200, the optical fiber 101 and the network cable 103;
one end of the optical fiber 101 is connected with a far-end server, one end of the network cable 103 is connected with local information processing equipment, and the connection between the local information processing equipment and the far-end server is completed by the connection between the optical fiber 101 and the network cable 103; and the connection between the optical fiber 101 and the network cable 103 is made by the optical network terminal 100 having the optical module 200.
An optical port of the optical module 200 is externally accessed to the optical fiber 101, and establishes bidirectional optical signal connection with the optical fiber 101; an electrical port of the optical module 200 is externally connected to the optical network terminal 100, and establishes bidirectional electrical signal connection with the optical network terminal 100; the optical module realizes the interconversion of optical signals and electric signals, thereby realizing the establishment of information connection between the optical fiber and the optical network terminal; specifically, the optical signal from the optical fiber is converted into an electrical signal by the optical module and then input to the optical network terminal 100, and the electrical signal from the optical network terminal 100 is converted into an optical signal by the optical module and input to the optical fiber.
The optical network terminal is provided with an optical module interface 102, which is used for accessing an optical module 200 and establishing bidirectional electric signal connection with the optical module 200; the optical network terminal is provided with a network cable interface 104, which is used for accessing the network cable 103 and establishing bidirectional electric signal connection with the network cable 103; the optical module 200 is connected to the network cable 103 through the optical network terminal 100, specifically, the optical network terminal transmits a signal from the optical module to the network cable and transmits the signal from the network cable to the optical module, and the optical network terminal serves as an upper computer of the optical module to monitor the operation of the optical module.
At this point, a bidirectional signal transmission channel is established between the remote server and the local information processing device through the optical fiber, the optical module, the optical network terminal and the network cable.
Common information processing apparatuses include routers, switches, electronic computers, and the like; the optical network terminal is an upper computer of the optical module, provides data signals for the optical module, and receives the data signals from the optical module, and the common upper computer of the optical module also comprises an optical line terminal and the like.
Fig. 2 is a schematic diagram of an optical network terminal structure. As shown in fig. 2, the optical network terminal 100 has a circuit board 105, and a cage 106 is disposed on a surface of the circuit board 105; an electric connector is arranged in the cage 106 and used for connecting an electric port of an optical module such as a golden finger; the cage 106 is provided with a heat sink 107, and the heat sink 107 has a projection such as a fin that increases a heat radiation area.
The optical module 200 is inserted into the optical network terminal, specifically: the electrical port of the optical module is inserted into an electrical connector inside the cage 106, and the optical port of the optical module is connected to the optical fiber 101.
The cage 106 is positioned on the circuit board, and the electrical connector on the circuit board is wrapped in the cage, so that the electrical connector is arranged in the cage; the optical module is inserted into the cage, held by the cage, and the heat generated by the optical module is conducted to the cage 106 and then diffused by the heat sink 107 on the cage.
Fig. 3 is a schematic structural diagram of an optical module 200 according to an embodiment of the present disclosure, and fig. 4 is an exploded structural diagram of the optical module 200 according to the embodiment of the present disclosure. As shown in fig. 3 and 4, an optical module 200 provided in an embodiment of the present application includes an upper housing 201, a lower housing 202, a circuit board 300, an unlocking handle 203, a light emission sub-module 206, and a light reception sub-module 207.
The upper shell 201 is covered on the lower shell 202 to form a wrapping cavity with two openings; the outer contour of the wrapping cavity is generally a square body, and specifically, the lower shell comprises a main plate and two side plates which are positioned at two sides of the main plate and are perpendicular to the main plate; the upper shell comprises a cover plate, and the cover plate covers two side plates of the upper shell to form a wrapping cavity; the upper shell can also comprise two side walls which are positioned at two sides of the cover plate and are perpendicular to the cover plate, and the two side walls are combined with the two side plates to realize that the upper shell covers the lower shell.
The two openings may be two ends (204, 205) in the same direction, or two openings in different directions; one opening is an electric port 204, and a gold finger of the circuit board extends out of the electric port 204 and is inserted into an upper computer such as an optical network unit; the other opening is an optical port 205 for external optical fiber access to connect the tosa 206 and the rosa 207 inside the optical module; optoelectronic devices such as the circuit board 300, the tosa 206, and the rosa 207 are located in the package cavity.
The assembly mode of combining the upper shell and the lower shell is adopted, so that the circuit board 300, the transmitter sub-module 206, the receiver sub-module 207 and other devices can be conveniently installed in the shells, and the outermost packaging protection shell of the optical module is formed by the upper shell and the lower shell; the upper shell and the lower shell are made of metal materials generally, so that electromagnetic shielding and heat dissipation are facilitated; generally, the shell of the optical module cannot be made into an integrated structure, so that when devices such as a circuit board and the like are assembled, the positioning component, the heat dissipation structure and the electromagnetic shielding structure cannot be installed, and the production automation is not facilitated.
The unlocking handle 203 is located on the outer wall of the wrapping cavity/lower shell 202 and used for realizing the fixed connection between the optical module and the upper computer or releasing the fixed connection between the optical module and the upper computer.
The unlocking handle 203 is provided with a clamping structure matched with the upper computer cage; the tail end of the unlocking handle is pulled to enable the unlocking handle to move relatively on the surface of the outer wall; the optical module is inserted into a cage of the upper computer, and the optical module is fixed in the cage of the upper computer through a clamping structure of the unlocking handle; by pulling the unlocking handle, the clamping structure of the unlocking handle moves along with the unlocking handle, so that the connection relation between the clamping structure and the upper computer is changed, the clamping relation between the optical module and the upper computer is relieved, and the optical module can be drawn out from the cage of the upper computer.
The tosa 206 and the rosa 207 are respectively configured to transmit an optical signal and receive an optical signal. The tosa 206 and the rosa 207 may also be combined together to form an integrated optical transceiver. The tosa 206 includes a light emitting chip and a backlight detector, and the rosa 207 includes a light receiving chip.
The circuit board 300 is located in a package cavity formed by the upper shell 201 and the lower shell 202, and circuit traces, electronic elements (such as capacitors, resistors, triodes and MOS transistors) and chips (such as a microprocessor MCU, a laser driving chip, a limiting amplifier, a clock data recovery CDR, a power management chip and a data processing chip DSP) are disposed on the circuit board 300.
In the embodiment of the application, the transimpedance amplifier is closely associated with the light receiving chip. The transimpedance amplifier chip can be independently packaged on the circuit board 300, and the light receiving chip and the transimpedance amplifier are electrically connected with the circuit board 300 through the independent package; the transimpedance amplifier and the light receiving chip can be packaged together in an independent package body, such as the same coaxial tube shell TO or the same square cavity; the light receiving chip and the transimpedance amplifier can be arranged on the surface of the circuit board without adopting an independent packaging body; the light receiving chip can be independently packaged, the trans-impedance amplifier is arranged on the circuit board, and the quality of a received signal can meet certain relatively low requirements.
The chip on the circuit board can be an all-in-one chip, for example, a laser driving chip and an MCU chip are fused into a chip, and a laser driving chip, a limiting amplification chip and an MCU chip are also fused into a chip, wherein the chip is the integration of the circuit, but the functions of all the circuits do not disappear due to the integration, and only the integration of the circuit forms occurs. Therefore, when the circuit board is provided with three independent chips, namely the MCU, the laser driving chip and the amplitude limiting amplification chip, the scheme is equivalent to that of arranging a single chip with three functions in one on the circuit.
The circuit board 300 connects the electrical devices in the optical module together according to the circuit design through circuit wiring to realize the electrical functions of power supply, electrical signal transmission, grounding and the like. The circuit board 300 is a carrier of main electrical components of the optical module, and the electrical components not arranged on the circuit board are finally electrically connected with the circuit board, and the electrical connector on the circuit board 300 realizes the electrical connection between the optical module and the host computer thereof.
The circuit board 300 is generally a rigid circuit board, which can also perform a bearing function due to its relatively rigid material, for example, the rigid circuit board can stably bear a chip; when the tosa 206 and the rosa 207 are located on the circuit board, the rigid circuit board can also provide a smooth load; the hard circuit board can also be inserted into an electric connector in the upper computer cage, and specifically, a metal pin/golden finger is formed on the surface of the tail end of one side of the hard circuit board and is used for being connected with the electric connector; these are not easily implemented with flexible circuit boards.
The circuit board 300 has a gold finger 301 on the surface of the end, the gold finger is composed of a pin independent from each other, the circuit board 300 is inserted into the electric connector in the cage, and the gold finger is electrically connected with the upper computer. The upper computer and the optical module can adopt an I2C protocol to carry out information transmission through I2C pins. The upper computer can write information into the optical module, and particularly, the upper computer can write the information into a register of the optical module; the optical module cannot write information into the upper computer, when the optical module needs to provide the information to the upper computer, the optical module can write the information into a preset register in the optical module, the register is read by the upper computer, and the register of the optical module is generally integrated in an MCU of the optical module and can also be independently arranged on a circuit board 300 of the optical module.
A flexible circuit board is also used in a part of the optical module to supplement a rigid circuit board; the flexible circuit board is generally used in combination with a rigid circuit board, for example, the rigid circuit board may be connected to the optical transceiver device through the flexible circuit board.
The tosa 206 and the rosa 207 are respectively configured to transmit an optical signal and receive an optical signal. In this embodiment, the tosa 206 may be a coaxial TO package physically separated from the pcb and electrically connected TO the pcb by a flexible board; the rosa 207 is also in a coaxial TO package, physically separated from the circuit board, and electrically connected by a flexible board. In another common implementation, may be disposed on a surface of the circuit board 300; in addition, the tosa 206 and the rosa 207 may be combined together to form an integrated optical transceiver.
Fig. 5 is a schematic partial structure diagram of an optical module according to an embodiment of the present invention. As shown in fig. 5, in the optical module provided in this embodiment of the application, a row of gold fingers 301 is disposed on a surface of one end of a circuit board 300, an MCU302 is disposed on the circuit board 300, the row of gold fingers 301 is composed of one gold finger which is independent from each other, the circuit board 300 is inserted into an electrical connector in a cage, the gold fingers 301 are electrically connected to an upper computer, and the MCU302 is electrically connected to the gold fingers 301. The rosa 207 includes an APD, a transimpedance amplifier chip (TIA), a limiting amplifier chip (LA), and an MCU 302. The chip is essentially the integration of circuits, the circuits can be integrated into the chip, and part of functions in the chip can also be realized by the circuits on the circuit board. The functions of the chip can be realized by the chip, the circuit or the main chip combined with the peripheral circuit. Different functions can be integrated by the same chip, and the change of the circuit integration form still belongs to the protection scope of the invention.
In the process of receiving the optical signal, the optical receive sub-module 207 is internally provided with an optical receive chip, where a common optical receive chip may be an APD, and is configured to receive the optical signal sent by the external device and convert the optical signal sent by the external device into an electrical signal; an input pin of the transimpedance amplifier chip is connected with an output pin of the optical receive submodule 207, and is used for converting an electrical signal output by the optical receive submodule 207 into a voltage signal; the high-frequency signal input pin of the amplitude limiting amplification chip is connected with the output pin of the transimpedance amplification chip and is used for amplifying a first voltage signal output by the transimpedance amplification chip; an input pin of the clock data recovery chip is connected with a high-frequency signal output pin of the amplitude limiting amplification chip and used for shaping a voltage signal output by the amplitude limiting amplification chip, and an output pin of the clock data recovery chip is connected with the golden finger 301. The connecting finger 301 is connected with an upper computer, and then signals received by the optical module can be sent to the upper computer.
Fig. 6 is a schematic structural diagram of an MCU of an optical module provided in an embodiment of the present application; the optical module provided by the present application is specifically described below with reference to fig. 6.
The dual-transmitting dual-receiving optical module mostly adopts an SFF-8472 packaging protocol, the packaging protocol comprises two groups of equipment addresses of [0xA0,0xA2], [0xB0 and 0xB2], one channel in each group of equipment address monitoring module, such as [0xA0 and 0xA2], can monitor and acquire first channel data, and [0xB0 and 0xB2] can monitor and acquire second channel data.
However, some upper computers are limited by packaging protocols, hardware communication chips and the like, and the system only has the capability of sending [0xA0,0xA2] one group of device addresses, and cannot send [0xB0,0xB2] device addresses, so that the content of the second channel of the module cannot be monitored and acquired.
Therefore, the application provides an optical module to solve the requirement that the upper computer can read and write the contents of two channels of the module through a group of equipment addresses [0xA0,0xA2], namely [0xA0,0xA2] has the functions of [0xB0,0xB2], can acquire the information of the module channel 2, and solves the problem of limitation of the upper computer.
An upper computer can be accessed to a plurality of optical modules, each optical module has an own equipment address, the optical module to be read can be locked according to the equipment address of the optical module, and the optical module to be read is defined as a target optical module, namely the equipment address of the optical module is used for addressing the optical module inserted into the upper computer. In the present application, the optical module device address is [0xA0,0xA2 ].
In the embodiment of the application, the upper computer can read the monitoring information of the first channel and the second channel according to the optical module device address [0xA0,0xA2 ].
In the embodiment of the application, one end of the circuit board is provided with a golden finger; MCU includes the I2C interface, through I2C interface connection the golden finger so that MCU and host computer I2C communication, the communication between MCU and the host computer includes that the host computer sends the passageway through the golden finger to MCU and switches the instruction, still includes MCU and preserves the monitoring information of passageway in predetermined register, reads by the host computer to realize that MCU provides the monitoring information of passageway to the host computer.
The MCU also includes:
the first register address is used for storing monitoring information of the first channel;
the second register address is used for storing the monitoring information of the second channel;
a third register address for storing the monitoring information of the first channel or the monitoring information of the second channel;
and the fourth register address is used for storing a channel switching instruction sent by an upper computer, and the channel switching instruction is used for indicating that the monitoring information of the first channel or the monitoring information of the second channel is written into the third register address.
The first register address refers to each register address of the first channel, and the second register address refers to each register address of the second channel.
The channel switching instruction comprises a first instruction and a second instruction, the first instruction is used for indicating to write the monitoring information of the first channel into the third register address, and the second instruction is used for indicating to write the monitoring information of the second channel into the third register address. The first instruction is written into the fourth register address through the golden finger by the upper computer, and the second instruction is written into the fourth register address through the golden finger by the upper computer.
The third register address is further configured to store an optical module device address, and the optical module device address written into the third register address during the first instruction and the optical module device address written into the third register address during the second instruction are the same optical module device address.
And when the channel switching instruction does not exist in the fourth register address, namely the third register address is in an idle state when the upper computer does not send the channel switching instruction.
Specifically, the MCU is configured to:
when the channel switching instruction in the fourth register address is monitored to be the first instruction, writing the monitoring information of the first channel and the optical module equipment address into the third register address;
and when the channel switching instruction in the fourth register address is monitored to be the second instruction, writing the monitoring information of the second channel and the optical module equipment address into the third register address.
In the embodiment of the present application, for example, the first register addresses are 0x60,0x61,0x62, and 0x63, respectively, and the second register addresses are also 0x60,0x61,0x62, and 0x63, respectively. For example, the registers 0x60,0x61 are used to store temperature information, the registers 0x62, and 0x63 are used to store voltage information, and the like, it should be noted that, in the embodiment of the present application, the registers 0x60,0x61 are used to store temperature information, and the registers 0x62 and 0x63 are used to store voltage information, and no specific limitation is imposed on the storage parameters of the registers. The first register address and the second register address are used for respectively storing and updating monitoring information generated by the first channel and the second channel in real time.
Because the register addresses of the first channel and the second channel are the same, the upper computer can read the monitoring information of a certain channel of the target optical module according to the optical module equipment address and the register address.
In this embodiment of the application, the MCU may be controlled by software of the upper computer, and if the upper computer communicates with the MCU through an I2C pin of a gold finger to send a channel switching instruction to the MCU, specifically, if the upper computer wants to monitor information of the first channel, the upper computer writes the first instruction (e.g., 0x00) to a fourth register address (e.g., 0x7F register of the 0xA2 device address); if the host wants to monitor the information of the second channel, the host writes a first command (e.g., 0x90) to the register with the device address 0x7F of 0xA 2.
The MCU302 stores the corresponding data packet in the third register address according to whether the received channel switching instruction is the first instruction or the second instruction, and the upper computer reads the corresponding data from the third register. The upper computer can write information into the optical module, and particularly, the upper computer can write the information into a register of an MCU in the optical module; the optical module cannot write information into the upper computer, and when the optical module needs to provide information to the upper computer, the optical module writes the information into a preset register in the optical module (the register is read by the upper computer, and the register of the optical module is generally integrated in an MCU of the optical module, or can be independently arranged on a circuit board 300 of the optical module.
When the optical module is plugged into the upper computer to be powered on, the [0xA0,0xA2] device address is in a state of monitoring the first channel (the 0x7F register is 0x00) by default.
When MCU302 detects that the contents of the 0x7F register have become 0x 90. The module software would then access the monitor information for the second channel to the [0xA0,0xA2] device address. Otherwise, the monitoring information of the first channel is accessed to the [0xA0,0xA2] device address.
In this embodiment of the application, when the channel switching instruction is a first instruction, a first data packet is stored in a third register, where the first data packet includes an optical module device address (i.e., [0xA0,0xA2]) and a first register address, and the first register address stores monitoring information of a first channel, and the upper computer reads the first data packet.
And when the channel switching instruction is a second instruction, storing a second data packet into a third register, and reading the second data packet by the upper computer, wherein the second data packet comprises an optical module equipment address (namely [0xA0,0xA2]) and a second register address, and monitoring information of a second channel is stored in the second register address, and the upper computer reads the second data packet.
When the optical module is inserted into the upper computer, the channel switching instruction is defaulted to be the first instruction, and whether the channel switching instruction is changed from the first instruction to the second instruction or not is monitored;
and when the channel switching instruction is monitored to be changed from the first instruction to the second instruction, the second data packet is sent to the upper computer.
The first data packet comprises an optical module device address and a first register address, the second data packet comprises an optical module device address and a second register address, the target optical module can be addressed according to the optical module device address, monitoring information of a first channel stored in the first data packet can be obtained according to the first register address, and monitoring information of a second channel stored in the second data packet can be obtained according to the second register address, so that the first data packet in the embodiment of the application comprises the monitoring information of the first channel of the target optical module, and the second data packet comprises the monitoring information of the second channel of the target optical module; in the present application, the optical module device address in the first data packet and the optical module device address in the second data packet are the same address, that is, the optical module device address [0xA0,0xA2 ].
The first register address or the second register address, that is, the aforementioned 0x60,0x61,0x62,0x63, etc., may obtain the monitoring information of the first channel according to the addresses [0xA0,0xA2], 0x60,0x61,0x62,0x63, etc., and may obtain the monitoring information of the second channel according to the addresses [0xA0,0xA2], 0x60,0x61,0x62,0x63, etc.
The process can be implemented according to an optical module encapsulation protocol, that is, based on the optical module encapsulation protocol, the monitoring information of the first channel stored therein can be obtained according to the first register address, and also according to the second register address, the monitoring information of the second channel stored therein can be obtained according to the second register address, for example, based on the optical module encapsulation protocol, the specific values of the temperature and voltage parameters can be obtained according to the first register address 0x60,0x61, the first register address 0x62, and 0x63, which is not described in detail.
Therefore, the optical module provided by the application can monitor the information of the first channel and the second channel through a group of equipment communication addresses.
In a second aspect, based on the optical module, the present application further provides an optical module channel switching method, where the method includes:
receiving a channel switching instruction sent by an upper computer, and storing the channel switching instruction in a fourth register address;
monitoring a channel switching instruction in the fourth register address;
when the channel switching instruction is a first instruction, writing the monitoring information of the first channel and the optical module equipment address into the third register address, and reading the monitoring information of the first channel and the optical module equipment address by an upper computer;
and when the channel switching instruction is a second instruction, writing the monitoring information of the second channel and the optical module equipment address into the third register address, and reading the monitoring information of the second channel and the optical module equipment address by an upper computer.
Further, when the optical module is inserted into the upper computer, the channel switching instruction is defaulted to be the first instruction, and whether the channel switching instruction is changed from the first instruction to the second instruction is monitored;
when the channel switching instruction is monitored to be changed from the first instruction to the second instruction, the monitoring information of the second channel and the optical module equipment address are written into the third register address, and the monitoring information of the second channel and the optical module equipment address are read by an upper computer;
further, the optical module device address written in the third register address in the case of the first instruction and the optical module device address written in the third register address in the case of the second instruction are the same optical module device address.
Has the advantages that: in the optical module and the optical module channel switching method provided by the application, the optical module comprises a circuit board and an MCU (microprogrammed control unit), a golden finger is arranged on the circuit board, the MCU comprises an I2C interface, the golden finger is connected through an I2C interface to realize I2C communication between the MCU and an upper computer, when the upper computer needs to monitor a first channel, the upper computer sends a first instruction to the MCU, when the MCU monitors the first instruction, the MCU writes monitoring information of the first channel and an optical module equipment address into a third register address, and the upper computer reads the monitoring information of the first channel and the optical module equipment address so as to monitor the first channel; when the upper computer needs to monitor the second channel, the upper computer sends a second instruction to the MCU, when the MCU monitors the second instruction, the MCU writes the monitoring information of the second channel and the optical module equipment address into the third register address, and the upper computer reads the monitoring information of the second channel and the optical module equipment address so as to monitor the second channel. Therefore, the optical module provided by the application can monitor the information of the first channel and the second channel through a group of equipment communication addresses.
Finally, it should be noted that: the embodiment is described in a progressive manner, and different parts can be mutually referred; in addition, the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A light module, comprising:
the circuit board is provided with a golden finger at one end;
MCU, set up on the circuit board, including the I2C interface, through I2C interface connection the golden finger so that MCU and host computer I2C communication still include:
the first register address is used for storing monitoring information of the first channel;
the second register address is used for storing the monitoring information of the second channel;
a third register address for storing the monitoring information of the first channel or the monitoring information of the second channel;
and the fourth register address is used for storing a channel switching instruction sent by an upper computer, and the channel switching instruction is used for indicating that the monitoring information of the first channel or the monitoring information of the second channel is written into the third register address.
2. The optical module according to claim 1, wherein the channel switching instruction includes a first instruction and a second instruction, the first instruction is configured to instruct to write monitoring information of the first channel into the third register address, and the second instruction is configured to instruct to write monitoring information of the second channel into the third register address.
3. The optical module according to claim 2, wherein the third register address is further configured to store an optical module device address, and the optical module device address written in the third register address in the first instruction and the optical module device address written in the third register address in the second instruction are the same optical module device address.
4. The optical module of claim 2, wherein the first instruction is written to the fourth register address by the host computer through the gold finger, and the second instruction is written to the fourth register address by the host computer through the gold finger.
5. The optical module according to claim 1, wherein the first register address is used for storing the monitoring information of the first channel in real time, and the second register address is used for storing the monitoring information of the second channel in real time.
6. The optical module of claim 1, wherein the third register address is in an idle state when the channel switch instruction is not present in the fourth register address.
7. A light module as claimed in claim 3, characterized in that the MCU is configured to:
when the channel switching instruction in the fourth register address is monitored to be the first instruction, writing the monitoring information of the first channel and the optical module equipment address into the third register address;
and when the channel switching instruction in the fourth register address is monitored to be the second instruction, writing the monitoring information of the second channel and the optical module equipment address into the third register address.
8. An optical module channel switching method, characterized in that the method comprises:
receiving a channel switching instruction sent by an upper computer, and storing the channel switching instruction in a fourth register address;
monitoring a channel switching instruction in the fourth register address;
when the channel switching instruction is a first instruction, writing the monitoring information of the first channel and the optical module equipment address into a third register address, and reading the monitoring information of the first channel and the optical module equipment address by an upper computer;
and when the channel switching instruction is a second instruction, writing the monitoring information of the second channel and the optical module equipment address into the third register address, and reading the monitoring information of the second channel and the optical module equipment address by an upper computer.
9. The optical module channel switching method according to claim 8,
when the optical module is inserted into the upper computer, the channel switching instruction is defaulted to be the first instruction, and whether the channel switching instruction is changed from the first instruction to the second instruction or not is monitored;
when the channel switching instruction is changed from the first instruction to the second instruction, the monitoring information of the second channel and the optical module equipment address are written into the third register address, and the monitoring information of the second channel and the optical module equipment address are read by an upper computer.
10. The optical module channel switching method according to claim 8, wherein the optical module device address written in the third register address in the case of the first instruction and the optical module device address written in the third register address in the case of the second instruction are the same optical module device address.
CN202110693476.8A 2021-06-22 2021-06-22 Optical module and channel switching method Active CN113452446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110693476.8A CN113452446B (en) 2021-06-22 2021-06-22 Optical module and channel switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110693476.8A CN113452446B (en) 2021-06-22 2021-06-22 Optical module and channel switching method

Publications (2)

Publication Number Publication Date
CN113452446A true CN113452446A (en) 2021-09-28
CN113452446B CN113452446B (en) 2023-01-20

Family

ID=77812154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693476.8A Active CN113452446B (en) 2021-06-22 2021-06-22 Optical module and channel switching method

Country Status (1)

Country Link
CN (1) CN113452446B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389691A (en) * 2022-01-24 2022-04-22 青岛海信宽带多媒体技术有限公司 Optical module
CN116155389A (en) * 2023-02-28 2023-05-23 光彩芯辰(浙江)科技有限公司 Optical module debugging system and method

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069822A1 (en) * 2004-09-30 2006-03-30 Mitsubishi Denki Kabushiki Kaisha Optical communication module
CN102244540A (en) * 2010-05-11 2011-11-16 华为技术有限公司 Optical module and method for protecting optical layer
CN103677671A (en) * 2013-12-12 2014-03-26 青岛海信宽带多媒体技术有限公司 Data reading-writing method and system of electrical port module
CN105790830A (en) * 2014-12-26 2016-07-20 华为技术有限公司 Optical module in-situ detection method and device
CN106936495A (en) * 2017-03-23 2017-07-07 厦门优迅高速芯片有限公司 The automatic testing equipment and method of a kind of smooth transceiving chip
CN107168889A (en) * 2017-06-09 2017-09-15 山东超越数控电子有限公司 A kind of method that Flash stores KVM channel informations inside utilization MCU
CN109412013A (en) * 2018-11-09 2019-03-01 武汉联特科技有限公司 A kind of tunable wave length optical module, remote wavelength switching method and locking means
CN110008162A (en) * 2019-03-26 2019-07-12 西安微电子技术研究所 A kind of buffer interface circuit and the methods and applications based on the circuit transmission data
CN112187368A (en) * 2020-11-27 2021-01-05 武汉联特科技股份有限公司 QSFP 28-packaged 10-channel MLG optical module
CN112463649A (en) * 2020-11-23 2021-03-09 浙江地芯引力科技有限公司 Instruction selection circuit and program operation method
CN112925067A (en) * 2019-12-06 2021-06-08 青岛海信宽带多媒体技术有限公司 Optical module and power supply method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069822A1 (en) * 2004-09-30 2006-03-30 Mitsubishi Denki Kabushiki Kaisha Optical communication module
CN102244540A (en) * 2010-05-11 2011-11-16 华为技术有限公司 Optical module and method for protecting optical layer
CN103677671A (en) * 2013-12-12 2014-03-26 青岛海信宽带多媒体技术有限公司 Data reading-writing method and system of electrical port module
CN105790830A (en) * 2014-12-26 2016-07-20 华为技术有限公司 Optical module in-situ detection method and device
CN106936495A (en) * 2017-03-23 2017-07-07 厦门优迅高速芯片有限公司 The automatic testing equipment and method of a kind of smooth transceiving chip
CN107168889A (en) * 2017-06-09 2017-09-15 山东超越数控电子有限公司 A kind of method that Flash stores KVM channel informations inside utilization MCU
CN109412013A (en) * 2018-11-09 2019-03-01 武汉联特科技有限公司 A kind of tunable wave length optical module, remote wavelength switching method and locking means
CN110008162A (en) * 2019-03-26 2019-07-12 西安微电子技术研究所 A kind of buffer interface circuit and the methods and applications based on the circuit transmission data
CN112925067A (en) * 2019-12-06 2021-06-08 青岛海信宽带多媒体技术有限公司 Optical module and power supply method thereof
CN112463649A (en) * 2020-11-23 2021-03-09 浙江地芯引力科技有限公司 Instruction selection circuit and program operation method
CN112187368A (en) * 2020-11-27 2021-01-05 武汉联特科技股份有限公司 QSFP 28-packaged 10-channel MLG optical module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389691A (en) * 2022-01-24 2022-04-22 青岛海信宽带多媒体技术有限公司 Optical module
CN114389691B (en) * 2022-01-24 2024-02-27 青岛海信宽带多媒体技术有限公司 Optical module
CN116155389A (en) * 2023-02-28 2023-05-23 光彩芯辰(浙江)科技有限公司 Optical module debugging system and method
CN116155389B (en) * 2023-02-28 2023-10-27 光彩芯辰(浙江)科技有限公司 Optical module debugging system and method

Also Published As

Publication number Publication date
CN113452446B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
US8121139B2 (en) Communication module and communication apparatus
CN212647081U (en) Optical module
CN113660035B (en) Optical module and calibration unit definition method
CN111555810B (en) Optical module and data transmission method
CN113452446B (en) Optical module and channel switching method
CN215186763U (en) Optical module
CN213659029U (en) Optical module
CN113179131A (en) Optical module
CN112838896A (en) an optical module
CN112505855A (en) Optical module
CN113325526A (en) Optical module
CN113640922B (en) Optical module
CN213780448U (en) Optical module
CN113009649A (en) Optical module
CN114624826B (en) Optical module
CN214177318U (en) Optical module
CN113472449B (en) Optical module and signal polarity definition method
CN212647089U (en) Optical module
CN111277333B (en) Optical module
WO2023016125A1 (en) Optical module and signal calibration method
CN114371535A (en) Optical module
CN216290918U (en) Optical module
CN212649471U (en) Optical module
CN113630186B (en) Optical module and communication method
CN114915345B (en) Optical module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant