CPC G06F 13/4282 (2013.01) [G06F 13/4027 (2013.01); G06F 2213/0042 (2013.01)] | 17 Claims |
1. A universal serial bus (USB) hub with a host bridge function suitable for connecting a first host device, a second host device, and a plurality of peripheral devices, the USB hub comprising:
a first upstream port configured to connect to the first host device;
a second upstream port configured to connect to the second host device;
a USB controller coupled to the first upstream port and the second upstream port, and configured to determine that whether power levels of the first upstream port and the second upstream port are greater than a predetermined level or not;
a switch module connected to the USB controller, the first upstream port, and the second upstream port, and configured to switch the first upstream port and the second upstream port to respectively connect the USB controller and a host bridge controller;
the host bridge controller connected to the USB controller and the switch module, configured to receive a first data from the first upstream port via the USB controller and the switch module and transmit the first data to the second host device connected to the second upstream port, and configured to receive a second data from the second upstream port via the USB controller and the switch module and transmit the second data to the first host device connected to the first upstream port; and
a plurality of first downstream ports coupled to the USB controller, connected to the peripheral devices, and configured to transmit and receive the first data and the second data to/from the peripheral devices.
|