CN218998072U - Optical module code writing board - Google Patents

Optical module code writing board Download PDF

Info

Publication number
CN218998072U
CN218998072U CN202223612553.1U CN202223612553U CN218998072U CN 218998072 U CN218998072 U CN 218998072U CN 202223612553 U CN202223612553 U CN 202223612553U CN 218998072 U CN218998072 U CN 218998072U
Authority
CN
China
Prior art keywords
circuit
power supply
optical module
main control
resistor
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.)
Active
Application number
CN202223612553.1U
Other languages
Chinese (zh)
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.)
Wuhan Yuxuan Feifei Communication Technology Co ltd
Original Assignee
Shenzhen Rapid Innovation 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 Shenzhen Rapid Innovation Technology Co ltd filed Critical Shenzhen Rapid Innovation Technology Co ltd
Priority to CN202223612553.1U priority Critical patent/CN218998072U/en
Application granted granted Critical
Publication of CN218998072U publication Critical patent/CN218998072U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The utility model provides an optical module code writing board, which comprises a circuit board, a main control circuit, a Bluetooth circuit, a power supply circuit, a USB interface, a lithium battery and a plurality of optical module interfaces which are arranged on the circuit board and are used for being inserted into optical modules of different types, so that the insertion and code writing of the optical modules of different types are supported, the code writing compatibility between the optical module code writing board and the optical modules is improved, the code writing board with a plurality of different code writing protocols is not required, the design cost is reduced, meanwhile, the Bluetooth circuit is arranged, the optical module code writing board can perform wired communication code reading and writing with an upper computer through the USB interface, or perform wireless communication code reading and writing between the Bluetooth circuit and terminal equipment, the code writing compatibility between the optical module code writing board and the terminal equipment is improved, and the code writing convenience and the diversity are improved.

Description

