Usb hub with host bridging function and control method thereof
Patent Information
- Application Number
- CN202211743326.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-25
- Filing Date
- 2022-12-27
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-12-27
AI Technical Summary
[0003]现有技术是以一条USB连接线由所述集线器的一上行端口连接至所述主机装置,所述集线器的另一上行端口无法再连接另一主机装置,以致于所述两个主机装置之间无法通过两个上行端口进行数据的互传,使用上相当不方便,导致集线器与主机装置之间的连接受到较大限制
[0026]本发明的具有主机桥接功能的USB集线装置及其控制方法,通过主机桥接控制器连接两个上行端口,以使所述两个上行端口所连接的两个主机装置以双向同步互相传送数据,提高集线装置的使用方便性以及使用弹性,以充分利用两个上行端口。
Smart Images

Figure CN117453599B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a hub device and method thereof, and more particularly to a USB hub device with host bridging function and its control method thereof. Background Technology
[0002] With the rapid development of information technology, the application of electronic products is becoming increasingly widespread. Handheld electronic devices such as laptops, mobile phones, and tablets are ubiquitous. Because these electronic devices are portable and can be used anytime, anywhere, and to enable interconnection between various electronic devices for large-scale data transmission, multiple electronic devices are typically connected to the downstream port of a hub using a Universal Serial Bus (USB) cable. The upstream port of the hub is connected to the host device, allowing the multiple electronic devices and the host device to send or receive data to each other via the hub's USB transmission protocol.
[0003] Current technology connects the hub to the host device via a single USB cable from one upstream port. The other upstream port of the hub cannot be connected to another host device, preventing data transfer between the two host devices via the two upstream ports. This is quite inconvenient and significantly limits the connectivity between the hub and the host device. Therefore, there is a need to develop a new type of hub to address these issues. Summary of the Invention
[0004] One objective of this invention is to provide a USB hub device with host bridging function and its control method. By connecting two uplink ports through a host bridging controller, the two host devices connected to the two uplink ports can synchronously transmit data to each other, thereby improving ease of use and flexibility of the hub device.
[0005] To achieve the above objectives, the present invention provides a USB hub with host bridging function, suitable for connecting a first host device, a second host device, and multiple peripheral devices. The USB hub includes: a first uplink port for connecting the first host device; a second uplink port for connecting the second host device; a USB controller coupled to the first uplink port and the second uplink port, used to determine the power levels of the first uplink port and the second uplink port to confirm that the power levels of the first uplink port and the second uplink port are greater than a predetermined level; and a switching module connected to the USB controller, the first uplink port, and the second uplink port respectively, used to switch between the first uplink port and the second uplink port. The port is respectively connected to a USB controller and a host bridge controller; the host bridge controller is respectively connected to the USB controller and the switching module, and is used to receive first data from the first uplink port through the USB controller and the switching module and transmit the first data to the second host device connected to the second uplink port, and to receive second data from the second uplink port through the USB controller and the switching module and transmit the second data to the first host device connected to the first uplink port; and a plurality of first downlink ports are respectively coupled to the USB controller and respectively connected to the plurality of peripheral devices, for transmitting and receiving the first data and the second data to the plurality of peripheral devices.
[0006] In one embodiment, the host bridging controller includes: a first bridge connected to the switching module and the USB controller, for transmitting and receiving first data and second data transmitted through the switching module and the USB controller, and the first data and second data parsed by the USB controller; a buffer connected to the first bridge for storing the first data and the second data; and a second bridge connected to the buffer and the USB controller for transmitting and receiving the first data and second data transmitted through the switching module and the USB controller, and the first data and second data parsed by the USB controller.
[0007] In one embodiment, the switching module is disposed in the host bridging controller, and the host bridging controller controls the switching of the switching module.
[0008] In one embodiment, the USB hub device with host bridging function further includes an uplink control circuit connected between the switching module and the USB controller to control data transmission and reception between the first host device and the USB controller.
[0009] In one embodiment, the USB hub device with host bridging function further includes a plurality of first downlink control circuits, which are respectively connected between the plurality of first downlink ports and the USB controller, for controlling the data transmission and reception between the plurality of first downlink ports and the USB controller.
[0010] In one embodiment, the USB hub device with host bridging function further includes a second downlink control circuit connected between the USB controller, the host bridging controller, and the switching module, for controlling data transmission and reception between the USB controller and the host bridging controller.
[0011] In one embodiment, the power level is the level value of the VBUS pin defined by the USB interface of the first host device and the second host device.
[0012] In one embodiment, when the switching module switches the first host device to connect the first uplink port to the USB controller, the switching module simultaneously switches the second host device to connect the second uplink port to the host bridge controller, so that the first data from the first uplink port is transmitted from the first host device to the second host device.
[0013] In one embodiment, when the switching module switches the second host device to connect the second uplink port to the USB controller, the switching module simultaneously switches the first host device to connect the first uplink port to the host bridge controller, so that the second data from the second uplink port is transmitted from the second host device to the first host device.
[0014] The control method for a USB hub with host bridging function of the present invention is suitable for connecting a first host device, a second host device, and multiple peripheral devices. The control method includes the following steps:
[0015] A USB controller determines the power levels of the first uplink port and the second uplink port to confirm that the power levels of the first uplink port and the second uplink port are greater than a predetermined level.
[0016] According to the predetermined level, the switching module switches the first uplink port and the second uplink port to connect to the USB controller and the host bridge controller respectively.
[0017] The host bridging controller receives first data from the first uplink port and transmits the first data to the second host device connected to the second uplink port via the USB controller and the switching module; and receives second data from the second uplink port and transmits the second data to the first host device connected to the first uplink port via the USB controller and the switching module; and
[0018] The first data and the second data are transmitted and received in the multiple peripheral devices via multiple first downlink ports.
[0019] In one embodiment, the steps of the host bridging controller receiving first data from the first uplink port and transmitting the first data to the second host device connected to the second uplink port via the USB controller and the switching module, and receiving second data from the second uplink port and transmitting the second data to the first host device connected to the first uplink port via the USB controller and the switching module, include the following steps: receiving the first data and the second data transmitted via the switching module and the USB controller through a first bridge, and parsing the first data and the second data by the USB controller; storing the first data and the second data in a buffer; and receiving the first data and the second data transmitted via the switching module and the USB controller through a second bridge, and parsing the first data and the second data by the USB controller.
[0020] In one embodiment, the steps of the host bridging controller receiving first data from the first uplink port and transmitting the first data to the second host device connected to the second uplink port through the USB controller and the switching module, and receiving second data from the second uplink port and transmitting the second data to the first host device connected to the first uplink port through the USB controller and the switching module, include the following steps: controlling the data transmission and reception between the first host device and the USB controller through the uplink control circuit.
[0021] In one embodiment, the step of transmitting and receiving the first data and the second data to the plurality of peripheral devices via a plurality of first downlink ports includes the following step: controlling the data transmission and reception between the plurality of first downlink ports and the USB controller via a plurality of first downlink control circuits.
[0022] In one embodiment, the step of switching the first uplink port and the second uplink port with the switching module to connect to the USB controller and the host bridge controller respectively according to the predetermined level further includes controlling the data transmission and reception between the USB controller and the host bridge controller with a second downlink control circuit.
[0023] In one embodiment, the power level is the level value of the VBUS pin defined by the USB interface of the first host device and the second host device.
[0024] In one embodiment, when the first host device is connected to the hub before the second host device, the switching module performs a switching operation to allow the first host device to connect to the USB controller through the first uplink port. Simultaneously, the switching module performs a switching operation to allow the second host device to connect to the host bridge controller through the second uplink port, so that the first data from the first uplink port is transmitted from the first host device to the second host device.
[0025] In one embodiment, when the second host device is connected to the hub before the first host device, the switching module switches the second host device so that the second uplink port is connected to the USB controller, and the switching module simultaneously switches the first host device so that the first uplink port is connected to the host bridge controller, so that the second data from the second uplink port is transmitted from the second host device to the first host device.
[0026] The present invention relates to a USB hub device with host bridging function and its control method, which connects two uplink ports through a host bridging controller so that the two host devices connected to the two uplink ports can transmit data to each other in a bidirectional synchronous manner, thereby improving the ease of use and flexibility of the hub device and making full use of the two uplink ports. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0028] Figure 1 A block diagram of a hub device with host bridging function of a universal serial bus according to an embodiment of the present invention is shown.
[0029] Figure 2 A flowchart illustrating the control method of a hub device with host bridging function of a universal serial bus according to an embodiment of the present invention is shown. Detailed Implementation
[0030] Please refer to the diagram, where the same element symbols represent the same or similar elements. The principles of the invention are illustrated by way of example in a suitable computing environment. The following description is based on the illustrative specific embodiments of the invention and should not be construed as limiting the invention to other specific embodiments not detailed herein.
[0031] refer to Figure 1 This diagram illustrates a block diagram of a Universal Serial Bus (USB) hub with host bridging functionality according to an embodiment of the present invention. The USB hub 100 is adapted to connect a first host device 118a, a second host device 118b, and a plurality of peripheral devices 120. The hub 100 includes a first uplink port 102a, a second uplink port 102b, a switching module 104, an uplink control circuit 106, a USB controller 108, a plurality of first downlink control circuits 110, a second downlink control circuit 112, a host bridging controller 114, and a plurality of first downlink ports 116. The first uplink port 102a is used to connect to the first host device 118a, and the second uplink port 102b is used to connect to the second host device 118b.
[0032] like Figure 1 As shown, the USB controller 108 is coupled to the first uplink port 102a and the second uplink port 102b to determine the power level of the first uplink port 102a and the second uplink port 102b, so as to confirm that the power level of the first uplink port 102a and the second uplink port 102b is greater than a predetermined level, so as to determine whether the first host device 118a and the second host device 118b are respectively connected to the first uplink port 102a and the second uplink port 102b. In one embodiment, the power level is the level value of the VBUS pin defined by the USB interface of the first host device 118a and the second host device 118b. In one embodiment, the USB controller 108 is coupled to the first uplink port 102a through the uplink control circuit 106 and the switching module 104, and is coupled to the second uplink port 102b through the second downlink control circuit 112 and the host bridging controller 114.
[0033] like Figure 1As shown, the switching module 104 is connected to the USB controller 108, the first uplink port 102a, and the second uplink port 102b, respectively, to switch the first uplink port 102a and the second uplink port 102b to connect to a USB controller 108 and a host bridge controller 114, respectively. In one embodiment, the switching module 104 is connected to the second downlink control circuit 112, the host bridge controller 114, and the second uplink port 102b, or the second uplink port 102b is coupled to the host bridge controller 114 through the second downlink control circuit 112. In one embodiment, the second downlink control circuit 112 is connected between the USB controller 108, the host bridge controller 114, and the switching module 104, to control the data transmission and reception between the USB controller 108 and the host bridge controller 114. In one embodiment, as... Figure 1 As shown, the switching module 104 is independently disposed outside the host bridge controller 114, and is used to switch the first uplink port 102a and the second uplink port 102b to connect to a USB controller 108 and a host bridge controller 114 respectively.
[0034] In another embodiment, the switching module 104 is disposed in the host bridging controller 114, and the host bridging controller 114 controls the switching of the switching module.
[0035] like Figure 1 As shown, the host bridging controller 114 is connected to the USB controller 108 and the switching module 104, respectively. It receives first data from the first uplink port 102a through the USB controller 108 and the switching module 104 and transmits the first data to the second host device 118b connected to the second uplink port 102b. It also receives second data from the second uplink port 102b through the USB controller 108 and the switching module 104 and transmits the second data to the first host device 118a connected to the first uplink port 102a. Multiple first downlink ports 116 are respectively coupled to the USB controller 108 and connected to the multiple peripheral devices 120, respectively, for transmitting and receiving the first data and the second data between the multiple peripheral devices 120. In one embodiment, multiple first downlink control circuits 110 are respectively connected between the multiple first downlink ports 116 and the USB controller 108, for controlling the data transmission and reception between the multiple first downlink ports 116 and the USB controller 108. In one embodiment, the host bridging controller 114 is connected to the USB controller 108 via a second downlink control circuit 112.
[0036] exist Figure 1 In this embodiment, the host bridging controller 114 includes a first bridge 122a, a buffer 124, and a second bridge 122b. The first bridge 122a is connected to the switching module 104 and the USB controller 108, and is used to transmit and receive the first data and the second data transmitted through the switching module 104 and the USB controller 108, and the USB controller 108 parses the first data and the second data. In one embodiment, the first bridge 122a is connected to the switching module 104 via a second downlink control circuit 112. The buffer 124 is connected to the first bridge 122a to store the first data and the second data. In one embodiment, the buffer 124 is connected between the first bridge 122a and the second bridge 122b. The second bridge 122b connects the buffer 124 and the USB controller 108 to transmit and receive the first data and the second data transmitted through the switching module 104 and the USB controller 108, and to parse the first data and the second data by the USB controller 108. In one embodiment, the second bridge 122b is connected to the USB controller 108 through the switching module 104.
[0037] like Figure 1 In the illustrated embodiment, the uplink control circuit 106 is connected between the first uplink port 102a and the USB controller 108, and is used to control the data transmission and reception between the first host device 118a and the USB controller 108. A plurality of first downlink control circuits 110 are respectively connected between the plurality of first downlink ports 116 and the USB controller 108, and are used to control the data transmission and reception between the plurality of first downlink ports 116 and the USB controller 108.
[0038] exist Figure 1In this configuration, when the first host device 118a is connected to the hub 100 before the second host device 118b, the switching module 104 performs a switching operation to allow the first host device 118a to connect to the USB controller 108 via the first uplink port 102a. Simultaneously, the switching module 104 also performs a switching operation to allow the second host device 118b to connect to the host bridge controller 114 via the second uplink port 102b, so that first data from the first uplink port 102a is transmitted from the first host device 118a to the second host device 118b. In other words, when the first host device 118a is connected to the USB controller 108 through the first uplink port 102a, the second host device 118b is simultaneously connected to the host bridge controller 114 through the second uplink port 102b, enabling the first host device 118a and the second host device 118b to synchronously access data within the host bridge controller 114. For example, the first host device 118a may send first data to the host bridge controller 114 and the second host device 118b may receive the first data sent by the first host device 118a, or the second host device 118b may send second data to the host bridge controller 114 and the first host device 118a may receive the second data sent by the second host device 118b. Simultaneously, the first host device 118a can access data from the peripheral device 120 through the USB controller 108, the downlink control circuit 110, and the first downlink port 116.
[0039] Similarly, when the second host device 118b is connected to the hub 100 before the first host device 118a, the switching module 104 switches the second host device 118b so that the second uplink port 102b is connected to the USB controller 108. Simultaneously, the switching module 104 switches the first host device 118a so that the first uplink port 102a is connected to the host bridge controller 114, so that second data from the second uplink port 102b is transmitted from the second host device 118b to the first host device 118a. In other words, when the second host device 118b is connected to the hub 100 before the first host device 118a, the second host device 118b is connected to the USB controller 108 through the second uplink port 102b, and the first host device 118a is simultaneously connected to the host bridge controller 114 through the first uplink port 102a. This allows the second host device 118b and the first host device 118a to synchronously access data within the host bridge controller 114. For example, the second host device 118a can send second data to the host bridge controller 114 and the first host device 118a can receive the first data sent by the second host device 118b, or the first host device 118a can send first data to the host bridge controller 114 and the second host device 118b can receive the first data sent by the first host device 118a. Simultaneously, the second host device 118b can access data from the peripheral device 120 through the USB controller 108, the downlink control circuit 110, and the first downlink port 116.
[0040] In a preferred embodiment, when the first host device 118a is connected to the hub 100 before the second host device 118b, the switching module 104 performs a switching operation to allow the first host device 118a to connect to the USB controller 108 through the first uplink port 102a. Then, the first data from the first host device 118a can be transmitted sequentially through the first uplink port 102a, the switching module 104, the uplink control circuit 106, the USB controller 108, and the second downlink control circuit 112 to the host bridge controller 114. Simultaneously, the switching module 104 performs a switching operation to allow the second host device 118b to connect to the host bridge controller 114 through the second uplink port 102b, thereby enabling the first data from the first uplink port 102a to be transmitted from the first host device 118a to the second host device 118b.
[0041] Correspondingly, when the second host device 118b is connected to the hub 100 before the first host device 118a, the switching module 104 performs a switching operation to allow the second host device 118b to connect to the USB controller 108 through the second uplink port 102b. Then, the second data from the second host device 118b can be transmitted sequentially through the second uplink port 102b, the switching module 104, the uplink control circuit 106, the USB controller 108, and the second downlink control circuit 112 to the host bridge controller 114. Simultaneously, the switching module 104 performs a switching operation to allow the first host device 118a to connect to the host bridge controller 114 through the first uplink port 102a, thereby enabling the second data from the second uplink port 102b to be transmitted from the second host device 118b to the first host device 118a.
[0042] In this way, the first host device 118a and the second host device 118b can synchronously access data in the host bridge controller 114. For example, the first host device 118a can send first data to the host bridge controller 114 and the second host device 118b can receive the first data sent by the first host device 118a, or the second host device 118b can send second data to the host bridge controller 114 and the first host device 118a can receive the second data sent by the second host device 118b.
[0043] According to the above, the universal serial bus hub device 100 and control method with host bridging function of the present invention connects two uplink ports 102a and 102b through the host bridging controller 114, so that the two host devices 118a and 118b connected to the two uplink ports 102a and 102b can synchronously transmit data to each other, thereby improving the ease of use and flexibility of the hub device 100 and making full use of the two uplink ports 102a and 102b.
[0044] refer to Figure 1 as well as Figure 2 , Figure 2 A flowchart illustrating the control method of a hub device 100 with host bridging function of a universal serial bus according to an embodiment of the present invention is shown.
[0045] In step S200, when the first host device 118a is connected to the first uplink port 102a, the switching module 104 switches the first uplink port 102a to the USB controller 108. In one embodiment, an uplink control circuit 106 controls the data transmission and reception between the first host device 118a and the USB controller 108.
[0046] In step S202, when the second host device 118b is connected to the second uplink port 102b, the switching module 104 switches the second uplink port 102b to the host bridge controller 114, and the host bridge controller 114 is connected to the USB controller 108.
[0047] In step S204, the USB controller 108 determines the power levels of the first uplink port 102a and the second uplink port 102b to confirm that the power levels of the first uplink port 102a and the second uplink port 102b are greater than a predetermined level. In one embodiment, the power level is the level value of the VBUS pin defined by the USB interface of the first host device 118a and the second host device 118b.
[0048] In step S206, according to the predetermined level, a switching module 104 switches the first uplink port 102a and the second uplink port 102b to connect to a USB controller 108 and a host bridge controller 114, respectively. In one embodiment, a second downlink control circuit 112 controls the data transmission and reception between the USB controller 108 and the host bridge controller 114.
[0049] In step S208, the host bridging controller 114 receives first data from the first uplink port 102a through the USB controller 108 and the switching module 104, and transmits the first data to the second host device 118b connected to the second uplink port 102b. It also receives second data from the second uplink port 102b through the USB controller 108 and the switching module 104, and transmits the second data to the first host device 118a connected to the first uplink port 102a. Step S208 further includes the following steps: receiving and transmitting the first data and the second data transmitted through the switching module 104 and the USB controller 108 via a first bridge 122a, and parsing the first data and the second data by the USB controller 108; storing the first data and the second data in a buffer 124; and receiving and transmitting the first data and the second data transmitted through the switching module 104 and the USB controller 108 via a second bridge 122b, and parsing the first data and the second data by the USB controller 108.
[0050] In step S210, when the first host device 118a is connected to the hub 100 before the second host device 118b, the switching module 104 performs a switching operation to allow the first host device 118a to connect to the USB controller 108 through the first uplink port 102a. Simultaneously, the switching module 104 performs a switching operation to allow the second host device 118b to connect to the host bridge controller 114 through the second uplink port 102b, so that the first data from the first uplink port 102a is transmitted from the first host device 118a to the second host device 118b.
[0051] In step S212, when the second host device 118b is connected to the hub device 100 before the first host device 118a, the switching module 104 switches the second host device 118a so that the second uplink port 102b is connected to the USB controller 108. The switching module 104 simultaneously switches the first host device 118a so that the first uplink port 102a is connected to the host bridge controller 114 so that the second data from the second uplink port 102b is transmitted from the second host device 118b to the first host device 118a.
[0052] In step S214, the first data and the second data are transmitted and received between the plurality of first downlink ports 116 and the plurality of peripheral devices 120. In one embodiment, a plurality of first downlink control circuits 110 control the data transmission and reception between the plurality of first downlink ports 116 and the USB controller 108.
[0053] In summary, the USB hub device with host bridging function and its control method of the present invention connect two uplink ports through a host bridging controller, so that the two host devices connected to the two uplink ports can transmit data to each other in a bidirectional synchronous manner, thereby improving the ease of use and flexibility of the hub device and making full use of the two uplink ports.
[0054] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A USB hub with host bridging function, suitable for connecting a first host device, a second host device, and multiple peripheral devices, characterized in that, The USB hub includes: The first uplink port is used to connect to the first host device; The second uplink port is used to connect to the second host device; A USB controller, coupled to the first uplink port and the second uplink port, is used to determine the power level of the first uplink port and the second uplink port to confirm that the power level of the first uplink port and the second uplink port is greater than a predetermined level. A switching module is connected to the USB controller, the first uplink port, and the second uplink port. The switching module is used to switch the first uplink port and the second uplink port so that one of the first uplink port and the second uplink port is connected to the USB controller, and the other of the first uplink port is connected to the host bridge controller. The host bridging controller is connected to the USB controller and the switching module, respectively, for receiving first data from the first uplink port and transmitting the first data to the second host device connected to the second uplink port via the USB controller and the switching module, and receiving second data from the second uplink port and transmitting the second data to the first host device connected to the first uplink port via the USB controller and the switching module; and Multiple first downlink ports are respectively coupled to the USB controller and respectively connected to the multiple peripheral devices for transmitting and receiving the first data and the second data to the multiple peripheral devices.
2. The USB hub with host bridging function as described in claim 1, characterized in that, The host bridging controller includes: A first bridge connects the switching module and the USB controller to transmit and receive the first data and the second data transmitted through the switching module and the USB controller, and the first data and the second data parsed by the USB controller. A buffer, connected to the first bridge, is used to store the first data and the second data; and The second bridge connects the buffer and the USB controller to transmit and receive the first data and the second data transmitted through the switching module and the USB controller, and the first data and the second data parsed by the USB controller.
3. The USB hub with host bridging function as described in claim 1, characterized in that, The switching module is located in the host bridging controller, and the host bridging controller controls the switching of the switching module.
4. The USB hub with host bridging function as described in claim 1, characterized in that, The USB hub further includes an uplink control circuit connected between the switching module and the USB controller, used to control data transmission and reception between the first host device and the USB controller.
5. The USB hub with host bridging function as described in claim 1, characterized in that, The USB hub further includes a plurality of first downlink control circuits, which are respectively connected between the plurality of first downlink ports and the USB controller, for controlling the data transmission and reception between the plurality of first downlink ports and the USB controller.
6. The USB hub with host bridging function as described in claim 1, characterized in that, The USB hub further includes a second downlink control circuit connected between the USB controller, the host bridge controller, and the switching module, for controlling data transmission and reception between the USB controller and the host bridge controller.
7. The USB hub with host bridging function as described in claim 1, characterized in that, The power level is the level value of the VBUS pin defined by the USB interface of the first host device and the second host device.
8. The USB hub with host bridging function as described in claim 1, characterized in that, When the first host device is connected to the hub before the second host device, the switching module performs a switching operation to allow the first host device to connect to the USB controller through the first uplink port. The switching module also performs a simultaneous switching operation to allow the second host device to connect to the host bridge controller through the second uplink port, so that the first data from the first uplink port is transmitted from the first host device to the second host device.
9. The USB hub with host bridging function as described in claim 1, characterized in that, When the second host device is connected to the hub before the first host device, the switching module switches the second host device so that the second uplink port is connected to the USB controller. The switching module also switches the first host device so that the first uplink port is connected to the host bridge controller so that the second data from the second uplink port is transmitted from the second host device to the first host device.
10. A control method for a USB hub with host bridging function, suitable for connecting a first host device, a second host device, and multiple peripheral devices, characterized in that, The control method includes the following steps: The power levels of the first uplink port and the second uplink port are determined by the USB controller to confirm that the power levels of the first uplink port and the second uplink port are greater than a predetermined level. According to the predetermined level, the switching module switches the first uplink port and the second uplink port so that one of the first uplink port and the second uplink port is connected to the USB controller and the other is connected to the host bridge controller. The host bridging controller receives first data from the first uplink port through the USB controller and the switching module and transmits the first data to the second host device connected to the second uplink port; and receives second data from the second uplink port through the USB controller and the switching module and transmits the second data to the first host device connected to the first uplink port. as well as The first data and the second data are transmitted and received in the multiple peripheral devices via multiple first downlink ports.
11. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, The steps of the host bridging controller receiving first data from the first uplink port and transmitting the first data to the second host device connected to the second uplink port via the USB controller and the switching module, and receiving second data from the second uplink port and transmitting the second data to the first host device connected to the first uplink port via the USB controller and the switching module, include the following steps: The first bridge receives and transmits the first data and the second data transmitted through the switching module and the USB controller, and the USB controller parses the first data and the second data. The first data and the second data are stored in a buffer; as well as The second bridge receives and transmits the first data and the second data transmitted through the switching module and the USB controller, and the USB controller parses the first data and the second data.
12. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, The steps of the host bridging controller receiving first data from the first uplink port and transmitting the first data to the second host device connected to the second uplink port via the USB controller and the switching module, and receiving second data from the second uplink port and transmitting the second data to the first host device connected to the first uplink port via the USB controller and the switching module, include the following steps: The uplink control circuit controls the data transmission and reception between the first host device and the USB controller.
13. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, The step of transmitting and receiving the first data and the second data to the plurality of peripheral devices via multiple first downlink ports includes the following steps: Multiple first downlink control circuits control the data transmission and reception between the multiple first downlink ports and the USB controller.
14. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, The step of switching the first uplink port and the second uplink port with the switching module to connect to a USB controller and a host bridge controller respectively according to the predetermined level further includes controlling the data transmission and reception between the USB controller and the host bridge controller with a second downlink control circuit.
15. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, The power level is the level value of the VBUS pin defined by the USB interface of the first host device and the second host device.
16. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, When the first host device is connected to the hub before the second host device, the switching module performs a switching operation to allow the first host device to connect to the USB controller through the first uplink port. The switching module also performs a simultaneous switching operation to allow the second host device to connect to the host bridge controller through the second uplink port, so that the first data from the first uplink port is transmitted from the first host device to the second host device.
17. The control method for a USB hub with host bridging function as described in claim 10, characterized in that, When the second host device is connected to the hub before the first host device, the switching module switches the second host device so that the second uplink port is connected to the USB controller. The switching module also switches the first host device so that the first uplink port is connected to the host bridge controller so that the second data from the second uplink port is transmitted from the second host device to the first host device.
Citation Information
Patent Citations
Work mode switching methods, USB (Universal Serial Bus) equipment and host machine equipment
CN102063320A
Medium Media sharing device
CN102968176A