Patent ID: 8607079

Claim:
A computer capable of testing a storage device, the computer electrically connected to a signal microcontroller, and electrically connected to a switch unit through the signal microcontroller, wherein the switch unit is electrically connected to the storage device, the computer comprising: a signal control unit connecting a power source to or disconnecting the power source from the storage device through the switch unit; a counter recording the number of power-on times of the storage device; a first timer capable of measuring power-on time of the storage device, the signal control unit transmitting a power-on command signal to the signal microcontroller to turn the switch unit on according to the power-on command signal, the power source connecting and powering the storage device through the switch unit, and the first timer starting to time; and a second timer, if the signal control unit receives a power-on status signal from the storage device during the power-on time of the first timer, the signal control unit transmitting a power-off command signal to the signal microcontroller to turn the switch unit off according to the power-off command signal, the power source stopping powering the storage device, and the second timer starting to time; the counter increasing by one if the signal control unit receives a power-off status signal from the storage device during the power-off time of the second timer; wherein the signal microcontroller turns on or off the switch unit according to a preset frequency.