USB optical transmission switching matrix device
By designing the USB optical transmission matrix device, the long-distance optical transmission and free switching of USB signals are achieved by using the signal conversion module and the switching matrix module, which solves the problems of short transmission distance and complex switching of USB signals in traditional technology, and improves the transmission efficiency and operation simplicity.
Patent Information
- Application Number
- CN202420625082.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2034-03-28
AI Technical Summary
The traditional layout of hosts and USB devices cannot realize long-distance optical transmission of USB signals and free switching channels in the video surveillance system, resulting in waste of resources, complex operation and inefficiency.
A USB optical transmission matrix device is designed, including a first USB interface module, a first signal conversion module, a switching matrix module, a second signal conversion module and a second USB interface module. The first signal conversion module and the second signal conversion module realize the long-distance transmission of the USB signal, and the switch matrix module realizes the gate of any channel between the master device and the slave device.
It realizes long-distance optical transmission of USB signals, has strong anti-interference performance, supports free point-to-point switching between master and slave devices, simplifies operation steps, improves data transmission efficiency, and reduces hardware manufacturing costs.
Smart Images

Figure CN222638572U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of USB switching, in particular to a USB optical transmission switching matrix device. Background Art
[0002] In video surveillance systems, as the scale and complexity of surveillance systems continue to expand, it is often necessary to deploy displays or large screens in multiple office locations at the same time, so there is usually a main control room and multiple scattered computer rooms. Each computer room is deployed with actual surveillance equipment and related PCs (personal computers) or controllers, and each PC or controller will have USB devices such as keyboards, mice, and U disks hanging under it to process video signals, store data, and perform various surveillance tasks.
[0003] In order to facilitate the on-duty personnel in the computer room to remotely operate the office large screens (i.e., displays or large screens) in each computer room in the main control room, the traditional practice is often to arrange multiple sets of remote terminal equipment in the main control room, such as KVM (keyboard, video, mouse) switches used in the field of video surveillance. KVM switches allow operators to access and control PCs or controllers in different computer rooms through a set of keyboards, mice and monitors. However, there are some problems with this method: on the one hand, since these KVM devices are usually fixed configurations, that is, one set of equipment can only control the PC or controller of one computer room, and cannot be switched to each other, when the computer room is changed, the KVM device needs to be reconfigured or replaced, which wastes time and increases the complexity of operation. On the other hand, since the computer rooms are not in the same place, ultra-long-distance transmission cannot be achieved, resulting in a waste of time and human resources for staff to operate back and forth.
[0004] Therefore, in the above scheme, the traditional arrangement of the host and USB devices in the video surveillance system cannot perform long-distance optical transmission for USB signals and realize free channel switching, resulting in problems such as waste of resources, complex operation and low efficiency. Utility Model Content
[0005] In view of this, the utility model provides a USB optical transmission switching matrix device to solve the problems that the traditional arrangement of the host and USB devices cannot perform long-distance optical transmission for USB signals and realize free switching channels in the video surveillance system, resulting in resource waste, complex operation and low efficiency.
[0006] The utility model provides a USB optical transmission switching matrix device, which comprises: a first USB interface module, a first signal conversion module, a switching matrix module, a second signal conversion module and a second USB interface module connected in sequence;
[0007] The first USB interface module includes a plurality of first USB physical interfaces for accessing various host devices;
[0008] The second USB interface module includes a plurality of second USB physical interfaces for accessing various slave devices;
[0009] The switching matrix module includes an interface switching switch unit composed of a plurality of switches and a switch switching control interface unit, wherein the switch switching control interface unit is used to control each switch in the interface switching switch unit to select any channel between each master device and each slave device;
[0010] The first signal conversion module is used to convert the USB signals sent by the respective host devices into optical signals, and the second signal conversion module is used to convert the signals sent by the switching matrix module into USB signals.
[0011] The above scheme realizes the photoelectric isolation long-distance transmission of USB optical fiber through the first signal conversion module and the second signal conversion module, and has a long transmission distance and strong anti-interference performance; the switch switching control interface unit in the switching matrix module can control the opening and closing of each switch in the interface switching switch unit to select any channel between the master device and the slave device, support free point-to-point switching of the master device and the slave device, and realize long-distance transmission of multiple master devices to multiple slave devices, without the participation of the main control chip or FPGA (Field Programmable Gate Array), and without the need to install the driver, the development and hardware manufacturing costs are low.
[0012] In an optional implementation, each switch in the interface switching switch unit is a dual-way switching switch, and the switches are connected in a cascade manner.
[0013] The above scheme sets each switch as a switch with a dual-way switching function, and connects multiple such switches in a cascade manner to achieve switching and management of multiple power supplies, which can flexibly respond to complex power supply needs and provide higher power supply reliability and stability.
[0014] In an optional implementation, the interface switching unit includes a master device end and a slave device end;
[0015] The master device end includes a plurality of master device switches connected in series; the slave device end includes a plurality of slave device switches connected in series;
[0016] The input end of the input-level master device switch at the master device end is connected to the output end of each of the master devices through the first signal conversion module and the first USB interface module in sequence, and the output end of the output-level master device switch at the master device end is connected to the input end of the input-level slave device switch at the slave device end; the output end of the output-level slave device switch at the slave device end is connected to the input end of each of the slave devices through the second signal conversion module and the second USB interface module in sequence.
[0017] The above scheme realizes the cascading of each switch in the interface switching switch unit by setting up multi-level master device nodes and multi-level slave device nodes, connects multiple switches according to a certain hierarchical structure, and selects the corresponding path to be turned on through the switch, thereby improving the flexibility of line control.
[0018] In an optional implementation, each switch in the interface switching switch unit includes two pairs of high-speed differential pair pins, a selection pin, and an enable pin;
[0019] The two pairs of high-speed differential pair pins and the selection pin constitute a dual-path switch of the corresponding switch;
[0020] The selection pin is connected to the output end of the switch switching control interface unit.
[0021] The arrangement of high-speed differential pairs in the above scheme helps to reduce noise interference and electromagnetic radiation, thereby improving the accuracy and stability of data transmission.
[0022] In an optional implementation, the relationship between the number of channels y1 in the master device end and the number of levels x1 of the master device switch in the master device end is y1=2 ^ x1;
[0023] The relationship between the number of channels y2 in the slave device end and the number of levels x2 of the slave device switch in the slave device end is y2=2 ^ x2;
[0024] In the interface switching unit, the number of channels between the master device and the slave device is y=y1*y2.
[0025] In an optional implementation, the switch switching control interface unit includes a hardware dip switch interface and an I2C interface;
[0026] The hardware dip switch interface is used to switch each switch in the interface switching switch unit to a hardware dip switch, and the I2C interface is used to switch each switch in the interface switching switch unit to an external control switch; the external control switch is a switch that performs communication control through an external master control configuration chip.
[0027] The above solution supports dual switch switching mode through the setting of hardware dip switch interface and I2C interface. The conventional method is physical dip switch switching mode, and I2C communication switching mode is also supported. Both methods do not require the internal main control chip or FPGA (Field Programmable Gate Array) to participate, which saves resources, simplifies operation steps, and improves the efficiency of data transmission.
[0028] In an optional embodiment, the first signal conversion module includes a USB conversion sending module and a first optical fiber transceiver module connected in sequence; the second signal conversion module includes a second optical fiber transceiver module and a USB conversion receiving module connected in sequence;
[0029] The USB conversion and sending module is used to convert the first USB electrical signal sent by each host device into a high-speed serial bus signal; the first optical fiber transceiver module is used to perform photoelectric conversion on the received high-speed serial bus signal; the second optical fiber transceiver module is used to perform photoelectric conversion on the signal output by the switching matrix module; the USB conversion and receiving module is used to convert the signal output by the second optical fiber transceiver module into a second USB signal.
[0030] In an optional implementation, the USB conversion and transmission module includes a first USB-PHY unit and a first Ethernet-PHY unit connected in sequence, wherein the first USB-PHY unit is used to convert the first USB signal sent by each host device into a first RGMII signal; the first Ethernet-PHY unit is used to convert the first RGMII signal into a high-speed serial bus signal for transmission;
[0031] The USB conversion receiving module includes a second Ethernet-PHY unit, a second USB-PHY unit and a USB extension unit connected in sequence, the second Ethernet-PHY unit is used to convert the high-speed serial bus signal output by the second optical fiber transceiver module into a second RGMII signal, the second USB-PHY unit is used to convert the second RGMII signal into the second USB signal; the USB extension unit is used to perform channel expansion on the second USB signal.
[0032] The above solution targets USB signals and uses the form of "USB-PHY" + "Ethernet-PHY" to directly package the USB signals into the physical layer and convert them into high-speed serial interface signals for the PHY chip. They are then transmitted through photoelectric conversion. "USB-PHY" + "Ethernet-PHY" constitutes a bridge between the physical layer and the upper layer protocol in computer hardware, achieving stable and efficient data transmission.
[0033] In an optional implementation, the number of the second USB physical interfaces of the second USB interface module is the same as the number of expandable channels of the USB expansion unit.
[0034] The above solution expands the channel between the master device and the slave device through a USB expansion unit, so that the user can connect more slave devices.
[0035] In an optional embodiment, the device further includes a first photoelectric conversion unit and a second photoelectric conversion unit;
[0036] The input end of the first photoelectric conversion unit is connected to the output end of the first optical fiber transceiver module, and the output end of the first photoelectric conversion unit is connected to the input end of the interface switching unit;
[0037] The output end of the interface switching unit is connected to the input end of the second photoelectric conversion unit, and the output end of the second photoelectric conversion unit is connected to the input end of the second optical fiber transceiver module.
[0038] The first photoelectric conversion unit and the second photoelectric conversion unit in the above solution correspond to the first optical fiber transceiver module and the second optical fiber transceiver module, and realize the conversion between electrical signals and optical signals during the communication process.
[0039] The technical solution provided by the utility model may have the following beneficial effects:
[0040] The first signal conversion module and the second signal conversion module realize the photoelectric isolation long-distance transmission of the USB optical fiber, and the transmission distance is long and the anti-interference performance is strong; the switch switching control interface unit in the switching matrix module can control the opening and closing of each switch in the interface switching switch unit to select any channel between the master device and the slave device, support the free point-to-point switching of the master device and the slave device, and realize the long-distance transmission of multiple master devices to multiple slave devices, without the participation of the main control chip or FPGA (Field Programmable Gate Array), and without the need to install the driver, the development and hardware manufacturing costs are low.
[0041] Secondly, each switch in the control interface switching switch unit adopts a dual-way switching switch, and connects multiple switches in a cascade manner according to a certain hierarchical structure. Each switch can independently control its corresponding path, improve the flexibility of line control, and provide higher power supply reliability and stability.
[0042] Furthermore, the switch switching control interface unit supports dual switch switching modes of hardware dip switches and external master configuration chips. Both modes do not require the participation of internal master chips or FPGAs (Field Programmable Gate Arrays), saving resources, simplifying operation steps, and improving data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the specific implementation methods of the utility model or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 is an overall block diagram of a USB optical transmission switching matrix device according to an exemplary embodiment;
[0045] Figure 2 is a structural schematic diagram of a switching matrix module according to an exemplary embodiment;
[0046] Figure 3 is a structural schematic diagram of an interface switching unit according to an exemplary embodiment;
[0047] Figure 4 is a schematic structural diagram of an e module in an interface switching switch unit according to an exemplary embodiment;
[0048] Figure 5 is a structural schematic diagram of a switch switching control interface unit according to an exemplary embodiment;
[0049] Figure 6 is a general block diagram of another USB optical transmission switching matrix device according to an exemplary embodiment;
[0050] Figure 7 is a structural schematic diagram of a USB conversion and transmission module according to an exemplary embodiment;
[0051] Figure 8 The figure is a schematic diagram of the structure of a USB conversion receiving module according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiment of the utility model clearer, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is a part of the embodiment of the utility model, not all the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the utility model.
[0053] In view of the problem that the traditional arrangement of hosts and USB devices cannot realize long-distance optical transmission of USB signals while having free switching channels, the embodiment of the utility model provides a USB optical transmission switching matrix device. Under the premise of realizing USB ultra-long distance transmission, the single-function optical fiber transmission architecture solution is improved in a targeted manner. By adding a switching matrix module, an architecture in which multiple master devices and multiple slave devices can be switched at will is realized, and the design does not require the addition of a main control chip or FPGA (Field Programmable Gate Array). The switches in the switching matrix module support two switching modes: hardware dip switches and command communication control through an external main control configuration chip. Long-distance optical transmission can be performed for USB signals in a video surveillance system, and free switching channels are realized, which simplifies the operation steps and improves the efficiency of data transmission.
[0054] Figure 1 FIG. 1 is a general block diagram of a USB optical transmission switching matrix device according to an exemplary embodiment. Figure 1 As shown, the device comprises:
[0055] A first USB interface module 1, a first signal conversion module 2, a switching matrix module 3, a second signal conversion module 4 and a second USB interface module 5 connected in sequence;
[0056] The first USB interface module 1 includes a plurality of first USB physical interfaces for accessing various host devices;
[0057] The second USB interface module 5 includes a plurality of second USB physical interfaces for accessing various slave devices;
[0058] For switch matrix module 3, see Figure 2 The schematic diagram of the structure of the switching matrix module 3 shown in the figure includes an interface switching switch unit 31 composed of a plurality of switches cascaded and a switch switching control interface unit 32, wherein the switch switching control interface unit 32 is used to control each switch in the interface switching switch unit 31 to select any channel between each master device and each slave device;
[0059] The first signal conversion module 2 is used to convert the USB signal sent by each host device into an optical signal (including conversion of USB signal to serial port signal and photoelectric conversion), and the second signal conversion module 4 is used to convert the signal sent by the switching matrix module 3 into a USB signal (including photoelectric conversion and conversion of serial port signal to USB signal to achieve long-distance transmission).
[0060] In an optional embodiment, in order to meet the requirement of switching between the high-speed interfaces of the first signal conversion module 2 and the second signal conversion module 4, the interface switching switch unit 31 can be a high-speed interface switching switch unit, which can switch the signal path between different high-speed interfaces as needed to achieve switching of various channels.
[0061] In an optional implementation, the interface switching switch unit 31 is a structure composed of a plurality of switches cascaded together, each switch in the interface switching switch unit 31 is a dual-way switching switch, and each switch is connected in a cascade manner.
[0062] That is to say, each switch in the interface switching switch unit 31 has a dual-way switching function and can independently control two channels, and the cascade method is to connect multiple such switches in series or parallel. In the series cascade, the switches are connected in sequence, and each switch controls a specific area or device (slave device or master device).
[0063] In an alternative embodiment, see Figure 3 The structure diagram of the interface switching unit 31 shown in FIG. 3 includes a master device end and a slave device end;
[0064] The master device end includes multiple stages of master device switches connected in series, such as Figure 3 As shown, the master device end includes multiple levels of master device nodes (such as Figure 3 Node11 and Node12, Node11 is the output-level node in the multi-level master device node, and is also the highest-level master device node or the first-level master device node in the multi-level master device node; Node12 is the input-level node in the multi-level master device node, and is also the second-level master device node in the multi-level master device node. When there are only two levels of master device nodes in the multi-level master device node, Node12 is also the lowest-level master device node in the multi-level master device node), each master device node includes a master device switch at the same level as the master device node.
[0065] The slave device end includes multiple stages of slave device switches connected in series, such as Figure 3 As shown, the slave device end includes multiple levels of slave device nodes (such as Figure 3 Node21 and Node22, Node21 is the input-level node in the multi-level slave device node, and is also the highest-level slave device node or the first-level slave device node in the multi-level slave device node; Node22 is the output-level node in the multi-level slave device node, and is also the second-level slave device node. When there are only two levels of slave device nodes in the multi-level slave device node, Node22 is also the lowest-level slave device node in the multi-level slave device node), and each slave device node includes a slave device switch at the same level as the slave device node.
[0066] The input end of the input-level master device switch (i.e., the lowest-level master device switch) of the master device end is connected to each master device (i.e., the master device is Figure 3 The output end of the output-level master device switch of the master device end (i.e., the highest-level master device switch) is connected to the input end of the input-level slave device switch of the slave device end (i.e., the highest-level slave device switch); the output end of the output-level slave device switch of the slave device end (i.e., the lowest-level slave device switch) is connected to each slave device (the slave device is Figure 3 dev1 to dev4 in the input end; the input-level master device switch at the master device end is the lowest-level master device switch at the master device end, the output-level master device switch at the master device end is the highest-level master device switch at the master device end, the input-level slave device switch at the slave device end is the highest-level slave device switch at the slave device end, and the output-level slave device switch at the slave device end is the lowest-level slave device switch at the slave device end.
[0067] Inside the master device end, the master device switches of each level from the input-level master device switch to the output-level master device switch are connected in series in sequence from the low-level master device switch to the high-level master device switch according to the level; inside the slave device end, the slave device switches of each level from the input-level slave device switch to the output-level slave device switch are connected in series in sequence from the high-level slave device switch to the low-level slave device switch according to the level. Figure 3 Only the nodes at the second level are shown in the figure. This embodiment is not limited to nodes at two levels. For the cascade method, please refer to Figure 3 In the d module (the d module includes the first main branch of the output node Node11 of the main device end and the two branch roads of the input node Node12), due to the cascade mode, the lower nodes in parallel with the same branch are regarded as the same upper node. Figure 3The master device side and the slave device side both indicate two levels of nodes, so there are four branch roads and two main branches on the master device side, which are connected to host1 to host4 respectively, and there are four branch roads on the slave device side, which are connected to dev1 to dev4 respectively.
[0068] In an optional implementation, each switch in the interface switching unit includes two pairs of high-speed differential pair pins, a selection pin and an enable pin; the enable pin is low level effective;
[0069] The two pairs of high-speed differential pair pins and the selection pin constitute a dual-path switch of the corresponding switch;
[0070] The selection pin is connected to the output end of the switch control interface unit 32 .
[0071] For further information, see Figure 4 The schematic diagram of the structure of the e module in the interface switching unit 31 is shown, and the e module is the input stage node of the slave device end. Figure 4 Taking the input node of the slave device as an example, the internal structure of the switch in each node (each master node and each slave node) is shown. Each switch includes two pairs of high-speed differential pins, a selection pin SEL, and an enable pin OE (the enable pin OE is internally pulled low to enable long validity, that is, low level conduction); the two pairs of high-speed differential pins are TXP and TXN, and RXP and RXN; TXP represents the positive end of the differential output pair (TXP1 and TXP2 are two independent positive line interfaces for transmitting different The selection pin SEL is connected to the output end of the switch switching control interface unit 32 to obtain the control signal of the hardware dial switch output by the switch switching control interface unit 32. The control signal can be a string of binary codes, and each switch in the interface switching switch unit 31 is selected and turned on through the binary code.
[0072] In an optional implementation, the relationship between the number of channels y1 in the master device end and the number of levels x1 of the master device nodes in the master device end is y1=2 ^ x1;
[0073] The relationship between the number of channels y2 in the slave device end and the number of levels x2 of the slave device nodes in the slave device end is y2=2 ^ x2;
[0074] In the interface switching unit 31, the number of channels between the master device and the slave device is y=y1*y2.
[0075] In an alternative embodiment, see Figure 5 The switch switching control interface unit 32 shown in FIG. 1 includes a hardware dial switch interface (ie, Figure 5 SEL_H1, SEL_D1, SEL_H21, SEL_H22, SEL_D21, SEL_D22) and I2C interface (i.e. Figure 5 IIC interface in the
[0076] The hardware dip switch interface is used to switch each switch in the interface switch unit to a hardware dip switch, and the I2C interface is used to switch each switch in the interface switch unit to an external control switch; the external control switch is a switch that performs communication control through an external master configuration chip.
[0077] Further, such as Figure 5As shown, the switch switching control interface unit 32 mainly includes two groups of selection switching modes. Mode 1 is a hardware dial switch, wherein SEL_H1 and SEL_D1 are primary switch interfaces (i.e., the output-level master device switch interface of the output-level master device node and the input-level slave device switch interface of the input-level slave device node), SEL_H1 represents the output-level master device switch interface of the master device end, SEL_D1 represents the output-level slave device switch interface of the slave device end, and SEL_H21 / SEL_H22 / SEL_D21 / SEL_D22 are secondary switch interfaces. SEL_H21 represents the first secondary master switch interface (i.e., the first input-level master switch interface) of the host end (Host end), SEL_H22 represents the second secondary master switch interface (i.e., the second input-level master switch interface) of the host end, SEL_D21 represents the first secondary slave switch interface (i.e., the first output-level slave switch interface) of the slave end (Device end), and SEL_D22 represents the second secondary slave switch interface (i.e., the second output-level slave switch interface) of the slave end. Each switch interface corresponds to a specific binary bit, and the state of the binary bit can be 0 or 1. The 0 state indicates that the switch corresponding to the switch interface is turned on, and the 1 state indicates that the switch corresponding to the switch interface is turned off. The binary bit states of each switch interface are combined into a string of binary codes, and the switch switching control interface unit 32 can input the binary code to each switch in the interface switching switch unit 31 to select and turn on. The switch design method of the host end and the slave end are the same, and the switching method is also the same, which can be selected according to the actual situation.
[0078] The I2C interface is convenient for users or developers to operate. The design principle is that the PC end can select channel switching by using a serial port to I2C module, or an external main control configuration chip can be used to implement operation switching on the main control end. This embodiment supports dual switch switching through the hardware dip switch interface and the I2C interface setting. The conventional method is a physical dip switch switching method, and the I2C communication switching mode is also supported. Both methods do not require the internal main control chip or FPGA (Field Programmable Gate Array) to participate, which saves resources, simplifies operation steps, and improves data transmission efficiency.
[0079] Furthermore, the interface switching switch unit 31 in the switching matrix module 3 can branch out multiple input channels and output channels by means of cascade switches. The switching mode of the switch switching control interface unit 32 can be made into a hardware dip switch corresponding to the input and output channels one by one, so that the device can be directly controlled by the panel without the main control, and the operation is simple and intuitive. In addition, the switching mode of the switch switching control interface unit 32 can also be converted into an I2C digital interface through an I2C to IO chip and reserved for external use, which is convenient for users to realize automatic switching control in secondary development.
[0080] In an alternative embodiment, see Figure 6 Another overall block diagram of a USB optical transmission switching matrix device is shown, wherein the first signal conversion module 2 includes a USB conversion and transmission module 21 and a first optical fiber transceiver module 22 connected in sequence; the second signal conversion module 4 includes a second optical fiber transceiver module 41 and a USB conversion and reception module 42 connected in sequence;
[0081] The USB conversion and sending module 21 is used to convert the first USB electrical signal sent by each host device into a high-speed serial bus signal; the first optical fiber transceiver module 22 is used to perform photoelectric conversion on the received high-speed serial bus signal; the second optical fiber transceiver module 41 is used to perform photoelectric conversion on the signal output by the switching matrix module; the USB conversion and receiving module 42 is used to convert the signal output by the second optical fiber transceiver module into a second USB signal.
[0082] Furthermore, the USB conversion and sending module 21 is used to receive the first USB electrical signal sent by each master device, and convert the first USB electrical signal into a high-speed serial bus signal for transmission; the first optical fiber transceiver module 22 is used to perform a first optical-electrical conversion on the high-speed serial bus signal; the second optical fiber transceiver module 41 is used to perform a second optical-electrical conversion on the high-speed serial bus signal after the first optical-electrical conversion; the USB conversion and receiving module 42 is used to receive the high-speed serial bus signal after the second optical-electrical conversion, and convert it into a second USB signal and send it to each slave device.
[0083] In an optional implementation, the USB conversion and transmission module 21 includes a first USB-PHY unit 211 and a first Ethernet-PHY unit 212 connected in sequence, the first USB-PHY unit 211 is used to convert the first USB signal sent by each host device into a first RGMII signal; the first Ethernet-PHY unit 212 is used to convert the first RGMII signal into a high-speed serial bus signal for transmission;
[0084] The USB conversion receiving module 42 includes a second Ethernet-PHY unit 421, a second USB-PHY unit 422 and a USB extension unit 423 connected in sequence. The second Ethernet-PHY unit 421 is used to convert the high-speed serial bus signal output by the second optical fiber transceiver module 41 into a second RGMII signal, and the second USB-PHY unit 422 is used to convert the second RGMII signal into the second USB signal; the USB extension unit 423 is used to perform channel expansion on the second USB signal.
[0085] See also Figure 7 The structural schematic diagram of the USB conversion and sending module 21 is shown, the input end of the first USB-PHY unit 211 is connected to the output end of each host device through the first USB interface module 1, the output end of the first USB-PHY unit 211 is connected to the input end of the first Ethernet-PHY unit 212 through the RGMII medium independent interface, and the output end of the first Ethernet-PHY unit 212 is connected to the input end of the first optical fiber transceiver module 22 through Fiber optical fiber to output a high-speed serial bus signal to the first optical fiber transceiver module 22, convert it into an optical signal, and perform long-distance isolated transmission.
[0086] In an alternative embodiment, see Figure 8 The structural schematic diagram of the USB conversion receiving module 42 is shown, the input end of the second Ethernet-PHY unit 421 is connected to the output end of the second optical fiber transceiver module 41 through Fiber optical fiber, the output end of the second Ethernet-PHY unit 421 is connected to the input end of the second USB-PHY unit 422 through the RGMII medium independent interface, the output end of the second USB-PHY unit 422 is connected to the input end of the USB extension unit 423 through the USB interface, and the output end of the USB extension unit 423 is connected to each slave device through the second USB interface module 5.
[0087] Furthermore, for USB optical fiber transmission, related technologies often use the "FPGA+MCU" processing method to convert the video, audio and USB signals to be transmitted into VP and I2S low-speed interfaces for transmission, and the USB signals are generally converted into the form of a network and input into the main control chip or FPGA (Field Programmable Gate Array), and a high-speed interface is established between the main control chip or FPGA to communicate data, and finally converted into SGMII transmission through Ethernet-PHY. However, this embodiment uses the form of "USB-PHY" + "Ethernet-PHY" to directly package the USB signals into the physical layer and convert them into a high-speed serial interface for the PHY chip, and enter the optical fiber medium for transmission through photoelectric conversion, thereby achieving stable and efficient data transmission.
[0088] In an optional implementation, the number of the second USB physical interfaces of the second USB interface module 5 is the same as the number of expandable channels of the USB expansion unit 423. That is, the total number of slave devices connected to the second USB interface module 5 depends on the USB expansion unit 423. In this embodiment, the channel between the host device and the slave device is expanded by the USB expansion unit 423, so that the user can connect more slave devices.
[0089] In an optional embodiment, the device further includes a first photoelectric conversion unit 33 and a second photoelectric conversion unit 34, such as Figure 2 As shown, the first photoelectric conversion unit 33 and the second photoelectric conversion unit 34 can be arranged in the switching matrix module 3;
[0090] The input end of the first photoelectric conversion unit 33 is connected to the output end of the first optical fiber transceiver module 22, and the output end of the first photoelectric conversion unit 33 is connected to the input end of the interface switching unit 31;
[0091] The output end of the interface switching unit 31 is connected to the input end of the second photoelectric conversion unit 34, and the output end of the second photoelectric conversion unit 34 is connected to the input end of the second optical fiber transceiver module 41. The first photoelectric conversion unit 33 and the second photoelectric conversion unit 34 correspond to the first optical fiber transceiver module 22 and the second optical fiber transceiver module 41, respectively, and can realize the conversion between electrical signals and optical signals during the communication process.
[0092] Further, such as Figure 2 As shown, the input end of the first photoelectric conversion unit 33 is connected to the output end of the first optical fiber transceiver module 22 through a Fiber optical fiber, and the output end of the first photoelectric conversion unit 33 is connected to the input end of the interface switching unit 31 through an SGMII (Serial Gigabit Media Independent Interface).
[0093] The output end of the interface switching unit 31 is again connected to the input end of the second photoelectric conversion unit 34 through SGMII (Serial Gigabit Media Independent Interface), and the output end of the second photoelectric conversion unit 34 is connected to the input end of the second optical fiber transceiver module 41 through Fiber optical fiber.
[0094] The following uses a simple example to illustrate the channel gating between each master device and each slave device in the switching matrix module 3. The gating form is shown in Table 1. Here, the above example is used, taking two-level nodes as an example, and the same applies to more-level nodes:
[0095] Table 1
[0096] SEL_H1 SEL_H21 SEL_H22 SEL_D1 SEL_D21 SEL_D22 Channel Selection 0 0 \ 0 0 \ host1-dev1 0 0 \ 0 1 \ host1-dev2 0 0 \ 1 \ 0 host1-dev3 0 0 \ 1 \ 1 host1-dev4 0 1 \ 0 0 \ host2-dev1 0 1 \ 0 1 \ host2-dev2 0 1 \ 1 \ 0 host2-dev3 0 1 \ 1 \ 1 host2-dev4 1 \ 0 0 0 \ host3-dev1 1 \ 0 0 1 \ host3-dev2 1 \ 0 1 \ 0 host3-dev3 1 \ 0 1 \ 1 host3-dev4 1 \ 1 0 0 \ host4-dev1 1 \ 1 0 1 \ host4-dev2 1 \ 1 1 \ 0 host4-dev3 1 \ 1 1 \ 1 host4-dev4
[0097] Table 1 is an example of selecting two devices and host point-to-point devices, host1~host4 respectively represent the display end PC host (i.e., master device), dev1~dev4 represent the downstream port device (i.e., slave device), when SEL_H1 is 0, SEL_H21 is 0, SEL_D1 is 0, and SEL_D21 is 0, the channel selects host1-dev1, which means that the highest-level master device switch of the master device end (Host end) is turned on, the first secondary master device switch of the master device end (Host end) is turned on, the highest-level slave device switch of the slave device end (Device end) is turned on, and the first secondary slave device switch of the slave device end (Device end) is turned on. At this time, the channel between the first master device host1 and the first slave device dev1 is turned on, and so on, the channel conduction between each master device and each slave device can be obtained. Because the USB expansion unit 423 is hung down, more device devices can be added for use in actual use, but there will be no situation where a device (i.e., slave device) appears on two hosts (i.e., master devices) at the same time. The above table is an example of a four-input and four-output situation of two-level nodes. Nodes can be added or deleted according to actual conditions. However, the relationship between the number of levels and the number of channels on the master and slave sides should follow the rule that the number of channels = 2^number of levels.
[0098] In this embodiment, the first USB interface module 1 is directly connected to the host device such as the PC end, one side of the USB conversion and transmission module 21 is connected to the first USB interface module 1, and the other side is connected to the first optical fiber transceiver module 22. The above three modules can be arranged in one place and extended by optical fiber. The core function of the switching matrix module 3 is to switch the far-end and near-end channels. The number of channels can be freely designed according to the node rule. Finally, it is connected to the USB conversion and receiving module 42 through the second optical fiber transceiver module 41. The USB conversion and receiving module 42 includes a USB expansion unit 423, which can be expanded to multiple USB devices (slave devices). The entire device switching path implementation method also supports dual switching mode, direct dial control or through a digital interface. The entire device does not require a main control chip, the cost and development cost are low, and the operation is simple, but it can realize the function of free matching of multi-channel USB point-to-point long-distance transmission.
[0099] In summary, the utility model realizes the photoelectric isolation long-distance transmission of USB optical fiber through the first signal conversion module and the second signal conversion module, and the transmission distance is long and the anti-interference performance is strong; the switch switching control interface unit in the switching matrix module can control the opening and closing of each switch in the interface switching switch unit to select any channel between the master device and the slave device, support free point-to-point switching of the master device and the slave device, and realize long-distance transmission of multiple master devices to multiple slave devices. There is no need for the participation of the main control chip or FPGA (Field Programmable Gate Array), and there is no need to install the driver, and the development and hardware manufacturing costs are low.
[0100] Secondly, each switch in the control interface switching switch unit adopts a dual-way switching switch, and connects multiple switches in a cascade manner according to a certain hierarchical structure. Each switch can independently control its corresponding path, improve the flexibility of line control, and provide higher power supply reliability and stability.
[0101] Furthermore, the switch switching control interface unit supports dual switch switching modes of hardware dip switches and external master configuration chips. Both modes do not require the participation of internal master chips or FPGAs (Field Programmable Gate Arrays), saving resources, simplifying operation steps, and improving data transmission efficiency.
[0102] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A USB optical transmission switching matrix device, characterized in that: The device comprises: a first USB interface module, a first signal conversion module, a switching matrix module, a second signal conversion module and a second USB interface module connected in sequence; The first USB interface module includes a plurality of first USB physical interfaces for accessing various host devices; The second USB interface module includes a plurality of second USB physical interfaces for accessing various slave devices; The switching matrix module includes an interface switching switch unit composed of multiple switches and a switch switching control interface unit, wherein the switch switching control interface unit is used to control each switch in the interface switching switch unit to select any channel between each master device and each slave device; the first signal conversion module is used to convert the USB signal sent by each master device into an optical signal, and the second signal conversion module is used to convert the signal sent by the switching matrix module into a USB signal.
2. The device according to claim 1, characterized in that Each switch in the interface switching switch unit is a dual-way switching switch, and each switch is connected in a cascade manner.
3. The device according to claim 2, characterized in that The interface switching unit includes a master device end and a slave device end; The master device end includes a plurality of master device switches connected in series; the slave device end includes a plurality of slave device switches connected in series; The input end of the input-level master device switch at the master device end is connected to the output end of each of the master devices through the first signal conversion module and the first USB interface module in sequence, and the output end of the output-level master device switch at the master device end is connected to the input end of the input-level slave device switch at the slave device end; the output end of the output-level slave device switch at the slave device end is connected to the input end of each of the slave devices through the second signal conversion module and the second USB interface module in sequence.
4. The device according to claim 3, characterized in that Each switch in the interface switching unit includes two pairs of high-speed differential pair pins, a selection pin and an enable pin; The two pairs of high-speed differential pair pins and the selection pin constitute a dual-path switch of the corresponding switch; The selection pin is connected to the output end of the switch switching control interface unit.
5. The device according to claim 3, characterized in that The relationship between the number of channels y1 in the master device end and the number of levels x1 of the master device switch in the master device end is y1=2 ^ x1; The relationship between the number of channels y2 in the slave device end and the number of levels x2 of the slave device switch in the slave device end is y2=2 ^ x2; In the interface switching unit, the number of channels between the master device and the slave device is y=y1*y2.
6. The device according to claim 1, characterized in that The switch switching control interface unit includes a hardware dip switch interface and an I2C interface; The hardware dip switch interface is used to switch each switch in the interface switching switch unit to a hardware dip switch, and the I2C interface is used to switch each switch in the interface switching switch unit to an external control switch; the external control switch is a switch that performs communication control through an external master control configuration chip.
7. The device according to any one of claims 1 to 6, characterized in that The first signal conversion module includes a USB conversion sending module and a first optical fiber transceiver module connected in sequence; the second signal conversion module includes a second optical fiber transceiver module and a USB conversion receiving module connected in sequence; The USB conversion and transmission module is used to convert the first USB electrical signal sent by each host device into a high-speed serial bus signal; The first optical fiber transceiver module is used to perform photoelectric conversion on the received high-speed serial bus signal; The second optical fiber transceiver module is used to perform photoelectric conversion on the signal output by the switching matrix module; and the USB conversion and receiving module is used to convert the signal output by the second optical fiber transceiver module into a second USB signal.
8. The device according to claim 7, characterized in that The USB conversion and transmission module includes a first USB-PHY unit and a first Ethernet-PHY unit connected in sequence, wherein the first USB-PHY unit is used to convert the first USB signal sent by each host device into a first RGMII signal; the first Ethernet-PHY unit is used to convert the first RGMII signal into a high-speed serial bus signal for transmission; The USB conversion receiving module includes a second Ethernet-PHY unit, a second USB-PHY unit and a USB extension unit connected in sequence, the second Ethernet-PHY unit is used to convert the high-speed serial bus signal output by the second optical fiber transceiver module into a second RGMII signal, the second USB-PHY unit is used to convert the second RGMII signal into the second USB signal; the USB extension unit is used to perform channel expansion on the second USB signal.
9. The device according to claim 8, characterized in that The number of the second USB physical interfaces of the second USB interface module is the same as the number of expandable channels of the USB expansion unit.
10. The device according to claim 7, characterized in that The device also includes a first photoelectric conversion unit and a second photoelectric conversion unit; The input end of the first photoelectric conversion unit is connected to the output end of the first optical fiber transceiver module, and the output end of the first photoelectric conversion unit is connected to the input end of the interface switching unit; The output end of the interface switching unit is connected to the input end of the second photoelectric conversion unit, and the output end of the second photoelectric conversion unit is connected to the input end of the second optical fiber transceiver module.