Patent ID: 8352800

Claim:
A test apparatus for testing universal serial bus (USB) interfaces of an electronic device, the test apparatus comprising: a plurality of first USB interfaces connected to the USB interfaces of the electronic device, respectively, to communicate with the electronic device; a second USB interface connected to a USB interface of a USB device and also connected to the plurality of first USB interfaces; a plurality of relays connected to the plurality of first USB interfaces, respectively; a controller connected to the plurality of relays and the second USB interface, the controller comprising a preset count value stored in an inside counter of the controller, wherein when the controller identifies the USB device connected to the second USB interface, the controller outputs a control signal to one of the plurality of relays to control the relay to close, and outputs a first start test signal to the electronic device to read test programs stored in the electronic device and execute the test programs to test the USB interface of the electronic device corresponding to the closed relay via a corresponding first USB interface of the test apparatus; wherein when the test for the USB interface of the electronic device corresponding to the closed relay is completed, the controller adds one to the inside counter and determines whether the count value of the inside counter reaches the preset count value; upon a condition that the count value reaches the preset count value, the controller outputs a finish test signal to the electronic device; and upon a condition that the count value does not reach the preset count value, the controller controls the closed relay to open and outputs a second start test signal to close a next relay to test a next USB interface of the electronic device corresponding to the now closed relay; and a power switch connected to the controller to turn on/off the controller.