A USB2.0 / 3.0 HUB Based on Optical Fiber Transmission
Through USB3.0 HUB based on optical fiber transmission, long-distance electromagnetic interference-free transmission between a variety of USB3.0 terminal devices and computers is realized, and is compatible with USB2.0/1.1/1.0 devices. The transmission distance is long, the device can be hot-swap and unplugged, and the transmission process is transparent. It supports the mixed use of multiple USB devices.
Patent Information
- Application Number
- CN201710675653.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-08-09
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2037-08-09
AI Technical Summary
The prior art is difficult to realize long-distance electromagnetic interference-free transmission between multiple USB3.0 terminal devices and computers, and is not compatible with USB2.0/1.1/1.0 devices, the transmission distance is limited, and existing devices cannot achieve compatible access to multiple devices.
It adopts USB3.0 HUB based on fiber transmission, including USB3.0 fiber transmitting and receiving end, and is automatically negotiated through custom communication rules. It uses the USB2.0 acceleration engine and ultra-high-speed HUB routing engine in the USB3.0 HUB main control chip, supports the mixed use of USB2.0 and USB3.0 devices, and uses multi-mode or single-mode fiber, with a transmission distance of up to 300 meters to 400 meters, and is remotely controlled through digital diagnostic circuits.
It realizes long-distance electromagnetic interference-free transmission between a variety of USB3.0 terminal devices and computers, and is compatible with USB2.0/1.1/1.0 devices. It has a long transmission distance, is hot-swap and unplugged device, and is transparent in transmission process, is resistant to electromagnetic interference, and supports the mixed use of multiple USB devices.
Smart Images

