1. Field of Invention
The invention relates to a detection device capable of detecting a main-board and a method of detecting the same, and in particular to a detection device capable of detecting the status of the main-board through repeatedly powering on/powering off the main-board and a method of detecting the same.
2. Related Art
In general, in a complicated electronic system (for example, a computer), the main-board is a unique and the most important circuit board Thus, for the normal operation of the system, it is essential that the main-board must function correctly and accurately.
In order to make sure that a main-board is capable of functioning normally, a series of tests are performed on a main-board after it is manufactured. Among them, a power-on/power-off test is performed to test whether the main-board is capable of continuing to function normally, if various conditions develop during the power-on/power-off test. For example, shutting down the power supply to the main-board before it completes a power-on process to test and determine if the main-board can function normally in the next power-on process; or repeatedly powering on/powering off the main-board to determine if it can perform and complete normally each of the respective power-on/power-off processes.
Usually, the power-on/power-off of a main-board is initiated through manually pressing on a power-switch button for generating a power-on/power-off signal to be sent to the main-board, thus activating the main-board in performing the related power-on/power-off operations. However, in this manner, during a test process, it is required to generate a power-on/power-off signal repeatedly, yet in practice, it is not feasible to manually press the power-switch button repeatedly for carrying on the test. In addition, recently, the standard for the main-board test is getting stricter, and the demands for test preciseness are getting stronger. Therefore, presently, a kind of test machine is developed, that is mainly used to test if the power-on/power-off of a main-board is normal. This kind of test machine mainly composed of a computer and a test module. Upon connecting the test module to the main-board, the testing of main-board power-on/power-off operation is controlled through a software in a computer. Through the utilization of this kind of test machine, the problems caused by the unreliable and inaccurate manual operation of the power-switch button can be solved.
However, the test machine still has the problems of voluminous size, inconvenient to carry, difficult to maintain and repair, high production cost, and high power consumption. In addition, this kind of test machine is not capable of detecting if a main-board has been powered on/powered off correctly, thus creating the problem of misjudging the results of the subsequent power-on/power-off operations. Therefore, the design and development of a test machine, that is portable, easy to carry, and capable of testing if a main-board is powered on/powered off normally and correctly, is one of the most urgent tasks that must be solved in this field.
In view of the above-mentioned problems and drawbacks of the prior art, the object of the invention is to provide a detection device capable of detecting a main-board through repeatedly powering on/powering off the main-board, and a method of detecting the same. During the operation of the invention, a power-on/power-off signal is sent to a main-board from a detection device for testing the capability of the main-board to be powered on/powered off correctly and repeatedly.
The device of the invention is composed of only three major components: a processing circuit of lower consumption, a simple-structured input device and a display device, thus making its size compact and easy and convenient to carry. In addition, the processing circuit can be self-designed by users, and the various elements of the processing circuit are readily available, hereby solving the problem of high cost and difficult maintenance of the prior art. Since the processing circuit can be self-designed by the user, thus the device and method of the invention may readily be designed to have the capability of detecting if the main-board may fully and completely perform the functions of the power-on/power-off operations.
To achieve the above-mentioned object, the invention can be implemented by a detection device and a method therefor. In the invention, the detection device includes: an input device, a processing circuit, and a display device. Moreover, the method disclosed by the invention includes the following steps: firstly, setting a predetermined status value in a detection device; next, coupling the detection device to a main-board; then, receiving by the detection device a detection number, a power-on interval, and a power-off interval; subsequently, activating the main-board by the detection device and start counting the time, meanwhile, receiving a status signal transmitted from the main-board; then, determining by the detection device if the activation interval of the main-board has reached the power-on interval, and comparing the value of the status signal with the predetermined status value to see if they are equal. If the answer is affirmative, powering off the main-board and calculating the accumulated detection number, otherwise, generating and displaying a first error message; subsequently, upon detecting by the detection device that the voltage transmitted from the main-board is not equal to zero voltage, generating and displaying a second error message; finally, upon determining by the detection device that the shut-down interval of the main-board has reached the power-off interval, then reactivating the main-board, until the accumulated detection number is equal to the detection number.
Further scope of applicability of the invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.
The invention will become more fully understood from the detailed description given hereinbelow for illustration only, and thus is not limitative of the invention, and wherein:
The purpose, construction, features, and functions of the invention can be appreciated and understood more thoroughly through the following detailed description with reference to the attached drawings.
Firstly, the various components of the detection device shown in
In the following, a preferred embodiment is described to explain the device and method of the invention. In the present embodiment, a dip switch is utilized as an example for the input device 110, however, the input device of the invention is not limited to this. Also, in the present embodiment, a seven-segment display is used as an example for the display device, however, the display device of the invention is not limited to this, other well known display device capable of displaying numbers and characters, such as liquid crystal display (LCD) may also be used in the invention.
Refer to
Upon finishing the connection between main-board 200 and detection device 100 of the invention, the user may proceed with the testing required. Firstly, dip switch is used to input sequentially the power-on interval, the power-off interval, and the detection number (step 320), and the processing circuit 120 will consider the signals received as the power-on interval, the power-off interval, and detection number based on their sequence, however, the invention is not limited to this. For example, an additional dip switch may be used to input and set a particular one of the power-on interval, the power-off interval, and the detection number. Then, the processing circuit 120 may update the corresponding power-on interval, power-off interval, and detection number based on the settings of the input signals.
Subsequently, upon finishing inputting the power-on interval, the power-off interval, and the detection number, the processing circuit 120 may start testing the main-board (step 330), the details of the test processes will be described later. In case that an error occurs in the test process (step 340), then processing circuit 120 will stop testing and transmit an error message corresponding to the error occurred to a seven-segment display, and display it to the user for reference (step 350).
Now, we are going to describe in detail the process of testing the main-board as performed by the processing circuit (step 330). Refer to
In the process of executing the power-on procedure by the main-board 200, a BIOS 210 will first perform a POST to test if the various peripheral devices on main-board 200 are functioning normally. In this process, before the a BIOS 210 starts testing a certain peripheral device, it will transmit a status signal to processing circuit 120 via a first signal line 201 indicating what kind of peripheral test is to be performed at this time.
Meanwhile, the processing circuit 120 will calculate the time required for transmitting the power-on signal to the main-board 200. If the time interval thus calculated by the processing circuit 120 is equal to the power-on interval input in step 320 (step 333), then processing circuit 120 will compare the value of the status signal last transmitted from BIOS 210 with predetermined status value (step 334), and if the value of the status signal last transmitted from BIOS 210 is the same as the predetermined status value, that indicates that all is fine and normal with the power-on process of main-board 200, and the processing circuit 120 will increment the accumulated detection number by 1.
Meanwhile, processing circuit 120 will transmit a power-off signal to main-board 200 through a third signal line 203, and start calculating the time required for the power-off signal to be transmitted to main-board 200 (step 335), hereby powering-off main-board 200 to complete the test of this time. However, if the value of the status signal transmitted from BIOS 210 to processing circuit 120 is not the same as the predetermined status value, then processing circuit 120 will generate a first error message such as “power-on failure” (step 339a), and transmit it to a seven-segment display for display (step 340, step 350), and will subsequently end the test. In order for the user to understand more clearly that the status of a particular step in the main-board 200 power-on process is in error, the processing circuit 120 may transmit the status signal that caused the generation of the first error message to the seven-segment display for display. Upon receiving a power-off signal transmitted from the processing circuit 120, the main-board 200 will execute the power-off procedure to power itself off (step 335). Then, the processing circuit 120 will check the voltage of main-board 200 after the power-off of main-board 200 (step 336), if the voltage is not equal to zero voltage, that indicates that the power-off of main-board 200 is a failure, namely, main-board 200 is still in a power-on state.
Therefore, the processing circuit 120 will generate a second error message such as “power-off failure” (step 339b), and transmit it to a display module 130 to display (step 350), and will thus terminate all the subsequent tests.
However, on the other hand, if the voltage of main-board 200 is equal to zero after executing the power-off of main-board 200, that means that main-board 200 has been powered-off successfully, then the processing circuit 120 will determine if the accumulated detection number is the same as the detection number input in step 320 (step 337). If the answer is affirmative, that indicates that the all the tests for main-board 200 are completed, and there is no need to proceed with any further tests.
Otherwise, if the answer is negative, that indicates that the tests of main-board 200 have not yet finished, then it has to wait until the time required for a power-off signal to be transmitted from processing circuit 120 to the main-board 200 as calculated by the processing circuit 120 is equal to the power-off interval input in step 320, and then a power-on signal is transmitted to main-board 200 from processing circuit 120 via a third signal line 203 (step 331) to proceed with the subsequent test of main-board 200. Thus, in this manner, the main-board 200 again executes the power-on procedure, and the processing circuit 120 again repeats step 331 to step 337 to proceed with the testing of main-board 200 to determine that if it can be powered-on/powered-off normally. As such, the invention provides a method of detection to determine if the power-on/power-off functions of main-board is normal, thus solving the problem and shortcomings of the prior art.
In the above-mentioned test flow, after the step of transmitting a power-on signal from a processing circuit 120 to a main-board 200 (step 331), a step of determining the voltage of main-board 200 can be added (step 332), thus it may know more quickly that if main-board 200 may enter into a power-on procedure. In case that the voltage value is equal to the predetermined value, namely, the value of the voltage transmitted from main-board 200 to processing circuit 120 is the same as the operation voltage of main-board 200, then start calculating the time (step 333); otherwise, in case that the value of the voltage is not equal to the predetermined value, that indicates that the main-board 200 can not enter into the power-on procedure normally. Thus, the processing circuit 120 will generate a third error message such as “normal power-on impossible” (step 339c), and transmit it to a display module 130 for display, and meanwhile terminate all the subsequent tests.
In addition, the detecting device 100 of the invention may further includes a power supply switch 190, that is used to switch the power supplied to the main-board 200 from direct current (DC) to alternate current (AC) or vice versa according to the power supply switching signal transmitted from the processing circuit 120, thus the main-board 200 may execute the above-mentioned power-on process by utilizing the DC or AC output from the power supply switch 190. As such, while inputting the parameters such as power-on interval, power-off interval, and detection number (step 320), the user may further input a power supply switching interval, so that in the process of testing main-board (step 330), in case that the time interval calculated by the processing circuit 120 is equal to this power supply switching interval, then a power supply switching signal is transmitted from the processing circuit 120 to the power supply switch 190.
Upon receiving this power supply switching signal, and in case that at this time the power supplied to the main-board 200 is in the form of DC, then the power supply switch will stop outputting DC current and switch to outputting AC current; otherwise, in case that at this time the power supplied to the main-board 200 is in the form of AC, then it is switched to the form of DC, thus realizing the testing of the main-board in determining that if it can maintain normal operation in the power-on process even if during which the form of power supply is switched from AC to DC or vice versa.
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.