Disclosure of Invention
The invention provides a mainboard and a computer system thereof, which can remind a user when the mainboard ages to be repaired along with time so as to facilitate the user to arrange the time for repairing the mainboard.
The motherboard of the invention comprises a non-volatile memory, a detection circuit and a comparison circuit. The detection circuit is coupled with the non-volatile memory, detects a non-boot time, a power-on use time, a restart time and a power-off time of the mainboard, and writes the non-boot time, the power-on use time, the restart time and the power-off time into the non-volatile memory. The comparison circuit is coupled to the non-volatile memory to read the non-boot time, the power-on times, the power-off times. The comparison circuit compares the non-startup time with a first critical value to generate a first comparison result, compares the power-on use time with a second critical value to generate a second comparison result, compares the restart times with a third critical value to generate a third comparison result, and compares the power-off times with a fourth critical value to generate a fourth comparison result, and the comparison circuit provides a detection prompt signal to a prompt circuit according to the first comparison result and the fourth comparison result so as to provide a prompt message through the prompt circuit.
The computer system comprises a prompt circuit and the mainboard. The prompting circuit is used for receiving a detection prompting signal and providing a prompting message according to the detection prompting signal. The mainboard is coupled with the prompting circuit and is used for providing a detection prompting signal.
Based on the above, the motherboard and the computer system thereof according to the embodiment of the invention respectively compare the non-boot time, the power-on using time, the restart times, and the power-off times with the corresponding critical values to determine the aging degree of the motherboard. And when the mainboard ages to be repaired over time, the user is reminded through the prompt message, so that the user can conveniently arrange the repair time of the mainboard without influencing the work schedule of the user.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Detailed Description
FIG. 1 is a system diagram of a computer system according to an embodiment of the invention. Referring to fig. 1, in the present embodiment, a computer system 100 includes a main board 110 and a prompt circuit 120, where the main board 110 includes a detection circuit 111, a non-volatile memory 113 and a comparison circuit 115. The detecting circuit 111 may include a microprocessor, which is used to detect the time and the number, and the comparing circuit 115 may be a basic input/output system (BIOS) on a motherboard (e.g., 110), which may be used to compare values.
The detection circuit 111 is coupled to the non-volatile memory 113, and detects the off-time Toff, the power-on-time Ton, the restart time Trst, and the power-off time Tout of the motherboard 110, and then writes the off-time Toff, the power-on-time Ton, the restart time Trst, and the power-off time Tout into the non-volatile memory 113.
The comparison circuit 115 is coupled to the non-volatile memory 113 and the prompt circuit 120 to read the off-time Toff, the power-on time Ton, the restart times Trst, and the power-off times Tout. Then, the comparison circuit 115 compares the off-time Toff with a first threshold to generate a first comparison result CP1, compares the power-on duration Ton with a second threshold to generate a second comparison result CP2, compares the restart count Trst with a third threshold to generate a third comparison result CP3, and compares the power-off count Tout with a fourth threshold to generate a fourth comparison result CP 4. The off-time Toff may be a single off-time or a sum of all off-times, which can be applied by one of ordinary skill in the art, but the embodiment of the invention is not limited thereto.
After the comparison, the comparing circuit 115 provides the detection hint signal Shd to the hint circuit 120 according to the first comparison result CP1 to the fourth comparison result CP 4. When the warning circuit 120 receives the detection warning signal Shd, the warning circuit 120 provides a warning message Mht to the user according to the detection warning signal Shd, so as to remind the user to perform the maintenance of the motherboard 110. In other words, when the cue circuit 120 receives the enabled detection cue signal Shd, the cue message Mht is provided; when the alert circuit 120 receives the disable detection alert signal Shd, the alert message Mht is not provided.
Therefore, when the main board 110 ages to be repaired over time, the user can be reminded through the prompt message, so that the user can conveniently arrange the repair time of the main board 110 without influencing the work schedule of the user. Moreover, when the motherboard 110 is inspected, the using state of the motherboard 110 can be determined through the power-off times Tout, the power-on using time Ton, the power-on using time Trst, and the power-off times Toff stored in the non-volatile memory 113, so as to speed up the inspection process.
In the embodiment of the present invention, the first threshold, the second threshold, the third threshold and the fourth threshold are set according to the setting of the motherboard 110, that is, the rated power-on time, the rated power-on using time, the rated power-on restarting time and the rated power-off time provided by the original factory are referred to.
In the embodiment of the invention, since the main board 110 is Reset, a Reset (Reset) signal sent by a chipset (not shown) is sent to each device to control each device to Reset, the detection circuit 111 can count the number of times of the Reset signal sent by the chipset (not shown) as a restart number Trst, where the chipset (not shown) is, for example, a south bridge or a Platform Path Controller (PCH).
In the embodiment of the present invention, since the real-time clock (RTC) battery (not shown) provides the real-time clock power as the power source for time counting after the motherboard 110 is turned off, the detection circuit 111 can count the time that the real-time clock battery (not shown) provides the real-time clock power as the off-time Toff, and count the time that the real-time clock battery (not shown) does not provide the real-time clock power as the power-on using time Ton, wherein the detection circuit 111 updates the off-time Toff when the motherboard 110 is turned on, and updates the power-on using time Ton when the motherboard 110 performs the turn-off procedure.
In the embodiment of the present invention, after the motherboard 110 is turned off, the standby power provided by the power supply (not shown) is received as a power source for standby of a part of the devices, so the detection circuit 111 can count the provided time of the standby power as the off-time Toff and count the off-time of the standby power as the power-on-time Ton, wherein the detection circuit 111 updates the off-time Toff when the motherboard 110 is turned on and updates the power-on-time Ton when the motherboard 110 performs a turn-off procedure.
In the embodiment of the present invention, the detecting circuit 111 may count the number of times of abnormal power failure of the motherboard 110 as the power failure number Tout, where the abnormal power failure may be a shutdown behavior of the motherboard 110 without shutdown.
In the embodiment of the present invention, when the off-time Toff is greater than or equal to the first threshold, the first comparison result CP1 is enabled; when the off-time Toff is smaller than the first threshold, the first comparison result CP1 is disabled. When the power-on duration Ton is greater than or equal to the second threshold, the second comparison result CP2 is enabled, and when the power-on duration Ton is less than the second threshold, the second comparison result CP2 is disabled. Enabling a third comparison result CP3 when the restart times Trst is greater than or equal to a third threshold value; when the restart time Trst is less than the third threshold, the third comparison result CP3 is disabled. When the power-off frequency Tout is greater than or equal to the fourth threshold, the fourth comparison result CP4 is enabled, and when the power-off frequency Tout is less than the fourth threshold, the fourth comparison result CP4 is disabled.
When one of the first comparison result CP4 to the fourth comparison result CP4 is enabled, the comparison circuit 115 provides the enabled detection prompt signal Shd to the prompt circuit 120.
In another embodiment of the present invention, when the first comparison result CP1 is a ratio of the off-time Toff divided by the first threshold, the second comparison result CP2 is a ratio of the power-on using time Ton divided by the second threshold, the third comparison result CP3 is a ratio of the restart time Tout divided by the third threshold, and the fourth comparison result CP4 is a ratio of the power-off time Tout divided by the fourth threshold. Next, the comparison circuit 115 may utilize the first comparison result CP1 to the fourth comparison result CP4 to obtain a safety factor, and enable the detection prompting signal Shd when the safety factor is greater than or equal to the safety guard value, and disable the detection prompting signal Shd when the safety factor is less than the safety guard value.
The operation manners of the first comparison result CP1 to the fourth comparison result CP4 may be directly added, or the first comparison result CP1 to the fourth comparison result CP4 are multiplied by corresponding weight values and then added, which may be determined by persons skilled in the art, and the embodiments of the present invention are not limited thereto.
In one embodiment, when the prompting circuit 120 includes a speaker, the prompting message Mht may include a voice message; when the notification circuit 120 includes a light emitting device, the notification message Mht may include a blinking message; when the prompt circuit 120 includes a display panel, the prompt message is an image message or a text message. The above description is based on the ordinary knowledge in the art, and the embodiments of the present invention are not limited thereto.
In summary, the motherboard and the computer system thereof according to the embodiments of the invention respectively compare the non-boot time, the power-on time, the reboot time, the power-off time and the power-off time with the corresponding thresholds to determine the aging degree of the motherboard. And when the mainboard ages to be repaired over time, the user is reminded through the prompt message, so that the user can conveniently arrange the repair time of the mainboard without influencing the work schedule of the user.
Although the present invention has been described with reference to the above embodiments, it should be understood that the invention is not limited thereto, and various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the invention.