Optical module code writing board
Technical Field
The utility model belongs to the technical field of code writing, and particularly relates to an optical module code writing board.
Background
The optical module code writing board is equipment for writing codes of optical modules in the optical communication industry and modifying the configuration of the optical modules, and the code writing method is that the optical modules are inserted into the optical module code writing board, and corresponding code files are downloaded to the optical modules through a cloud to realize code writing.
Because the optical fiber communication cost is low, the rate is high, the communication capacity is large, the transmission attenuation is reduced, the advantages of ultra-long distance information transmission and the like can be realized, products related to the optical communication industry such as an optical module switch and the like are increasingly and widely popularized at present, particularly, with the continuous development of 5G communication technology, the types of optical modules are more and more, protocols supported by different types of optical modules are different, the code writing boards with different types are required, a plurality of inconveniences in use and maintenance are caused, the compatibility is poor, and the design cost is increased.
In the optical communication industry, the optical module is usually used for writing codes in places such as a data center, and the upper computer PC and the optical module code writing board are connected by wires for writing codes, but the conventional code writing mode is limited due to the fact that the upper computer PC cannot be connected with the public network due to some special restrictions and the like.
Disclosure of Invention
The utility model aims to provide an optical module code writing board, which aims to solve the problem of low compatibility of a code writing mode of a traditional optical module code writing board.
The first aspect of the embodiment of the utility model provides an optical module code writing board configured to write code file data into an optical module, wherein the optical module code writing board comprises a circuit board, a main control circuit, a Bluetooth circuit, a power circuit, a USB interface, a lithium battery and a plurality of optical module interfaces configured to be inserted into different types of optical modules, wherein the main control circuit, the Bluetooth circuit, the power circuit, the USB interface and the lithium battery are arranged on the circuit board;
The main control circuit is respectively connected with the Bluetooth circuit, the power supply circuit, the USB interface and a plurality of optical module interfaces, the USB interface is respectively connected with the power supply circuit and the main control circuit, and the power supply circuit is also respectively connected with the Bluetooth circuit, the lithium battery and a plurality of optical module interfaces;
the USB interface is configured to be connected with the upper computer and used for transmitting code file data and power signals;
the Bluetooth circuit is configured to be connected with the terminal equipment through Bluetooth and transmits code file data;
the power supply circuit is configured to convert the power supply signal into a plurality of working power supplies and charging power supplies and output the working power supplies and the charging power supplies to the main control circuit, the Bluetooth circuit, the plurality of optical module interfaces and the lithium battery respectively, or trigger to convert electric energy of the lithium battery into a plurality of working power supplies and output the working power supplies to the main control circuit, the Bluetooth circuit and the plurality of optical module interfaces respectively when the power supply signal is not generated;
the main control circuit is configured to perform code reading and writing operation with the matched optical module through the optical module interface of the corresponding type and perform data transmission work through the USB interface or the Bluetooth circuit code file.
Optionally, the plurality of optical module interfaces at least includes at least two or more of an SFP optical module interface, an XFP optical module interface, a QSFP optical module interface, and a QSFP-DD optical module interface.
Optionally, the power supply circuit includes:
the USB power supply protection circuit is connected with the USB interface and the main control circuit, is configured to transmit the power supply signal, triggers to turn off when the power supply signal is overloaded, and feeds back the power supply input state information of the USB interface to the main control circuit;
the battery charging circuit is connected with the USB power supply protection circuit and the lithium battery, and is configured to convert the power supply signal into a charging power supply and output the charging power supply to the lithium battery for charging and energy storage;
the battery discharging circuit is connected with the lithium battery and is configured to convert the electric energy of the lithium battery into a working power supply and output the working power supply;
the switching-on/off circuit is connected with the battery discharging circuit and is configured to trigger on/off according to a switching-on/off signal;
the power supply switching circuit is connected with the USB power supply protection circuit and the switching circuit and is configured to switch to a first switching state and switch to output the power supply signal when receiving the power supply signal, and switch to a second switching state and switch to output the working power supply output by the switching circuit when not receiving the power supply signal;
The module power supply circuit is connected with the power supply switching circuit and is configured to convert an input power supply into working power supplies of the main control circuit and the Bluetooth circuit;
the optical module interface power supply circuit is connected with the power supply switching circuit and the main control circuit, is configured to be triggered to be switched on and off by a power supply signal output by the main control circuit, and converts an input power supply into a working power supply of each optical module interface when the optical module interface power supply circuit is switched on.
Optionally, the module power supply circuit includes:
the power supply input end of the voltage stabilizing circuit is connected with the power supply output end of the power supply switching circuit, the power supply output end of the voltage stabilizing circuit is connected with the power supply end of the main control circuit, and the voltage stabilizing circuit is configured to convert an input power supply into working power supplies of the main control circuit and the Bluetooth circuit;
the power supply input end of the switching circuit is connected with the power supply output end of the voltage stabilizing circuit, the power supply output end of the switching circuit is connected with the power supply end of the Bluetooth circuit, the control end of the switching circuit is connected with the signal end of the main control circuit, and the switching circuit is triggered to be turned on and off by a switching signal output by the main control circuit.
Optionally, each optical module interface includes an insertion state output pin, and the insertion state output pins of each optical module interface are respectively connected with the main control circuit;
the insertion state output pin is configured to detect the insertion state of the corresponding optical module and output a state detection signal to the main control circuit, so that the main control circuit triggers the power supply circuit of the interface of the optical module to turn off when receiving a plurality of state detection signals representing the insertion of the optical module.
Optionally, the power supply circuit further includes:
and the electric quantity monitoring circuit is respectively connected with the main control circuit and the lithium battery, and is configured to sample the electric quantity of the lithium battery and feed back an electric quantity sampling signal to the main control circuit.
Optionally, the on-off circuit comprises an on-off key, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first diode, a first capacitor, a first electronic switching tube and a second electronic switching tube;
the first end of the first resistor and the anode of the first diode are respectively connected with the signal end of the main control circuit, the second end of the first resistor, the first end of the second resistor and the control end of the first electronic switching tube are commonly connected, the first end of the second resistor, the second end of the first electronic switching tube, the first end of the switch button and the first end of the first capacitor are commonly grounded, the cathode of the first diode, the second end of the switch button, the second end of the first capacitor and the first end of the third resistor are commonly connected, the first end of the first electronic switching tube and the first end of the fourth resistor are connected, the second end of the fourth resistor, the first end of the fifth resistor and the control end of the second electronic switching tube are commonly connected, the first end of the fifth resistor and the first end of the second electronic switching tube are commonly connected to form the first switch circuit power supply end of the switch circuit, and the first end of the switch circuit of the second electronic switching tube is connected to form the output end of the power supply.
Optionally, the power supply switching circuit includes a sixth resistor, a second diode and a third electronic switching tube;
the first end of the sixth resistor, the second diode, the control end of the third electronic switching tube and the power output end of the USB power supply protection circuit are connected together, the second end of the sixth resistor is grounded, the first end of the third electronic switching tube is connected with the power output end of the switching circuit, and the cathode of the second diode and the second end of the third electronic switching tube are connected together to form the power output end of the power supply switching circuit.
Optionally, the optical module code writing board further includes:
the indication lamp circuits are respectively connected with the main control circuit and the power supply circuit, and are configured to send out different indication lamp information according to indication control signals so as to indicate the working state of the optical module code writing board.
Optionally, the indicator light circuit includes a first indicator light, a second indicator light, and a seventh resistor;
the first end of the first indicator light and the first end of the second indicator light are respectively connected with the signal end of the main control circuit, the second end of the first indicator light, the second end of the second indicator light and the first end of the seventh resistor are connected together, and the second end of the seventh resistor is connected with a power end corresponding to the power circuit.
Compared with the prior art, the embodiment of the utility model has the beneficial effects that: the optical module code writing board comprises a circuit board and a main control circuit, a Bluetooth circuit, a power supply circuit, a USB interface, a lithium battery and a plurality of optical module interfaces which are configured to be inserted into optical modules of different types, so that the code writing compatibility between the optical module code writing board and the optical module is improved, the code writing board with a plurality of different code writing protocols is not required, the design cost is reduced, and meanwhile, the Bluetooth circuit is arranged, the optical module code writing board can perform wired communication code reading and writing with an upper computer through the USB interface or perform wireless communication code reading and writing between the Bluetooth circuit and terminal equipment, the code writing compatibility between the optical module code writing board and the terminal equipment is improved, and the code writing convenience and the code writing diversity are improved.
Drawings
Fig. 1 is a schematic diagram of a first structure of an optical module code writing board according to an embodiment of the present utility model;
fig. 2 is a schematic diagram of a second structure of an optical module code writing board according to an embodiment of the present utility model;
fig. 3 is a schematic circuit diagram of a QSFP optical module interface in the optical module code writing board shown in fig. 2;
FIG. 4 is a schematic circuit diagram of a QSFP-DD optical module interface in the optical module code-writing board shown in FIG. 2;
fig. 5 is a circuit schematic diagram of an SFP optical module interface in the optical module code writing board shown in fig. 2;
FIG. 6 is a schematic circuit diagram of an XFP optical module interface in the optical module code writing board shown in FIG. 2;
fig. 7 is a schematic diagram of a third structure of an optical module code writing board according to an embodiment of the present utility model;
FIG. 8 is a schematic circuit diagram of a USB power protection circuit in the optical module code writing board shown in FIG. 7;
FIG. 9 is a schematic circuit diagram of a battery charging circuit in the optical module code writing board shown in FIG. 7;
FIG. 10 is a schematic circuit diagram of a battery discharging circuit in the optical module code writing board shown in FIG. 7;
FIG. 11 is a schematic circuit diagram of an on/off circuit in the optical module code writing board shown in FIG. 7;
FIG. 12 is a schematic circuit diagram of a power switching circuit in the optical module code writing board shown in FIG. 7;
FIG. 13 is a schematic circuit diagram of an optical module interface power circuit in the optical module code board shown in FIG. 7;
FIG. 14 is a schematic diagram of a module power circuit in the optical module code writing board shown in FIG. 7;
fig. 15 is a schematic diagram of a fourth structure of an optical module code writing board according to an embodiment of the present utility model;
FIG. 16 is a schematic diagram of the electrical quantity monitoring circuit in the optical module code writing board shown in FIG. 15;
Fig. 17 is a schematic diagram of a fifth structure of an optical module code writing board according to an embodiment of the present utility model;
fig. 18 is a circuit schematic of the indicator light circuit in the light module code board shown in fig. 17.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the utility model is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the utility model.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present utility model, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
A first aspect of the embodiment of the present utility model proposes an optical module code writing board configured to write code file data into an optical module, where the optical module code writing board includes a circuit board, a main control circuit 60, a bluetooth circuit 50, a power circuit 30, a USB interface 10, a lithium battery 20, and a plurality of optical module interfaces 40 configured to plug in different types of optical modules;
the main control circuit 60 is respectively connected with the Bluetooth circuit 50, the power supply circuit 30, the USB interface 10 and the plurality of optical module interfaces 40, the USB interface 10 is respectively connected with the power supply circuit 30 and the main control circuit 60, and the power supply circuit 30 is also respectively connected with the Bluetooth circuit 50, the lithium battery 20 and the plurality of optical module interfaces 40;
the USB interface 10 is configured to be connected with an upper computer and used for transmitting code file data and power signals;
a bluetooth circuit 50 configured to bluetooth connect to the terminal device and transmit code file data;
the power supply circuit 30 is configured to convert a power supply signal into a plurality of working power supplies and charging power supplies and output the working power supplies and the charging power supplies to the main control circuit 60, the bluetooth circuit 50, the plurality of optical module interfaces 40 and the lithium battery 20 respectively, or trigger to convert electric energy of the lithium battery 20 into a plurality of working power supplies and output the working power supplies to the main control circuit 60, the bluetooth circuit 50 and the plurality of optical module interfaces 40 when no power supply signal is generated;
The main control circuit 60 is configured to perform code reading and writing operations with the matched optical module through the optical module interface 40 of the corresponding type, and perform code file data transmission work through the USB interface 10 or the bluetooth circuit 50.
In this embodiment, the main control circuit 60, the bluetooth circuit 50, the power supply circuit 30, the USB interface 10, the lithium battery 20 and the optical module interfaces 40 configured to be plugged into different types of optical modules are integrally disposed on the circuit board, so that the structure of the optical module code writing board is simplified, the main control circuit 60 is connected with the optical module interfaces 40 through multiple communication ports, wherein the communication protocol and the communication mode between the main control circuit 60 and the optical module interfaces 40 can be correspondingly set according to requirements, in an alternative embodiment, the main control circuit 60 comprises a main control chip, the main control chip is connected with the optical module interfaces 40 through multiple I2C communication pins, the main control chip detects the insertion states of the optical modules through the optical module interfaces 40 and switches to the corresponding IC2 communication pins and the optical module interfaces 40, so as to realize on-line code reading and writing operations on at least one type of optical modules, and improve the code writing diversity between the main control chip and the optical modules.
The USB interface 10 is connected to the power supply circuit 30 and the main control chip of the main control circuit 60, and transmits a power signal and code file data, and the power supply circuit 30 performs power conversion and power supply switching operations, so as to output a working power supply required by each module.
When the power conversion circuit is performed, the power circuit 30 performs charge-discharge conversion on the lithium battery 20 through the internal charge-discharge circuit to realize charge-discharge management on the lithium battery 20, and simultaneously performs active-standby switching on the power signal output by the lithium battery 20 or the USB interface 10, and converts the power output by the switching into the power required by each module.
When the optical module code writing board is connected to the USB interface 10 and a power signal is input, the power signal input by the USB interface 10 is used as a main power supply, the lithium battery 20 is used as a standby power supply, and the power circuit 30 converts and outputs the power signal output by the USB interface 10 to each module and charges the lithium battery 20.
Meanwhile, when the USB interface 10 is not connected, the lithium battery 20 starts to supply power, and outputs a corresponding operating power through a switching circuit, a power conversion circuit, and the like inside the power circuit 30.
Meanwhile, the USB interface 10 is further connected to the main control circuit 60, and on one hand, the code file data is transmitted, and on the other hand, the input state of the USB interface 10 is fed back.
When the main control circuit 60 detects that the USB interface 10 is connected to the upper computer and a power signal exists, it indicates that the upper computer is connected to the optical module code writing board through the USB interface 10 before the time, and meets the wired communication code reading and writing conditions, at this time, the main control circuit 60 controls the power circuit 30 to turn off the input power of the bluetooth circuit 50 through the enable end, or directly controls the bluetooth circuit 50 to stop working through the enable end.
Meanwhile, when the main control circuit 60 detects that the USB interface 10 is not connected to the host computer, it indicates that the condition of reading and writing codes in wired communication is not satisfied currently, at this time, the main control circuit 60 turns on the input power of the bluetooth circuit 50 through the enabling end control power circuit 30, or directly keeps working state through the enabling end control bluetooth circuit 50, at this time, the terminal device can perform bluetooth connection with the bluetooth circuit 50 through the bluetooth pairing mode, the main control circuit 60 performs wireless bluetooth communication between the bluetooth circuit 50 and the terminal device and transmits code file data, and the terminal device can be a device with bluetooth device such as a notebook, a mobile phone, etc. The terminal equipment can control the code writing operation and the real-time diagnosis information monitoring through the corresponding APP, so that the mobile office operation is convenient, the problem that the conventional code writing mode in part of places is limited is solved, and the convenience and the diversity of the optical module code writing board are improved.
The number and types of the optical module interfaces 40 may be correspondingly set according to the writing code protocol and interfaces of the current market, and optionally, the plurality of optical module interfaces 40 at least include at least two or more of an SFP optical module interface 41, an XFP optical module interface 42, a QSFP optical module interface 43 and a QSFP-DD optical module interface 44.
As shown in the QSFP optical module interface 43 in fig. 3, the power pins of the QSFP optical module interface 43 have VCC1, VCC TX, VCC RX, and 12 GND; the control pins have MODsel, reset, LPMOD, INT, MODPrs, SCL, SDA. The other pins are used as expansion interfaces, and can be used additionally according to requirements.
The power circuit 30 provides voltage V-module power for the QSFP optical module interface 43, and the main control circuit 60 monitors, controls and reads and writes the status of each function of the QSFP optical module through the QSFP optical module interface 43.
Wherein the VCC1 pin is the main loop power supply input pin of the QSFP optical module interface 43. The VCC TX pin is a transmitter power supply pin, the VCC RX is a receiver power supply pin, and the main loop power supply, the transmitter power supply and the power supply of the control pin in the QSFP optical module interface 43 are respectively decoupled and filtered by connecting a capacitor in parallel. The receiver power supply is filtered in an RC parallel mode.
The GND pins are all voltage reference potentials of the QSFP optical module interface 43, and 12 GND pins are connected to the signal common ground of the optical module write plate.
The MODSel pin is the select signal input pin of QSFP optical module interface 43, active low. When the main control chip input signal sel_q is low, the QSFP optical module interface 43 is selected to respond to the I2C interface signal from the main control chip; while the main control chip input signal sel_q remains high, the QSFP optical module interface 43 does not respond to commands from the main control chip.
The Reset pin is the Reset signal input pin of the QSFP optical module interface 43, active low. After the RESET signal reset_q is input to the main control chip, the QSFP optical module interface 43 restores the setting of the main control chip to the QSFP optical module interface 43 to a default state.
The LPMOD pin is a power consumption mode selection signal input pin of the QSFP optical module interface 43, and when the input signal LPMOD_Q of the main control chip is high, the QSFP optical module interface 43 is in a low power consumption mode; when the input signal lpmod_q is low, the QSFP optical module interface 43 is in a high power mode.
The INT pin is an interrupt signal output pin, and when the QSFP optical module interface 43 fails, the QSFP optical module interface 43 actively sets the pin to be at a low level; the main control chip monitors whether the QSFP optical module interface 43 fails by detecting the level state of the pin.
The MODPrs pin is an insertion state output pin of the QSFP optical module interface 43, and is connected to the power supply VDDM of the main control chip through a current limiting resistor. When no QSFP optical module is inserted, the pin signal DM_Q is at a high level; when a QSFPQSFP optical module is inserted, the pin signal dm_q is pulled low by the internal circuitry of the QSFP optical module interface 43. The main control chip monitors whether the QSFP optical module is in place or not by detecting the high and low levels of the bit. When a QSFP optical module is inserted, the MCU can detect the insertion state of the QSFP optical module at the first time and switch the I2C communication channel to the I2C channel corresponding to the interface, so that the real-time monitoring of the read-write code operation and the read diagnosis information of the QSFP optical module is realized.
The SCL pin is a clock signal input interface of the I2C communication interface, and when the SCL pin is inserted into the QSF optical module to perform I2C communication, the clock signal is output by a pin corresponding to the main control chip.
The SDA pin is a data transmission pin of the I2C communication interface and is a bidirectional pin.
J12 and J8 are respectively a power supply test point of the QSFP optical module interface 43 and an I2C channel test point of the QSFP optical module interface 43, and J12 is convenient for debugging and monitoring the power supply condition of the QSFP optical module interface 43; j8, the I2C communication is monitored conveniently through debugging, and the time sequence problem is analyzed.
As shown in fig. 4, the QSFP-DD optical module interface 44 is provided by the power circuit 30, through which the QSFP-DD optical module is supplied with stable power, and through which the main control chip monitors and controls the status of each function of the QSFP-DD optical module. The QSFP-DD optical module interface 44 has power pins Vcc1, vcc2, vccTx1, vccRx1 and 24 GNDs; the control pins have ModSelL, resetL, modPreL, intL, LPMode, SCL, SDA. The other pins are used as expansion interfaces, and can be used additionally according to requirements.
The Vcc1 and Vcc2 pins are the main loop power supply input pins of the QSFP-DD optical module interface 44. The VccTx and VccTx1 pins supply the transmitter with power pins. Vcc Rx and Vcc Rx1 power pins for the receiver. All power supplies are used simultaneously. The internal main loop power supply, transmitter power supply and receiver power supply of the QSFP-DD optical module interface 44 are decoupled filtered by an inductance and two capacitances, respectively. The power supply of the control pin is filtered by the parallel connection of two capacitors C68 and C69.
The GND pin is all voltage reference potentials of the QSFP-DD optical module interface 44 and is connected to the signal common ground of the optical module write plate.
The ModSelL pin is the select signal input pin of the current QSFP-DD optical module interface 44, active low. The QSFP-DD optical module interface 44 is selected to respond to the I2C interface signal from the master chip while the master chip input signal SEL_D remains low; the QSFP-DD optical module interface 44 does not respond to commands from the master chip while the master chip input signal SEL_D remains high.
The ResetL pin is the reset signal input pin of the QSFP-DD optical module interface 44, active low. After the RESET signal reset_d is input to the main control chip, the QSFP-DD optical module interface 44 restores the setting of the main control chip to the QSFP-DD optical module interface 44 to a default state.
The LPMode pin is a power consumption mode selection signal input pin of the QSFP-DD optical module interface 44, and when the master control chip input signal LPMOD_D is high, the QSFP-DD optical module interface 44 is in a low power consumption mode; when the input signal LPMOD_D is low, the QSFP-DD optical module interface 44 is in a high power consumption mode.
The IntL pin is an interrupt signal output pin, and when the QSFP-DD optical module interface 44 fails, the QSFP-DD optical module interface 44 actively sets the pin to be at a low level; the main control chip monitors whether the QSFP-DD optical module interface 44 fails by detecting the level of the pin.
The ModPreL pin is a state output pin inserted into the QSFP-DD optical module interface 44: the pin is connected to a power supply VDDM of the main control chip through a current-limiting resistor. When no QSFP-DD optical module is inserted, the pin signal DM_D is at a high level; when a QSFP-DD optical module is inserted, the pin signal DM_D is pulled low by the internal circuitry of the QSFP-DD optical module interface 44. The host chip monitors whether the QSFP-DD optical module interface 44 is in place by detecting the high and low levels of the bit. When a QSFP-DD optical module is inserted, the main control chip can detect the insertion state of the QSFP-DD optical module interface 44 at the first time, and switch the I2C channel to the corresponding I2C channel so as to realize the code reading and writing operation of the QSFP-DD optical module.
The SCL pin is a clock signal input interface of the I2C communication interface. When the QSFP-DD optical module is inserted to perform I2C communication, the clock signal is output by a pin corresponding to the main control chip.
The SDA pin is a data transmission pin of the I2C communication interface and is a bidirectional pin.
J10 is an I2C channel test point of the QSFP-DD optical module interface 44, and J10 is convenient for monitoring I2C communication in debugging and analyzing time sequence problems.
As shown in fig. 5, the SFP optical module interface 41 is provided by the power circuit 30 to provide stable power for the SFP optical module through the interface, and meanwhile, the main control chip monitors and controls the state of each function of the SFP optical module through the interface. The power supply pins of the SFP optical module interface 41 are VCCT, VCC and 6 GNDs; the control pins are TX_FAULT, TX_DISABLE, mod_ABS, RS0, RS1 and RX_ LOS, SCL, SDA. The other pins are used as expansion interfaces, and can be used additionally according to requirements.
The VCCT pin is a transmitter power supply pin, the VCCR is a receiver power supply pin, the transmitter power supply adopts capacitive filtering processing, and the receiver power supply adopts RC parallel connection mode for filtering.
The tx_fault pin is a transmitter FAULT state signal output pin, and when the transmitter of the SFP optical module interface 41 fails, the pin is output to be high level, and the main control chip monitors whether the module transmitter is abnormal by detecting the state of the pin.
The TX_DISABLE pin is a module transmitter DISABLE signal input pin, and the main control chip controls the transmitter to be disabled and enabled by setting the high and low levels of the pin. When the TX DISABLE pin input is high, the transmitter function of the SFP optical module interface 41 is disabled; when the TX DISABLE pin input is low, the transmitter function is enabled normally.
The Mod_ABS pin is an inserted state output pin of the SFP optical module, and the pin is connected to a power supply VDDM of the main control chip through a current limiting resistor. When no SFP module is inserted, the pin signal DM_S is at a high level; when an SFP optical module is inserted, the pin signal DM_D is pulled to a low level by an internal circuit. The main control chip monitors whether the SFP optical module is in place or not by detecting the high and low levels of the pin. When the SFP module is inserted, the main control chip can detect the insertion state of the SFP optical module at the first time, and switch the I2C channel to the corresponding I2C channel, so that the real-time monitoring of the reading and writing code operation and the reading and diagnosis information of the SFP optical module is realized.
The pins RS0 and RS1 are the rate selection signal input pins of the SFP optical module interface 41, and the master control chip switches the transmission rate of the SFP optical module by controlling the high-low level combination mode of the RS0 and RS 1.
The rx_los pin is a receiver receiving state abnormal output pin through which the SFP optical module interface 41 outputs a high level signal to the main control chip when the transmitter is disabled or the received signal strength is lower than a set standard. The main control chip monitors whether the state of the module receiver is abnormal or not by monitoring the level state of the pin.
The SCL pin is a clock signal input interface of the I2C communication interface. When the SFP optical module is inserted to carry out I2C communication, the clock signal is output by a pin corresponding to the main control chip.
The SDA pin is a data transmission pin of the I2C communication interface and is a bidirectional pin.
J3 is a module I2C channel test point, J3 is convenient for monitoring I2C communication in debugging, and analyzing time sequence problems.
As shown in fig. 6, the XFP optical module interface 42 is through which the power circuit 30 provides stable power to the XFP optical module, and through which the master control chip monitors and controls the status of each function of the XFP optical module. The power supply pin of the XFP optical module interface 42 has 2 VCC3 and 9 GND; the control pins are MOD_ DeSel, INTERRUPT, TX _DIS, MOD_ABS, MOD_NR, RX_LOS, and P_DOWN/RST, SCL, SDA. The other pins are used as expansion interfaces, and can be used additionally according to requirements.
The VCC3 pin is a power supply pin of the XFP optical module interface 42, and each power supply is filtered by a capacitor.
The GND pin is all voltage reference potentials of the XFP optical module interface 42 and is connected to the signal common ground of the optical module write board.
The mod_desel pin is the select signal input pin of the current XFP optical module interface 42, active low. When the master chip input signal sel_x remains low, the XFP optical module interface 42 is selected to respond to the I2C interface signal from the master chip; the XFP optical module interface 42 does not respond to commands from the master chip while the master chip input signal sel_x remains high. The MOD_DeSel pin is externally connected with a pull-up resistor to VCC3, namely a module power supply V_module.
The INTERRUPT pin is an INTERRUPT signal output pin, and when the XFP optical module interface 42 fails or has other priority, the XFP optical module interface 42 actively sets the pin to a low level; the main control chip monitors whether the module has system faults or not by detecting the level of the pin.
The tx_dis pin is a transmitter disable signal input pin of the XFP optical module interface 42, and the main control chip may control the transmitter to be disabled and enabled by setting the pin high and low. When the tx_dis pin input is high, the module transmitter function is disabled; when the tx_dis pin input is low, XFP optical module interface 42 transmitter functions normally on. The tx_dis pin is externally connected to a pull-up resistor to the module power v_module.
The Mod_ABS pin is an inserted state output pin of the XFP optical module: the pin is connected to the power supply VDDM of the main control chip through a current-limiting resistor. When no XFP optical module is inserted, the pin signal DM_X is at a high level; when an XFP optical module is inserted, the pin signal DM_X is pulled to a low level by the internal circuit of the module. The main control chip monitors whether the module is in place or not by detecting the high and low levels of the pin. When the XFP optical module is inserted, the main control chip can detect the insertion state of the module at the first time, and switch the I2C channel to the I2C channel corresponding to the interface, so that the read-write code operation and the read diagnosis information of the XFP optical module are monitored in real time.
The mod_nr pin is a data ready output pin of the XFP optical module interface 42, which outputs a low level when there is a failure in the module and data is not ready; the master control chip monitors the data of the XFP optical module interface 42 for readiness by detecting the level signal of the pin.
The rx_los pin is a receiver receiving state abnormal output pin, through which the XFP optical module interface 42 outputs a high level signal to the main control chip when the transmitter is disabled or the received signal strength is lower than a set standard. The main control chip monitors whether the state of the module receiver is abnormal or not by detecting the level state of the pin.
The P_DOWN/RST pin is a power-off and reset multifunctional input pin of the XFP optical module interface 42, and the main control chip restores the setting of the XFP optical module interface 42 to a default state by inputting a low-level signal; when the input low level signal remains unchanged, a power-off operation of the XFP optical module interface 42 is achieved.
The SCL pin is a clock signal input interface of the I2C communication interface. When the XFP optical module is inserted to perform I2C communication, a clock signal is output by a pin corresponding to the main control chip.
The SDA pin is a data transmission pin of the I2C communication interface and is a bidirectional pin.
J6 is an I2C channel test point of the XFP optical module interface 42, and J6 is convenient for monitoring I2C communication in debugging and analyzing time sequence problems.
J5 is a power test point of the XFP optical module interface 42, v_module is a module power supply, and VRxccS is an SFP module receiver power supply. J5 facilitates monitoring of the power up of the XFP light module interface 42 during debug.
In order to avoid code writing data disorder, the optical module code writing board supports only one module code writing operation at the same time, wherein, in order to avoid code writing abnormality caused by multi-module insertion, optionally, each optical module interface 40 respectively comprises an insertion state output pin, such as ModPreL and Mod_ABS, and the insertion state output pins of each optical module interface 40 are respectively connected with the main control circuit 60;
The add-on state output pin is configured to detect a corresponding optical module add-on state and output a state detection signal to the master control circuit 60, so that the master control circuit 60 triggers the optical module interface power supply circuit 37 to turn off when receiving a plurality of state detection signals indicative of optical module add-on.
That is, when two or more different types of optical modules are detected to be inserted, the main control circuit 60 cuts off the power supply of all the optical module interfaces 40 until one type of optical module is inserted into the optical module code writing board.
Meanwhile, the optical module code writing board only supports the code writing operation of one module, the X_DIS pin of the XFP optical module is connected with the TX_DISABLE pin of the SFP module, and the pins of the main control chip are shared, so that IO occupation of the main control chip is reduced.
The four different types of optical modules all adopt an I2C communication mode with the rate of 400Kbps to communicate with a code writing board when writing codes, and USB_FS communication is adopted between a PC upper computer and the code writing board, wherein the rate can reach 12Mbps. Meanwhile, the Bluetooth communication mode is supported to carry out data interaction with the APP corresponding to the terminal equipment, and the maximum wireless transmission rate reaches 2Mbps. The code writing time of a single channel is determined according to the register sizes of different modules, and the code writing of the single channel can be completed in 1-5 seconds.
Compared with the prior art, the embodiment of the utility model has the beneficial effects that: the optical module code writing board comprises a circuit board and a main control circuit 60, a Bluetooth circuit 50, a power supply circuit 30, a USB interface 10, a lithium battery 20 and a plurality of optical module interfaces 40 which are configured to be inserted into optical modules of different types, so that the code writing compatibility between the optical module code writing board and the optical module is improved, the code writing board with a plurality of different code writing protocols is not required, the design cost is reduced, meanwhile, the Bluetooth circuit 50 is arranged, the optical module code writing board can perform wired communication code reading and writing with an upper computer through the USB interface 10, or wireless communication code reading and writing is performed between the Bluetooth circuit 50 and a terminal device, the code writing compatibility between the optical module code writing board and the terminal device is improved, and the code writing convenience and the diversity are improved.
The power supply circuit 30 may be provided with a corresponding switching circuit, a power conversion circuit, etc. according to the power supply requirement, and optionally, as shown in fig. 7, the power supply circuit 30 includes:
the USB power supply protection circuit 31 is connected with the USB interface 10 and the main control circuit 60, and is configured to transmit a power signal, trigger to turn off when the power signal is overloaded, and feed back power input state information of the USB interface 10 to the main control circuit 60;
The battery charging circuit 32 is connected with the USB power supply protection circuit 31 and the lithium battery 20, and is configured to convert a power supply signal into a charging power supply and output the charging power supply to the lithium battery 20 for charging and energy storage;
a battery discharging circuit 33 connected to the lithium battery 20 and configured to convert electric energy of the lithium battery 20 into a working power source and output the working power source;
the on-off circuit 34 is connected with the battery discharging circuit 33 and is configured to trigger on-off according to an on-off signal;
the power supply switching circuit 35 is connected to the USB power supply protection circuit 31 and the switching circuit 34, and is configured to switch to a first switching state and switch to output a power supply signal when receiving the power supply signal, and switch to a second switching state and switch to output a working power supply output by the switching circuit 34 when not receiving the power supply signal;
a module power supply circuit 36 connected to the power supply switching circuit 35 and configured to convert an input power supply into working power supplies of the main control circuit 60 and the bluetooth circuit 50;
the optical module interface power circuit 37 is connected to the power supply switching circuit 35 and the main control circuit 60, and is configured to trigger on-off by a power supply signal output from the main control circuit 60, and convert an input power into a working power of each optical module interface 40 when on.
In this embodiment, the power signal input by the USB interface 10 first passes through the USB power supply protection circuit 31, the USB power supply protection circuit 31 performs overload protection on the input power signal, when overload does not occur, the USB power supply protection circuit 31 normally outputs the power signal to the subsequent stage, including outputting to the battery charging circuit 32 and the power supply switching circuit 35, when overload occurs, the USB power supply protection circuit 31 triggers to turn off, and cuts off outputting the power signal to the subsequent stage, thereby preventing the overload abnormality of the optical module code writing board and improving the power supply reliability and safety.
The USB power supply protection circuit 31 may adopt a corresponding structure such as a switch circuit and a fuse, optionally, as shown in fig. 8, the fuse is disposed in the USB power supply protection circuit 31, the USB power supply protection circuit 31 is connected with the USB interface 10, the VBUS pin is configured to input an external power source through the USB interface 10, and meanwhile, the VBUS pin is connected with the PA9 pin of the main control chip, and the main control chip monitors whether the USB power is supplied by detecting the level of the VBUS.
VUSB is the power supply provided for the subsequent circuit after the external input power supply VBUS is protected by the fuse F1. The power supply overload caused by directly adopting external input is prevented, and the subsequent circuit of the code writing board is prevented from being damaged.
The USB_DM and the USB_DP are respectively a data negative signal and a data positive signal of the USB interface 10, are respectively connected with corresponding pins of the main control chip, and realize data communication between the main control chip and the upper computer through an asynchronous serial port.
J1 is an external input voltage test point, so that the condition of external input voltage can be conveniently detected.
The battery charging circuit 32 is configured to convert the power supply VUSB into a battery charging power, where the battery charging circuit 32 may employ a corresponding conversion circuit or conversion chip, and optionally, as shown in fig. 9, the battery charging circuit 32 employs a linear charging chip U3 for charging, where a BAT pin of the linear charging chip U3 is connected to the positive pole vbat+ of the lithium battery 20, for charging the lithium battery 20.
The CHRG pin is a charge state indication terminal, and when the lithium battery 20 is charged, the CHRG pin is pulled to a low level internally, indicating that charging is in progress; the remaining time the CHRG pin is in a high impedance state.
The STDBY pin is a charge completion indication terminal of the battery, and when the charging of the lithium battery 20 is completed, the STDBY pin is pulled to a low level internally, indicating that the charging is completed; the rest of the time is in the high resistance state.
The CHRG and STDBY pins are respectively connected to corresponding pins of the main control chip, and the main control chip monitors the charging state of the lithium battery 20 by detecting the level signal of the pins.
The battery discharging circuit 33 is configured to convert the electric energy of the lithium battery 20 into an operating power source to provide a stable output power source VBATOUT, and the battery discharging circuit 33 may adopt a corresponding step-up and step-down circuit, a voltage stabilizing circuit, and the like, and optionally, as shown in fig. 10, the battery discharging circuit 33 adopts a BUCK-BOOST type LDO voltage stabilizing chip to provide a stable power source signal VBATOUT for a later stage circuit.
The on-off circuit 34 is connected with the battery discharging circuit 33 and configured to trigger on-off according to an on-off signal to realize functions of one-key on-off and long-press off, wherein the on-off circuit 34 can adopt corresponding key switches, auxiliary circuits and other structures, as shown in fig. 11, optionally, the on-off circuit 34 comprises an on-off key SW1, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a first diode D1, a first capacitor C1, a first electronic switching tube Q1 and a first electronic switching tube Q2;
the first end of the first resistor R1 and the anode of the first diode D1 are respectively connected with the signal end of the main control circuit 60, the second end of the first resistor R1, the first end of the second resistor R2 and the control end of the first electronic switch tube Q1 are commonly connected, the first end of the second resistor R2, the second end of the first electronic switch tube Q1, the first end of the switch button SW1 and the first end of the first capacitor C1 are commonly grounded, the cathode of the first diode D1, the second end of the switch button SW1, the second end of the first capacitor C1 and the first end of the third resistor R3 are commonly connected, the first end of the first electronic switch tube Q1 and the first end of the fourth resistor R4 are commonly connected, the second end of the third resistor R3, the first end of the fifth resistor R5 and the control end of the first electronic switch tube Q2 are commonly connected, the first end of the fifth resistor R5 and the first end of the first electronic switch tube Q2 are commonly connected to form the power supply 34 of the first switch tube Q2.
In this embodiment, pow_test is one pin of the main control chip, and is connected to the anode of the first diode D1, and pow_con is the other pin of the main control chip, and is connected to the first end of the first resistor R1.
In the initial state, pow_test is high, and pow_con is low. When the lithium battery 20 supplies power: when the switch-off-free key SW1 is operated, the S pole and the D pole of the first electronic switch tube Q1 are disconnected, and no VOUT is output. When the on-off key SW1 is pressed, the G pole potential of the first electronic switching tube Q1 is pulled down, the S pole and the D pole are conducted, and VOUT has output; meanwhile, the 1 pin of the first diode D1 is pulled down, the first diode D1 is conducted, the main control chip detects that a key is pressed down through the POW_TEST, the main control chip sets the POW_CON to be high level to control the conduction of the D pole and the S pole of the first electronic switch tube Q1, after the key is released, the VOUT maintains an output state, and the function of one-key startup is realized.
When the writing code board is in the power-on state of the lithium battery 20, the pow_con is at a high level, when the on-off button SW1 is pressed, the pow_test detects that the button is pressed, when the button is pressed for a set time, the main control chip recognizes as a shutdown signal, the pow_con pin is set to be at a low level, and the output level signal controls the D pole and the S pole of the first electronic switching tube Q1 to be disconnected, so that the SW1 long-press shutdown function is realized.
The power supply switching circuit 35 is configured to switch between the USB power supply and the lithium battery 20, and when receiving the power signal output by the USB interface 10, switch to a first switching state and switch to output the power signal, and when not receiving the power signal of the USB interface 10, switch to a second switching state and switch to output the working power output by the power on/off circuit 34, where the power supply switching circuit 35 may adopt a corresponding structure such as a switch, and optionally, as shown in fig. 12, the power supply switching circuit 35 includes a sixth resistor R6, a second diode D2, and a third electronic switching tube Q3;
the first end of the sixth resistor R6, the second diode D2, the control end of the third electronic switching tube Q3 and the power output end of the USB power supply protection circuit 31 are commonly connected, the second end of the sixth resistor R6 is grounded, the first end of the third electronic switching tube Q3 is connected with the power output end of the switching circuit 34, and the cathode of the second diode D2 and the second end of the third electronic switching tube Q3 are commonly connected to form the power output end of the power supply switching circuit 35.
When USB supplies power, the G electrode potential of the third electronic switching tube Q3 is greater than the S electrode potential, the D electrode and the S electrode of the third electronic switching tube Q3 are disconnected, and the output power VSYS is provided by the USB power supply VUSB. When the USB power supply does not exist, the D pole and the S pole of the third electronic switching tube Q3 are conducted, when the on-off button SW1 is pressed to start up, VOUT has output, and VSYS is powered by the lithium battery 20. The automatic switching function of the USB power supply and the lithium battery 20 power supply is realized.
In order to ensure that the optical module code-writing board only supports the operation of reading and writing one optical module at the same time, the optical module interface power supply circuit 37 is further connected with the main control circuit 60, when one type of optical module is plugged into the optical module code-writing board, the main control circuit 60 outputs a power supply start signal to control the optical module interface power supply circuit 37 to be turned on and convert the input power supply into the working power supply of each optical module interface 40, and when a plurality of types of optical modules are plugged into the optical module code-writing board, the main control circuit 60 outputs a power supply turn-off signal to the optical module interface power supply circuit 37, and the optical module interface power supply circuit 37 cuts off the power supply for each optical module interface 40, so that the single operation of reading and writing codes of the optical module code-writing board and the optical module is ensured.
Optionally, as shown in fig. 13, the optical module interface power supply circuit 37 adopts an LDO voltage stabilizing chip U6, an eighth resistor R8, and a thirteenth resistor R13 to form an LDO voltage stabilizing circuit, and provides a corresponding power supply v_module for each optical module, where an enabling end of the LDO voltage stabilizing chip is connected to a corresponding pin of the main control chip, and switches working states according to the enabling signal. By using an LDO voltage regulation chip to power the optical module interface 40, power supply ripple is reduced.
The module power supply circuit 36 is configured to provide working power for the main control circuit 60 and the bluetooth circuit 50, wherein the module power supply circuit 36 may adopt a corresponding voltage stabilizing circuit, voltage reducing circuit, and the like. In an alternative embodiment, the main control circuit 60 controls the working state of the bluetooth circuit 50 by controlling the power input of the bluetooth circuit 50, and as shown in fig. 14, the module power supply circuit 36 includes:
the voltage stabilizing circuit 361, the power input end of the voltage stabilizing circuit 361 is connected with the power output end of the power supply switching circuit 35, the power output end of the voltage stabilizing circuit 361 is connected with the power end of the main control circuit 60, the voltage stabilizing circuit 361 is configured to convert the input power into the working power of the main control circuit 60 and the Bluetooth circuit 50;
the power input end of the switch circuit 362 is connected with the power output end of the voltage stabilizing circuit 361, the power output end of the switch circuit 362 is connected with the power end of the Bluetooth circuit 50, the control end of the switch circuit 362 is connected with the signal end of the main control circuit 60, and the switch circuit 362 is triggered by a switch signal output by the main control circuit 60.
In this embodiment, when the USB interface 10 is connected to the host computer and performs wired communication with the master control circuit 60 for reading and writing codes, the master control circuit 60 outputs a turn-off signal to the switch circuit 362 to cut off the working power of the bluetooth circuit 50, and the bluetooth circuit 50 stops working, and at this time, the optical module code writing board and the host computer maintain wired communication for reading and writing codes.
And when the USB interface 10 is not connected to the host computer, the main control circuit 60 outputs an on signal to the switch circuit 362, and connects the voltage stabilizing circuit 361 and the power circuit of the bluetooth circuit 50, the bluetooth circuit 50 works normally, and the terminal device can perform wireless bluetooth communication and code reading and writing operations with the main control circuit 60 through the bluetooth circuit 50.
The voltage regulator circuit 361 may adopt a corresponding voltage regulator, such as an LDO voltage regulator chip, a three-terminal voltage regulator, etc., and the switch circuit 362 may select a corresponding type of switch tube, and the specific structure is not limited.
In order to further ensure the power supply reliability of the lithium battery 20 without USB power supply, as shown in fig. 15, optionally, the power supply circuit 30 further includes:
the electric quantity monitoring circuit 38 is respectively connected with the main control circuit 60 and the lithium battery 20, and the electric quantity monitoring circuit 38 is configured to sample the electric quantity of the lithium battery 20 and feed back an electric quantity sampling signal to the main control circuit 60.
The main control circuit 60 obtains the electric quantity of the lithium battery 20 in real time through the electric quantity monitoring circuit 38, so as to achieve the purpose of monitoring the electric quantity information of the lithium battery 20, when the electric quantity of the battery is lower than the threshold electric quantity, the main control circuit 60 sends out a low electric quantity warning indication, and after the corresponding time length, the current read-write code data are stored, and the power is turned off.
Optionally, as shown in fig. 16, the electric quantity monitoring circuit 38 adopts a battery monitoring chip U7 to complete electric quantity monitoring, wherein the main control chip and the battery monitoring chip U7 monitor electric quantity information of the lithium battery 20 through an I2C communication mode.
The SCL pin is provided with a clock signal by the main control chip, the SDA pin corresponds to one pin of the main control chip, and the main control chip obtains the electric quantity information of the lithium battery 20 through I2C at regular time so as to achieve the purpose of monitoring the electric quantity information of the lithium battery 20. When the battery power is low, the corresponding indication module is controlled to send out a low power warning indication.
The ALRT pin is used for outputting alarm information, and the MCU monitors the alarm information through the pin.
In order to prompt the current working state of the optical module code writing board, including a power supply state, a code reading and writing state with the optical module, a connection state with an upper computer and a terminal device, and the like, as shown in fig. 17, optionally, the optical module code writing board further includes:
the plurality of indicator light circuits 70 are respectively connected with the main control circuit 60 and the power supply circuit 30, and the plurality of indicator light circuits 70 are configured to send different indicator light information according to the indicator control signals so as to indicate the working state of the optical module code writing board.
Wherein, a plurality of indicator lamps with different colors can be arranged in the indicator lamp circuit 70 or a variable indicator lamp is adopted, as shown in fig. 18, optionally, the indicator lamp circuit 70 comprises a first indicator lamp D11, a second indicator lamp D12 and a seventh sixth resistor R7;
the first end of the first indicator light D11 and the first end of the second indicator light D12 are respectively connected with the signal end of the main control circuit 60, the second end of the first indicator light D11, the second end of the second indicator light D12 and the first end of the seventh sixth resistor R7 are commonly connected, and the second end of the seventh sixth resistor R7 is connected with a power end corresponding to the power circuit 30.
The indicator light circuit 70 may be used to indicate the working state, the power state, and the connection state of the optical module code writing board and the terminal device.
For example, when the LED1 and the LED2 respectively input the bluetooth indication signals led_ble_w/led_ble_r, the bluetooth chip sets a high-low level combination of led_ble_w/led_ble_r according to the bluetooth connection state, and indicates the bluetooth connection state of the optical module code writing board and the APP of the terminal device through different state combinations of the two LED lamps, for example, the first indicator lamp D11 is normally on to indicate that bluetooth is not connected, the second indicator lamp D12 is normally on to indicate that bluetooth is connected, and the bluetooth lamp is off to indicate that the bluetooth circuit 50 is turned off.
And when the LED1 and the LED input the read-write code indication signals LED_Status_W/LED_Status_R, the main control chip sets the state of the LED_Status_W/LED_Status_R according to the working state of the optical module code writing board, the working state of the code writing board is indicated by the state of the state indication lamp D11/D12, for example, when an optical module is not inserted, the first indication lamp D11 is turned on and off in a breathing way, the first indication lamp D11 fast flashes to indicate that the code writing operation is performed, the first indication lamp D11 always lights to indicate that the optical module code writing is successful or the module reading is successful, and the second indication lamp D12 always lights to indicate that the code writing is failed or the optical module detection is failed.
And when the LED1 and the LED input Power indication signals LED_Power_W/LED_Power_R, the main control chip sets the state of the LED_Power_W/LED_Power_R according to the Power state of the optical module code writing board, and the Power state of the code writing board is indicated by the state of the state indication lamp D11/D12, for example, the first indication lamp D11 is always on to indicate that the Power supply or the lithium battery 20 is sufficient in Power supply electric quantity, the white first indication lamp D11 breathes to indicate that the USB Power supply electric quantity is lower than 90%, and the second indication lamp D12 is always on to indicate that the battery Power supply electric quantity is insufficient.
The main control circuit 60 performs dimming control on the indicator lamp circuit 70 in a PWM dimming mode, so that the number of status indicator lamps and the occupation of I/O of a main control chip are saved, and the status detection and indication of information of each module can be realized.
By adopting the optical module code writing board of the embodiment, firmware upgrading and code changing operation can be carried out on various types of optical modules in various occasions so as to adapt to equipment such as switches of various brands, the detection efficiency of the optical modules and the code reading and writing efficiency are improved, meanwhile, the code reading and writing operation of different manufacturers and different interface modules can be supported, and the operation of a user is convenient.
The above embodiments are only for illustrating the technical solution of the present utility model, and not for limiting the same; although the utility model has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present utility model, and are intended to be included in the scope of the present utility model.

