A USB3.0 fiber optic expansion card based on PCI-E
By designing a USB3.0 optical fiber expansion card based on PCI-E, the conversion and multi-interface connection of the PCI-E interface and the USB3.0 optical fiber interface are realized, which solves the problems of interface conversion and terminal device connection in the existing technology and achieves high efficiency. , Anti-interference USB3.0 data transmission.
Patent Information
- Application Number
- CN201710692003.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-08-14
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2037-08-14
AI Technical Summary
The prior art cannot effectively solve the problem of direct conversion between the PCI-E interface and the USB3.0 fiber interface, and cannot realize multi-interface connection and remote control of USB3.0 terminal devices.
Design a USB3.0 optical fiber expansion card based on PCI-E, which converts into multiple USB3.0 interfaces through PCI-E technology, and converts USB3.0 electrical signals into optical signals for transmission. Digital diagnostic circuitry is used to realize automatic negotiation and remote control of the card and receiver.
It realizes direct conversion between PCI-E interface and USB3.0 optical fiber interface, supports the connection of multiple USB3.0 interfaces, extends the transmission distance, and has the advantages of anti-electromagnetic interference and transparent data transmission.
Smart Images

Figure CN107302398B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of USB 3.0 and PCI Express communication, in particular to a PCI-E conversion USB 3.0 optical fiber interface, specifically refers to a USB 3.0 optical fiber expansion card based on PCI-E.
[0002] The invention also relates to an automatic negotiation method for optical fiber communication between a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end.
[0003] The invention also relates to a method for digitally diagnosing a USB3.0 optical fiber expansion card and a USB3.0 optical fiber receiving end and remotely controlling a USB3.0 terminal device. Background Art
[0004] The basic technology of PCI Express 2.0 follows the technology of the previous generation 1.0 version, that is, both use high-speed serial bus technology and rely on high frequency to achieve high performance. Therefore, PCI Express was once called "serial PCI". Since serial transmission has strong anti-interference ability and can easily reach a higher frequency, coupled with the assistance of differential signal technology, PCI Express can more easily reach a higher transmission frequency. The bus frequency of PCI Express 1.0 is 2.5GHz, and the 2.0 version is further increased to 5GHz. PCI Express 2.0 maintains compatibility with the current 1.0 / 1.1 specifications, and old PCI Express expansion cards can still run normally in systems with PCI Express 2.0 specifications. Similarly, PCI Express 2.0 expansion devices can also work in 1.0 systems, but the devices must work in 1.0 compatible mode at this time.
[0005] Compared with PCI-E 2.0, the PCI-E 3.0 standard completed in 2010 aims to double the bandwidth to 10GB / s. To achieve this goal, the speed must be increased. The signal frequency of PCI-E 3.0 is increased from 5GT / s in 2.0 to 8GT / s, and the encoding scheme is changed from the original 8b / 10b to the more efficient 128b / 130b. Other specifications remain basically unchanged, and 2 bits of data are still transmitted per cycle, supporting multi-channel parallel transmission. In addition to the significant increase in data throughput brought by doubling the bandwidth, the signal speed of PCI-E 3.0 is faster, and the delay of data transmission will be lower accordingly. In addition, there are also specific optimizations for software models, power consumption management, etc.
[0006] USB3.0 has greatly improved the transmission speed. It is based on a full-duplex data transmission protocol with a theoretical transmission rate of up to 5Gbps (i.e. 625MB / s) and an actual data transmission rate of up to 3.2Gbps (i.e. 400MB / s), which is nearly 10 times faster than the USB2.0 era. The latest USB3.1 Gen2 standard has increased the transmission rate to 10Gbps, so the data transmission distance has encountered unprecedented challenges. Since the transmission rate has been increased from 480Mbps specified in the previous USB2.0 standard to 5Gbps, the use of traditional cables generally does not exceed 3 meters. After some manufacturers use relay amplifier chips, the transmission distance can only reach a maximum of 15 meters. However, since cable transmission is particularly susceptible to electromagnetic interference during use, it is not suitable for use on some industrial production lines with large electromagnetic interference, and some equipment that is sensitive to electromagnetic interference (such as military equipment); and with the rise of Industry 4.0, the transmission distance of many USB3.0 industrial cameras will exceed this distance, and even reach a distance of several hundred meters. In addition, for security reasons, some companies and units often need to centrally manage computer hosts, and users can only use USB3.0 storage devices and USB3.0 printers at the remote end, so as to achieve safe isolation between the computer host and the user, and the distance between the computer and the terminal is often hundreds of meters, and there must be no electromagnetic leakage during data transmission, resulting in data security not being guaranteed. We use optical fiber to transmit USB3.0 signals to solve both the problem of electromagnetic interference and the problem of transmission distance. In addition, although there are some devices that can realize long-distance transmission of USB3.0 signals, 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. The other end converts the received optical signal into an electrical signal, which is converted into parallel data through the USB3.0 physical layer chip and sent to the acquisition card for data collection. They are all targeted at some specific device applications and cannot realize the access of other USB3.0 standard terminal devices. For example, a device used to realize long-distance transmission of USB3.0 industrial cameras cannot be used to access other USB3.0 terminal devices such as U disks, USB3.0 mobile hard disks or printers, and there is no solution that can directly convert the PCI-E interface into a USB3.0 optical fiber interface. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a USB3.0 fiber optic expansion card that is converted into a USB3.0 fiber optic interface based on PCI-E technology. The card can be converted into multiple USB3.0 interfaces through PCI-E technology, and the USB3.0 electrical signals of the multiple USB3.0 interfaces are converted into optical signals for transmission using optical fibers. Moreover, the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end can be digitally diagnosed and the USB3.0 terminal device can be remotely controlled through a digital diagnostic circuit.
[0008] The technical solution adopted by the present invention is: a USB3.0 fiber optic expansion card and a USB3.0 fiber optic receiving end based on PCI-E. The USB3.0 fiber optic expansion card can be converted into multiple USB3.0 interfaces through PCI-E technology, and the USB3.0 electrical signals of multiple USB3.0 interfaces are converted into optical signals for transmission using optical fibers. The USB3.0 fiber optic expansion card and a USB3.0 fiber optic receiving end are used together, and 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 receiving and transmitting 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 then transmitted by optical fiber. The USB3.0 HUB main control chip at the USB3.0 fiber optic receiving end contains a USB2.0 acceleration engine, which can convert the USB2.0 signals of all downstream ports into USB3.0 signals, and finally communicate with the USB3.0 signals of all downstream interfaces through USB3.0. The ultra-high-speed HUB routing engine in the HUB main control chip transmits data with the USB3.0 main control chip of the computer host, so optical fiber can be used to simultaneously transmit USB2.0 and USB3.0 data through USB3.0 ultra-high-speed signals. The four ports of the USB3.0 HUB main control chip can be connected to USB2.0 or USB3.0 terminal peripherals, and USB2.0 and USB3.0 devices can be mixed, that is, backward compatible with USB2.0\1.1\1.0 devices; multi-mode optical fiber or single-mode optical fiber can be used, dual-core optical fiber or single-core optical fiber can be used, and the USB3.0 optical fiber expansion card and USB3.0 optical fiber receiving end have a hot-swappable SFP+ optical module. 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 meters to 400 meters. The data transmitted by the technical solution adopted by the present invention is in the native USB3.0 data format. In the USB3.0 optical fiber communication process, in order to ensure compatibility and universal applicability, the native USB3.0 data sent by the USB3.0 main controller, USB3.0 HUB main control chip and 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 the transmission process using the optical fiber transmission device, and all terminal peripherals that comply with the USB3.0\2.0\1.1\1.0 standards can be connected normally.
[0009] Correspondingly, another technical problem to be solved by the present invention is to provide an automatic negotiation method for optical fiber communication between a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end.
[0010] Correspondingly, another technical problem to be solved by the present invention is to provide a method for digitally diagnosing a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end and remotely controlling a USB 3.0 terminal device.
[0011] The following will introduce the various components of the USB3.0 fiber optic expansion card in detail.
[0012] According to the above scheme, the USB3.0 fiber optic expansion card includes a PCI-E bus interface, a PCI-E to USB3.0 main control chip, a USB3.0 equalizer unit, an Rx_DET analog load unit, an SFP+ optical module unit, an MCU control unit, an LED indication circuit, a management interface circuit, a power supply unit, and a FLASH chip.
[0013] The PCI-E bus interface is used to connect to the PCI-E bus of the computer host.
[0014] Preferably, the PCI-E to USB3.0 main control chip is μPD720201, through which four USB3.0 ports can be expanded using the PCI-E bus interface, and an xHCI controller and USB3.0 Root HUB are internally included.
[0015] The FLASH chip is used to store the configuration data of the PCI-E to USB3.0 main control chip.
[0016] The USB3.0 equalizer unit includes 4 equalizer chips. The parameters of the equalizer chip can be set by external resistors, and the parameters can also be set and read by MCU through the I2C interface. The equalizer chip mainly includes a buffer input circuit, an equalization circuit, an amplification circuit, a buffer output circuit, a signal detection circuit and an I2C interface. The equalizer chip is used to amplify and balance the electrical signal sent from the Tx output end of the downstream interface of the PCI-E to USB3.0 main control chip to the TX input end of the SFP+ optical module, and on the other hand, it is used to amplify and balance the electrical signal sent from the USB3.0 optical fiber receiving end to the Rx input end of the downstream interface of the PCI-Eto USB3.0 main control chip.
[0017] The Rx_DET simulated load unit includes 4 Rx_DET simulated loads, each Rx_DET simulated 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, and when the USB3.0 physical layer is in the U1, U2, and U3 states, in order to save power, the LFPS (Low Frequency Period Singal) signal is used as a communication medium, and the LFPS signal is a low-frequency periodic signal. When no device is inserted into the USB3.0 downstream port, the Tx end of the PCI-E to USB3.0 main controller USB3.0 Root HUB will continuously send an Rx Detect square wave signal, which is not a LFPS signal. If no device is plugged in, according to the USB3.0 protocol, it is always in the Rx Detect state; when a device is plugged in, the Tx end of the USB3.0 Root HUB will send a LFPS signal; and the input interface circuit of the ordinary SFP+ optical module does not have the Rx Detect circuit of the Rx input end of the USB3.0 interface. Therefore, when the SFP+ optical module is connected to the USB3.0 Root HUB, the USB3.0 Root HUB 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 link failure and inability to perform data transmission. The Rx_DET simulated load in the present invention is a key technical means to solve this problem.
[0018] The SFP+ optical module unit comprises four SFP+ optical modules, each of which is connected to a corresponding USB3.0 equalizer, and is used to convert an electrical signal sent from a buffer output end of the USB3.0 equalizer into an optical signal on the one hand, and to convert an optical signal sent from a USB3.0 optical fiber receiving end into an electrical signal and send it to a buffer amplifier input end of the USB3.0 equalizer on the other hand; in addition, the present invention utilizes a combination of a transmission shutdown control Tx_Disable input pin of an optical transmitter of the SFP+ optical module and a lightless alarm signal LOS output pin of an optical receiver to form a low-rate bidirectional RS-232 transmission channel, and a digital diagnostic channel is formed by the bidirectional RS-232 transmission channel, an MCU control unit, and a management interface. The computer uses the digital diagnostic channel to send control instructions to a power supply circuit of a USB3.0 terminal device or a USB3.0 terminal device, and performs digital diagnostic management on the SFP+ optical module at the USB3.0 optical fiber receiving end.
[0019] The MCU control unit is independently powered by a PCI-E AUX power supply, and is used to control the handshake connection between the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end and reset the PCI-E to USB3.0 main controller; to control the power supply of the SFP+ optical module; to realize digital diagnosis and control of the SFP+ optical module; to realize the sending of USB3.0 terminal device control instructions, and to realize digital diagnosis management of the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end in combination with the management interface.
[0020] The management interface circuit is connected to a downstream USB2.0 port of the PCI-E to USB3.0 host controller to realize the conversion of USB2.0 into an RS-232 interface. The RS-232 interface is connected to an RS-232 serial port of the MCU control unit to realize digital diagnosis management of the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end on the computer host side.
[0021] The power supply unit provides power for the PCI-E to USB3.0 main controller chip, MCU control unit, SFP+ optical module, management interface, LED indication circuit, and FLASH chip.
[0022] The LED indication circuit is used to indicate information such as communication status, SFP+ module status, and fault conditions.
[0023] The following will introduce the various components of the USB3.0 fiber optic receiving end in detail.
[0024] According to the above scheme, 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.
[0025] The USB 3.0 downstream interface is used to connect to a USB 3.0 terminal device.
[0026] Preferably, the USB3.0 HUB main control chip is FL6000 produced by Fresco Logic, which uses Fresco Logic's unique F-One TMTechnology allows the USB2.0 and USB3.0 data of the downstream port to be transmitted through the USB3.0 ultra-high-speed differential data lines (SSTX+ / - and SSRX+ / -) of the upstream port, without having 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 be directly backward compatible with USB2.0 / 1.1 / 1.0 devices. The FL6000 chip contains a USB2.0 acceleration engine (USB2.0 to USB3.0 Translators) that can convert all USB2.0 signals of the downstream ports into USB3.0 signals, and finally transmit the USB3.0 signals of all downstream interfaces to the USB3.0 host chip of the computer host through the ultra-high-speed HUB controller and routing engine (SuperSpeed HUB Controller and Routing) in the USB3.0 HUB host chip. Therefore, optical fiber can be used to transmit USB2.0 and USB3.0 data simultaneously through the USB3.0 ultra-high-speed differential data line; USB3.0 The upstream port of the HUB main control chip is connected to the SFP+ optical module. The 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 USB2.0 stylus, USB touch screen, USB mouse, USB keyboard, USB3.0 industrial printer, USB3.0 camera, USB3.0 mobile hard disk, USB3.0 mobile U disk and other standard USB peripherals. USB2.0 and USB3.0 devices can be used mixedly.
[0027] The EEPROM chip is used to store the configuration data of the USB3.0 HUB main control chip.
[0028] The Rx_DET simulated load is used to simulate the Rx_DET circuit of the Rx input end of the downstream interface of the USB3.0 main controller; 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, and U3 states, the LFPS (Low Frequency Period Singal) signal is used as the communication medium to save power. 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 main controller, the Tx end of the USB3.0 HUB main control chip will continuously send the Rx Detect square wave signal, which is not a LFPS signal. If it has not been connected to the USB3.0 host controller, it will be in the Rx Detect state according to the USB3.0 protocol; when the upstream port of the USB3.0 HUB main control chip is connected to the USB3.0 main controller, the Tx end of the USB3.0 HUB chip will send an LFPS signal; and the input interface circuit of the ordinary SFP+ optical module does not have the Rx Detect circuit of 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.0HUB main control chip will be in the Rx Detect state all the time, and cannot communicate with the downstream interface of the USB3.0 HUB main control chip of the USB3.0 optical fiber transmitter, resulting in link failure and inability to perform data transmission. The Rx_DET simulated load in the present invention is a key technical means to solve this problem.
[0029] The SFP+ optical module, on the one hand, converts the optical signal sent by the USB3.0 optical fiber expansion card into an electrical signal and sends it to the upstream interface Rx input end of the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end; on the other hand, converts the electrical signal sent by the upstream interface Tx output end of the USB3.0 optical fiber receiving end into an optical signal and sends it to the Rx input end of the USB3.0 optical fiber expansion card SFP+ optical module; in addition, the present invention utilizes the transmission shutdown control Tx_Disable input pin of the SFP+ optical module optical transmitter and the lightless alarm signal LOS output pin of the optical receiver to form a low-rate bidirectional RS-232 transmission channel, and the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface form a digital diagnostic channel. The computer uses the digital diagnostic channel to send control instructions to the power supply circuit of the USB3.0 terminal device or the USB3.0 terminal device, and performs digital diagnostic management on the SFP+ optical module at the USB3.0 optical fiber receiving end.
[0030] The MCU control unit is used to control the handshake connection between the USB3.0 HUB and the USB3.0 main controller of the computer host and reset the USB3.0 main control chip, to control the power supply unit to realize the power supply control and fault diagnosis of the USB3.0 terminal device, to realize the sending of the control instructions of the USB3.0 terminal device, to realize the digital diagnosis and control of the SFP+ optical module, and to realize the digital diagnosis management of the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end in combination with the management interface.
[0031] The management interface circuit is connected to a downstream USB2.0 port of the USB3.0 HUB main control chip to realize the conversion of USB2.0 into an RS-232 interface. The RS-232 interface is connected to an RS-232 serial port of the MCU control unit to realize digital diagnosis management of the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end on the computer host side.
[0032] The power supply unit can realize automatic switching between USB3.0 interface power supply and external power supply, and provide power for USB3.0 HUB chip, MCU control unit, SFP+ optical module, management interface, LED indication circuit and EEPROM.
[0033] The LED indication circuit is used to indicate information such as communication status, SFP+ module status, and fault conditions.
[0034] The method for automatic negotiation of optical fiber communication between a USB3.0 optical fiber expansion card and a USB3.0 optical fiber receiving end is to solve the problem of USB3.0 terminal device re-establishing a correct communication link with a computer host due to optical fiber interruption of an optical fiber interface, repeated plugging and unplugging of optical fibers, hot plugging of SFP+ optical modules, computer power on / off, and restart during the process of transmitting USB3.0 data using optical fiber by using single-chip computer programming technology and formulating relevant communication rules.
[0035] USB3.0 fiber optic communication is a full-duplex bidirectional communication, which can use two-core optical fiber, or use single-core optical fiber using the principle of optical wavelength division multiplexing. There are three situations in the process of fiber optic connection. The first is that the optical transmitter and receiver of the USB3.0 fiber optic expansion card SFP+ optical module are connected to the optical transmitter and optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module at the same time; the second is that the optical transmitter of the USB3.0 fiber optic expansion card SFP+ optical module is first connected to the optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module, and further, the optical receiver of the USB3.0 fiber optic expansion card SFP+ optical module is connected to the optical transmitter of the USB3.0 fiber optic receiving end SFP+ optical module; the third is that the optical receiver of the USB3.0 fiber optic expansion card SFP+ optical module is first connected to the optical transmitter of the USB3.0 fiber optic receiving end SFP+ optical module, and further, the optical transmitter of the USB3.0 fiber optic expansion card SFP+ optical module is connected to the optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module.
[0036] If the optical fiber connection is interrupted due to optical fiber damage or manual unplugging, and the optical fiber connection needs to be reestablished, the PCI-E to USB3.0 host controller of the computer host and the USB3.0 HUB main control chip at the remote USB3.0 optical fiber receiving end need to re-establish the connection. At this time, both parties 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 optical fiber receiving end has not yet exited the ultra-high-speed link state, when the first and third situations occur, the downstream interface of the PCI-E to USB3.0 host controller of the USB3.0 optical fiber expansion card receives ultra-high-speed data packets instead of LFPS data signals, which will cause the negotiation to fail, resulting in the PCI-E to USB3.0 host controller port of the USB3.0 optical fiber expansion card on the computer side not being able to operate normally, and thus failing to identify the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end and the external USB3.0 terminal device.
[0037] During the communication process, the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver often encounter the situation that the computer host is shut down, restarted, or restarted after being shut down for a long time. This will lead to a serious problem: when the computer host re-enters the operating system, the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver often fail to connect to the computer host. The computer host may prompt that the USB 3.0 device is compliant but cannot be linked, or there is no link action at all. The reason for this problem is that after the computer host exits the system, the communication status of the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver does not enter the LFPS negotiation state, but has been in a normal ultra-high-speed link. When the computer host re-enters the system, the PCI-E to USB 3.0 host controller of the USB 3.0 fiber optic expansion card on the computer host side and the USB 3.0 fiber optic receiver should be in a low-speed communication mode, but the actual PCI-E to The USB3.0 host controller first receives the ultra-high-speed data packet sent by the USB3.0 optical fiber receiving end, which causes the negotiation between the two to fail. The computer host cannot find the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end and all its external USB3.0 terminal devices.
[0038] In order to solve the above problems, we hereby agree on an automatic negotiation method for optical fiber communication between the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end: no matter when, the optical receiver of the SFP+ optical module of the USB3.0 optical fiber receiving end always receives the optical signal before the optical receiver of the SFP+ optical module of the USB3.0 optical fiber expansion card; after the optical fiber connection of the optical receiver of the USB3.0 optical fiber receiving end is interrupted, the MCU control unit sends an output control instruction to disconnect the upstream interface link of the USB3.0 HUB main control chip, and 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 receiving end is in the transmission prohibition state, and no optical signal is sent out at all. Even if the optical fiber is reconnected normally, the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end will be in the transmission prohibition state before the link initialization is completed; after the optical fiber is disconnected, the optical receiver of the USB3.0 optical fiber expansion card cannot receive the optical signal, and the MCU control unit sends an output control instruction to make the equalizer chip of the USB3.0 optical fiber expansion card and the PCI-E to The USB3.0 host controller link connection is interrupted; when the optical receiver at the USB3.0 fiber receiving end is reconnected to the fiber, the MCU control unit sends an output control instruction to make the USB3.0 HUB main control chip enter the normal working state, initialize the chip link state, and the USB3.0 HUB main control chip upstream interface Tx output end outputs the LFPS signal. The MCU control unit sends an output control instruction to make the optical transmitter of the SFP+ optical module at the USB3.0 fiber receiving end in the transmit enable state, and send out the LFPS optical signal normally. After the optical receiver of the USB3.0 fiber expansion card receives the LFPS optical signal, the MCU control unit sends an output control instruction to make the equalizer chip and the PCI-E to The link of the USB3.0 host controller is connected, and the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end re-negotiate LFPS until the communication connection is normal; when the computer host is turned off, the USB3.0 fiber optic expansion card circuit can monitor the power supply of the computer motherboard, and the MCU control unit will output corresponding control instructions according to the power supply status of the computer host motherboard, turn off the transmission of the SFP+ optical module, and make the communication link between the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end disconnected, and the USB3.0 main control chip of the USB3.0 fiber optic receiving end enters the standby state; when the computer host is turned off, restarted, or turned off and then turned on again, the USB3.0 fiber optic expansion card circuit can monitor the power supply changes of the computer motherboard, and the MCU control unit of the USB3.0 fiber optic expansion card will output corresponding control instructions according to the power supply status of the computer motherboard, enable the transmission of the SFP+ optical module, and make the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end fiber link connected. When the computer USB3.0 is monitored, the USB3.0 fiber optic expansion card circuit can monitor the power supply changes of the computer motherboard, and the MCU control unit of the USB3.0 fiber optic expansion card will output corresponding control instructions according to the power supply status of the computer motherboard, enable the transmission of the SFP+ optical module, and make the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end fiber link connected.After the USB3.0 controller initiates LFPS negotiation, the USB3.0 fiber expansion card MCU control unit connects the link between the USB3.0 equalizer and the PCI-E to USB3.0 host controller, and the USB3.0 fiber expansion card and the USB3.0 fiber receiving end perform LFPS communication negotiation until the communication connection is normal.
[0039] The data stream of the ultra-high-speed USB3.0 terminal device specified in the USB3.0 standard must be encoded into an ultra-high-speed data stream for transmission during the communication process. Since the USB3.0 standard does not reserve some low-speed IO channels, in the USB3.0 optical fiber communication process, in order to ensure compatibility and universal applicability, the optical fiber transmission device will not re-encode and decode the USB3.0, but only perform electrical-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, the transmission and result return of remote switch control, digital diagnostic signals, etc. cannot be completed by the USB3.0 hardware circuit. Therefore, the present invention is based on this practical application and proposes a method for digital diagnosis of USB3.0 optical fiber expansion card and USB3.0 optical fiber receiving end and remote control of USB3.0 terminal device.
[0040] The method for digitally diagnosing a USB3.0 optical fiber expansion card and a USB3.0 optical fiber receiving end and remotely controlling a USB3.0 terminal device comprises: utilizing a transmission shutdown control SFP_Tx_Disable input pin of an SFP+ optical module optical transmitter and a light-loss alarm signal SFP_LOS output pin of an optical receiver to form a low-rate bidirectional RS-232 transmission channel; a bidirectional RS-232 transmission channel, an MCU control unit, and a management interface form a digital diagnostic channel; a computer sends control instructions to a power supply circuit of a USB3.0 terminal device or a control interface of the USB3.0 terminal device itself through the digital diagnostic channel, and performs digital diagnostic management on the power supply status of the SFP+ optical module and the terminal device.
[0041] Referring to the SMALL FORM-FACTOR PLUGGABLE (SFP) TRANSCEIVER MULTISOURCEAGREEMENT (MSA) international standard, the SFP+ optical module optical transmitter's transmit shutdown control SFP_Tx_Disable input pin is used to turn on and off the light-emitting state of the SFP+ optical module optical transmitter laser. When the pin is at a high level, the laser does not emit light, and when the pin is at a low level, the laser emits light. When the SFP+ optical module is working normally, the transmit shutdown control signal level must always be kept low; and the SFP+ optical module optical receiver's no-light alarm signal SFP_LOS output pin outputs a no-light alarm signal SFP_LOS when there is no optical signal input to the optical receiver. The SFP_LOS pin outputs a high-level signal. When an optical signal is input to the optical receiver, the SFP_LOS output pin outputs a low-level signal. This signal is only used to determine whether there is an input optical signal. In the normal optical communication process, the signal is always kept at a low level. These two control pins do not have the function of two-way data communication, but we can input a low-rate digital square wave signal, such as a 9600bps serial port signal, into the transmit shutdown control SFP_Tx_Disable input pin, then the SFP+ optical module optical transmitter will follow the low rate. The high and low level changes of the digital square wave signal of the rate produce the state changes of no light emission and light emission, thereby modulating a 9600bps low-rate optical signal, and the no-light alarm signal SFP_LOS output pin of the corresponding SFP+ optical module optical receiver will restore the original 9600bps serial port signal according to the state changes of no light input and light input; therefore, the transmission shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter and the no-light alarm signal SFP_LOS output pin of the optical receiver can be combined to form a low-rate bidirectional RS-232 transmission channel, which is composed of a bidirectional RS-232 transmission channel, an MCU control unit, and a management interface to form a digital diagnostic channel. The digital diagnostic channel does not work when the USB3.0 link communicates normally. The digital diagnostic channel will only work before the initial connection between the USB3.0 fiber expansion card and the USB3.0 fiber receiving end is established, when the USB3.0 terminal device fails, and when it is manually controlled, and the operator can perform corresponding management operations on both the computer and the USB3.0 device.
[0042] When we occasionally encounter a device freeze or other problems that make it impossible to restore the USB3.0 terminal device to normal working condition through the computer host during use of the USB3.0 terminal device, we can send specific instructions to the management interface through the digital diagnostic channel to the control interface of the USB3.0 terminal device itself or to the power supply circuit of the USB3.0 port connected to the USB3.0 terminal device to cold start the device and restore it to normal. We can also send specific instructions to the management interface through the digital diagnostic channel to the control interface of the USB3.0 terminal device itself to obtain the fault status of the USB3.0 terminal device.
[0043] Before the initial connection between the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end is established, the MCU control unit of the USB3.0 fiber optic receiving end reads the optical module indicators such as the transmitted optical power, laser bias current, receiving sensitivity, power supply voltage, operating temperature, and fault condition of the optical module through the I2C bus of the SFP+ optical module, and then 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 receiving end, modulates and outputs the RS232 optical signal, and outputs the RS-232 serial data at the SFP_LOS output pin of the digital diagnostic channel of the USB3.0 fiber optic expansion card. The RS-232 serial data is transmitted 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 expansion card, and is sent to the computer host after being processed by the MCU control unit; in addition, we can also use the USB2.0 to The RS232 conversion circuit converts the command into an RS-232 signal. The RS-232 sends a digital diagnostic request command to the RS-232 serial port signal input pin CMI_RS232_RXD of the MCU control unit of the USB3.0 fiber optic expansion card through the RS232_TXD output pin of the management interface. The MCU control unit sends the command to the serial port signal input pin LOS_232_RXD of the MCU control unit at the USB3.0 fiber optic receiving end through the digital diagnostic channel. After receiving the command, the MCU control unit transmits 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 expansion card 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 transmitted to the USB2.0 to After RS232 conversion, it is sent to the computer host side; for the optical module indicators of the USB3.0 fiber optic expansion card, we can send digital diagnostic request instructions to the MCU control unit of the USB3.0 fiber optic expansion card through the management interface on the computer host side to directly obtain them; these two methods can realize digital diagnostic management of the SFP+ optical module; in addition, when the power supply of the USB3.0 terminal device at the USB3.0 fiber optic receiving end produces an overcurrent fault, the MCU control unit will store this fault code and will not clear the stored fault code until the overcurrent fault is resolved. When we find that the device is not working properly, we can send a digital diagnostic request instruction to the MCU control unit at the USB3.0 fiber optic receiving end through the management interface on the computer host side to obtain the USB3.0 terminal device fault code.
[0044] The beneficial effects of the present invention are as follows: a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end are provided, which support long-distance transmission between a variety of USB 3.0 terminal devices and a computer based on optical fiber transmission, and the transmission distance can reach 300 meters to 400 meters, and can use multi-mode optical fiber or single-mode optical fiber, can use dual-core optical fiber or single-core optical fiber; the present invention can connect USB 2.0 or USB 3.0 terminal peripherals, and USB 2.0 and USB 3.0 devices can be mixed and used, that is, backward compatible with USB 2.0 / 1.1 / 1.0 devices, and adopts a hot-swappable SFP+ optical module, which can be replaced without power failure, and is very convenient to use and maintain, and the length of the optical fiber can be wired according to actual needs; not only can a variety of USB 3.0 terminal devices be connected to the host, but also the status monitoring of the SFP+ optical module and the remote operation of the USB 3.0 terminal device can be realized through the digital diagnostic circuit, and the data transmitted by the present invention is the native USB 3.0 data format, and will not convert the USB 3.0 host controller, USB 3.0 The native USB3.0 data sent by the HUB main control chip and the USB3.0 terminal device is converted into other formats and re-encoded and decoded before transmission, so its transmission is transparent, and all terminal peripherals that meet the USB3.0 standard can be connected normally. While extending the USB3.0 transmission distance, the present invention also has the advantages of no electromagnetic leakage and anti-electromagnetic interference in the transmission channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a block diagram of the system application principle of the present invention.
[0046] Figure 2 It is a principle block diagram of the USB 3.0 optical fiber expansion card of the present invention.
[0047] Figure 3 The present invention is a block diagram of the principle of the USB 3.0 optical fiber expansion card PCI-E to USB 3.0 main controller chip.
[0048] Figure 4 The invention discloses a USB 3.0 optical fiber expansion card equalizer 1.
[0049] Figure 5 It is a USB 3.0 optical fiber expansion card equalizer 2 of the present invention.
[0050] Figure 6 It is the USB3.0 optical fiber expansion card equalizer 3 of the present invention.
[0051] Figure 7 It is the USB3.0 optical fiber expansion card equalizer 4 of the present invention.
[0052] Figure 8 It is a USB3.0 optical fiber extension card Rx_DET simulated load unit of the present invention.
[0053] Fig. 9 The invention discloses a USB 3.0 optical fiber expansion card SFP+ optical module unit.
[0054] Fig.10 The invention relates to a USB 3.0 optical fiber expansion card MCU control unit.
[0055] Fig.11 It is a USB3.0 optical fiber expansion card power supply unit of the present invention.
[0056] Fig.12 It is the USB3.0 optical fiber expansion card management interface of the present invention.
[0057] Fig.13 It is a principle block diagram of the USB3.0 optical fiber receiving end of the present invention.
[0058] Fig.14 This is a principle block diagram of a USB 3.0 HUB main control chip at a USB 3.0 optical fiber receiving end of the present invention.
[0059] Fig.15 It is the USB3.0 optical fiber receiving end Rx_DET simulated load of the present invention.
[0060] Fig.16 It is a USB3.0 optical fiber receiving end SFP+ optical module of the present invention.
[0061] Fig.17 It is a USB3.0 optical fiber receiving end MCU control unit of the present invention.
[0062] Fig.18 It is a USB3.0 optical fiber receiving end power supply unit of the present invention.
[0063] Fig.19 It is the USB3.0 optical fiber receiving end management interface of the present invention. DETAILED DESCRIPTION
[0064] In order to better understand the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It is also necessary to explain that, for the convenience of description, only the parts related to the present invention, rather than all circuit structures, are shown in the accompanying drawings.
[0065] The present invention is a USB3.0 fiber expansion card and a USB3.0 fiber receiving end based on PCI-E; the system application principle block diagram is as follows Figure 1As shown, one end of the USB3.0 fiber optic expansion card S2 is connected to the PCI-E bus S1 of the computer host, and the other end is connected to the USB3.0 fiber optic receiving end S3 through an optical fiber; the downstream interface of the USB3.0 fiber optic receiving end S3 can be simultaneously connected to a USB mouse, USB keyboard, USB3.0 mobile hard disk, USB3.0 camera, USB3.0 printer through a USB3.0 cable, and a USB terminal device S4 that complies with the USB3.0\2.0\1.1\1.0 standard can be normally connected; the present invention utilizes the ultra-speed data differential interface of the USB3.0 interface: SSTX+ / - and SSRX+ / - to realize the 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 PCI-E to USB3.0 host controller, USB3.0 The native USB3.0 data sent by the HUB main control chip and the USB3.0 terminal device is converted into other formats and re-encoded and decoded before transmission, so its transmission is transparent, and all terminal peripherals that comply with the USB3.0\2.0\1.1\1.0 standards can be connected normally.
[0066] Reference Figure 2-13 , detailed description of USB3.0 fiber expansion card S2.
[0067] like Figure 2 As shown, the USB3.0 fiber optic expansion card S2 includes a PCI-E bus interface 1, a PCI-E to USB3.0 main control chip 2, a USB3.0 equalizer unit 3, an Rx_DET analog load unit 4, an SFP+ optical module unit 5, an MCU control unit 6, an LED indication circuit 7, a management interface circuit 8, a power supply unit 9, and a FLASH chip 10.
[0068] The PCI-E bus interface is used to connect to the PCI-E bus of the computer host.
[0069] Preferably, the PCI-E to USB3.0 main control chip is μPD720201, or other chips with the same function. The chip can be used to expand four USB3.0 ports using the PCI-E bus interface, and contains an xHCI controller and USB3.0 Root HUB.
[0070] Connection between PCI-E to USB3.0 main control chip 2 and other circuits:
[0071] (1) FLASH data bus 239 is connected to external FLASH chip 10;
[0072] (2) PCI-E bus signals: the clock PCI-E_CLK+ / - differential input pin 212, the PCI-E data transmission PCI-E_TX+ / - differential output pin 233, the PCI-E data reception PCI-E_RX+ / - differential input pin 232, the PCI-E bus reset signal PCI-E_RST input pin 215, the PCI-E bus wake-up signal PCI-E_WAKE output pin 216, and the PCI-E bus clock request interrupt signal PCI-E_CREQ output pin 217 are all connected to the PCI-E interface signal bus on the computer motherboard, wherein the PCI-E_RST input pin 215 is also connected to the PCI-E_RST output pin 691 of the MCU control unit, and the PCI-E_WAKE output pin 216 is also connected to the PCI-E_WAKE output pin 692 of the MCU control unit;
[0073] (3) The USB3-TX1+ / - differential pair 222 of the downstream interface 1 is connected to the input 3111 of the USB3.0 equalizer chip 31, the output signal 3121 of the equalizer chip 31 is connected to the input pin 41 of the RX_DET simulated load 1, and the output pin 45 of the RX_DET simulated load 1 is connected to the TX1 input terminal 516 of the SFP+ optical module 51; the USB3-RX1+ / - differential pair 223 of the downstream interface 1 is connected to the output 3112 of the USB3.0 equalizer chip 31, and the output signal 3122 of the equalizer chip 31 is connected to the RX1 output terminal 517 of the SFP+ optical module 51;
[0074] (4) The USB3-TX2+ / - differential pair 224 of the downstream interface 2 is connected to the input 3211 of the USB3.0 equalizer chip 32, the output signal 3221 of the equalizer chip 32 is connected to the input pin 42 of the RX_DET simulated load 2, and the output pin 46 of the RX_DET simulated load 2 is connected to the TX2 input terminal 526 of the SFP+ optical module 52; the USB3-RX2+ / - differential pair 225 of the downstream interface 2 is connected to the output 3212 of the USB3.0 equalizer chip 32, and the output signal 3222 of the equalizer chip 32 is connected to the RX2 output terminal 527 of the SFP+ optical module 52;
[0075] (5) The USB3-TX3+ / - differential pair 226 of the downstream interface 3 is connected to the input 3311 of the USB3.0 equalizer chip 33, the output signal 3321 of the equalizer chip 33 is connected to the input pin 43 of the RX_DET simulated load 3, and the output pin 47 of the RX_DET simulated load 3 is connected to the TX3 input terminal 536 of the SFP+ optical module 53; the USB3-RX3+ / - differential pair 227 of the downstream interface 3 is connected to the output 3113 of the USB3.0 equalizer chip 33, and the output signal 3322 of the equalizer chip 33 is connected to the RX3 output terminal 537 of the SFP+ optical module 53;
[0076] (6) The USB3-TX4+ / - differential pair 228 of the downstream interface 4 is connected to the input 3411 of the USB3.0 equalizer chip 34, the output signal 3421 of the equalizer chip 34 is connected to the input pin 44 of the RX_DET simulated load 4, and the output pin 48 of the RX_DET simulated load 4 is connected to the TX4 input terminal 546 of the SFP+ optical module 54; the USB3-RX5+ / - differential pair 229 of the downstream interface 4 is connected to the output 3412 of the USB3.0 equalizer chip 34, and the output signal 3422 of the equalizer chip 34 is connected to the RX4 output terminal 547 of the SFP+ optical module 54;
[0077] (7) The reset signal PRST input 218 is connected to the external reset circuit on one hand, and is connected to the PRST output pin 693 of the MCU control unit 6 on the other hand. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0078] The USB3.0 equalizer unit 3 includes an equalizer chip 31, an equalizer chip 32, an equalizer chip 33, and an equalizer chip 34. The parameters of the equalizer chip can be set by an external resistor, or the parameters can be set and read by an MCU through an I2C interface. The equalizer chip mainly includes a buffer input circuit, an equalizer circuit, an amplifier circuit, a buffer output circuit, a signal detection circuit, and an I2C interface. The equalizer chip is used to amplify and balance the electrical signal sent from the Tx output terminal of the downstream interface of the PCI-E to USB3.0 main control chip to the TX input terminal of the SFP+ optical module, and on the other hand, it is used to amplify and balance the electrical signal sent from the USB3.0 optical fiber receiving end to the Rx input terminal of the downstream interface of the PCI-E to USB3.0 main control chip.
[0079] Connection between the equalizer chip 31 and other circuits: the work enable signal EN input 3132 is connected to the external resistor and is also connected to the EQ1_EN output pin 651 of the MCU control unit 6; 2The C mode enable signal I2C_EN input 3133 is connected to the external resistor and is also connected to the EQ1_I2C_EN output pin 652 of the MCU control unit 6; 2 C bus clock signal and channel A output swing setting OS_A_SCL pin 3133 is connected to the EQ1_SCL output pin 653 of the MCU control unit 6 and is also connected to the external resistor network; 2 The C bus data signal and channel A de-emphasis DE_A_SDA pin 3133 are connected to the EQ1_SDA output pin 654 of the MCU control unit 6, and are also connected to an external resistor network; the EQ parameter setting EQ_A pin 3136 of channel A is connected to the external resistor network; the channel B output swing setting signal OS_B / A1 pin 3137 is connected to the external resistor network; the channel B de-emphasis setting signal DE_B / A0 pin 3138 is connected to the external resistor network; the channel B EQ parameter setting EQ_B pin 3139 is connected to the external resistor network.
[0080] Connection between the equalizer chip 32 and other circuits: the work enable signal EN input 3232 is connected to the external resistor and is also connected to the EQ2_EN output pin 661 of the MCU control unit 6; 2 The C mode enable signal I2C_EN input 3233 is connected to the external resistor and is also connected to the EQ2_I2C_EN output pin 662 of the MCU control unit 6; 2 C bus clock signal and channel A output swing setting OS_A_SCL pin 3233 are connected to EQ2_SCL output pin 663 of MCU control unit 6 and are also connected to an external resistor network; 2 The C bus data signal and channel A de-emphasis DE_A_SDA pin 3233 are connected to the EQ2_SDA output pin 664 of the MCU control unit, and are also connected to an external resistor network; the EQ parameter setting EQ_A pin 3236 of channel A is connected to the external resistor network; the channel B output swing setting signal OS_B / A1 pin 3237 is connected to the external resistor network; the channel B de-emphasis setting signal DE_B / A0 pin 3238 is connected to the external resistor network; the channel B EQ parameter setting EQ_B pin 3239 is connected to the external resistor network.
[0081] Connection between the equalizer chip 33 and other circuits: the work enable signal EN input 3332 is connected to the external resistor and is also connected to the EQ3_EN output pin 671 of the MCU control unit 6; 2 The C mode enable signal I2C_EN input 3333 is connected to the external resistor and is also connected to the EQ3_I2C_EN output pin 672 of the MCU control unit 6; 2C bus clock signal and channel A output swing setting OS_A_SCL pin 3333 is connected to EQ3_SCL output pin 673 of MCU control unit 6 and is also connected to an external resistor network; 2 The C bus data signal and channel A de-emphasis DE_A_SDA pin 3333 are connected to the EQ3_SDA output pin 674 of the MCU control unit 6, and are also connected to an external resistor network; the EQ parameter setting EQ_A pin 3336 of channel A is connected to the external resistor network; the channel B output swing setting signal OS_B / A1 pin 3337 is connected to the external resistor network; the channel B de-emphasis setting signal DE_B / A0 pin 3338 is connected to the external resistor network; the channel B EQ parameter setting EQ_B pin 3339 is connected to the external resistor network.
[0082] Connection between the equalizer chip 34 and other circuits: the work enable signal EN input 3432 is connected to the external resistor and is also connected to the EQ4_EN output pin 681 of the MCU control unit 6; 2 The C mode enable signal I2C_EN input 3433 is connected to the external resistor and is also connected to the EQ4_I2C_EN output pin 682 of the MCU control unit 6; 2 C bus clock signal and channel A output swing setting OS_A_SCL pin 3433 is connected to EQ4_SCL output pin 683 of MCU control unit 6 and is also connected to an external resistor network; 2 C bus data signal and channel A de-emphasis DE_A_SDA pin 3433 are connected to the EQ4_SDA output pin 684 of the MCU control unit 6, and are also connected to an external resistor network; channel A's EQ parameter setting EQ_A pin 3436 is connected to the external resistor network; channel B output swing setting signal OS_B / A1 pin 3437 is connected to the external resistor network; channel B de-emphasis setting signal DE_B / A0 pin 3438 is connected to the external resistor network; channel B's EQ parameter setting EQ_B pin 3439 is connected to the external resistor network.
[0083] Connection between the pins of the SFP+ optical module 51 and other circuits: the I2C bus clock signal SFP1_SCL pin 511 is connected to the clock signal SFP1_SCL pin 611 of the MCU control unit 6, and the I2C bus data signal SFP1_SDA pin 512 is connected to the data signal SFP1_SDA pin 612 of the MCU control unit 6; the transmission shutdown signal SFP1_TxDisable input pin 513 of the SFP+ optical module 51 is connected to the SFP1_TxDisable output pin 613 of the MCU control unit 6; the transmission fault indication SFP1_TxFault output pin 514 of the SFP+ optical module 51 is connected to the SFP1_TxFault input pin 614 of the MCU control unit 6; The light-out alarm signal SFP1_LOS output pin 515 of the SFP+ optical module 51 is connected to the SFP1_LOS input pin 615 and the LOS1_232_RXD input pin 617 of the MCU control unit 6; the optical module plug-in detection signal MOD1_IN output pin 518 of the SFP+ optical module 51 is connected to the SFP1_MOD_IN input pin 616 of the MCU control unit 6. The optical transmission circuit power supply input SFP1_VCCT pin 519 of the SFP+ optical module 51 is connected to the optical module optical transmission circuit power supply SFP1_VCCT output pin 934 of the power supply unit 92; the optical receiving circuit power supply input SFP1_VCCR pin 520 of the SFP+ optical module 51 is connected to the optical module optical receiving circuit power supply SFP1_VCCR output pin 933 of the power supply unit 92. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0084] Connection between the pins of the SFP+ optical module 52 and other circuits: the I2C bus clock signal SFP2_SCL pin 521 is connected to the clock signal SFP2_SCL pin 621 of the MCU control unit 6, and the I2C bus data signal SFP2_SDA pin 522 is connected to the data signal SFP2_SDA pin 622 of the MCU control unit 6; the transmission shutdown signal SFP2_TxDisable input pin 523 of the SFP+ optical module 52 is connected to the SFP2_TxDisable output pin 623 of the MCU control unit 6; the transmission fault indication SFP2_TxFault output pin 524 of the SFP+ optical module 52 is connected to the SFP2_TxFault input pin 624 of the MCU control unit 6; The light-out alarm signal SFP2_LOS output pin 525 of the SFP+ optical module 52 is connected to the SFP1_LOS input pin 625 and the LOS2_232_RXD input pin 627 of the MCU control unit 6; the optical module plug-in detection signal MOD2_IN output pin 528 of the SFP+ optical module 52 is connected to the SFP2_MOD_IN input pin 626 of the MCU control unit 6. The optical transmission circuit power supply input SFP2_VCCT pin 529 of the SFP+ optical module 52 is connected to the optical module optical transmission circuit power supply SFP2_VCCT output pin 936 of the power supply unit 92; the optical receiving circuit power supply input SFP1_VCCR pin 530 of the SFP+ optical module 51 is connected to the optical module optical receiving circuit power supply SFP1_VCCR output pin 935 of the power supply unit 92. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0085] Connection between the pins of the SFP+ optical module 53 and other circuits: the I2C bus clock signal SFP3_SCL pin 531 is connected to the clock signal SFP3_SCL pin 631 of the MCU control unit 6, and the I2C bus data signal SFP3_SDA pin 532 is connected to the data signal SFP3_SDA pin 632 of the MCU control unit 6; the transmission shutdown signal SFP3_TxDisable input pin 533 of the SFP+ optical module 53 is connected to the SFP3_TxDisable output pin 633 of the MCU control unit 6; the transmission fault indication SFP3_TxFault output pin 534 of the SFP+ optical module 53 is connected to the SFP3_TxFault input pin 634 of the MCU control unit 6; The light-out alarm signal SFP3_LOS output pin 535 of the SFP+ optical module 53 is connected to the SFP3_LOS input pin 635 and the LOS3_232_RXD input pin 637 of the MCU control unit 6; the optical module plug-in detection signal MOD3_IN output pin 38 of the SFP+ optical module 53 is connected to the SFP3_MOD_IN input pin 636 of the MCU control unit 6. The optical transmission circuit power supply input SFP3_VCCT pin 539 of the SFP+ optical module 53 is connected to the optical module optical transmission circuit power supply SFP3_VCCT output pin 938 of the power supply unit 92; the optical receiving circuit power supply input SFP3_VCCR pin 540 of the SFP+ optical module 53 is connected to the optical module optical receiving circuit power supply SFP1_VCCR output pin 937 of the power supply unit 92. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0086] Connection between the pins of the SFP+ optical module 54 and other circuits: the I2C bus clock signal SFP4_SCL pin 541 is connected to the clock signal SFP4_SCL pin 641 of the MCU control unit 6, and the I2C bus data signal SFP4_SDA pin 542 is connected to the data signal SFP4_SDA pin 642 of the MCU control unit 6; the transmission shutdown signal SFP4_TxDisable input pin 543 of the SFP+ optical module 54 is connected to the SFP4_TxDisable output pin 643 of the MCU control unit 6; the transmission fault indication SFP4_TxFault output pin 544 of the SFP+ optical module 54 is connected to the SFP4_TxFault input pin 644 of the MCU control unit 6; The light-out alarm signal SFP4_LOS output pin 545 of the SFP+ optical module 54 is connected to the SFP4_LOS input pin 645 and the LOS4_232_RXD input pin 647 of the MCU control unit 6; the optical module plug-in detection signal MOD4_IN output pin 548 of the SFP+ optical module 54 is connected to the SFP4_MOD_IN input pin 646 of the MCU control unit 6. The optical transmission circuit power supply input SFP4_VCCT pin 549 of the SFP+ optical module 54 is connected to the optical module optical transmission circuit power supply SFP4_VCCT output pin 941 of the power supply unit 92; the optical receiving circuit power supply input SFP4_VCCR pin 939 of the SFP+ optical module 54 is connected to the optical module optical receiving circuit power supply SFP4_VCCR output pin 939 of the power supply unit 92. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0087] The MCU control unit 6 has an online programming and upgrade interface, the ISP_RS232_TXD output pin 697 is connected to the RXD of the RS-232 interface of the computer host; the ISP_RS232_RXD output pin 698 is connected to the TXD of the RS-232 interface of the computer host, the downstream interface port 1 overcurrent signal PW_OVCI1 input pin 605 is connected to the downstream port 1 overcurrent signal DP_OVCI1 output pin 925 of the power supply module 92, and the downstream port 2 overcurrent signal PW_OVCI2 output pin 606 is connected to the downstream port 2 overcurrent signal DP_OVCI2 output pin 926 of the power supply module 92, the downstream port 3 overcurrent signal PW_OVCI3 output pin 607 is connected to the downstream port 3 overcurrent signal DP_OVCI3 output pin 927 of the power supply module 92, and the downstream port 4 overcurrent signal PW_OVCI4 output pin 608 is connected to the downstream port 4 overcurrent signal DP_OVCI4 output pin 928 of the power supply module 92. The signal connections of this part are explained in other circuit descriptions and will not be described in detail here.
[0088] The LED indication circuit 7 is connected to the LED display interface 609 of the MCU control unit 6 .
[0089] Connection between the management interface 8 and other circuits: The management interface 8 has two USB2.0 signal inputs, and the two signals can be automatically switched. One USB2.0 signal USB2.0_A+ / - input port 81 is connected to the external USB2.0 host controller, and the other USB2.0 signal USB2.0_B+ / - input port 82 is connected to the USB2.0 signal USB2-1+ / - differential pair 221 of the downstream port 1 of the PCI-E to USB3.0 host controller 2. Through the USB2.0 to RS-232 conversion chip, an RS-232 management serial port is added to the PC host; the serial port sending data RS232_TXD pin 85 of the management interface 8 is connected to the CMI_RS232_RXD input pin 695 of the MCU control unit 6; the serial port receiving data RS232_RXD pin 85 of the management interface 8 is connected to the CMI_RS232_TXD input pin 694 of the MCU control unit 6. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0090] The power supply unit 9 includes a power supply module 91, a power supply module 92, and a power supply module 93. Each power supply module can switch between the 3.3V conventional power supply of the PCI-E interface of the computer motherboard and the 3.3V AUX power supply through an internal power switching circuit.
[0091] Connection between the power supply module 91 and other circuits: ReDriver1 power supply output 911 is connected to the power supply VCC input 3131 of USB3.0 equalizer 1; ReDriver2 power supply output 912 is connected to the power supply VCC input 3232 of USB3.0 equalizer 2; ReDriver3 power supply output 913 is connected to the power supply VCC input 3332 of USB3.0 equalizer 3; ReDriver4 power supply output 914 is connected to the power supply VCC input 3432 of USB3.0 equalizer 4.
[0092] Connection between the power supply module 92 and other circuits: the power enable PPON1 signal output pin 231 of the downstream interface port 1 of the PCI-E to USB3.0 host controller is connected to the power enable DP_PWEN1 signal input pin 921 of the downstream port 1 of the power supply module 92; the power enable PPON2 signal output pin 233 of the downstream interface port 2 of the PCI-E to USB3.0 host controller is connected to the power enable DP_PWEN1 signal input pin 922 of the downstream port 2 of the power supply module 92; the power enable PPON3 signal output pin 235 of the downstream interface port 3 of the PCI-E to USB3.0 host controller is connected to the power enable DP_PWEN3 signal input pin 923 of the downstream port 3 of the power supply module 92; the power enable PPON4 signal output pin 237 of the downstream interface port 4 of the PCI-E to USB3.0 host controller is connected to the power enable DP_PWEN4 signal input pin 924 of the downstream port 4 of the power supply module 92; The overcurrent signal OCI1 input pin 232 of the downstream interface port 1 toUSB3.0 host controller is connected to the overcurrent signal DP_OVCI1 output pin 925 of the downstream port 1 of the power supply module 92, the overcurrent signal OCI2 output pin 234 of the downstream port 2 of the PCI-E to USB3.0 host controller is connected to the overcurrent signal DP_OVCI2 output pin 926 of the downstream port 2 of the power supply module 92, the overcurrent signal OCI3 output pin 236 of the downstream port 3 of the PCI-E to USB3.0 host controller is connected to the overcurrent signal DP_OVCI3 output pin 927 of the downstream port 3 of the power supply module 92, and the overcurrent signal OCI4 output pin 238 of the downstream port 4 of the PCI-E to USB3.0 host controller is connected to the overcurrent signal DP_OVCI4 output pin 928 of the downstream port 4 of the power supply module 92. The signal connections of this part are explained in other circuit descriptions and will not be described in detail here.
[0093] The connection between the power supply module 93 and other circuits: the MCU power supply output 942 is connected to the power supply VCC input pin 696 of the MCU control unit 6; the MCU power supply output 943 is connected to the power supply VCC_CMI input pin 83 of the management interface 8; the PCI-E to USB3.0 host controller 2 power supply output 944 is connected to the power supply VCC_PCI-E input pin 211 of the PCI-E to USB3.0 host controller 2. The signal connections of this part are explained in other circuit descriptions and will not be described in detail here.
[0094] Reference Figure 13-19 , detailed description of USB3.0 optical fiber receiving end S3.
[0095] like Fig.13As shown, the USB3.0 optical fiber receiving end S3 includes a USB3.0 DEVICE downstream interface unit 21, a USB3.0 HUB main control chip 22, an Rx_DET simulated 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.
[0096] The connection between the pins of the USB3.0 HUB main control chip 22 and other circuits: EEPROM data bus 2212 is connected to an external EEPROM chip 29, the specific model is M24C64; the overspeed 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 simulated load 23 is connected to the TX+ / - input terminal 246 of the SFP+ optical module 24; the overspeed receiving 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 expansion card S2 and the USB3.0 optical fiber receiving end S3; the reset signal RST_USB input 2216 is connected to the external reset circuit on the one hand, and is connected to the USB3.0 of the MCU control unit 26 on the other hand. HUB reset signal RST_USB output pin 2633; downstream interface port 1 power enable PPON1 signal output pin 2231 is connected to the downstream port 1 power enable DP_PWEN1 signal input pin 2527 of the power supply unit; downstream interface port 2 power enable PPON2 signal output pin 2233 is connected to the downstream port 2 power enable DP_PWEN1 signal input pin 2528 of the power supply unit; downstream interface port 3 power enable PPON3 signal output pin 2235 is connected to the downstream port 3 power enable DP_PWEN3 signal input pin 2529 of the power supply unit; downstream interface port 4 power enable PPON4 signal output pin 2237 is connected to the downstream port 4 power enable DP_PWEN4 signal input pin 2530 of the power supply unit; downstream interface port overcurrent signal The OCI input pin 2235 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 and USB3-RX1+ / - signal input 2223 and 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 and USB3-RX2+ / - signal input 2225 and USB2-2+ / - differential pair 2242 are respectively connected to the USB3.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. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here. .
[0097] Connection between the pins of the SFP+ optical module 24 and 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 transmission 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 transmission 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 no-light 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-in 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 transmission circuit power supply input SFP_VCCT pin 249 of the SFP+ optical module 24 is connected to the optical module optical transmission circuit power supply SFP_VCCT output pin 2522 of the power supply unit 25; the optical receiving circuit power supply input SFP_VCCR pin 240 of the SFP+ optical module 24 is connected to the optical module optical receiving circuit power supply SFP_VCCR output pin 2523 of the power supply unit 25. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0098] Connection between the power supply unit 25 and other circuits: the external power supply EXT_5V pin 2515 is connected to the external power supply; the entire circuit is powered by the external power supply; the MCU control unit 26 power supply VCC_MU output pin 2524 is connected to the power supply VCC_MCU input pin 2621 of the MCU control unit 26; the management interface 28 power supply VCC_CMI output pin 2525 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 USB3.0 The power supply VCC_HUB input pin 2211 of the 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 downstream 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 downstream 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 2545 of the downstream port 2 of the power supply unit 25 is connected to the DP_OVC3_MU input pin 2631 of the MCU control unit 26 _MCU output pin 2546 is connected to DP_OVC3_MU input pin 2632 of MCU control unit 26; the overcurrent signal DP_OVC4_MCU output pin 2547 of downstream port 4 of power supply unit 25 is connected to DP_OVC4_MU input pin 2633 of MCU control unit 26; the remote cold start control signal DP_PWEN1_MCU output pin 2540 of downstream port 1 of power supply unit 25 is connected to DP_PWEN1_MU input pin 2634 of input pin MCU control unit 26; the remote cold start control signal DP_PWEN2_MCU output pin 2541 of downstream port 2 of power supply unit 25 is connected to DP_ PWEN2_MU input pin 2635; the remote cold start control signal DP_PWEN3_MCU output pin 2542 of the downstream 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 downstream 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. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0099] Connection between the management interface 28 and 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 the external computer host, and through the USB2.0 to RS-232 conversion chip, an RS-232 management serial port is added to the external computer host; the serial port send 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. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0100] The MCU control unit 26 has an online 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. The signal connection of this part is explained in other circuit descriptions and will not be described in detail here.
[0101] The following will describe in detail a specific implementation of an automatic negotiation method for optical fiber communication between a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end.
[0102] The method for automatic negotiation of optical fiber communication between a USB3.0 optical fiber expansion card and a USB3.0 optical fiber receiving end is to solve the problem of USB3.0 terminal device re-establishing a correct communication link with a computer host due to optical fiber interruption of an optical fiber interface, repeated plugging and unplugging of optical fibers, hot plugging of SFP+ optical modules, computer power on / off, and restart during the process of transmitting USB3.0 data using optical fiber by using single-chip computer programming technology and formulating relevant communication rules.
[0103] USB3.0 fiber optic communication is a full-duplex bidirectional communication, which can use two-core optical fiber, or use single-core optical fiber using the principle of optical wavelength division multiplexing. There are three situations in the process of fiber optic connection. The first is that the optical transmitter and receiver of the USB3.0 fiber optic expansion card SFP+ optical module are connected to the optical transmitter and optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module at the same time; the second is that the optical transmitter of the USB3.0 fiber optic expansion card SFP+ optical module is first connected to the optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module, and further, the optical receiver of the USB3.0 fiber optic expansion card SFP+ optical module is connected to the optical transmitter of the USB3.0 fiber optic receiving end SFP+ optical module; the third is that the optical receiver of the USB3.0 fiber optic expansion card SFP+ optical module is first connected to the optical transmitter of the USB3.0 fiber optic receiving end SFP+ optical module, and further, the optical transmitter of the USB3.0 fiber optic expansion card SFP+ optical module is connected to the optical receiver of the USB3.0 fiber optic receiving end SFP+ optical module.
[0104] If the optical fiber connection is interrupted due to optical fiber damage or manual unplugging, and the optical fiber connection needs to be reestablished, the PCI-E to USB3.0 host controller of the computer host and the USB3.0 HUB main control chip at the remote USB3.0 optical fiber receiving end need to re-establish the connection. At this time, both parties 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 optical fiber receiving end has not yet exited the ultra-high-speed link state, when the first and third situations occur, the downstream interface of the PCI-E to USB3.0 host controller of the USB3.0 optical fiber expansion card receives ultra-high-speed data packets instead of LFPS data signals, which will cause the negotiation to fail, resulting in the PCI-E to USB3.0 host controller port of the USB3.0 optical fiber expansion card on the computer side not being able to operate normally, and thus failing to identify the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end and the external USB3.0 terminal device.
[0105] During the communication process, the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver often encounter the situation that the computer host is shut down, restarted, or restarted after being shut down for a long time. This will lead to a serious problem: when the computer host re-enters the operating system, the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver often fail to connect to the computer host. The computer host may prompt that the USB 3.0 device is compliant but cannot be linked, or there is no link action at all. The reason for this problem is that after the computer host exits the system, the communication status of the USB 3.0 fiber optic expansion card and the USB 3.0 fiber optic receiver does not enter the LFPS negotiation state, but has been in a normal ultra-high-speed link. When the computer host re-enters the system, the PCI-E to USB 3.0 host controller of the USB 3.0 fiber optic expansion card on the computer host side and the USB 3.0 fiber optic receiver should be in a low-speed communication mode, but the actual PCI-E to The USB3.0 host controller first receives the ultra-high-speed data packet sent by the USB3.0 optical fiber receiving end, which causes the negotiation between the two to fail. The computer host cannot find the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end and all its external USB3.0 terminal devices.
[0106] In order to solve the above problems, we hereby agree on an automatic negotiation method for optical fiber communication between the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end: no matter when, the optical receiver of the SFP+ optical module of the USB3.0 optical fiber receiving end always receives the optical signal before the optical receiver of the SFP+ optical module of the USB3.0 optical fiber expansion card; after the optical fiber connection of the optical receiver of the USB3.0 optical fiber receiving end is interrupted, the MCU control unit sends an output control instruction to disconnect the upstream interface link of the USB3.0 HUB main control chip, and 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 receiving end is in the transmission prohibition state, and no optical signal is sent out at all. Even if the optical fiber is reconnected normally, the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end will be in the transmission prohibition state before the link initialization is completed; after the optical fiber is disconnected, the optical receiver of the USB3.0 optical fiber expansion card cannot receive the optical signal, and the MCU control unit sends an output control instruction to make the equalizer chip of the USB3.0 optical fiber expansion card and the PCI-E to The USB3.0 host controller link connection is interrupted; when the optical receiver at the USB3.0 fiber receiving end is reconnected to the fiber, the MCU control unit sends an output control instruction to make the USB3.0 HUB main control chip enter the normal working state, initialize the chip link state, and the USB3.0 HUB main control chip upstream interface Tx output end outputs the LFPS signal. The MCU control unit sends an output control instruction to make the optical transmitter of the SFP+ optical module at the USB3.0 fiber receiving end in the transmit enable state, and send out the LFPS optical signal normally. After the optical receiver of the USB3.0 fiber expansion card receives the LFPS optical signal, the MCU control unit sends an output control instruction to make the equalizer chip and the PCI-E to The link of the USB3.0 host controller is connected, and the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end re-negotiate LFPS until the communication connection is normal; when the computer host is turned off, the USB3.0 fiber optic expansion card circuit can monitor the power supply of the computer motherboard, and the MCU control unit will output corresponding control instructions according to the power supply status of the computer host motherboard, turn off the transmission of the SFP+ optical module, and make the communication link between the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end disconnected, and the USB3.0 main control chip of the USB3.0 fiber optic receiving end enters the standby state; when the computer host is turned off, restarted, or turned off and then turned on again, the USB3.0 fiber optic expansion card circuit can monitor the power supply changes of the computer motherboard, and the MCU control unit of the USB3.0 fiber optic expansion card will output corresponding control instructions according to the power supply status of the computer motherboard, enable the transmission of the SFP+ optical module, and make the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end fiber link connected. When the computer USB3.0 is monitored, the USB3.0 fiber optic expansion card circuit can monitor the power supply changes of the computer motherboard, and the MCU control unit of the USB3.0 fiber optic expansion card will output corresponding control instructions according to the power supply status of the computer motherboard, enable the transmission of the SFP+ optical module, and make the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end fiber link connected.After the USB3.0 controller initiates LFPS negotiation, the USB3.0 fiber expansion card MCU control unit connects the link between the USB3.0 equalizer and the PCI-E to USB3.0 host controller, and the USB3.0 fiber expansion card and the USB3.0 fiber receiving end perform LFPS communication negotiation until the communication connection is normal.
[0107] The data stream of the ultra-high-speed USB3.0 terminal device specified in the USB3.0 standard must be encoded into an ultra-high-speed data stream for transmission during the communication process. Since the USB3.0 standard does not reserve some low-speed IO channels, in the USB3.0 optical fiber communication process, in order to ensure compatibility and universal applicability, the optical fiber transmission device will not re-encode and decode the USB3.0, but only perform electrical-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, the transmission and result return of remote switch control, digital diagnostic signals, etc. cannot be completed by the USB3.0 hardware circuit. Therefore, the present invention is based on this practical application and proposes a method for digital diagnosis of USB3.0 optical fiber expansion card and USB3.0 optical fiber receiving end and remote control of USB3.0 terminal device.
[0108] The following describes in detail a specific implementation of a method for digitally diagnosing a USB 3.0 optical fiber expansion card and a USB 3.0 optical fiber receiving end and remotely controlling a USB 3.0 terminal device.
[0109] The method for digitally diagnosing a USB3.0 optical fiber expansion card and a USB3.0 optical fiber receiver and remotely controlling a USB3.0 terminal device comprises: utilizing a transmission shutdown control SFP_Tx_Disable input pin of an SFP+ optical module optical transmitter and a light-loss alarm signal SFP_LOS output pin of an optical receiver to form a low-rate bidirectional RS-232 transmission channel; a bidirectional RS-232 transmission channel, an MCU control unit, and a management interface form a digital diagnostic channel; a computer sends control instructions to a power supply circuit of a USB3.0 terminal device or a control interface of the USB3.0 terminal device itself through the digital diagnostic channel, and performs digital diagnostic management on the power supply status of the SFP+ optical module and the terminal device.
[0110] Referring to the SMALL FORM-FACTOR PLUGGABLE (SFP) TRANSCEIVER MULTISOURCEAGREEMENT (MSA) international standard, the SFP+ optical module optical transmitter's transmit shutdown control SFP_Tx_Disable input pin is used to turn on and off the light-emitting state of the SFP+ optical module optical transmitter laser. When the pin is at a high level, the laser does not emit light, and when the pin is at a low level, the laser emits light. When the SFP+ optical module is working normally, the transmit shutdown control signal level must always be kept low; and the SFP+ optical module optical receiver's no-light alarm signal SFP_LOS output pin outputs a no-light alarm signal SFP_LOS when there is no optical signal input to the optical receiver. The SFP_LOS pin outputs a high-level signal. When an optical signal is input to the optical receiver, the SFP_LOS output pin outputs a low-level signal. This signal is only used to determine whether there is an input optical signal. In the normal optical communication process, the signal is always kept at a low level. These two control pins do not have the function of two-way data communication, but we can input a low-rate digital square wave signal, such as a 9600bps serial port signal, into the transmit shutdown control SFP_Tx_Disable input pin, then the SFP+ optical module optical transmitter will follow the low rate. The high and low level changes of the digital square wave signal of the rate produce the state changes of no light emission and light emission, thereby modulating a 9600bps low-rate optical signal, and the no-light alarm signal SFP_LOS output pin of the corresponding SFP+ optical module optical receiver will restore the original 9600bps serial port signal according to the state changes of no light input and light input; therefore, the transmission shutdown control SFP_Tx_Disable input pin of the SFP+ optical module optical transmitter and the no-light alarm signal SFP_LOS output pin of the optical receiver can be combined to form a low-rate bidirectional RS-232 transmission channel, which is composed of a bidirectional RS-232 transmission channel, an MCU control unit, and a management interface to form a digital diagnostic channel. The digital diagnostic channel does not work when the USB3.0 link communicates normally. The digital diagnostic channel will only work before the initial connection between the USB3.0 fiber expansion card and the USB3.0 fiber receiving end is established, when the USB3.0 terminal device fails, and when it is manually controlled, and the operator can perform corresponding management operations on both the computer and the USB3.0 device.
[0111] When we occasionally encounter a device freeze or other problems that make it impossible to restore the USB3.0 terminal device to normal working condition through the computer host during use of the USB3.0 terminal device, we can send specific instructions to the management interface through the digital diagnostic channel to the control interface of the USB3.0 terminal device itself or to the power supply circuit of the USB3.0 port connected to the USB3.0 terminal device to cold start the device and restore it to normal. We can also send specific instructions to the management interface through the digital diagnostic channel to the control interface of the USB3.0 terminal device itself to obtain the fault status of the USB3.0 terminal device.
[0112] Here we only explain the USB3.0 optical fiber port 1 of the USB3.0 optical fiber expansion card S2. The working principles of other ports are the same and will not be described one by one. Before the initial connection between the USB3.0 optical fiber expansion card S2 and the USB3.0 optical fiber receiving end S3 is established, After the MCU control unit 26 of the USB3.0 optical fiber receiving end S3 reads the optical module's transmitted optical power, laser bias current, receiving sensitivity, optical module supply voltage, operating temperature, fault condition and other optical module indicators through the I2C bus of the SFP+ optical module 24, it sends the 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 optical fiber receiving end S3, modulates and outputs the RS232 optical signal, and the SFP_LOS output pin 145 of the digital diagnostic channel of the USB3.0 optical fiber expansion card S2 outputs the RS-232 serial data, and the RS-232 serial data is transmitted to the serial port signal input LOS1_232_RXD input pin 617 of the digital diagnostic channel of the MCU control unit 6 of the USB3.0 optical fiber expansion card S2, and is sent to the computer host end after being processed by the MCU control unit 6; in addition, we can also use the USB2.0 to management interface 8 on the computer host end. The RS232 conversion circuit converts the instruction into an RS-232 signal. The RS-232 sends a digital diagnosis request instruction to the RS-232 serial port signal CMI_RS232_RXD input pin 695 of the MCU control unit 6 of the USB3.0 optical fiber extension card S2 through the RS232_TXD output pin 85 of the management interface 8. The MCU control unit 6 sends the instruction to the serial port signal input LOS_232_RXD input pin 2616 of the MCU control unit 26 of the USB3.0 optical fiber receiving end S3 through the digital diagnosis channel. After receiving the instruction, the MCU control unit 26 transmits the read optical module indicators back to the serial port signal input LOS1_232_RXD input pin 617 of the MCU control unit 6 of the USB3.0 optical fiber extension card S2 through the digital diagnosis channel. After being processed by the MCU control unit 6, it is sent to the RS232 serial port signal CMI_RS232_TXD output pin 694 through the RS-232 serial port signal RS232_RXD input pin 84 of the management interface 8 through the USB2.0 toRS232 conversion and then sent to the host computer; for the optical module indicators of USB3.0 fiber optic expansion card S2, we can directly obtain them by sending digital diagnosis request instructions to the MCU control unit 6 of USB3.0 fiber optic expansion card S2 through the management interface 8 on the host computer; these two methods can realize the digital diagnosis management of SFP+ optical modules; in addition, when the USB3.0 fiber optic receiving end S3 is USB3.When an overcurrent fault occurs in the power supply of the USB3.0 terminal device, the MCU control unit 22 will store the fault code until the overcurrent fault is resolved. The stored fault code will not be cleared. When we find that the device is not working properly, we can send a digital diagnosis request command to the MCU control unit 22 of the USB3.0 optical fiber receiving end S3 through the management interface 8 on the computer host to obtain the USB3.0 terminal device fault code.
[0113] The above content is a further detailed description of the present invention in combination with a specific preferred embodiment. It cannot be determined that the specific embodiments of the present invention are limited to this. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention determined by the submitted claims.
Claims
1. A USB3.0 fiber expansion card based on PCI-E, characterized in that: in actual application, it comprises a USB3.0 fiber expansion card and a USB3.0 fiber receiving end, the two are connected by optical fiber, and the two communicate with each other through an automatic negotiation method for optical fiber communication between the USB3.0 fiber expansion card and the USB3.0 fiber receiving end, wherein the method stipulates that at any time, the optical receiver of the SFP+ optical module of the USB3.0 fiber receiving end always receives the optical signal before the optical receiver of the SFP+ optical module of the USB3.0 fiber expansion card; the USB3.0 fiber expansion card is used to expand multiple USB3.0 fiber interfaces from the host PCI-E bus, the USB3.0 fiber receiving end is used to connect USB3.0 peripherals, and the USB3.0 fiber expansion card has a PCI-E to USB3.0 master chip, which can communicate with each other through the PCI-E to The USB3.0 main control chip expands multiple USB3.0 interfaces. The electrical signal of each USB3.0 interface is connected to the SFP+ optical module through the USB3.0 equalizer chip, thereby expanding multiple USB3.0 optical fiber interfaces; the USB3.0 optical fiber expansion card has a USB3.0 equalizer chip to realize signal conditioning and communication negotiation control; there is a multi-port USB3.0 HUB at the USB3.0 optical fiber receiving end that can connect multiple ultra-high-speed USB terminal devices at the same time. The USB3.0 HUB at the USB3.0 optical fiber receiving end contains a USB2.0 acceleration engine, making it backward compatible with USB2.0\ 1.1\1.0 devices, and USB3.0 and USB2.0\1.1\1 .0 devices can be mixed and used; there are Rx_DET simulation loads on the USB3.0 fiber expansion card and the USB3.0 fiber receiving end, which are used to simulate the Rx_DET circuit of the Rx input end of the USB3.0 interface on the device side, and are used to realize the use of ordinary SFP+ optical modules to convert USB3.0 electrical signals into optical signals for long-distance optical fiber communication between USB3.0 devices; there is a low-speed bidirectional RS-232 transmission channel formed by the combination of the transmission shutdown control input pin and the light-free alarm signal output pin of the SFP+ optical module on the USB3.0 fiber expansion card and the USB3.0 fiber receiving end, in which the transmission shutdown signal input of the SFP+ optical module is used for the RXD input of the RS232 interface and the light-free alarm LOS signal output of the SFP+ optical module is used for the TXD output of the RS232; a digital diagnostic channel is composed of the bidirectional RS-232 transmission channel, the MCU control unit, and the management interface, and the management interface of the USB3.0 fiber expansion card can automatically switch the input USB2.0 signal; The management interface of the USB3.0 optical fiber receiving end can be connected to the USB2.0 interface of an external computer; The operator can perform digital diagnosis on the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end on the computer host. The operator can send control instructions to the USB3.0 terminal device through the digital diagnosis channel on the host side to achieve remote control.
2. A PCI-E based USB3.0 fiber expansion card as claimed in claim 1, characterized in that: The USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end is FL6000 produced by Fresco Logic. FL6000 adopts FrescoLogic's unique F-One TM Technology, the FL6000 chip contains a USB2.0 acceleration engine, which converts the USB2.0 signals of all downstream ports into USB3.0 signals, and finally transmits data with the USB3.0 signals of all downstream interfaces through the ultra-high-speed HUB controller and routing engine in the USB3.0 HUB master chip and the PCI-E to USB3.0 master chip of the computer host. The upstream port of the USB3.0 HUB master chip is connected to the SFP+ optical module, which converts the ultra-high-speed electrical signal of the upstream port of the USB3.0 HUB master chip into an optical signal, which is transmitted to the USB3.0 optical fiber expansion card through optical fiber, thereby realizing the simultaneous transmission of USB2.0 and USB3.0 data using optical fiber; The 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. While supporting USB3.0 devices, it can also be directly backward compatible with USB2.0\1.1\1.0 devices.
3. An automatic negotiation method for optical fiber communication between the PCI-E based USB 3.0 optical fiber expansion card and the USB 3.0 optical fiber receiving end as claimed in claim 1, characterized in that: No matter when, the optical receiver of the SFP+ optical module at the USB3.0 optical fiber receiving end always receives the optical signal before the optical receiver of the SFP+ optical module of the USB3.0 optical fiber expansion card; after the optical fiber connection of the optical receiver at the USB3.0 optical fiber receiving end is interrupted, the MCU control unit sends an output control instruction to disconnect the upstream interface link of the USB3.0 HUB main control chip, and the USB3.0 HUB main control chip enters the standby state, and the optical transmitter of the SFP+ optical module at the USB3.0 optical fiber receiving end is in the transmission prohibited state, and no optical signal is sent out at all. Even if the optical fiber is reconnected normally, the USB3.0 HUB main control chip at the USB3.0 optical fiber receiving end will be in the transmission prohibited state before the link initialization is completed; after the optical fiber is disconnected, the optical receiver of the USB3.0 optical fiber expansion card cannot receive the optical signal, and the MCU control unit sends an output control instruction to interrupt the connection between the equalizer chip of the USB3.0 optical fiber expansion card and the PCI-E to USB3.0 main controller link; when the optical receiver at the USB3.0 optical fiber receiving end is reconnected to the optical fiber, the MCU control unit sends an output control instruction to make the USB3.0 The HUB main control chip enters the normal working state, initializes the chip link state, the USB3.0 HUB main control chip upstream interface Tx output end outputs the LFPS signal, the MCU control unit sends an output control instruction to make the optical transmitter of the SFP+ optical module of the USB3.0 optical fiber receiving end in the transmission enable state, and normally sends out the LFPS optical signal. After the optical receiver of the USB3.0 optical fiber expansion card receives the LFPS optical signal, the MCU control unit sends an output control instruction to connect the equalizer chip with the link of the PCI-E to USB3.0 main controller, and the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end re-negotiate the LFPS until the communication connection is normal; when the computer host is turned off, the USB3.0 optical fiber expansion card circuit can monitor the power supply of the computer motherboard, and the MCU control unit will output the corresponding control instruction according to the power supply status of the computer host motherboard, shut down the transmission of the SFP+ optical module, and make the communication link between the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end disconnected, and the USB3.0 main control chip of the USB3.0 optical fiber receiving end will enter the standby state; When the computer mainframe shuts down, restarts, or restarts after shutting down, the USB3.0 fiber expansion card circuit can monitor the power supply changes of the computer mainboard. The MCU control unit of the USB3.0 fiber expansion card will output corresponding control instructions according to the power supply of the computer mainboard, enabling the transmission of the USB3.0 fiber expansion card SFP+ optical module, so that the USB3.0 fiber expansion card and the USB3.0 fiber receiving end optical link are connected. When the computer USB3.0 controller initiates LFPS negotiation, the USB3.0 fiber expansion card MCU control unit enables the USB3.0 equalizer and PCI-E toUSB3.0 host controller link is connected, and the USB3.0 fiber expansion card and the USB3.0 fiber receiving end perform LFPS communication negotiation until the communication connection is normal.
4. A method for performing digital diagnosis and remote control of USB3.0 terminal equipment using the PCI-E-based USB3.0 fiber expansion card and USB3.0 fiber receiving end as claimed in claim 1, characterized in that: The computer host uses the management interface to form a low-speed bidirectional RS-232 transmission channel, an MCU control unit, and a digital diagnostic channel composed of a management interface and a combination of a transmission shutdown control input pin and a lightless alarm signal output pin of the SFP+ optical module at the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end; the control circuit of the remote USB3.0 terminal device and the control interface of the USB3.0 terminal device itself are controlled and control instructions are sent. The computer host can send a digital diagnostic request instruction to the MCU control unit of the USB3.0 optical fiber receiving end through the management interface to obtain the USB3.0 terminal device fault code; and the power supply status of the SFP+ optical module and the terminal device at the USB3.0 optical fiber receiving end is digitally diagnosed and managed; the digital diagnostic channel will only work before the initial connection between the USB3.0 optical fiber expansion card and the USB3.0 optical fiber receiving end is established, when the USB3.0 terminal device fails, and when it is manually controlled, and the operator can perform the corresponding The specific steps of the method are as follows: before the initial connection between the USB3.0 fiber optic expansion card and the USB3.0 fiber optic receiving end is established, the MCU control unit of the USB3.0 fiber optic receiving end reads the optical module indicators such as the transmitted optical power, the bias current of the laser, the receiving sensitivity, the power supply voltage of the optical module, the operating temperature, and the fault condition through the I2C bus of the SFP+ optical module, and then 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 receiving end, modulates and outputs the RS232 optical signal, and outputs the RS-232 serial data at the SFP_LOS output pin of the digital diagnostic channel of the USB3.0 fiber optic expansion card, and the RS-232 serial data is transmitted 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 expansion card, and is sent to the computer host end after being processed by the MCU control unit; in addition, the computer host end can also use the USB2.0 of the management interface to The to RS232 conversion circuit converts the command into an RS-232 signal. The RS-232 sends a digital diagnostic request command to the RS-232 serial port signal input pin CMI_RS232_RXD of the MCU control unit of the USB3.0 fiber expansion card through the RS232_TXD output pin of the management interface. The MCU control unit sends the command to the serial port signal input pin LOS_232_RXD of the MCU control unit at the USB3.0 fiber receiving end through the digital diagnostic channel. After receiving the command, the MCU control unit transmits the optical module indicators read back to the USB3.0 fiber expansion card through the digital diagnostic channel.0 fiber optic expansion card's MCU control unit's serial port signal input pin LOS_232_RXD is processed by the MCU control unit and 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 USB2.0 to RS232 conversion; for the optical module indicators of the USB3.0 fiber optic expansion card, the computer host can send a digital diagnosis request instruction to the MCU control unit of the USB3.0 fiber optic expansion card through the management interface to directly obtain it; these two methods can realize the digital diagnosis management of the SFP+ optical module; in addition, when the USB3.0 terminal device at the USB3.0 fiber receiving end has an overcurrent fault in the power supply, the MCU control unit will store this fault code, and will not clear the stored fault code until the overcurrent fault is removed. When it is found that the device is not working properly, the computer host can send a digital diagnosis request instruction to the MCU control unit at the USB3.0 fiber receiving end through the management interface to obtain the USB3.0 terminal device fault code. .
Citation Information
Patent Citations
Optical transceiver module, optical transmission device and optical transmission method
CN104009800A