This application claims the priority benefit of Taiwan application serial no. 94111615, filed on Apr. 13, 2005. All disclosure of the Taiwan application is incorporated herein by reference.
1. Field of the Invention
The present invention relates to a method for error detection and correction, and more particularly, to a method for detecting and correcting error of an electronic apparatus even if the electronic apparatus is turned off.
2. Description of the Related Art
When consumers use electronic products, errors or failures of devices of the electronic products may be occurred because of the user's personal behaviors and environment. To avoid electronic product failures caused by the errors, manufacturers provide an error detection system to detect the operation status of internal devices of the electronic apparatus. Generally, an electronic apparatus comprises several sets of alarm lights or rings to show the operational status of internal devices. When an error occurs, such as CUP over-heat or failure of the fan, the alarm lights or rings will flash or ring to achieve alarming function. The alarm method described above, however, can only indicate which device that generates the error signal when the error happens but cannot provide useful data for error correction.
For a prior art electronic apparatus, such as a computer system, a boot-up error code is provided to collect data of the apparatus before the computer system is turned on.
Accordingly, the present invention is directed to a method for detecting and correcting an error of an electronic apparatus. The embedded controller, whose power is independently supplied, monitors the system situation. When an error occurs to the system and the system is turned off, the error code stored in the controller is analyzed to find the failed internal device and the failed reason. By a wireless transmission method, the error code is accessed when the system is turned off. Then the correcting program code is programmed in the electronic apparatus to achieve the purpose of detecting and correcting error.
The present invention is also directed to a method for detecting and correcting an error of an electronic apparatus. The embedded controller, whose power is independently supplied, detects the error occurrence of the electronic apparatus to obtain the error code corresponding thereto when the electronic apparatus is turned off. The error code is then transmitted to a wireless apparatus to correct the electronic apparatus.
According to the objects above, the present invention provides a method for detecting and correcting errors of an electronic apparatus. The method detects and stores an error code of a to-be-tested device in the electronic apparatus when the electronic apparatus is turned off. According to the method of the present invention, the preset specification for safely operating the to-be-tested device is set. The controller detects the to-be-tested device and receives a detecting signal. The detecting signal comprises a status value of the to-be-tested device. Then, it is determined whether the status value is over the preset specification. If the status value is out of the specification, the error code corresponding to the status value is generated. The error code is then stored in a memory. The controller determines whether a control signal is received. If the control signal is received, the error code, which is stored by the controller, is accessed. The error code is then transmitted to a wireless transmission apparatus. An error occurrence of the electronic apparatus is determined according to the error code. A debug method corresponding to the error occurrence is determined to debug the error occurrence.
According to the description above, the present invention provides a method for detecting and correcting errors of an electronic apparatus. The method detects and stores an error code of a to-be-tested device in the electronic apparatus when the electronic apparatus is turned off. According to the method of the present invention, first an error occurrence of the electronic apparatus is detected to obtain an error code corresponding thereto. The error code is then transmitted to a wireless transmission apparatus. The electronic apparatus is corrected according to the error code.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the method of obtaining the error code comprises the following steps. First, a status value of the to-be-tested device of the electronic apparatus is detected. At least one preset specification for safely operating the to-be-tested device is set. Then, it is determined whether the status value is out of the preset specification. Finally, if the status value is out of the specification, the error code corresponding to the status value is generated.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the status value of the electronic apparatus described above includes a temperature status or a fan operation status, for example.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the electronic apparatus stores the error code in a memory and determines whether a control signal is received. If the control signal is received, the error code, which is stored by the controller, is accessed. Wherein, the step of transmitting the error code to the wireless transmission apparatus means to transmit the whole error code to the wireless transmission apparatus.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the step of correcting the electronic apparatus according to the error code comprises obtaining the error code through the wireless transmission apparatus, determining an error occurrence of the electronic apparatus according to the error code, and determining a debug method corresponding to the error occurrence, and performing the debug method.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the debug method above comprises changing a failed device or programming a correcting program in the electronic apparatus.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the debug method above includes programming the correcting program into the electronic apparatus through the wireless apparatus, for example.
According to the method for detecting and correcting errors of an electronic apparatus of a preferred embodiment of the present invention, the electronic apparatus above comprises an embedded controller. Even if the electronic apparatus is turned off, a power remains being supplied to the embedded controller to obtain the error code.
With the controller of the present invention, whose power is independently supplied, the error code can be stored at any time. In the prior art technology, the steps of detecting and collecting error codes are not triggered until the mother board of the electronic apparatus is turned on. Compared with the prior art method, the method of the present invention can monitor the operation status of the electronic apparatus at any time. In addition, the wireless transmission apparatus of the present invention transmits the error code. Even if the electronic apparatus is not turned on, the error code can be accessed. The correcting program code thus can be programmed in the electronic apparatus for the detecting and correcting purposes.
The above and other features of the present invention will be better understood from the following detailed description of the preferred embodiments of the invention that is provided in communication with the accompanying drawings.
According to an embodiment of the present invention, a electronic apparatus can be, for example, a computer system. The computer system comprises several sets of alarm lights or rings. When an error occurrence, such as CUP over-heat or failed operation of a fan, occurs, the method of the present invention for detecting and correcting the error of the electronic apparatus is applied. According to the method, a temperature sensor or the fan near the computer CPU is coupled to an embedded controller to detect function of the internal devices of the computer.
The detection method of the controller above detects the CPU over-heat, for example. The temperature sensor adjacent to the CPU is controlled by the controller coupled to the system management bus (SMBus). The CPU temperature can be periodically detected. When the CPU temperature is over a preset temperature, the error code corresponding to the CPU over-heat is stored in the external memory or the internal memory unit of the controller to avoid the damage caused by the CPU over-heat.
The detection method of the controller above may detect the fan error, for example. The fan speed or switch of the fan is controlled by the controller. When the controller outputs the control signal to the fan and does not receive the pulse width modulation (PWM) signal from the fan, it is determined that the fan fails. The controller stores the error code corresponding to the failed fan in either the external memory or the internal memory unit of the controller.
According to the method for detecting and correcting error of the electronic apparatus, the controller, whose power is independently supplied, monitors the operation of the electronic apparatus. Even if the electronic apparatus is turned off, the error code can still be accessed and the correcting data can be programmed by the wireless transmission method. These features are not disclosed in the prior art technology.
Although the present invention has been described in terms of exemplary embodiments, it is not limited thereto. Rather, the appended claims should be constructed broadly to include other variants and embodiments of the invention which may be made by those skilled in the field of this art without departing from the scope and range of equivalents of the invention.
Number | Date | Country | Kind |
---|---|---|---|
94111615 | Apr 2005 | TW | national |