Claims (10)

1. The optical module code writing board is configured to write code file data into an optical module and is characterized by comprising a circuit board, a main control circuit, a Bluetooth circuit, a power supply circuit, a USB interface, a lithium battery and a plurality of optical module interfaces, wherein the main control circuit, the Bluetooth circuit, the power supply circuit, the USB interface and the lithium battery are arranged on the circuit board;
The main control circuit is respectively connected with the Bluetooth circuit, the power supply circuit, the USB interface and a plurality of optical module interfaces, the USB interface is respectively connected with the power supply circuit and the main control circuit, and the power supply circuit is also respectively connected with the Bluetooth circuit, the lithium battery and a plurality of optical module interfaces;
the USB interface is configured to be connected with the upper computer and used for transmitting code file data and power signals;
the Bluetooth circuit is configured to be connected with the terminal equipment through Bluetooth and transmits code file data;
the power supply circuit is configured to convert the power supply signal into a plurality of working power supplies and charging power supplies and output the working power supplies and the charging power supplies to the main control circuit, the Bluetooth circuit, the plurality of optical module interfaces and the lithium battery respectively, or trigger to convert electric energy of the lithium battery into a plurality of working power supplies and output the working power supplies to the main control circuit, the Bluetooth circuit and the plurality of optical module interfaces respectively when the power supply signal is not generated;
the main control circuit is configured to perform code reading and writing operation with the matched optical module through the optical module interface of the corresponding type and perform data transmission work through the USB interface or the Bluetooth circuit code file.
2. The optical module code-writing board of claim 1, wherein the plurality of optical module interfaces includes at least two or more of an SFP optical module interface, an XFP optical module interface, a QSFP optical module interface, and a QSFP-DD optical module interface.
3. The optical module code-writing board of claim 2, wherein the power circuit comprises:
the USB power supply protection circuit is connected with the USB interface and the main control circuit, is configured to transmit the power supply signal, triggers to turn off when the power supply signal is overloaded, and feeds back the power supply input state information of the USB interface to the main control circuit;
the battery charging circuit is connected with the USB power supply protection circuit and the lithium battery, and is configured to convert the power supply signal into a charging power supply and output the charging power supply to the lithium battery for charging and energy storage;
the battery discharging circuit is connected with the lithium battery and is configured to convert the electric energy of the lithium battery into a working power supply and output the working power supply;
the switching-on/off circuit is connected with the battery discharging circuit and is configured to trigger on/off according to a switching-on/off signal;
the power supply switching circuit is connected with the USB power supply protection circuit and the switching circuit and is configured to switch to a first switching state and switch to output the power supply signal when receiving the power supply signal, and switch to a second switching state and switch to output the working power supply output by the switching circuit when not receiving the power supply signal;
The module power supply circuit is connected with the power supply switching circuit and is configured to convert an input power supply into working power supplies of the main control circuit and the Bluetooth circuit;
the optical module interface power supply circuit is connected with the power supply switching circuit and the main control circuit, is configured to be triggered to be switched on and off by a power supply signal output by the main control circuit, and converts an input power supply into a working power supply of each optical module interface when the optical module interface power supply circuit is switched on.
4. The optical module code-writing board of claim 3, wherein the module power supply circuit comprises:
the power supply input end of the voltage stabilizing circuit is connected with the power supply output end of the power supply switching circuit, the power supply output end of the voltage stabilizing circuit is connected with the power supply end of the main control circuit, and the voltage stabilizing circuit is configured to convert an input power supply into working power supplies of the main control circuit and the Bluetooth circuit;
the power supply input end of the switching circuit is connected with the power supply output end of the voltage stabilizing circuit, the power supply output end of the switching circuit is connected with the power supply end of the Bluetooth circuit, the control end of the switching circuit is connected with the signal end of the main control circuit, and the switching circuit is triggered to be turned on and off by a switching signal output by the main control circuit.
5. The optical module code writing board of claim 3, wherein each of the optical module interfaces includes an insertion state output pin, and each of the insertion state output pins of the optical module interfaces is connected with the master control circuit, respectively;
the insertion state output pin is configured to detect the insertion state of the corresponding optical module and output a state detection signal to the main control circuit, so that the main control circuit triggers the power supply circuit of the interface of the optical module to turn off when receiving a plurality of state detection signals representing the insertion of the optical module.
6. The optical module code-writing board of claim 3, wherein the power circuit further comprises:
and the electric quantity monitoring circuit is respectively connected with the main control circuit and the lithium battery, and is configured to sample the electric quantity of the lithium battery and feed back an electric quantity sampling signal to the main control circuit.
7. The optical module code writing board of claim 3, wherein the switching circuit includes a switching key, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first diode, a first capacitor, a first electronic switching tube, and a second electronic switching tube;
The first end of the first resistor and the anode of the first diode are respectively connected with the signal end of the main control circuit, the second end of the first resistor, the first end of the second resistor and the control end of the first electronic switching tube are commonly connected, the first end of the second resistor, the second end of the first electronic switching tube, the first end of the switch button and the first end of the first capacitor are commonly grounded, the cathode of the first diode, the second end of the switch button, the second end of the first capacitor and the first end of the third resistor are commonly connected, the first end of the first electronic switching tube and the first end of the fourth resistor are connected, the second end of the fourth resistor, the first end of the fifth resistor and the control end of the second electronic switching tube are commonly connected, the first end of the fifth resistor and the first end of the second electronic switching tube are commonly connected to form the first switch circuit power supply end of the switch circuit, and the first end of the switch circuit of the second electronic switching tube is connected to form the output end of the power supply.
8. The optical module code writing board of claim 3, wherein the power supply switching circuit includes a sixth resistor, a second diode, and a third electronic switching tube;
The first end of the sixth resistor, the second diode, the control end of the third electronic switching tube and the power output end of the USB power supply protection circuit are connected together, the second end of the sixth resistor is grounded, the first end of the third electronic switching tube is connected with the power output end of the switching circuit, and the cathode of the second diode and the second end of the third electronic switching tube are connected together to form the power output end of the power supply switching circuit.
9. The optical module code-writing board of claim 3, wherein the optical module code-writing board further comprises:
the indication lamp circuits are respectively connected with the main control circuit and the power supply circuit, and are configured to send out different indication lamp information according to indication control signals so as to indicate the working state of the optical module code writing board.
10. The optical module code writing board of claim 9, wherein the indicator light circuit includes a first indicator light, a second indicator light, and a seventh resistor;
the first end of the first indicator light and the first end of the second indicator light are respectively connected with the signal end of the main control circuit, the second end of the first indicator light, the second end of the second indicator light and the first end of the seventh resistor are connected together, and the second end of the seventh resistor is connected with a power end corresponding to the power circuit.
CN202223612553.1U 2022-12-30 2022-12-30 Optical module code writing board Active CN218998072U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202223612553.1U CN218998072U (en) 2022-12-30 2022-12-30 Optical module code writing board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202223612553.1U CN218998072U (en) 2022-12-30 2022-12-30 Optical module code writing board

