Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a USB synchronous and bidirectional switching system and method, which can realize synchronous bidirectional switching of USB signals along with audio and video signals so as to meet the use requirements of meeting rooms.
The technical problem to be solved by the invention is realized by the following technical scheme:
a USB synchronization and bidirectional switching system based on switching extension technology comprises a transmitting device and a receiving device, wherein the transmitting device is connected with the receiving device; the transmitting device is connected with at least one first source device and at least one first USB device, and the receiving device is connected with at least one second source device, at least one second USB device and a display device, wherein
When a certain first source device needs to display, the transmitting device connects the first source device to the receiving device by switching the audio/video channel of the transmitting device, so as to send the audio and video signals output by the first source device to the receiving device, the receiving device connects the transmitting device to the display device by switching the audio and video channels of the receiving device, to transmit the audio and video signals received from the transmitting device to the display device for display, meanwhile, the receiving device connects all second USB devices connected thereto to the transmitting device by switching its USB channel, the transmitting device connects all the first USB devices and all the second USB devices connected thereto to the first source device by switching its USB channel, so that the first source device can transmit USB signals with all the first USB devices and all the second USB devices;
When a certain second source device needs to display, the receiving device connects the second source device to the display device by switching the audio/video channel of the receiving device, so as to send the audio/video signal output by the second source device to the display device for display, meanwhile, the transmitting device connects all the first USB devices connected with the transmitting device to the receiving device by switching the USB channel of the transmitting device, and the receiving device connects all the second USB devices connected with the receiving device and all the first USB devices to the second source device by switching the USB channel of the receiving device, so that the second source device can transmit the USB signals with all the first USB devices and all the second USB devices.
Furthermore, the transmitting device comprises at least one first USB master interface, at least one first USB slave interface, a first USB switching module, at least one first audio/video input interface, a first audio/video switcher and an extended transmitting interface, wherein the extended transmitting interface is connected to the at least one first USB slave interface and the at least one first audio/video switcher
The first USB main interface is used for transmitting USB signals with corresponding first source equipment and is connected with the corresponding first source equipment;
the first USB slave interface is used for transmitting USB signals with corresponding first USB equipment and is connected with the corresponding first USB equipment;
the first USB switching module is used for switching USB channels among the first USB main interfaces, the first USB slave interfaces and the extended transmitting interface and is connected among the first USB main interfaces, the first USB slave interfaces and the extended transmitting interface;
The first audio/video input interface is used for receiving audio/video signals from the corresponding first source equipment and is connected to the corresponding first source equipment;
the first audio/video switcher is used for switching audio/video channels between the first audio/video input interfaces and the extension transmitting interfaces and is connected between the first audio/video interfaces and the extension transmitting interfaces;
the extension transmitting interface is used for sending audio and video signals and USB signals to the receiving equipment, receiving the USB signals from the receiving equipment and connecting the USB signals to the receiving equipment;
the first audio and video input interfaces correspond to the first USB main interfaces one by one, and the corresponding first audio and video input interfaces and the corresponding first USB main interfaces are connected to the same first source equipment.
Further, when a certain first source device needs to display, the transmitting device switches and connects all the first USB slave interfaces and the extended transmitting interface to the first USB master interface corresponding to the first source device through the first USB switching module, so as to simultaneously switch and send USB signals received by all the first USB slave interfaces and USB signals received by the extended transmitting interface to the first USB master interface corresponding to the first source device, and simultaneously switches and connects the first audio/video input interface corresponding to the first source device to the extended transmitting interface through the first audio/video switcher, so as to switch and send audio/video signals received by the first audio/video input interface corresponding to the first source device to the extended transmitting interface; when a certain second source device needs to display, the transmitting device switches all the first USB slave interfaces to the extended transmitting interface through the first USB switching module, so that all the first USB slave interfaces can transmit USB signals with the extended transmitting interface at the same time.
Further, the first USB switching module includes a first USB hub, a first USB switch and a second USB switch, each first USB slave interface is connected to the downstream port of the first USB hub, the first USB switch is connected between the upstream port of the first USB hub and each first USB master interface, and the extended transmission interface is connected to the downstream ports of the first USB switch and the first USB hub through the second USB switch, respectively;
when a certain first source device needs to display, the first USB switch switches and connects the uplink port of the first USB hub to the first USB host interface corresponding to the first source device, and the second USB switch switches and connects the extended transmission interface to the downlink port of the first USB hub; when a second source device needs to display, the first USB switch and the second USB switch jointly switch on the uplink port of the first USB hub to the extended transmission interface.
Further, the transmitting device further comprises a first master controller, and the first master controller is used for controlling the first USB switching module, the first audio/video switcher and the extension transmitting interface according to a display switching instruction and a source device needing to be displayed, and is respectively connected to the first USB switching module, the first audio/video switcher and the extension transmitting interface.
Furthermore, the receiving device comprises an extended receiving interface, at least one second USB master interface, at least one second USB slave interface, a second USB switching module, at least one second audio/video input interface, a second audio/video switcher, and an audio/video output interface, wherein the extended receiving interface is connected to the second USB master interface via a cable, and the second audio/video switcher is connected to the audio/video output interface via a cable
The extension receiving interface is used for receiving audio and video signals and USB signals from the transmitting equipment, sending the USB signals to the transmitting equipment and connecting the USB signals to the transmitting equipment;
the second USB main interface is used for transmitting USB signals with corresponding second source equipment and is connected with the corresponding second source equipment;
the second USB slave interface is used for transmitting USB signals with corresponding second USB equipment and is connected with the corresponding second USB equipment;
the second USB switching module is used for switching USB channels among the second USB main interfaces, the second USB slave interfaces and the extension receiving interfaces and connecting the second USB main interfaces, the second USB slave interfaces and the extension receiving interfaces;
the second audio/video input interface is used for receiving audio/video signals from the corresponding second source equipment and is connected to the corresponding second source equipment;
the second audio/video switcher is used for switching audio/video channels among the second audio/video input interfaces, the extension receiving interface and the audio/video output interface and is connected among the second audio/video interfaces, the extension receiving interface and the audio/video output interface;
The audio/video output interface is used for outputting audio/video signals to the display equipment and is connected to the display equipment;
the second audio and video input interfaces correspond to the second USB main interfaces one by one, and the corresponding second audio and video input interfaces and the second USB main interfaces are connected to the same second source equipment.
Further, when a certain first source device needs to display, the receiving device switches and connects all second USB slave interfaces to the extended receiving interface through the second USB switching module, so that all second USB slave interfaces can transmit USB signals with the extended receiving interface at the same time, and simultaneously switches and connects the extended receiving interface to the audio/video output interface through the second audio/video switcher, so as to switch and send the audio/video signals received by the extended receiving interface to the audio/video output interface; when a certain second source device needs to display, the receiving device switches and connects all second USB slave interfaces and the extension receiving interface to a second USB main interface corresponding to the second source device through the second USB switching module so as to simultaneously switch and send USB signals received by all the second USB slave interfaces and USB signals received by the extension receiving interface to a second USB main interface corresponding to the second source device, and simultaneously switches and connects a second audio and video input interface corresponding to the second source device to the audio and video output interface through the second audio and video switcher so as to switch and send audio and video signals received by the second audio and video input interface corresponding to the second source device to the audio and video output interface.
Further, the second USB switching module includes a second USB hub, a third USB switch and a fourth USB switch, each second USB slave interface is connected to the downstream port of the second USB hub, the third USB switch is connected between the upstream port of the second USB hub and each second USB host interface, and the extended receiving interface is connected to the downstream ports of the third USB switch and the second USB hub through the fourth USB switch, respectively;
when a first source device needs to display, the fourth USB switch switches the extended receiving interface to the third USB switch, and when a second source device needs to display, the fourth USB switch switches the extended receiving interface to the downlink port of the second USB hub.
Further, the receiving device further comprises a second master controller, and the second master controller is used for controlling the second USB switching module, the second audio/video switcher and the extension receiving interface according to a display switching instruction and a source device needing to be displayed, and is respectively connected to the second USB switching module, the second audio/video switcher and the extension receiving interface.
A USB synchronization and bidirectional switching method based on switching extension technology comprises the following steps:
Step 1: acquiring a display switching instruction and source equipment needing to be displayed;
step 2: if the source equipment needing to be displayed is first source equipment, the transmitting equipment connects the first source equipment to the receiving equipment by switching the audio and video channel of the transmitting equipment, so as to send the audio and video signals output by the first source device to the receiving device, the receiving device connects the transmitting device to the display device by switching the audio and video channels of the receiving device, to transmit the audio and video signals received from the transmitting device to the display device for display, meanwhile, the receiving device connects all second USB devices connected thereto to the transmitting device by switching its USB channel, the transmitting device connects all the first USB devices and all the second USB devices connected thereto to the first source device by switching its USB channel, so that the first source device can transmit USB signals with all the first USB devices and all the second USB devices; if the source device needing to be displayed is a second source device, the receiving device connects the second source device to the display device by switching the audio and video channel of the receiving device so as to send the audio and video signals output by the second source device to the display device for displaying, meanwhile, the transmitting device connects all the first USB devices connected with the transmitting device to the receiving device by switching the USB channels of the transmitting device, and the receiving device connects all the second USB devices connected with the receiving device and all the first USB devices to the second source device by switching the USB channels of the receiving device so that the second source device can transmit USB signals with all the first USB devices and all the second USB devices.
The invention has the following beneficial effects: the USB synchronization and bidirectional switching system and method realize synchronous bidirectional switching of the USB signals along with the audio and video signals so as to meet the use requirements of a conference room, and no matter a user selects the first source equipment connected to the transmitting equipment to display or selects the second source equipment connected to the receiving equipment to display, all the first USB equipment and all the second USB equipment can be switched and connected to the first source equipment or the second source equipment.
Example one
As shown in fig. 1, a USB synchronous and bidirectional switching system based on a switching extension technology includes a transmitting device and a receiving device, wherein the transmitting device is connected to the receiving device; the transmitting device is connected with at least one first source device and at least one first USB device, and the receiving device is connected with at least one second source device, at least one second USB device and a display device, wherein
When a certain first source device needs to display, the transmitting device connects the first source device to the receiving device by switching the audio/video channel of the transmitting device, so as to send the audio and video signals output by the first source device to the receiving device, the receiving device connects the transmitting device to the display device by switching the audio and video channels of the receiving device, to transmit the audio and video signals received from the transmitting device to the display device for display, meanwhile, the receiving device connects all second USB devices connected thereto to the transmitting device by switching its USB channel, the transmitting device connects all the first USB devices and all the second USB devices connected thereto to the first source device by switching its USB channel, so that the first source device can transmit USB signals with all the first USB devices and all the second USB devices;
when a certain second source device needs to display, the receiving device connects the second source device to the display device by switching the audio/video channel of the receiving device, so as to send the audio/video signal output by the second source device to the display device for display, meanwhile, the transmitting device connects all the first USB devices connected with the transmitting device to the receiving device by switching the USB channel of the transmitting device, and the receiving device connects all the second USB devices connected with the receiving device and all the first USB devices to the second source device by switching the USB channel of the receiving device, so that the second source device can transmit the USB signals with all the first USB devices and all the second USB devices.
The first source device and the second source device may be, but are not limited to, a PC, a set-top box, a game console, or the like, the display device may be, but is not limited to, a projector, a display, a television, or the like, and the first USB device and the second USB device may be, but are not limited to, a mouse, a keyboard, a microphone, a camera, a USB disk, or the like.
As shown in fig. 2, the transmitting device includes at least one first USB master interface, at least one first USB slave interface, a first USB switching module, at least one first audio/video input interface, a first audio/video switch, and an extended transmitting interface, where the extended transmitting interface is connected to the first audio/video input interface and the first audio/video switch
The first USB main interface is used for transmitting USB signals with corresponding first source equipment and is connected with the corresponding first source equipment;
the first USB slave interface is used for transmitting USB signals with corresponding first USB equipment and is connected with the corresponding first USB equipment;
the first USB switching module is used for switching USB channels among the first USB main interfaces, the first USB slave interfaces and the extended transmitting interface and is connected among the first USB main interfaces, the first USB slave interfaces and the extended transmitting interface;
the first audio/video input interface is used for receiving audio/video signals from the corresponding first source equipment and is connected to the corresponding first source equipment;
The first audio/video switcher is used for switching audio/video channels between the first audio/video input interfaces and the extension transmitting interfaces and is connected between the first audio/video interfaces and the extension transmitting interfaces;
the extension transmitting interface is used for sending audio and video signals and USB signals to the receiving equipment, receiving the USB signals from the receiving equipment and connecting the USB signals to the receiving equipment;
the first audio and video input interfaces correspond to the first USB main interfaces one by one, and the corresponding first audio and video input interfaces and the corresponding first USB main interfaces are connected to the same first source equipment.
The first audio/video input interface can be but not limited to an HDMI interface, a VGA interface, a DP interface or a TYPE-C interface, preferably, at least one first audio/video input interface can be integrated with a corresponding first USB host interface to form a same interface, for example, the TYPE-C interface can transmit audio/video signals and USB signals simultaneously due to its own USB host function, so that the TYPE-C interface does not need to set a first USB host interface matched with the TYPE-C interface when serving as the first audio/video input interface.
In this embodiment, the transmitting device is provided with an HDMI interface, a VGA interface, a DP interface and a TYPE-C interface, and is provided with three first USB host interfaces, the three first USB host interfaces respectively with HDMI interface, VGA interface and DP interface one-to-one collocation use. In this embodiment, the transmitting device is provided with three first USB slave interfaces.
When the transmitting equipment is used, all the first USB slave interfaces and the extended transmitting interfaces can be switched and connected to the same first USB master interface through the first USB switching module at the same time, so that all the first USB slave interfaces and the extended transmitting interfaces can transmit USB signals with the same first USB master interface at the same time, and all the first USB slave interfaces can be switched and connected to the extended transmitting interfaces through the first USB switching module at the same time, so that all the first USB slave interfaces can transmit USB signals with the extended transmitting interfaces at the same time; and each first audio/video input interface can be selected to be switched with the extension transmitting interface through the first audio/video switcher so as to switch and transmit the audio/video signals received by each first audio/video input interface to the extension transmitting interface.
When a certain first source device needs to be displayed, the transmitting device switches and connects all the first USB slave interfaces and the extension transmitting interface to the first USB master interface corresponding to the first source device through the first USB switching module, and simultaneously switches and connects the first audio/video input interface corresponding to the first source device to the extension transmitting interface through the first audio/video switcher; when a certain second source device needs to display, the transmitting device switches all the first USB slave interfaces to the extended transmitting interface through the first USB switching module.
The first USB switching module comprises a first USB hub, a first USB switch and a second USB switch, each first USB slave interface is connected to the downlink port of the first USB hub, the first USB switch is connected between the uplink port of the first USB hub and each first USB main interface, so that the uplink port of the first USB hub is selectively switched and connected with each first USB main interface, and the extension transmitting interface is respectively connected to the first USB switch and the downlink port of the first USB hub through the second USB switch, so that the second USB switch is selectively switched and connected between the first USB switch and the downlink port of the first USB hub.
When a certain first source device needs to display, the first USB switch switches and connects the uplink port of the first USB hub to the first USB host interface corresponding to the first source device, and the second USB switch switches and connects the extended transmission interface to the downlink port of the first USB hub; when a second source device needs to display, the first USB switch and the second USB switch jointly switch on the uplink port of the first USB hub to the extended transmission interface.
The transmitting equipment further comprises a first main controller, and a source equipment which is used for switching instructions and needs to be displayed according to display is right to a first USB switcher and a second USB switcher of the first USB switching module and the first audio and video switcher and the extension transmitting interface are controlled and respectively connected to the first USB switcher and the second USB switcher in the first USB switching module and the first audio and video switcher and the extension transmitting interface.
The first main controller can receive a display switching instruction and source equipment needing to be displayed through keys, an API (application program interface) or a WEB UI (user interface) and the like, then a register unit in the first audio/video switcher is configured through an IIC (inter-integrated circuit) interface, the first main controller can control I/O (input/output) levels of the first USB switcher and the second USB switcher to complete switching of USB signals when the audio/video signals are switched, when the direction of the USB signals is switched, the first main controller can configure I/O of the extension transmitting interface, and simultaneously restart the extension transmitting interface, so that the extension transmitting interface judges the I/O state when being started, and further judges whether the extension transmitting interface is started in a USB master mode or a USB slave mode.
As shown in fig. 3, the receiving device includes an extended receiving interface, at least one second USB master interface, at least one second USB slave interface, a second USB switching module, at least one second audio/video input interface, a second audio/video switcher, and an audio/video output interface, where the extended receiving interface is connected to the second USB master interface through the second audio/video switcher, and the second USB slave interface is connected to the second audio/video switcher through the second audio/
The extension receiving interface is used for receiving audio and video signals and USB signals from the transmitting equipment, sending the USB signals to the transmitting equipment and connecting the USB signals to the transmitting equipment;
the second USB main interface is used for transmitting USB signals with corresponding second source equipment and is connected with the corresponding second source equipment;
the second USB slave interface is used for transmitting USB signals with corresponding second USB equipment and is connected with the corresponding second USB equipment;
the second USB switching module is used for switching USB channels among the second USB main interfaces, the second USB slave interfaces and the extension receiving interfaces and connecting the second USB main interfaces, the second USB slave interfaces and the extension receiving interfaces;
the second audio/video input interface is used for receiving audio/video signals from the corresponding second source equipment and is connected to the corresponding second source equipment;
the audio/video output interface is used for outputting audio/video signals to the display equipment and is connected to the display equipment;
The second audio/video switcher is used for switching audio/video channels among the second audio/video input interfaces, the extension receiving interface and the audio/video output interface and is connected among the second audio/video interfaces, the extension receiving interface and the audio/video output interface;
the second audio and video input interfaces correspond to the second USB main interfaces one by one, and the corresponding second audio and video input interfaces and the second USB main interfaces are connected to the same second source equipment.
The second audio/video input interface can be but not limited to an HDMI interface, a VGA interface, a DP interface or a TYPE-C interface, preferably, at least one second audio/video input interface can be integrated with a corresponding second USB host interface to form a same interface, for example, the TYPE-C interface can transmit audio/video signals and USB signals simultaneously due to its own USB host function, so that the TYPE-C interface does not need to set a second USB host interface matched with the second audio/video input interface when serving as the second audio/video input interface. The audio/video output interface may be, but is not limited to, one of an HDMI interface, a VGA interface, and a DP interface.
In this embodiment, the receiving device is provided with two HDMI interfaces and two second USB host interfaces, and the two second USB host interfaces are respectively matched with the two HDMI interfaces in a one-to-one manner. In this embodiment, the receiving device is provided with three second USB slave interfaces.
When the receiving device is used, all the second USB slave interfaces and the extended receiving interface can be switched to the same second USB master interface through the second USB switching module at the same time, so that all the second USB slave interfaces and the extended receiving interface can transmit USB signals with the same second USB master interface at the same time, and all the second USB slave interfaces can be switched to the extended receiving interface through the second USB switching module at the same time, so that all the second USB slave interfaces can transmit USB signals with the extended receiving interface at the same time; and each second audio and video input interface and the extension receiving interface can be selected to be switched with the audio and video output interface through the second audio and video switcher so as to selectively switch the audio and video signals received by each second audio and video input interface and the audio and video signals received by the extension receiving interface and send the audio and video signals to the audio and video output interface.
When a certain first source device needs to display, the receiving device switches all second USB slave interfaces to the extended receiving interface through the second USB switching module, and simultaneously switches the extended receiving interface to the audio/video output interface through the second audio/video switcher; when a certain second source device needs to display, the receiving device switches all second USB slave interfaces and the extension receiving interface to the second USB master interface corresponding to the second source device through the second USB switching module, and simultaneously switches and switches the second audio and video input interface corresponding to the second source device to the audio and video output interface through the second audio and video switcher.
The second USB switching module comprises a second USB hub, a third USB switch and a fourth USB switch, each second USB slave interface is connected to the downlink port of the second USB hub, the third USB switch is connected between the uplink port of the second USB hub and each second USB main interface, so that the uplink port of the second USB hub is selectively switched and connected with each second USB main interface, and the extension receiving interface is respectively connected to the downlink ports of the third USB switch and the second USB hub through the fourth USB switch, so that the downlink ports of the third USB switch and the second USB hub are selectively switched and connected.
When a certain first source device needs to display, the third USB switch and the fourth switch jointly switch on the uplink port of the second USB hub to the extended receiving interface; when a second source device needs to display, the third USB switch switches the uplink port of the second USB hub to the second USB host interface corresponding to the second source device, and the fourth USB switch switches the extended receiving interface to the downlink port of the second USB hub.
The receiving device further comprises a second master controller, and a source device which is used for switching instructions and needs to be displayed according to display is right to a third USB switcher and a fourth USB switcher of the second USB switching module and the second audio and video switcher and the extension receiving interface are controlled and respectively connected to the third USB switcher and the fourth USB switcher in the second USB switching module and the second audio and video switcher and the extension receiving interface.
The second main controller can receive a display switching instruction and source equipment needing to be displayed through keys, an API (application program interface) or WEB UI (user interface) and the like, then a register unit in the second audio/video switcher is configured through an IIC (inter-integrated circuit) interface, the second main controller can control I/O (input/output) levels of the third USB switcher and the fourth USB switcher to complete switching of USB signals when the audio/video signals are switched, and when the direction of the USB signals is switched, the second main controller can configure I/O of the extension receiving interface and restart the extension receiving interface at the same time, so that the extension receiving interface judges the I/O state when being started, and further judges whether the extension receiving interface is started in a USB master mode or a USB slave mode.
The extended transmitting interface is an HDBT transmitting interface, the extended receiving interface is an HDBT receiving interface, and the extended transmitting interface of the transmitting equipment is connected with the extended receiving interface of the receiving equipment through a network cable.
As shown in fig. 4, when the first source device is required to be displayed, the transmission paths of the audio and video signals sequentially include: the USB audio/video switching device comprises a first source device, a first audio/video input interface, a first audio/video switcher, an extension transmitting interface, an extension receiving interface, a second audio/video switcher, an audio/video output interface and a display device, wherein the transmission path of a USB signal comprises two paths, and the first path is as follows: each first USB device, each first USB slave interface, a first USB hub, a first USB switcher, a first USB master interface, and a first source device, where the second path is: each second USB device, each second USB slave interface, a third USB switch, a fourth USB switch, an extended receive interface, an extended transmit interface, a second USB switch, a first USB hub, a first USB switch, a first USB master interface, and a first source device.
As shown in fig. 5, when the second source device is required to be displayed, the transmission paths of the audio/video signal sequentially include: the USB interface comprises a first source device, a first audio and video input interface, a first audio and video switcher, an audio and video output interface and a display device, wherein the transmission path of the USB signal comprises two paths, the first path is as follows: each first USB device, each first USB slave interface, a first USB hub, a first USB switch, a second USB switch, an extended transmit interface, an extended receive interface, a fourth USB switch, a second USB hub, a third USB switch, a second USB master interface, and a second source device, the second path being: each second USB device, each second USB slave interface, a second USB hub, a third USB hub, a second USB master interface, and a second source device.