Figure CN107300883B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of USB3.0 communication, and particularly to the technical field of long-distance communication between various USB3.0 / 2.0 / 1.1 / 1.0 terminal devices and a computer, specifically referring to a USB2.0 / 3.0 HUB based on optical fiber transmission.
[0002] The present invention also relates to an automatic negotiation method for optical fiber communication between a USB3.0 optical fiber transmitting end and a USB3.0 optical fiber receiving end.
[0003] The present invention also relates to a method for digital diagnosis of a USB3.0 optical fiber transmitting end and a USB3.0 optical fiber receiving end and remote control of a USB3.0 terminal device. Background Art
[0004] USB3.0 has significantly improved the transmission speed. Based on the full-duplex data transmission protocol, its theoretical transmission rate is as high as 5Gbps (i.e., 625MB / s), and the actual data transmission rate will also be as high as 3.2Gbps (i.e., 400MB / s), which is nearly 10 times higher than that in the USB2.0 era. Now, the latest USB3.1 Gen2 standard has further increased the transmission rate to 10Gbps. As a result, the transmission distance of data has encountered unprecedented challenges. Since the transmission rate has increased from 480Mbps specified by the previous USB2.0 standard to 5Gbps, the use of traditional cables generally does not exceed 3 meters. After some manufacturers use relay amplification chips, the maximum transmission distance can only reach 15 meters. However, due to the fact that cable transmission is particularly vulnerable to electromagnetic interference during use, it is not suitable for use on some industrial production lines with strong electromagnetic interference, as well as some equipment sensitive to electromagnetic interference (such as military equipment). At present, with the rise of Industry 4.0, the transmission distance of many USB3.0 industrial cameras will exceed this distance, and even reach several hundred meters. In addition, for safety reasons, many enterprises and units often need to centrally manage computer hosts, and users can only use USB3.0 storage devices and USB3.0 printers remotely, so as to achieve the safe isolation between the computer host and the user. The distance between the computer and the terminal often reaches hundreds of meters, and there should be no electromagnetic leakage during data transmission to ensure data security.However, by using optical fiber to transmit USB3.0 signals, we can solve the problem of electromagnetic interference and the problem of transmission distance. In addition, although there are some devices that can achieve long-distance transmission of USB3.0 signals at present, they generally parse the USB3.0 data of the terminal device into other data formats through the USB3.0 physical layer chip and then re-encode and convert it into optical fiber for transmission. At the other end, the received optical signal is converted into an electrical signal, and the parallel data is sent to the acquisition card through the USB3.0 physical layer chip for data acquisition. They are all for some specific device applications and cannot achieve the access of other USB3.0 standard terminal devices. For example, a device used to achieve long-distance transmission of USB3.0 industrial cameras cannot be used to access other USB3.0 terminal devices such as USB flash drives, USB3.0 external hard drives, or printers. Moreover, there is currently no solution that can directly transmit the USB2.0 and USB3.0 devices simultaneously through a single USB3.0 main control chip, convert the super-high-speed signal differential data line into an optical signal using an optical module, and then complete long-distance transmission using optical fiber. Generally, an additional USB2.0 to USB3.0 conversion chip is required, and then a USB3.0 HUB is used for integrated transmission. The compatibility needs to be improved, and this chip is currently monopolized, and other manufacturers cannot purchase it through channels, which directly limits the compatible application of USB3.0 with USB2.0 / 1.1 / 1.0 in long-distance transmission. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a USB2.0\3.0 HUB based on optical fiber transmission that supports long-distance transmission between a variety of USB terminal devices and a computer, can transmit USB3.0\2.0\1.1\1.0 data through the ultra-high-speed differential signal of USB3.0, is downward compatible with USB2.0 / 1.1 / 1.0 devices, and can realize digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of USB3.0 terminal devices through a digital diagnostic circuit.
[0006] Technical solution adopted by the present invention: A USB3.0 HUB that is compatible with USB2.0 based on long-distance optical fiber transmission includes a USB3.0 optical fiber sending end and a USB3.0 optical fiber receiving end. The optical fiber communication between the two can be automatically negotiated through custom communication rules. The USB3.0 ultra-high-speed signal is a full-duplex signal, and the receive and transmit are each a pair of independent differential data lines: SSTX+ / - and SSRX+ / -). Therefore, it can be converted into an optical signal by an optical module and transmitted through an optical fiber. Inside the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end, there is a USB2.0 acceleration engine that can convert the USB2.0 signals of all downstream ports into USB3.0 signals. Finally, the USB3.0 signals of all downstream interfaces are transmitted to the USB3.0 main control chip of the computer host through the ultra-high-speed HUB routing engine inside the USB3.0 HUB main control chip. Therefore, it is possible to simultaneously transmit USB2.0 and USB3.0 data through an optical fiber via the USB3.0 ultra-high-speed signal. The four ports of this USB3.0 HUB main control chip can all be connected to USB2.0 or USB3.0 terminal peripherals, and USB2.0 and USB3.0 devices can be used in a mixed manner, that is, it is downward compatible with USB2.0 / 1.1 / 1.0 devices; it can use multimode optical fiber, and it can also use single-mode optical fiber. It can use dual-core optical fiber and can also use single-core optical fiber. Both the USB3.0 optical fiber sending end and the USB3.0 optical fiber receiving end have a hot-pluggable SFP+ optical module, and the optical module can be flexibly replaced during use, and the length of the optical fiber can be wired according to actual needs. The transmission distance can reach 300 to 400 meters. The data transmitted by the technical solution adopted by the present invention is in the native USB3.0 data format. During the USB3.0 optical fiber communication process, in order to ensure compatibility and general applicability, the native USB3.0 data sent by the USB3.0 host controller, the USB3.0 HUB main control chip, and the USB3.0 terminal device will not be converted into other formats and re-encoded and decoded for transmission. Only the received USB3.0 electrical signal is converted from electrical to optical to electrical. The optical fiber transmission device will not add any additional data to the data stream. Therefore, the USB3.0 signal is transparent during transmission using the optical fiber transmission device, and all terminal peripherals that meet the USB3.0 / 2.0 / 1.1 / 1.0 standards can be normally connected.
[0007] Correspondingly, another technical problem to be solved by the present invention is to provide an automatic negotiation method for optical fiber communication between the USB3.0 optical fiber sending end and the USB3.0 optical fiber receiving end.
[0008] Correspondingly, another technical problem to be solved by the present invention is to provide a method for digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of the USB3.0 terminal device.
[0009] The following will introduce each component of the USB3.0 optical fiber transmitter in detail.
[0010] According to the above solution, the USB3.0 optical fiber transmitter includes a USB3.0 upstream interface, a USB3.0 HUB main control chip, a FLASH chip, an Rx_DET analog load, an SFP+ optical module, an MCU control unit, a management interface circuit, an LED indication circuit, and a power supply unit.
[0011] The USB3.0 upstream interface is used to connect to the USB3.0 main controller of the computer host.
[0012] Preferably, the USB3.0 HUB main control chip is μPD720210. On the one hand, it is used to receive USB3.0 data. On the other hand, it is used to solve the problem that the terminal device cannot be connected to the computer host in the states such as repeated plugging and unplugging of the optical fiber interface, plugging and unplugging of the SFP+ optical module, and power on / off and restart of the computer during the optical fiber transmission process. In addition, it can also play the role of USB3.0 signal relay amplification. One port of the USB3.0 HUB main control chip is connected to the management interface circuit to implement the conversion from USB2.0 to RS-232 interface, and the RS-232 interface is connected to an RS-232 serial port of the MCU control unit to realize the digital diagnosis management of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver at the computer host end.
[0013] The FLASH chip is used to store the configuration data of the USB3.0 HUB main control chip.
[0014] The Rx_DET simulation load is used to simulate a USB3.0 terminal device. According to the USB3.0 protocol, the Rx input end of the USB3.0 interface must include an Rx Detect circuit. When the USB 3.0 physical layer is in the U1, U2, or U3 state, in order to save power, it uses the LFPS (Low Frequency Period Singal) signal as the communication medium. The LFPS signal is a low-frequency periodic signal. When no device is plugged into the USB3.0 downstream port, the USB3.0 host controller will continuously send an RxDetect square wave signal, which is not the LFPS signal. If no device is plugged in all the time, according to the USB3.0 protocol, it will always be in the Rx Detect state; when a device is plugged in, the Tx end of the USB3.0 HUB chip will send an LFPS signal; while the input interface circuit of a common SFP+ optical module does not have an Rx Detect circuit at the Rx input end of the USB3.0 interface. Therefore, when the SFP+ optical module is connected to the USB3.0 HUB chip, the USB3.0 HUB chip will always be in the Rx Detect state and cannot communicate with the USB3.0 HUB main control chip of the USB3.0 optical fiber receiver, resulting in a link failure and unable to perform data transmission. The Rx_DET simulation load in the present invention is the key technical means to solve this problem.
[0015] The SFP+ optical module is connected to a certain downstream interface of the USB3.0 HUB main control chip. On the one hand, it is used to convert the electrical signal sent from the Tx output end of the downstream interface of the USB3.0 HUB chip into an optical signal, and on the other hand, it is used to convert the optical signal sent from the USB3.0 optical fiber receiving end into an electrical signal and send it to the Rx input end of the downstream interface of the USB3.0 optical fiber sending end USB3.0 HUB chip; in addition, the present invention uses the combination of the transmit-off control Tx_Disable input pin of the optical transmitter of the SFP+ optical module and the loss-of-signal alarm signal LOS output pin of the optical receiver to form a low-rate bidirectional RS-232 transmission channel. A digital diagnostic channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The computer uses the digital diagnostic channel to implement power supply control instructions for the USB3.0 terminal device or send control instructions to the USB3.0 terminal device, and perform digital diagnostic management on the SFP+ optical module at the USB3.0 optical fiber receiving end.
[0016] The MCU control unit is used to control the handshake connection between the USB3.0 HUB and the USB3.0 host controller of the computer host and reset the USB3.0 main control chip, to control the power supply unit to realize the automatic switching between USB3.0 interface power supply and external power supply, to realize the digital diagnosis and its control of the SFP+ optical module, to realize the sending of control instructions for USB3.0 terminal devices, and to combine with the management interface to realize the digital diagnosis management of the USB3.0 optical fiber transmitting end and the USB3.0 optical fiber receiving end.
[0017] The management interface circuit is connected to a downstream USB2.0 port of the USB3.0 HUB main control chip to realize the conversion from USB2.0 to RS-232 interface. The RS-232 interface is connected to an RS-232 serial port of the MCU control unit and is used to realize the digital diagnosis management of the USB3.0 optical fiber transmitting end and the USB3.0 optical fiber receiving end at the computer host side.
[0018] The power supply unit can realize the automatic switching between USB3.0 interface power supply and external power supply and provide power for the USB3.0 HUB chip, MCU control unit, SFP+ optical module, management interface, LED indication circuit, and EEPROM.
[0019] The LED indication circuit is used to indicate information such as communication status, SFP+ module status, and fault conditions.
[0020] The following will introduce the various components of the USB3.0 optical fiber receiving end in detail.
[0021] According to the above solution, the USB3.0 optical fiber receiving end includes four USB3.0 downstream interfaces, a USB3.0 HUB main control chip, an EEPROM chip, an Rx_DET analog load, an SFP+ optical module, an MCU control unit, a management interface circuit, an LED indication circuit, and a power supply unit.
[0022] The USB3.0 downstream interface is used to connect to USB3.0 terminal devices.
[0023] Preferably, the USB3.0 HUB main control chip is FL6000 produced by Fresco Logic Company, and FL6000 adopts the unique F-One of Fresco Logic Company TMThe technology enables the USB2.0 and USB3.0 data of the downstream ports to be transmitted through the USB3.0 Super Speed Differential Data Lines (SSTX+ / - and SSRX+ / -) of the upstream port, without the need to add an external USB2.0 to USB3.0 conversion chip. The overall circuit becomes simpler and has better compatibility. While supporting USB3.0 devices, it can directly be backward compatible with USB2.0 / 1.1 / 1.0 devices. The FL6000 chip internally contains a USB2.0 acceleration engine (USB2.0 to USB3.0 Translators), which can convert all the USB2.0 signals of the downstream ports into USB3.0 signals. Finally, the USB3.0 signals of all the downstream interfaces are transmitted with the computer host's USB3.0 main control chip through the SuperSpeed HUB Controller and Routing in the USB3.0 HUB main control chip. Therefore, USB2.0 and USB3.0 data can be transmitted simultaneously through the USB3.0 Super Speed Differential Data Lines using optical fibers. The upstream port of the USB3.0 HUB main control chip is connected to the SFP+ optical module. All four ports of the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end can support USB2.0 and USB3.0 terminal peripherals, such as standard USB peripherals like USB2.0 styli, USB touchscreens, USB mice, USB keyboards, USB3.0 industrial printers, USB3.0 cameras, USB3.0 external hard drives, USB3.0 pen drives, etc. USB2.0 and USB3.0 devices can be used mixedly.
[0024] The EEPROM chip is used to store the configuration data of the USB3.0 HUB main control chip.
[0025] The Rx_DET simulation load is used to simulate the Rx_DET circuit at the Rx input end of the USB3.0 host controller's downstream interface. According to the USB3.0 protocol, the Rx input end of the USB3.0 interface must include an Rx Detect circuit. When the USB 3.0 physical layer is in the U1, U2, or U3 state, in order to save power, it uses the LFPS (Low Frequency Period Singal) signal as the communication medium. The LFPS signal is a low-frequency periodic signal. When the upstream port of the USB3.0 HUB main control chip is not connected to the USB3.0 host controller, the Tx end of the USB3.0 HUB main control chip will continuously send an Rx Detect square wave signal, and this square wave signal is not the LFPS signal. If it has not been connected to the USB3.0 host controller all the time, according to the USB3.0 protocol, it will always be in the Rx Detect state. When the upstream port of the USB3.0 HUB main control chip is connected to the USB3.0 host controller, the Tx end of the USB3.0 HUB chip will send the LFPS signal. However, the input interface circuit of a common SFP+ optical module does not have the Rx Detect circuit at the Rx input end of the USB3.0 interface. Therefore, when the SFP+ optical module is connected to the USB3.0 HUB chip, the USB3.0 HUB main control chip will always be in the Rx Detect state and cannot communicate with the downstream interface of the USB3.0 HUB main control chip of the USB3.0 optical fiber transmitter, resulting in a link failure and inability to transmit data. The Rx_DET simulation load in the present invention is the key technical means to solve this problem.
[0026] The SFP+ optical module, on the one hand, converts the optical signal sent from the USB3.0 optical fiber transmitting end into an electrical signal and sends it to the Rx input end of the upstream interface of the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end; on the other hand, it converts the electrical signal sent from the Tx output end of the upstream interface of the USB3.0 optical fiber receiving end into an optical signal and sends it to the Rx input end of the SFP+ optical module at the USB3.0 optical fiber transmitting end. In addition, the present invention uses the combination of the transmit-off control Tx_Disable input pin of the optical transmitter of the SFP+ optical module and the loss-of-signal warning signal LOS output pin of the optical receiver to form a low-rate bidirectional RS-232 transmission channel. A digital diagnostic channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The computer uses the digital diagnostic channel to implement power supply control or send control instructions to the USB3.0 terminal device, and perform digital diagnostic management on the SFP+ optical module at the USB3.0 optical fiber receiving end.
[0027] The MCU control unit is used to control the handshake connection between the USB3.0 HUB and the USB3.0 host controller of the computer host, reset the USB3.0 main control chip, control the power supply unit to achieve power supply control and fault diagnosis of the USB3.0 terminal device, send control instructions for the USB3.0 terminal device, implement digital diagnosis and control of the SFP+ optical module, and combine with the management interface to achieve digital diagnosis management of the USB3.0 optical fiber transmitting end and the USB3.0 optical fiber receiving end.
[0028] The management interface circuit is connected to a downstream USB2.0 port of the USB3.0 HUB main control chip to implement the conversion from USB2.0 to the RS-232 interface. The RS-232 interface is connected to an RS-232 serial port of the MCU control unit and is used to achieve digital diagnosis management of the USB3.0 optical fiber transmitting end and the USB3.0 optical fiber receiving end on the computer host side.
[0029] The power supply unit can realize the automatic switching between USB3.0 interface power supply and external power supply, and provide power for the USB3.0 HUB chip, MCU control unit, SFP+ optical module, management interface, LED indication circuit, and EEPROM.
[0030] The LED indication circuit is used to indicate information such as communication status, SFP+ module status, and fault conditions.
[0031] The automatic negotiation method for optical fiber communication between the USB3.0 optical fiber transmitting end and the USB3.0 optical fiber receiving end refers to a method of solving the problem of establishing a correct communication link between the USB3.0 terminal device and the computer host again after optical fiber interface optical fiber interruption, optical fiber repeated plugging and unplugging, SFP+ optical module hot plugging, computer shutdown and restart during the process of transmitting USB3.0 data using optical fiber through single-chip microcomputer programming technology and formulating relevant communication rules.
[0032] USB3.0 fiber optic communication is a full-duplex bidirectional communication. It can use two-core optical fibers or a single-core optical fiber using the principle of optical wavelength division multiplexing. There are three situations during the optical fiber connection process. The first is that the optical transmitter and receiver of the SFP+ optical module at the USB3.0 fiber optic transmitter end establish connections with the optical transmitter and optical receiver of the SFP+ optical module at the USB3.0 fiber optic receiver end simultaneously; the second is that the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic transmitter end first establishes a connection with the optical receiver of the SFP+ optical module at the USB3.0 fiber optic receiver end. Further, the optical receiver of the SFP+ optical module at the USB3.0 fiber optic transmitter end establishes a connection with the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic receiver end; the third is that the optical receiver of the SFP+ optical module at the USB3.0 fiber optic transmitter end first establishes a connection with the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic receiver end. Further, the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic transmitter end establishes a connection with the optical receiver of the SFP+ optical module at the USB3.0 fiber optic receiver end.
[0033] If the optical fiber connection is interrupted due to optical fiber damage or manual removal of the optical fiber, and when the optical fiber connection needs to be re-established, the USB3.0 HUB main control chip of the computer host and the USB3.0 fiber optic receiver end at the remote end need to re-establish a connection. At this time, both sides will re-initiate the low-speed LFPS signal for handshake connection to determine the connection status. However, if the USB3.0 HUB main control chip at the USB3.0 fiber optic receiver end has not exited the super-high-speed link state, when the first and third situations occur, the USB3.0 HUB main control chip at the USB3.0 fiber optic transmitter end's downstream interface receives not LFPS data signals but super-high-speed data packets. This will lead to negotiation failure, causing the USB3.0 main controller port of the computer connected to this USB3.0 fiber optic transmitter end to freeze, and thus it is unable to recognize the USB3.0 HUB main control chip at the USB3.0 fiber optic transmitter end, the USB3.0 HUB main control chip at the USB3.0 fiber optic receiver end, and the external USB3.0 terminal device.
[0034] During the communication process, the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver often encounter situations such as the computer host shutting down, restarting, or being restarted after being shut down for a long time. This will pose a serious problem: when the computer host re-enters the operating system, it often occurs that the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver fail to connect to the computer host. The computer host may prompt that the USB3.0 device is compliant but cannot be linked, or there is no linking action at all. The reason for this problem is that after the computer host exits the system, the communication status of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver does not enter the LFPS negotiation state, but remains in the normal super-high-speed link. When the computer host re-enters the system, the USB3.0 host controller of the computer host should be in a low-speed communication mode with the USB3.0 optical fiber transmitter. However, in reality, the USB3.0 host controller of the computer host first receives the super-high-speed data packets sent by the USB3.0 optical fiber transmitter, resulting in the failure of the negotiation between the two, and the computer host cannot find all the USB3.0 terminal devices externally connected to the USB3.0 host controller.
[0035] To solve the above problems, we hereby stipulate an automatic negotiation method for optical fiber communication between the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver: At any time, the optical receiver of the SFP+ optical module of the USB3.0 optical fiber receiver always receives the optical signal earlier than the optical receiver of the SFP+ optical module of the USB3.0 optical fiber transmitter; after the optical connection of the optical receiver of the USB3.0 optical fiber receiver is interrupted, the MCU control unit issues a control command to disconnect the upstream interface link of the USB3.0 HUB main control chip, the USB3.0 HUB main control chip enters the standby state, and the optical transmitter of the SFP+ optical module of the USB3.0 optical fiber receiver is in the emission prohibited state and will not emit any optical signals at all. Even if the optical fiber is reconnected normally, it will still be in the emission prohibited state before the USB3.0 HUB main control chip of the USB3.0 optical fiber receiver completes the link initialization; after the optical fiber is disconnected, the optical receiver of the USB3.0 optical fiber transmitter cannot receive the optical signal, and the MCU control unit issues a control command to interrupt the link connection between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter and the USB3.0 main controller of the computer host; when the optical receiver of the USB3.0 optical fiber receiver reconnects to the optical fiber, the MCU control unit issues a control command to make the USB3.0 HUB main control chip enter the normal working state, initialize the chip link state, the Tx output terminal of the upstream interface of the USB3.0 HUB main control chip outputs the LFPS signal, the MCU control unit issues a control command to make the optical transmitter of the SFP+ optical module of the USB3.0 optical fiber receiver be in the emission enabled state and normally emit the LFPS optical signal. After the optical receiver of the USB3.0 optical fiber transmitter receives the LFPS optical signal, the MCU control unit issues a control command to connect the link between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter and the USB3.0 main controller of the computer host, and re-negotiate LFPS with the computer host until the communication connection is normal; when the computer host shuts down, the USB3.0 optical fiber transmitter circuit can monitor the link state with the USB3.0 controller of the computer host, and the MCU control unit will issue corresponding control commands according to the link state with the USB3.0 controller of the computer host to make the communication link between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter and the computer host be in the disconnected state, the USB3.0 HUB main control chip of the USB3.0 optical fiber transmitter will enter the standby state, and send the LFPS negotiation signal to the USB3.0 main control chip of the USB3.0 optical fiber receiver to make both of them in the standby state; when the computer host shuts down, restarts, or powers on again after shutting down, the USB3.0 optical fiber transmitter circuit can monitor the link state with the USB3.0 controller of the computer host, and the MCU control unit of the USB3.0 optical fiber transmitter will issue commands according to the link state with the USB3.The link state output of the 0 controller issues corresponding control instructions to keep the USB3.0 upstream interface of the USB3.0 optical fiber transmitter in the correct connection state with the computer host. When it monitors that the computer USB3.0 controller initiates LFPS negotiation, the MCU control unit of the USB3.0 optical fiber transmitter connects the USB3.0 upstream interface of the USB3.0 optical fiber transmitter to the link of the USB3.0 host controller of the computer host, and sends an LFPS signal to the computer host for communication negotiation until the communication connection is normal; after the USB3.0 optical fiber transmitter communicates normally with the computer host, the USB3.0 HUB main control chip of the USB3.0 optical fiber transmitter will send an LFPS negotiation signal to the USB3.0 main control chip of the USB3.0 optical fiber receiver until the communication connection is normal.
[0036] The data stream during the communication of the super high-speed USB3.0 terminal device specified by the USB3.0 standard must be encoded into a super high-speed data stream for transmission. Since the USB3.0 standard does not leave some low-speed IO channels, therefore, during the USB3.0 optical fiber communication process, in order to ensure compatibility and general applicability, the optical fiber transmission device will not re-encode and decode USB3.0, but only performs electro-optical-electrical conversion on the received USB3.0 electrical signal. The optical fiber transmission device will not add any additional data to the data stream, and the USB3.0 signal is transparent during the transmission process using the optical fiber transmission device. Therefore, functions such as remote switch control and the sending and result return of digital diagnostic signals cannot be completed through the hardware circuit of USB3.0. So, based on this actual application, the present invention proposes a method for digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of the USB3.0 terminal device.
[0037] The method for digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of the USB3.0 terminal device refers to using the emission off of the SFP+ optical module optical transmitter to control the SFP_Tx_Disable input pin and the no-light alarm signal SFP_LOS output pin of the optical receiver to form a low-speed bidirectional RS-232 transmission channel. A digital diagnosis channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The computer uses the digital diagnosis channel to send control instructions to the power supply circuit of the USB3.0 terminal device or the control interface of the USB3.0 terminal device itself, and perform digital diagnosis management on the power supply states of the SFP+ optical module and the terminal device.
[0038] Referring to the international standard of the Small Form-factor Pluggable (SFP) Transceiver Multisource Agreement (MSA), the transmit shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter is used to turn on and off the light emission state of the SFP+ optical module optical transmitter laser. When this pin is at a high level, the laser does not emit light. When this pin is at a low level, the laser emits light. When the SFP+ optical module is operating normally, the transmit shutdown control signal level should always be kept low. The loss-of-signal (LOS) output pin of the SFP+ optical module optical receiver outputs a high-level signal when no optical signal is input to the optical receiver, and outputs a low-level signal when an optical signal is input to the optical receiver. This signal is only used to determine the presence or absence of the input optical signal. During normal optical communication, this signal always remains low. These two control pins do not have the function of two-way data communication themselves. However, we can input a low-rate digital square wave signal, such as a serial port signal of 9600 bps, to the transmit shutdown control SFP_Tx_Disable input pin. Then, the SFP+ optical module optical transmitter will generate a state change of no light emission and light emission according to the change of the high and low levels of the low-rate digital square wave signal, thereby modulating a low-rate optical signal of 9600 bps. And at the corresponding loss-of-signal (LOS) output pin of the SFP+ optical module optical receiver, the original serial port signal of 9600 bps will be restored according to the state change of no light input and light input. Therefore, the transmit shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter and the loss-of-signal (LOS) output pin of the optical receiver can be combined to form a low-rate two-way RS-232 transmission channel. A digital diagnostic channel is composed of the two-way RS-232 transmission channel, the MCU control unit, and the management interface. The digital diagnostic channel does not work when the USB3.0 link is communicating normally. The digital diagnostic channel only works before the initial connection between the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver is established, when the USB3.0 terminal device fails, and when manual control is performed. Moreover, the operator can perform corresponding management operations at both the computer end and the USB3.0 device end.
[0039] When we are using a USB 3.0 terminal device, occasionally the device may freeze or other situations occur where the USB 3.0 terminal device cannot be restored to the normal working state through the computer host. In such cases, we can send specific instructions through the digital diagnostic channel to the management interface to the control interface of the USB 3.0 terminal device itself or the power supply circuit of the USB 3.0 port connected to the USB 3.0 terminal device to perform a cold start on the device, thereby restoring it to normal. We can also send specific instructions through the digital diagnostic channel to the management interface to the control interface of the USB 3.0 terminal device itself to obtain the fault situation of the USB 3.0 terminal device.
[0040] Before the initial connection between the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver is established, after the MCU control unit of the USB3.0 fiber optic receiver reads the optical module indicators such as the transmitted optical power of the optical module, the bias current of the laser, the receiving sensitivity, the supply voltage of the optical module, the operating temperature, and the fault condition through the I2C bus of the SFP+ optical module, it sends a signal to the SFP_Tx_Disable input pin of the SFP+ optical module through the RS-232 serial port of the MCU control unit of the USB3.0 fiber optic receiver, modulating and outputting the RS232 optical signal. And at the SFP_LOS output pin of the digital diagnostic channel of the USB3.0 fiber optic transmitter, RS-232 serial data is output. The RS-232 serial data is delivered to the serial port signal input pin LOS_232_RXD of the digital diagnostic channel of the MCU control unit of the USB3.0 fiber optic transmitter, and after being processed by the MCU control unit, it is sent to the computer host; in addition, we can also convert the instruction into an RS-232 signal at the computer host through the USB2.0 to RS232 conversion circuit of the management interface. The RS-232 sends a digital diagnostic request instruction to the RS-232 serial port signal input pin CMI_RS232_RXD of the MCU control unit of the USB3.0 fiber optic transmitter through the RS232_TXD output pin of the management interface. The MCU control unit sends an instruction to the serial port signal input pin LOS_232_RXD of the MCU control unit of the USB3.0 fiber optic receiver through the digital diagnostic channel. After receiving the instruction, the MCU control unit sends the read optical module indicators back to the serial port signal input pin LOS_232_RXD of the MCU control unit of the USB3.0 fiber optic transmitter through the digital diagnostic channel. After being processed by the MCU control unit, it is sent to the input pin RS232_RXD of the management interface through the RS-232 serial port signal output pin CMI_RS232_TXD and then sent to the computer host after being converted by USB2.0 to RS232; for the optical module indicators of the USB3.0 fiber optic transmitter, we can directly obtain them at the computer host by sending a digital diagnostic request instruction to the MCU control unit of the USB3.0 fiber optic transmitter through the management interface; through these two methods, digital diagnostic management of the SFP+ optical module can be achieved; in addition, when an overcurrent fault occurs in the power supply of the USB3.0 terminal device at the USB3.0 fiber optic receiver, the MCU control unit will store this fault code until the overcurrent fault is eliminated before clearing the stored fault code. When we find that the device is working abnormally, we can send a digital diagnostic request instruction to the MCU control unit of the USB3.0 fiber optic receiver through the management interface at the computer host to obtain the USB3.0 terminal device fault code.
[0041] The beneficial effects of the present invention are as follows: A USB3.0 HUB based on optical fiber transmission is provided to support long-distance transmission between multiple USB3.0 terminal devices and a computer. The transmission distance can reach 300 to 400 meters. Multimode optical fiber, single-mode optical fiber, dual-core optical fiber, or single-core optical fiber can be used. The present invention can be connected to USB2.0 or USB3.0 terminal peripherals, and USB2.0 and USB3.0 devices can be used in combination, that is, it is downward compatible with USB2.0 / 1.1 / 1.0 devices. The hot-pluggable SFP+ optical module can be replaced without power-off, which is very convenient for use and maintenance. Moreover, the length of the optical fiber can be wired according to actual needs. It can not only connect multiple USB3.0 terminal devices to the host, but also monitor the status of the SFP+ optical module and remotely operate the USB3.0 terminal devices through a digital diagnostic circuit. The data transmitted by the present invention is in the native USB3.0 data format, and it will not convert the native USB3.0 data sent by the USB3.0 host controller, USB3.0 HUB main control chip, and USB3.0 terminal devices into other formats, re-encode and decode them for transmission. Therefore, its transmission is transparent, and all terminal peripherals that meet the USB3.0 standard can be normally connected. While extending the USB3.0 transmission distance, the present invention also has the advantages of no electromagnetic leakage in the transmission channel and anti-electromagnetic interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is the system application principle block diagram of the present invention.
[0043] Figure 2 is the principle block diagram of the USB3.0 optical fiber transmitting end of the present invention.
[0044] Figure 3 is the principle block diagram of the USB3.0 HUB main control chip of the USB3.0 optical fiber transmitting end of the present invention.
[0045] Figure 4 is the Rx_DET analog load of the USB3.0 optical fiber transmitting end of the present invention.
[0046] Figure 5 is the SFP+ optical module of the USB3.0 optical fiber transmitting end of the present invention.
[0047] Figure 6 is the MCU control unit of the USB3.0 optical fiber transmitting end of the present invention.
[0048] Figure 7 is the power supply unit of the USB3.0 optical fiber transmitting end of the present invention.
[0049] Figure 8is the USB3.0 optical fiber transmitter management interface of the present invention.
[0050] Figure 9 is the principle block diagram of the USB3.0 optical fiber receiver of the present invention.
[0051] Figure 10 is the principle block diagram of the USB3.0 HUB main control chip of the USB3.0 optical fiber receiver of the present invention.
[0052] Figure 11 is the Rx_DET analog load of the USB3.0 optical fiber receiver of the present invention.
[0053] Figure 12 is the SFP+ optical module of the USB3.0 optical fiber receiver of the present invention.
[0054] Figure 13 is the MCU control unit of the USB3.0 optical fiber receiver of the present invention.
[0055] Figure 14 is the power supply unit of the USB3.0 optical fiber receiver of the present invention.
[0056] Figure 15 is the USB3.0 optical fiber receiver management interface of the present invention. Detailed implementation manners
[0057] To better understand the present invention, the present invention will be further described below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. In addition, it should be noted that for the convenience of description, only the parts related to the present invention rather than all the circuit structures are shown in the drawings.
[0058] The present invention is a USB3.0 HUB based on optical fiber transmission that supports long-distance transmission between multiple USB3.0 terminal devices and a computer; such as Figure 1As shown, one end of the USB3.0 optical fiber transmitter 1 is connected to the USB3.0 HOST 3 of the computer host through a USB3.0 cable, and the other end is connected to the USB3.0 optical fiber receiver 2 through an optical fiber; one end of the USB3.0 optical fiber receiver 2 is connected to the USB3.0 optical fiber transmitter 1 through an optical fiber, and the downstream interface of the USB3.0 optical fiber receiver 2 can be connected to a USB3.0 mobile hard disk, a USB3.0 camera, a USB3.0 printer through a USB3.0 cable, and can also be connected to other standard USB3.0 terminals; the present invention utilizes the ultra-speed data differential interfaces of the USB3.0 interface: SSTX+ / - and SSRX+ / - to achieve an ultra-high-speed communication link of USB3.0, and the transmission distance can reach 300 meters to 400 meters. The data transmitted by the present invention is in the native USB3.0 data format, and will not convert the native USB3.0 data sent by the USB3.0 main controller, the USB3.0 HUB main control chip and the USB3.0 terminal device into other formats and re-encode and decode it before transmission. Therefore, its transmission is transparent, and all terminal peripherals compliant with the USB3.0 / 2.0 / 1.1 / 1.0 standards can be normally connected.
[0059] Refer to Figure 2 - 8 , and the USB3.0 optical fiber transmitter 1 will be described in detail.
[0060] As Figure 2 shown, the USB3.0 optical fiber transmitter 1 includes a USB3.0 upstream interface 11, a USB3.0 HUB main control chip 12, an Rx_DET analog load 13, an SFP+ optical module 14, a power supply unit 15, an MCU control unit 16, an LED indication circuit 17, a management interface circuit 18, and a FLASH chip 19.
[0061] Connection of the USB3.0 HUB main control chip 12 to other circuits: The FLASH data bus 1212 is externally connected to the FLASH chip 19; the upstream interface U3H_RX+ / - differential pair 1213 and U3H_TX+ / - differential pair 1214 are connected to the USB3.0 upstream interface 11; the USB3-TX1+ / - differential pair 1222 of the downstream port 1 is connected to the high-speed differential signal input terminal 131 of the RX_DET analog load 13; the high-speed differential signal output terminal 132 of the RX_DET analog load 13 is connected to the TX+ / - input terminals 146 of the SFP+ optical module 14, and the USB3-RX1+ / - differential pair 2223 of the downstream port 1 is connected to the RX+ / - output terminals 147 of the SFP+ optical module 14; the input pin 1215 of the VBUS monitoring signal VBUS_DET of the USB3.0 upstream interface power supply voltage is connected to the output pin 1634 of the VBUS control signal VBUS_DET of the MCU control unit, and this signal is used to control the communication negotiation between the USB3.0 optical fiber transmitter 1 and the USB3.0 optical fiber receiver 2; the reset signal RST_USB input 1216 is connected to the external reset circuit on the one hand and to the USB3.0 HUB reset signal RST_USB output pin 1633 of the MCU control unit 16 on the other hand. If there are descriptions of the signal connections in this part in the descriptions of other circuits, they will not be described in detail here.
[0062] Connection of the 14 pins of the SFP+ optical module to other circuits: The SFP_SCL pin 141 of the I2C bus clock signal is connected to the SFP_SCL pin 1611 of the MCU control unit 16, and the SFP_SDA pin 142 of the I2C bus data signal is connected to the SFP_SDA pin 1612 of the MCU control unit 16; The SFP_TxDisable input pin 143 of the SFP+ optical module 14 is connected to the SFP_TxDisable output pin 1613 of the MCU control unit 16; The SFP_TxFault output pin 144 of the SFP+ optical module 14 for transmit fault indication is connected to the SFP_TxFault input pin 1614 of the MCU control unit 16; The insertion detection pin 143 of the SFP+ optical module 14 is connected to the SFP_TxDisable output pin 1613 of the MCU control unit 16; The SFP_TxFault output pin 144 of the SFP+ optical module 14 for transmit off fault indication is connected to the SFP_TxFault input pin 1614 of the MCU control unit 16; The LOS output pin 145 of the SFP+ optical module 14 for loss of signal alarm is connected to the LOS input pin 1615 and the LOS_232_RXD input pin 1638 of the MCU control unit 16; The MOD_IN output pin 148 of the SFP+ optical module 14 for optical module plug and unplug detection is connected to the MOD_IN input pin 1616 of the MCU control unit 16. The SFP_VCCT pin 149 of the SFP+ optical module 14 for power supply input of the optical transmission circuit is connected to the SFP_VCCT output pin 1522 of the power supply unit 15 for power supply of the optical module optical transmission circuit; The SFP_VCCR pin 140 of the SFP+ optical module 14 for power supply input of the optical reception circuit is connected to the SFP_VCCR output pin 1523 of the power supply unit 15 for power supply of the optical module optical reception circuit. For those parts of the signal connections described in other circuit descriptions, they will not be described in detail here.
[0063] Connection of the power supply unit 15 to other circuits: The external power supply EXT_5V pin 1515 is connected to an external power supply; the USB bus power supply USB_5V pin 1516 is connected to the power output pin of a USB bus power supply chip, the model of this chip is SP2525A-2E, and the chip outputs voltage when the enable pin of this chip is at a low level; the USB bus power supply detection signal USB_PWR_DET output pin 1511 is connected to the USB bus power supply detection signal USB_PWR_DET input pin 1636 of the MCU control unit 16; the USB bus power supply chip enable signal PWR_SW input pin 1512 is connected to the enable PWR_SW output pin 1632 of the USB bus power supply chip of the MCU control unit 16. When PWR_SW is at a low level, the USB bus power supply chip outputs a power supply voltage; the USB bus power supply chip current overload signal USB_PWR_FL output pin 1513 is connected to the current overload signal USB_PWR_FL input pin 1637 of the USB bus power supply chip of the MCU control unit 16; when there is no external power supply, USB_PWR_DET keeps outputting a low level, and the PWR_SW of the MCU control unit 16 outputs a low-level enable signal to the PWR_SW input of the power supply unit 15. At this time, the USB bus power supply chip outputs a power supply voltage; when there is an external power supply, USB_PWR_DET keeps outputting a high level, and the PWR_SW of the MCU control unit 16 outputs a high-level enable signal to the PWR_SW input of the power supply unit 15. At this time, the USB bus power supply chip does not work, and the external power supply supplies power to the entire circuit; the power supply VCC_MU output pin 1524 of the MCU control unit 16 is connected to the power supply VCC_MCU input pin 1631 of the MCU control unit 16. The positive electrode of a diode inside the power supply unit is connected to EXT_5V, the negative electrode of this diode is connected to VCC_MU, and the positive electrode of another diode is connected to USB_5V, the negative electrode of this diode is connected to VCC_MU. The MCU control unit 16 draws power from both the USB interface and the external power supply at the same time. The power supply of the MCU control unit 16 is preferentially supplied, that is, it is not affected by the power supply switching circuit; the power supply VCC_CMI output pin 1525 of the management interface 18 is connected to the power supply VCC_CMI input pin 182 of the management interface 18; the power supply VCC_HUB output pin 1526 of the power supply unit 15 is connected to the power supply VCC_HUB input pin 1211 of the USB3.0 HUB main control chip 12; the power supply enable signal SFP_PWR_EN input pin 1514 of the SFP+ optical module 14 is connected to the SFP_PWR_EN output pin 1635 of the MCU control unit 16. For the signal connections in this part that are described in the descriptions of other circuits, they will not be described in detail here.
[0064] Connection of the management interface 18 to other circuits: The management interface 18 has two USB2.0 signal inputs, and the two signals can be automatically switched. One USB2.0 signal, the USB2.0_A+ / - input port 180, is connected to an external USB2.0 host controller, and the other USB2.0 signal, the USB2.0_B+ / - input port 181, is connected to the USB2.0 signal USB2-4+ / - differential pair 1224 of the downstream port 4 of the USB3.0 HUB main control chip 12. Through a USB2.0 to RS-232 conversion chip, an RS-232 management serial port is added to the PC host. The RS232_TXD pin 184 for the serial port transmission data of the management interface 18 is connected to the CMI_RS232_RXD input pin 1617 of the MCU control unit 16. The RS232_RXD pin 183 for the serial port reception data of the management interface 18 is connected to the CMI_RS232_TXD input pin 1616 of the MCU control unit 16. If there are descriptions of the signal connections in this part in the descriptions of other circuits, they will not be described in detail here.
[0065] The MCU control unit 16 has an in-circuit programming and upgrade interface. The ISP_RS232_TXD output pin 2643 is connected to the RXD of the RS-232 interface of the computer host. The ISP_RS232_RXD output pin 2644 is connected to the TXD of the RS-232 interface of the computer host. If there are descriptions of the signal connections in this part in the descriptions of other circuits, they will not be described in detail here.
[0066] Refer to Figure 9 - 15 , and the USB3.0 optical fiber receiving end 2 will be described in detail.
[0067] As Figure 9 shown, the USB3.0 optical fiber receiving end 2 includes a USB3.0 DEVICE downstream interface unit 21, a USB3.0 HUB main control chip 22, an Rx_DET analog load 23, an SFP+ optical module 24, a power supply unit 25, an MCU control unit 26, an LED indication circuit 27, a management interface circuit 28, and an EEPROM chip 29.
[0068] Connection of the pins of the USB3.0 HUB main control chip 22 to other circuits: The EEPROM data bus 2212 is externally connected to the EEPROM chip 29, and the specific model is M24C64; the ultra-speed transmission signal U3H_TX+ / - differential pair 2213 is connected to the high-speed differential signal input terminal 231 of the RX_DET analog load 23; the high-speed differential signal output terminal 232 of the RX_DET analog load 23 is connected to the TX+ / - input terminal 246 of the SFP+ optical module 24; the ultra-speed reception signal U3H_RX+ / - differential pair 2214 is connected to the RX+ / - output terminal 247 of the SFP+ optical module 24; the USB3.0 upstream interface power supply voltage VBUS monitoring signal VBUS_DET input pin 2215 is connected to the VBUS control signal VBUS_DET output pin 2634 of the MCU control unit, and this signal is used to control the communication negotiation between the USB3.0 optical fiber transmitter 1 and the USB3.0 optical fiber receiver 2; the reset signal RST_USB input 2216 is connected to the external reset circuit on the one hand and to the USB3.0 HUB reset signal RST_USB output pin 2633 of the MCU control unit 26 on the other hand; the power enable PPON1 signal output pin 2231 of the downstream interface port 1 is connected to the downstream port 1 power enable DP_PWEN1 signal input pin 2527 of the power supply unit; the power enable PPON2 signal output pin 2233 of the downstream interface port 2 is connected to the downstream port 2 power enable DP_PWEN1 signal input pin 2528 of the power supply unit; the power enable PPON3 signal output pin 2235 of the downstream interface port 3 is connected to the downstream port 3 power enable DP_PWEN3 signal input pin 2529 of the power supply unit; the power enable PPON4 signal output pin 2237 of the downstream interface port 4 is connected to the downstream port 4 power enable DP_PWEN4 signal input pin 2530 of the power supply unit; the overcurrent signal OCI input pin 2235 of the downstream interface port is connected to the downstream port 1 overcurrent signal DP_OVCI1 output pin 2531, the downstream port 2 overcurrent signal DP_OVCI2 output pin 2532, the downstream port 3 overcurrent signal DP_OVCI3 output pin 2533, and the downstream port 4 overcurrent signal DP_OVCI1 output pin 2534 of the power supply unit; the differential pair USB3-TX1+ / - signal output 2222, the USB3-RX1+ / - signal input 2223, and the USB2-1+ / - differential pair 2241 are respectively connected to the USB3.0 interface of the downstream interface 1; the differential pair USB3-TX2+ / - signal output 2224, the USB3-RX2+ / - signal input 2225, and the USB2-2+ / - differential pair 2242 are respectively connected to the USB3. of the downstream interface 2.0 Interface; The differential pair USB3-TX3+ / - signal output 2226 and USB3-RX3+ / - signal input 2227, and the USB2-3+ / - differential pair 2243 are respectively connected to the USB3.0 interface of the downstream interface 3; The differential pair USB3-TX4+ / - signal output 2228 and USB3-RX4+ / - signal input 2229, and the USB2-4+ / - differential pair 2244 are respectively connected to the USB3.0 interface of the downstream interface 4. For those with descriptions of the signal connections in this part in other circuit descriptions, they will not be described in detail here.
[0069] Connection of the 24 pins of the SFP+ optical module to other circuits: The I2C bus clock signal SFP_SCL pin 241 is connected to the clock signal SFP_SCL pin 2611 of the MCU control unit 26, and the I2C bus data signal SFP_SDA pin 242 is connected to the data signal SFP_SDA pin 2612 of the MCU control unit 26; The transmit shutdown signal SFP_TxDisable input pin 243 of the SFP+ optical module 24 is connected to the SFP_TxDisable output pin 2613 of the MCU control unit 26; The transmit fault indication SFP_TxFault output pin 244 of the SFP+ optical module 24 is connected to the SFP_TxFault input pin 2614 of the MCU control unit 26; The insertion detection pin 243 of the SFP+ optical module 24 is connected to the SFP_TxDisable output pin 2613 of the MCU control unit 26; The transmit off fault indication SFP_TxFault output pin 244 of the SFP+ optical module 24 is connected to the SFP_TxFault input pin 2614 of the MCU control unit 26; The loss of signal alarm signal LOS output pin 245 of the SFP+ optical module 24 is connected to the LOS input pin 2615 and the LOS_232_RXD input pin 2616 of the MCU control unit 26; The optical module plug and unplug detection signal MOD_IN output pin 248 of the SFP+ optical module 24 is connected to the MOD_IN input pin 2617 of the MCU control unit 26. The optical transmit circuit power supply input SFP_VCCT pin 249 of the SFP+ optical module 24 is connected to the optical module optical transmit circuit power supply SFP_VCCT output pin 2522 of the power supply unit 25; The optical receive circuit power supply input SFP_VCCR pin 240 of the SFP+ optical module 24 is connected to the optical module optical receive circuit power supply SFP_VCCR output pin 2523 of the power supply unit 25. For those with descriptions of the signal connections in this part in other circuit descriptions, they will not be described in detail here.
[0070] Connection of the power supply unit 25 to other circuits: The external power supply EXT_5V pin 2515 is connected to an external power supply; the entire circuit is powered by the external power supply; the power supply VCC_MU output pin 2524 of the MCU control unit 26 is connected to the power supply VCC_MCU input pin 2621 of the MCU control unit 26; the power supply VCC_CMI output pin 2525 of the management interface 28 is connected to the power supply VCC_CMI input pin 282 of the management interface 28; the power supply VCC_HUB output pin 2526 of the power supply unit 25 is connected to the power supply VCC_HUB input pin 2211 of the USB3.0 HUB main control chip 22; the power supply enable signal SFP_PWR_EN input pin 2521 of the SFP+ optical module 24 is connected to the SFP_PWR_EN output pin 2625 of the MCU control unit 26; the overcurrent signal DP_OVC1_MCU output pin 2544 of the downlink port 1 of the power supply unit 25 is connected to the DP_OVC1_MU input pin 2630 of the MCU control unit 26; the overcurrent signal DP_OVC2_MCU output pin 2545 of the downlink port 2 of the power supply unit 25 is connected to the DP_OVC2_MU input pin 2631 of the MCU control unit 26; the overcurrent signal DP_OVC3_MCU output pin 2546 of the downlink port 3 of the power supply unit 25 is connected to the DP_OVC3_MU input pin 2632 of the MCU control unit 26; the overcurrent signal DP_OVC4_MCU output pin 2547 of the downlink port 4 of the power supply unit 25 is connected to the DP_OVC4_MU input pin 2633 of the MCU control unit 26; the remote cold start control signal DP_PWEN1_MCU output pin 2540 of the downlink port 1 of the power supply unit 25 is connected to the DP_PWEN1_MU input pin 2634 of the input pin MCU control unit 26; the remote cold start control signal DP_PWEN2_MCU output pin 2541 of the downlink port 2 of the power supply unit 25 is connected to the DP_PWEN2_MU input pin 2635 of the input pin MCU control unit 26; the remote cold start control signal DP_PWEN3_MCU output pin 2542 of the downlink port 3 of the power supply unit 25 is connected to the DP_PWEN3_MU input pin 2636 of the input pin MCU control unit 26; the remote cold start control signal DP_PWEN1_MCU output pin 2543 of the downlink port 4 of the power supply unit 25 is connected to the DP_PWEN4_MU input pin 2637 of the input pin MCU control unit 26. For those signals described in the description of other circuits, they will not be described in detail here.
[0071] Connection of the management interface 28 to other circuits: The USB2.0 signal USB2.0-4+ / - input port 281 of the management interface 28 is connected to the USB2.0 port of an external computer host through a USB2.0 to RS-232 conversion chip, so as to add an RS-232 management serial port on the external computer host; the serial port transmit data RS232_TXD pin 284 of the management interface 28 is connected to the CMI_RS232_RXD input pin 2642 of the MCU control unit 26; the serial port receive data RS232_RXD pin 283 of the management interface 28 is connected to the CMI_RS232_TXD input pin 2641 of the MCU control unit 26. For those signal connections described in the description of other circuits, they will not be described in detail here.
[0072] The MCU control unit 26 has an in-circuit programming and upgrading interface. The ISP_RS232_TXD output pin 2643 is connected to the RXD of the RS-232 interface of the computer host; the ISP_RS232_RXD output pin 2644 is connected to the TXD of the RS-232 interface of the computer host. For those signal connections described in the description of other circuits, they will not be described in detail here.
[0073] The following will detail a specific implementation method of an automatic negotiation method for optical fiber communication between a USB3.0 optical fiber transmitter and a USB3.0 optical fiber receiver.
[0074] The described automatic negotiation method for optical fiber communication between a USB3.0 optical fiber transmitter and a USB3.0 optical fiber receiver refers to a method of solving the problem of establishing a correct communication link between the USB3.0 terminal device and the computer host again after optical fiber interface optical fiber interruption, optical fiber repeated plugging and unplugging, SFP+ optical module hot plugging, computer shutdown and restart during the process of transmitting USB3.0 data using optical fiber through single-chip microcomputer programming technology and formulating relevant communication rules.
[0075] USB3.0 fiber optic communication is a full-duplex bidirectional communication. It can use two-core optical fibers or a single-core optical fiber using the principle of optical wavelength division multiplexing. During the fiber optic connection process, three situations may occur. In the first situation, the optical transmitter and receiver of the SFP+ optical module 14 of the USB3.0 fiber optic transmitter 1 simultaneously establish connections with the optical transmitter and optical receiver of the SFP+ optical module 24 of the USB3.0 fiber optic receiver 2. In the second situation, the optical transmitter of the SFP+ optical module 14 of the USB3.0 fiber optic transmitter 1 first establishes a connection with the optical receiver of the SFP+ optical module 24 of the USB3.0 fiber optic receiver 2. Further, the optical receiver of the SFP+ optical module 14 of the USB3.0 fiber optic transmitter 1 establishes a connection with the optical transmitter of the SFP+ optical module 24 of the USB3.0 fiber optic receiver 2. In the third situation, the optical receiver of the SFP+ optical module 14 of the USB3.0 fiber optic transmitter 1 first establishes a connection with the optical transmitter of the SFP+ optical module 24 of the USB3.0 fiber optic receiver 2. Further, the optical transmitter of the SFP+ optical module 14 of the USB3.0 fiber optic transmitter 1 establishes a connection with the optical receiver of the SFP+ optical module 24 of the USB3.0 fiber optic receiver 2.
[0076] If the fiber optic connection is interrupted due to fiber optic damage or manual removal of the fiber optic, when the fiber optic connection needs to be re-established, the computer host and the USB3.0 HUB main control chip 22 of the remote USB3.0 fiber optic receiver 2 need to re-establish a connection. At this time, both sides will re-initiate the low-speed LFPS signal for handshake connection to determine the connection status. However, if the USB3.0 HUB main control chip 22 of the USB3.0 fiber optic receiver 2 has not yet exited the super-high-speed link state, when the first and third situations occur, the USB3.0 HUB main control chip 12 downstream interface of the USB3.0 fiber optic transmitter 1 receives not the LFPS data signal but the super-high-speed data packet. This will lead to negotiation failure, resulting in the computer connecting to the USB3.0 main controller 3 port of the USB3.0 fiber optic transmitter 1 crashing, and thus unable to recognize the USB3.0 HUB main control chip 12 of the USB3.0 fiber optic transmitter 1, the USB3.0 HUB main control chip 22 of the USB3.0 fiber optic receiver 2, and the external USB3.0 terminal device.
[0077] During the communication process, the USB3.0 optical fiber transmitter 1 and the USB3.0 optical fiber receiver 2 often encounter situations such as the computer host shutting down, restarting, or being restarted after a long period of shutdown. This poses a serious problem: when the computer host re-enters the operating system, it often occurs that the USB3.0 optical fiber transmitter 1 and the USB3.0 optical fiber receiver 2 fail to connect to the computer host. The computer host may prompt that the USB3.0 device is compliant but cannot be linked, or there is no linking action at all. The reason for this problem is that after the computer host exits the system, the communication status of the USB3.0 optical fiber transmitter 1 and the USB3.0 optical fiber receiver 2 does not enter the LFPS negotiation state but remains in the normal super high-speed link. When the computer host re-enters the system, the USB3.0 host controller 3 of the computer host should be in a low-speed communication mode with the USB3.0 optical fiber transmitter 1. However, in reality, the USB3.0 host controller 3 of the computer host first receives the super high-speed data packets sent by the USB3.0 optical fiber transmitter 1, resulting in the failure of the negotiation between the two, and the computer host cannot find all the USB3.0 terminal devices connected to the USB3.0 host controller 3.
[0078] To solve the above problems, we hereby stipulate an automatic negotiation method for optical fiber communication between the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver: At any time, the optical receiver of the SFP+ optical module 14 of the USB3.0 optical fiber receiver 1 always receives the optical signal earlier than the optical receiver of the SFP+ optical module 24 of the USB3.0 optical fiber transmitter 2; after the optical receiver of the USB3.0 optical fiber receiver 1 detects an optical fiber connection interruption, the MCU control unit 16 issues a control command to disconnect the upstream interface link of the USB3.0 HUB main control chip 22. The USB3.0 HUB main control chip 22 enters the standby state, and the optical transmitter of the SFP+ optical module 24 of the USB3.0 optical fiber receiver 2 is in the transmit prohibition state, and will not send out optical signals at all. Even if the optical fiber is reconnected properly, it will remain in the transmit prohibition state before the USB3.0 HUB main control chip 22 of the USB3.0 optical fiber receiver 2 completes the link initialization; after the optical fiber is disconnected, the optical receiver of the USB3.0 optical fiber transmitter 1 cannot receive the optical signal, and the MCU control unit 16 issues a control command to interrupt the link connection between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter 1 and the USB3.0 main controller 3 of the computer host; when the optical receiver of the USB3.0 optical fiber receiver 2 detects that the optical fiber is reconnected, the MCU control unit 26 issues a control command to make the USB3.0 HUB main control chip 22 enter the normal working state, initialize the chip link state, the Tx output terminal of the upstream interface of the USB3.0 HUB main control chip 22 outputs the LFPS signal, and the MCU control unit 26 issues a control command to make the optical transmitter of the SFP+ optical module 24 of the USB3.0 optical fiber receiver 2 be in the transmit enable state and normally send out the LFPS optical signal. After the optical receiver of the USB3.0 optical fiber transmitter 1 receives the LFPS optical signal, the MCU control unit 16 issues a control command to connect the USB3.0 upstream interface of the USB3.0 optical fiber transmitter 1 to the link of the USB3.0 main controller 3 of the computer host and re-negotiate the LFPS with the computer host until the communication connection is normal; when the computer host shuts down, the USB3.0 optical fiber transmitter circuit can monitor the link state with the USB3.0 controller of the computer host, and the MCU control unit will issue corresponding control commands according to the link state between the USB3.0 optical fiber transmitter and the USB3.0 controller of the computer host, so that the communication link between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter and the computer host is in the disconnected state. The USB3.0 HUB main control chip of the USB3.0 optical fiber transmitter will enter the standby state and send the LFPS negotiation signal to the USB3.0 main control chip of the USB3.0 optical fiber receiver to make both of them in the standby state; when the computer host shuts down, restarts, or is restarted after shutting down, the USB3.0 optical fiber transmitter circuit 1 can monitor the USB3.0 of the computer hostFor the link state of the 0 controller 3, the MCU control unit 16 of the USB3.0 optical fiber transmitter 1 will output corresponding control instructions according to the link state with the computer host USB3.0 controller 3, so that the USB3.0 upstream interface of the USB3.0 optical fiber transmitter 1 is in the correct connection state with the computer host. When it monitors that the computer USB3.0 controller 3 initiates LFPS negotiation, the MCU control unit 16 of the USB3.0 optical fiber transmitter 1 connects the link between the USB3.0 upstream interface of the USB3.0 optical fiber transmitter 1 and the computer host USB3.0 main controller 3, and sends an LFPS signal to the computer host for communication negotiation until the communication connection is normal; after the USB3.0 optical fiber transmitter 1 communicates with the computer host normally, the USB3.0 HUB main control core 12 of the USB3.0 optical fiber transmitter 1 will send an LFPS negotiation signal to the USB3.0 main control chip 22 of the USB3.0 optical fiber receiver 1 until the communication connection is normal.
[0079] The data stream during the communication of the super high-speed USB3.0 terminal device specified by the USB3.0 standard must be encoded into a super high-speed data stream for transmission. Since the USB3.0 standard does not leave some low-speed IO channels, in the USB3.0 optical fiber communication process, in order to ensure compatibility and general applicability, the optical fiber transmission device will not re-encode and decode USB3.0, but only perform electro-optical-electrical conversion on the received USB3.0 electrical signal. The optical fiber transmission device will not add any additional data to the data stream, and the USB3.0 signal is transparent during transmission using the optical fiber transmission device. Therefore, functions such as remote switch control and the sending and result feedback of digital diagnostic signals cannot be completed through the hardware circuit of USB3.0. Therefore, based on this actual application, the present invention proposes a method for digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of the USB3.0 terminal device.
[0080] The following will detail the specific implementation of a method for digital diagnosis of the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver and remote control of the USB3.0 terminal device.
[0081] The method for digital diagnosis of a USB3.0 transmitter 1 and a USB3.0 optical fiber receiver 2 and remote control of a USB3.0 terminal device refers to forming a low-speed bidirectional RS-232 transmission channel by combining the transmit-off control of the SFP+ optical module optical transmitter's SFP_Tx_Disable input pin and the no-light alarm signal SFP_LOS output pin of the optical receiver. A digital diagnosis channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The computer uses the digital diagnosis channel to send control instructions to the power supply circuit of the USB3.0 terminal device or the control interface of the USB3.0 terminal device itself, and perform digital diagnosis management on the power supply status of the SFP+ optical module and the terminal device.
[0082] Referring to the international standard of the Small Form-factor Pluggable (SFP) Transceiver Multisource Agreement (MSA), the transmit shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter is used to turn on and off the light emission state of the SFP+ optical module optical transmitter laser. When this pin is at a high level, the laser does not emit light. When this pin is at a low level, the laser emits light. When the SFP+ optical module is operating normally, the transmit shutdown control signal level should always be kept low; while the loss-of-signal (LOS) output pin of the SFP+ optical module optical receiver outputs a high-level signal when no optical signal is input to the optical receiver, and outputs a low-level signal when an optical signal is input to the optical receiver. This signal is only used to determine the presence or absence of the input optical signal. During normal optical communication, this signal always remains at a low level; these two control pins do not have the function of bidirectional data communication themselves. However, we can input a low-rate digital square wave signal, such as a serial port signal of 9600 bps, to the transmit shutdown control SFP_Tx_Disable input pin. Then, the SFP+ optical module optical transmitter will generate state changes of no light emission and light emission according to the high and low level changes of this low-rate digital square wave signal, thus modulating a low-rate optical signal of 9600 bps. And at the loss-of-signal (LOS) output pin of the corresponding SFP+ optical module optical receiver, the original serial port signal of 9600 bps will be restored according to the state changes of no light input and light input; therefore, the transmit shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter and the loss-of-signal (LOS) output pin of the optical receiver can be combined to form a low-rate bidirectional RS-232 transmission channel. A digital diagnostic channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The digital diagnostic channel does not work when the USB3.0 link is communicating normally. The digital diagnostic channel will only work before the initial connection between the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver is established, when the USB3.0 terminal device fails, and when manual control is performed. Moreover, the operator can perform corresponding management operations at both the computer end and the USB3.0 device end.
[0083] When we are using a USB 3.0 terminal device, occasionally the device may freeze or other situations occur where the USB 3.0 terminal device cannot be restored to the normal working state through the computer host. In this case, we can send specific instructions through the digital diagnostic channel to the management interface to the control interface of the USB 3.0 terminal device itself or the power supply circuit of the USB 3.0 port connected to the USB 3.0 terminal device to perform a cold start on the device, thereby restoring it to normal. We can also send specific instructions through the digital diagnostic channel to the management interface to the control interface of the USB 3.0 terminal device itself to obtain the fault situation of the USB 3.0 terminal device.
[0084] Before the initial connection between the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver is established, after the MCU control unit 26 of the USB3.0 fiber optic receiver 2 reads the optical module indicators such as the transmitted optical power of the optical module, the bias current of the laser, the receiving sensitivity, the supply voltage of the optical module, the operating temperature, and the fault condition through the I2C bus of the SFP+ optical module 24, it sends a signal to the SFP_Tx_Disable input pin 243 of the SFP+ optical module 24 through the RS-232 serial port of the MCU control unit 26 of the USB3.0 fiber optic receiver 1, modulating and outputting an RS232 optical signal. And at the SFP_LOS output pin 145 of the digital diagnostic channel of the USB3.0 fiber optic transmitter 1, RS-232 serial data is output. The RS-232 serial data is sent to the serial port signal input LOS_232_RXD input pin 1638 of the digital diagnostic channel of the MCU control unit 16 of the USB3.0 fiber optic transmitter 1, and after being processed by the MCU control unit 16, it is sent to the computer host; in addition, we can also convert the instruction into an RS-232 signal at the computer host through the USB2.0 to RS232 conversion circuit of the management interface 18. The RS-232 sends a digital diagnostic request instruction to the CMI_RS232_RXD input pin 1618 of the RS-232 serial port signal of the MCU control unit 16 of the USB3.0 fiber optic transmitter 1 through the RS232_TXD output pin 86 of the management interface 18. The MCU control unit 16 sends an instruction to the serial port signal input LOS_232_RXD input pin 2616 of the MCU control unit 26 of the USB3.0 fiber optic receiver 2 through the digital diagnostic channel. After receiving the instruction, the MCU control unit 26 sends the read optical module indicators back to the serial port signal input LOS_232_RXD input pin 1638 of the MCU control unit 16 of the USB3.0 fiber optic transmitter 1 through the digital diagnostic channel. After being processed by the MCU control unit 16, it is sent to the RS232_RXD input pin 85 of the management interface 18 through the RS-232 serial port signal CMI_RS232_TXD output pin 1617 and sent to the computer host after being converted by USB2.0 to RS232; for the optical module indicators of the USB3.0 fiber optic transmitter 1, we can directly obtain them at the computer host by sending a digital diagnostic request instruction to the MCU control unit of the USB3.0 fiber optic transmitter 1 through the management interface 18; through these two methods, digital diagnostic management of the SFP+ optical module can be achieved; in addition, when an overcurrent fault occurs in the power supply of the USB3.0 terminal device of the USB3.0 fiber optic receiver 2, the MCU control unit 22 will store this fault code until the overcurrent fault is eliminated before clearing the stored fault code. When we find that the device is not working properly, we can send a digital diagnostic request instruction to the USB3.The MCU control unit 22 of the optical fiber receiving end 2 acquires the USB3.0 terminal device fault code.
[0085] The above content is a further detailed description of the present invention in combination with specific preferred embodiments. It cannot be determined that the specific embodiments of the present invention are limited to this. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, several simple deductions or substitutions can still be made, and all should be regarded as belonging to the protection scope determined by the claims submitted by the present invention.
Claims
1. An automatic negotiation method for optical fiber communication between a USB3.0 optical fiber transmitter and a USB3.0 optical fiber receiver, characterized in that: There is an MCU control unit at both the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver, which is used to implement digital diagnosis of the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver, remote control of USB3.0 terminal devices, and automatic negotiation of fiber optic communication between the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver. At any time, the optical receiver of the SFP+ optical module at the USB3.0 fiber optic receiver always receives the optical signal earlier than the optical receiver of the SFP+ optical module at the USB3.0 fiber optic transmitter; after the optical connection of the optical receiver at the USB3.0 fiber optic receiver is interrupted, the MCU control unit will output a control instruction to disconnect the upstream interface link of the USB3.0 HUB main control chip, and the USB3.0 HUB main control chip will enter the standby state, and the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic receiver will be in the emission prohibited state and will not emit any optical signals at all. Even if the fiber is reconnected normally, it will also be in the emission prohibited state before the USB3.0 HUB main control chip at the USB3.0 fiber optic receiver completes the link initialization; after the fiber is disconnected, the optical receiver at the USB3.0 fiber optic transmitter cannot receive the optical signal, and the MCU control unit will output a control instruction to interrupt the link connection between the USB3.0 upstream interface of the USB3.0 fiber optic transmitter and the USB3.0 host controller of the computer; when the optical receiver at the USB3.0 fiber optic receiver is reconnected to the fiber, the MCU control unit will output a control instruction to make the USB3.0 HUB main control chip enter the normal working state, initialize the chip link state, and the Tx output end of the upstream interface of the USB3.0 HUB main control chip will output the LFPS signal. The MCU control unit will output a control instruction to make the optical transmitter of the SFP+ optical module at the USB3.0 fiber optic receiver be in the emission enabled state and normally emit the LFPS optical signal. After the optical receiver at the USB3.0 fiber optic transmitter receives the LFPS optical signal, the MCU control unit will output a control instruction to connect the link between the USB3.0 upstream interface of the USB3.0 fiber optic transmitter and the USB3.0 host controller of the computer, and re-negotiate LFPS with the computer host until the communication connection is normal; when the computer is shut down, the USB3.0 fiber optic transmitter circuit can monitor the link state with the USB3.0 controller of the computer host, and the MCU control unit will output corresponding control instructions according to the link state between the USB3.0 fiber optic transmitter and the USB3.0 controller of the computer host, so that the communication link between the USB3.0 upstream interface of the USB3.0 fiber optic transmitter and the computer host is in the disconnected state, and the USB3.0 HUB main control chip at the USB3.0 fiber optic transmitter will enter the standby state, and will send to USB3.0 The USB3.0 host controller chip at the optical fiber receiving end sends an LFPS negotiation signal to put both in the standby state; when the computer host shuts down, restarts, or is restarted after being shut down, the USB3.0 optical fiber sending end circuit can monitor the link status with the computer host's USB3.0 controller. The MCU control unit at the USB3.0 optical fiber sending end will output corresponding control instructions according to the link status with the computer host's USB3.0 controller to make the USB3.0 upstream interface at the USB3.0 optical fiber sending end be in the correct connection state with the computer host. When it monitors that the computer's USB3.0 controller initiates an LFPS negotiation, the MCU control unit at the USB3.0 optical fiber sending end connects the link between the USB3.0 upstream interface at the USB3.0 optical fiber sending end and the USB3.0 host controller of the computer host, and sends an LFPS signal to the computer host for communication negotiation until the communication connection is normal; after the USB3.0 optical fiber sending end communicates normally with the computer host, the USB3.0 HUB host controller at the USB3.0 optical fiber sending end will send an LFPS negotiation signal to the USB3.0 host controller chip at the USB3.0 optical fiber receiving end until the communication connection is normal.
2. A method for digital diagnosis of a USB3.0 optical fiber transmitter and a USB3.0 optical fiber receiver and remote control of a USB3.0 terminal device, characterized in that: There is a digital diagnostic channel composed of a bidirectional RS-232 transmission channel, an MCU control unit, and a management interface at both the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver. The management interface at the USB3.0 optical fiber transmitter automatically switches the input USB2.0 signal as needed; The management interface of the USB3.0 optical fiber receiver can be connected to the USB2.0 interface of an external computer. The management interface contains a USB2.0 to RS-232 interface for data transmission. Operators use the low-speed bidirectional RS-232 transmission channel, MCU control unit, and management interface combination at the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver, which are formed by the transmit shutdown control input pin and the no-light alarm signal output pin of the SFP+ optical module, through the management interface on the computer host. To control the power supply circuit of the remote USB3.0 terminal device and send control instructions to the control interface of the USB3.0 terminal device itself. Operators send digital diagnostic request instructions from the computer host through the management interface to the MCU control unit of the USB3.0 optical fiber receiver to obtain the USB3.0 terminal device fault code; and perform digital diagnostic management on the SFP+ optical module of the USB3.0 optical fiber receiver and the power supply status of the terminal device. The digital diagnostic channel only works before the initial connection between the USB3.0 optical fiber transmitter and the USB3.0 optical fiber receiver is established, when the USB3.0 terminal device fails, and when manual control is performed. Moreover, operators can perform corresponding management operations at both the computer end and the USB3.0 device end. The specific steps of this method are as follows: Before the initial connection is established between the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver, the MCU control unit of the USB3.0 fiber optic receiver reads the optical module indicators such as the transmitted optical power of the optical module, the bias current of the laser, the receiving sensitivity, the supply voltage of the optical module, the operating temperature, and the fault condition through the I2C bus of the SFP+ optical module. Then, it sends the signal to the SFP_Tx_Disable input pin of the SFP+ optical module through the RS-232 serial port of the MCU control unit of the USB3.0 fiber optic receiver, modulating and outputting the RS232 optical signal. At the same time, RS-232 serial data is output from the SFP_LOS output pin of the digital diagnostic channel of the USB3.0 fiber optic transmitter, and the RS-232 serial data is transported to the serial port signal input pin LOS_232_RXD of the digital diagnostic channel of the MCU control unit of the USB3.0 fiber optic transmitter. After being processed by the MCU control unit, it is sent to the computer host; in addition, the operator can also convert the instruction into an RS-232 signal through the USB3.0 to RS232 conversion circuit of the management interface at the computer host. The RS-232 sends a digital diagnostic request instruction to the RS-232 serial port signal input pin CMI_RS232_RXD of the MCU control unit of the USB3.0 fiber optic transmitter through the RS232_TXD output pin of the management interface. The MCU control unit sends an instruction to the serial port signal input pin LOS_232_RXD of the MCU control unit of the USB3.0 fiber optic receiver through the digital diagnostic channel. After receiving the instruction, the MCU control unit sends the read optical module indicators back to the serial port signal input pin LOS_232_RXD of the MCU control unit of the USB3.0 fiber optic transmitter through the digital diagnostic channel. After being processed by the MCU control unit, it is sent to the input pin RS232_RXD of the management interface through the RS-232 serial port signal output pin CMI_RS232_TXD and sent to the computer host after being converted by USB3.0 to RS232; for the optical module indicators of the USB3.0 fiber optic transmitter, the operator can directly obtain them by sending a digital diagnostic request instruction to the MCU control unit of the USB3.0 fiber optic transmitter through the management interface at the computer host; digital diagnostic management of the SFP+ optical module is achieved through these two methods; in addition, when an overcurrent fault occurs in the power supply of the USB3.0 terminal device at the USB3.0 fiber optic receiver, the MCU control unit will store this fault code until the overcurrent fault is eliminated before clearing the stored fault code. When the operator finds that the device is working abnormally, the operator sends a digital diagnostic request instruction to the MCU control unit of the USB3.0 fiber optic receiver through the management interface at the computer host to obtain USB3.0 Terminal device fault code.
3. A USB2.0 / 3.0 HUB based on long-distance fiber optic transmission, characterized in that: It includes a USB3.0 fiber optic transmitter and a USB3.0 fiber optic receiver. They communicate with each other through an auto-negotiation rule for fiber optic communication between the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver. At any time, the optical receiver of the SFP+ optical module of the USB3.0 fiber optic receiver always receives the optical signal earlier than the optical receiver of the SFP+ optical module of the USB3.0 fiber optic transmitter; the USB3.0 HUB at the USB3.0 fiber optic receiver can connect four USB3.0 / 2.0 / 1.1 terminal devices simultaneously; an SFP+ optical module with hot-plug function is adopted, and the operator can select an appropriate fiber optic length for cabling according to actual needs; a USB2.0 / 3.0 HUB based on long-distance fiber optic transmission does not add any additional data to the original data stream during the transmission of USB3.0 signals. The USB3.0 signals are transparent during fiber optic transmission, and all super-speed USB terminal devices compliant with the USB3.0 standard can be normally connected; for a USB3.0 HUB based on long-distance fiber optic transmission, the USB3.0 HUB main control chip at the USB3.0 fiber optic receiver is FL6000 produced by Fresco Logic Company. There is a low-speed bidirectional RS-232 transmission channel formed by the combination of the transmit shutdown control input pin and the no-light alarm signal output pin of the SFP+ optical module at both the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver of a USB3.0 HUB based on long-distance fiber optic transmission. A digital diagnostic channel is composed of the low-speed bidirectional RS-232 transmission channel, the MCU control unit, and the management interface. The operator can realize remote diagnostic management and remote control functions through the digital diagnostic channels at the USB3.0 fiber optic transmitter and the USB3.0 fiber optic receiver.
4. A USB2.0 / 3.0 HUB based on long-distance optical fiber transmission according to claim 3, characterized in that: The main control chip at the optical fiber transmitting end of the USB3.0 HUB is μPD720210; the USB3.0 HUB main control chip at the optical fiber receiving end of USB3.0 contains a USB2.0 acceleration engine inside. The USB2.0 signals of all downstream ports are converted into USB3.0 signals. Finally, the USB3.0 signals of all downstream interfaces are transmitted with the computer host's USB3.0 main control chip through the super-high-speed HUB controller and routing engine inside the USB3.0 HUB main control chip. The USB2.0 and USB3.0 data are transmitted simultaneously through the USB3.0 super-high-speed differential data line with optical fiber; the upstream port of the USB3.0 HUB main control chip is connected to the SFP+ optical module. The four ports of the USB3.0 HUB main control chip at the optical fiber receiving end of USB3.0 can support both USB2.0 and USB3.0 terminal peripherals, and are directly backward compatible with USB2.0 / 1.1 / 1.0 devices while supporting USB3.0 devices.
5. The USB2.0 / 3.0 HUB based on long-distance optical fiber transmission according to claim 3, characterized in that: There is an Rx_DET analog load at both the optical fiber transmitting end and the optical fiber receiving end of USB3.0, which is used to simulate the Rx_DET circuit at the Rx input end of the USB3.0 main controller's downstream interface, so as to realize the conversion of USB3.0 electrical signals into optical signals for optical fiber communication by using a common SFP+ optical module.
Citation Information
Patent Citations
USB3.0 HUB based on optical fiber long-distance transmission
CN107276675A