Publications (1)

Publication Number Publication Date
CN218998072U true CN218998072U (en) 2023-05-09

Family

ID=86219787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202223612553.1U Active CN218998072U (en) 2022-12-30 2022-12-30 Optical module code writing board

Country Status (1)

Country Link
CN (1) CN218998072U (en)

Similar Documents

Publication Publication Date Title
CN203933124U (en) A kind of single interface portable power source, bluetooth keyboard and protective sleeve
US8527782B2 (en) Power hub
US8862916B2 (en) Wireless control of power sockets based on host and signal quality
US9749009B2 (en) Cable with field-writeable memory
CN107394833A (en) Adapter, supply unit and the guard method put excessively
US11316351B2 (en) Power bridge device using mobile robot battery
CN103427821B (en) Power management device realizing zero standby current
CN218998072U (en) Optical module code writing board
CN211266551U (en) Power supply system for storage device
CN103051376B (en) Portable test board
US20240146084A1 (en) Circuit, method, and oximeter for indicating power supply by applying double-color light-emitting diode
CN116208256A (en) Optical module code writing board
CN203520299U (en) Timer-power-on control circuit
CN212811309U (en) Automatic power-off protection circuit and charging protection data line
CN202142000U (en) Reset circuit and electronic device
CN212649472U (en) Optical module auxiliary circuit and optical module auxiliary device
CN213585273U (en) Power supply circuit for automatically monitoring and converting power supply state in earthquake observation
CN112467863A (en) Dual-power switching communication device and method for glucometer
CN215300236U (en) Integrated ultrasonic power supply device and B-ultrasonic equipment
CN214626421U (en) Battery management system convenient to control battery power supply
CN109522258A (en) USB interface, electronic equipment, USB interface-based programming system and its method
CN216530611U (en) Sharing portable power source charging cabinet control circuit
KR100768332B1 (en) Remote controll unit
CN217720764U (en) Intelligence battery case supply circuit
CN218645504U (en) Wireless control system for gun lamp and gun lamp assembly thereof

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231110

Address after: Building M2, Zhongdian Optics Valley Digital Industrial Park, No. 88 Xingguang Avenue, Caidian District, Wuhan City, Hubei Province, 430000

Patentee after: Wuhan Yuxuan Feifei Communication Technology Co.,Ltd.

Address before: 24F, Yingfeng center, No.19, Haitian Er Road, Binhai community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee before: Shenzhen rapid innovation technology Co.,Ltd.