Embodiment
Please refer to Fig. 1, it is the process flow diagram according to a kind of power-on debugging method of computer of an embodiment of the present invention.Power-on debugging method of computer allows the user by input media input conjecture signal, and obtains start selftest sign indicating number or the pairing device information of start selftest sign indicating number.Power-on debugging method ofcomputer 100 comprises following steps:
Instep 110, begin to carry out a start selftest.Wherein, the start selftest is in order to carrying out a series of detection action to the device on processor, display card, storer, disc driver, CD drive, chipset, keyboard and other computing machines of computing machine, whether respectively install operate as normal to detect.Each functional test all can be designated a start selftest sign indicating number (POST Code), and the definition of start selftest sign indicating number is looked each tame manufacturer and different.
Next, in the process of carrying out the start selftest, carry out a functional test (step 130) of start selftest, install with one on the detection computations machine.When execution functional test (step 130), the code with performed functional test correspondence is stored to a storer (step 120) earlier, and by carrying out functional test (step 130), normally whether the device that the arbitration functions test is detected (step 140) then.Wherein, storer can be nonvolatile RAM (non-volatile random access memory NVRAM) or the storer of other kinds, and can use the code of POST Code as the functional test correspondence.
At device that functional test detected just often, judge start selftest whether complete (step 150).Carry out still imperfect tense at the start selftest, then continue, carry out the next functional test of start selftest bystep 120~step 140.Thus, can carry out a plurality of functional tests of start selftest one by one, and finish the device on the detection computations machine bystep 120~step 150.Then, when the start selftest is complete, enter operating system (step 170).Wherein, at the start selftest when complete, promptly represent the device operate as normal all on the computing machine, and do not need to be stored in the code in the storer.Therefore, can remove the code that is stored in storer in that to enter operating system (step 170) preceding.
It is undesired to detect device instep 140, and make when functional test is not passed through that then order start selftest produces and interrupts (step 160), and person to be used passes through an input media, as keyboard, Touch Screen or other input medias, input one conjecture signal (step 180).Then, after the user imports the conjecture signal, can obtain at least one code (step 190) that stored that is stored in storer according to the conjecture signal.Wherein, when storing code, can send a cue at conjecture signal that the user imported, with its conjecture signal of being imported of prompting user corresponding to storing code.Cue can be the voice prompt that loudspeaker sent that utilizes computer-internal, or a warning light signal that utilizes the pilot lamp (as backlight module or other pilot lamp of power light, hard disk running pilot lamp, LCD screen) of computer-internal to be produced.
When the code of storage in storer is a plurality of, can receive one from input media earlier selects signal to select to have stored the code, person to be used again guesses signal (step 180) by the input media input, and obtains the selected code (step 190) that stored according to the conjecture signal.Thus, the user can learn each functional test of having carried out by selecting the different codes of storage.
Owing to generally use hexadecimal two figure places mostly,, can utilize POST Code as the code of each functional test correspondence and stored code therefore according to one embodiment of the invention in order to POST Code as the functional test code.Preceding person to be used by input media input one conjecture signal (step 180), can be binary eight digit number with the code conversion of representing with hexadecimal two figure places of storage.When using keyboard as input media, eight buttons of predeterminable keyboard produce different conjecture signals, and the conjecture signal that each button produced is corresponding to each figure place that stores code after changing.Wherein, when the pairing figure place of conjecture signal of input is " 1 ", then can send cue with the prompting user.For instance, the F1 on the predeterminable keyboard~F8 produces different conjecture signals.When the code of storage in the storer is " 1F ", can earlier hexadecimal two figure places " 1F " be converted to binary eight digit number " 00011111 ".Therefore, only there is corresponding figure place to be button F4, F5, F6, F7 and the F8 of " 1 " when touched, just can produces cue.In other words, person to be used presses button F4, F5, F6, F7 and F8 and imports when guessing signal (step 180), just can produce cue, has stored code with prompting user button F4, F5, F6, F7 and F8 correspondence.Next, can obtain the corresponding code of storage " 1F " (step 190) that has been stored in storer according to button F4, F5, F6, F7 and F8.Then, just can inquire about " 1F " corresponding functional test, and judge the reason of computer failure.
In addition, according to another embodiment of the present invention, can make the functional test of conjecture signal that input media produces corresponding to specific device.For instance, when using keyboard, can make conjecture signal that the button " c " on the keyboard produced corresponding to code in order to the functional test that detects CPU as input media.In other words, when person to be used presses button " c " input conjecture signal (step 180), just can produce cue, store code with prompting user's button " c " correspondence.Next, can obtain the corresponding code that stores that has been stored in storer according to button " c " and be code (step 190), thereby learn the CPU operation irregularity in order to the functional test that detects CPU.
In addition, can and store code, store code (step 190) to assist the user to obtain according to the conjecture signal by binary search method comparison conjecture signal.Please refer to Fig. 2, it is an embodiment ofstep 180 and thestep 190 of Fig. 1.Instep 180, person to be used is by input media input one conjecture signal (step 180).Then, after the user imported a conjecture signal (step 191), comparison was guessed signal and has been stored code (step 192).
At the conjecture signal when storing code, produce a representative greater than signal (step 193), guess that with the prompting user signal is greater than storing code.Then, continue person to be used by input media input one conjecture signal (step 180).Thus, the user can by representative greater than signal, learn the conjecture signal greater than storing code, thereby, store code to obtain at the less conjecture signal of next input value.
At the conjecture signal when storing code, produce a representative less than signal (step 194), guess that with the prompting user signal is less than storing code.Then, continue person to be used by input media input one conjecture signal (step 180).Thus, the user can by representative less than signal, learn the conjecture signal less than storing code, thereby, store code to obtain at the bigger conjecture signal of next input value.
When the conjecture signal equals to store code, produce a cue (step 195), guess that with the prompting user signal is corresponding to storing code.Thus,, can and store code, store code (step 190) to assist the user to obtain according to the conjecture signal by binary search method comparison conjecture signal by step 191~step 195.
Please refer to Fig. 3, it is an embodiment who carries out a functional test (step 130) of start selftest among Fig. 1.Cross when of a specified duration in the execution time of carrying out functional test (step 130), the device that promptly means functional test and detected may be undesired.Therefore, a functional test (step 130) of execution start selftest can comprise:
Instep 131, continue to carry out the functional test of start selftest.Then, whether the execution time of arbitration functions test surpasses the delay upper limit (step 132).Surpass in execution time of functional test and to postpone in limited time, then arbitration functions test whether complete (step 133).When functional test is not complete as yet, then continue to carry out functional test (step 131).Yet when functional test was complete, normally whether the device that the arbitration functions test is detected (step 140).
Execution time in functional test prescribes a time limit above on postponing, and (step 160) interrupted in the generation of order start selftest.Then, just can obtain the corresponding at least one code that stored that has been stored in storer by thestep 180 of Fig. 1 and step 190.Thus, unusual at the device that functional test detected, and when causing execution time of functional test long, can judge the reason of computer failure bystep 160,step 180 and step 190.Yet, in other embodiments, if because of other reasons cause starting shooting selftest a functional test by the time, also can use the present invention and obtain start selftest sign indicating number or the pairing device information of start selftest sign indicating number, to judge the reason of computer failure.
Please refer to Fig. 4, it is the process flow diagram according to a kind of power-on debugging method of computer of another embodiment of the present invention.Power-on debugging method of computer allows the user send look-at-me interruption start selftest at any time by input media, then by input media input conjecture signal, and obtains start selftest sign indicating number or the pairing device information of selftest sign indicating number of starting shooting.Power-on debugging method ofcomputer 200 comprises following steps:
Instep 210, begin to carry out a start selftest (step 210).Then, instep 220, carry out a plurality of functional tests of start selftest one by one.Wherein when carrying out the functional test (step 220) of start selftest one by one, the code with each performed functional test correspondence is stored to a storer earlier.
When receiving a look-at-me (step 230) from an input media, order start selftest produces and interrupts (step 240).Wherein, the button on the input media can be preset as the interruption button, and make the user when pressing the interruption button, order start selftest produces and interrupts (step 240).
Next, person to be used is by input media, and as keyboard, Touch Screen or other input medias, input one conjecture signal (step 250) is to obtain the corresponding at least one code (step 260) that stored that has been stored in storer by the conjecture signal.Wherein, at conjecture signal that the user imported when storing code, can send a cue with its conjecture signal of being imported of prompting user corresponding to storing code.Cue can be the voice prompt that loudspeaker sent that utilizes computer-internal, or a warning light signal that utilizes the pilot lamp (as backlight module or other pilot lamp of power light, hard disk running pilot lamp, LCD screen) of computer-internal to be produced.
By the embodiment of the invention described above as can be known, use the present invention and have following advantage.The user can be by input media, and obtains start selftest sign indicating number or the pairing device information of start selftest sign indicating number.Then, can be not needing seven sections LED captions of extra increase or inserting under the prerequisite of Debug Card, according to start selftest sign indicating number or the pairing device information of start selftest sign indicating number, the failure cause of judgement computing machine.
Though the present invention with embodiment openly as above; yet it is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; should be used for a variety of modifications and variations, so protection scope of the present invention is when looking being as the criterion that the appending claims scope defined.