Power on and off testing device and method

A power on and off testing device includes a control module, a switch module, an alternating current and direct current converter module, an input module, and a detecting module. The switch module is connected to an alternating current source. The alternating current and direct current converter module is connected to a motherboard of a computer. The input module is connected to the control module to input testing references to the control module. The detecting module is connected between the control module and the motherboard. The detecting module detects a power status of the motherboard and sends the power status to the control module. The control module controls the switch module to be switched on according to the power status after receiving the testing references, thereby controlling the alternating current source to supply power to the motherboard.

BACKGROUND

1. Technical Field

The disclosure generally relates to a power on and off testing device and method.

2. Description of Related Art

Testing power supplies of computers is an important step in producing computers. A common method for testing the power supply is to manually press the button of the power supply, which is inefficient.

Thus, there is room for improvement within the art.

DETAILED DESCRIPTION

FIG. 1shows one embodiment of a power on and off testing device. The power on and off testing device includes an input module100, a control module200, a switch module300, a display module400, an indicator500, and an alarm module600, an alternating current and direct current converter module700, and a detecting module900. The switch module300is connected to an alternating current source10.

The input module100, the display module400, the indicator500, the alarm module600, and the detecting module900are connected to the control module200. The switch module300is connected to the control module200and a motherboard800of a computer (not shown). In one embodiment, the control module200is a control chip, the input module100is a button assembly, the display module400is liquid crystal display (LCD), the indicator500is a light-emitting diode (LED), and the alarm module600is a buzzer.

The input module100inputs testing references to the control module200, such as testing times. The detecting module900detects the power status of the motherboard800, and sends the power status to the control module200. The control module200controls the switch module300to be switched on or off according to the testing references and the power status. The alternating current source10supplies power to the motherboard800via the alternating current and direct current converter module700after the switch module300is switched on, and the control module200sends a power on signal to motherboard800. The alternating current source10stops to supply power to the motherboard800after the switch module300is switched off, and the control module200sends a power off signal to motherboard800. The control module200displays a testing result on the display module400. The indicator500indicates that the motherboard800is powered on. The alarm module600gives out an alarm when the motherboard800is powered on abnormally.

FIG. 2shows an embodiment of a power on and off testing method. The power on and off testing method includes the following steps.

S201, the input module100inputs testing references to the control module200.

S202, the control module200controls the switch module300to be switched on or off according to a power status of the motherboard800from the detecting module900after receiving the testing references and the power status.

S203, the alternating current source10supplies power to the motherboard800when the power status is that motherboard800is powered off and the switch module300is controlled to be switched off, and the alternating current source10stops to supply power to the motherboard800when the power status is that motherboard800is powered on and the switch module300is controlled to be switched on.