CN101604279B - Method for automatically simulating manual detection after starting computer, detecting system and external storage device - Google Patents

Method for automatically simulating manual detection after starting computer, detecting system and external storage device Download PDF

Info

Publication number
CN101604279B
CN101604279B CN 200810125104 CN200810125104A CN101604279B CN 101604279 B CN101604279 B CN 101604279B CN 200810125104 CN200810125104 CN 200810125104 CN 200810125104 A CN200810125104 A CN 200810125104A CN 101604279 B CN101604279 B CN 101604279B
Authority
CN
China
Prior art keywords
manual detection
script
computer
execution time
post
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200810125104
Other languages
Chinese (zh)
Other versions
CN101604279A (en
Inventor
李元展
朱赞美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wistron Corp
Original Assignee
Wistron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wistron Corp filed Critical Wistron Corp
Priority to CN 200810125104 priority Critical patent/CN101604279B/en
Publication of CN101604279A publication Critical patent/CN101604279A/en
Application granted granted Critical
Publication of CN101604279B publication Critical patent/CN101604279B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method for automatically simulating manual defection after starting a computer. The computer is provided with a basic input output system (BIOS) procedure used for executing the method. The method comprises the following steps: (a) the computer is connected with the external storage device recoding a script corresponding to manual detection work; and (b) when being started, the computer reads the script of the external storage device to execute the manual detection work. Aiming at the problem that the process for detecting a single-computer input instruction with a manual operation mode rather consumes time at present, the invention adopts the automatic simulation of the manual detection after starting the computer to replace the manual operation mode so as to effectively save the time and the manual cost.

Description

The method of automatic imitation manual detection, detection system and external connection type memory apparatus after booting computer
Technical field
The relevant a kind of computer self-detection method of the present invention and the method device used refer to method, detection system and the method external connection type memory apparatus used of automatic imitation manual detection after a kind of booting computer especially.
Background technology
Before the computer new product dispatches from the factory, often need to carry out the quality that a series of software/hardware/firmware detects to guarantee product, wherein for the detection of firmware (firmware), often need to be detected unit input instruction in manually-operated mode, its testing process is quite consuming time, the demand that is unfavorable for quick shipment, and can't know whether detection is complete; Being also so aspect the maintenance computer, when for example certain batch product firmware has similar problem, if one by one with manual detection, also be unfavorable for the demand of Quick overhaul; On the other hand, existing WISE or ICE detecting instrument are usually used in the single machine test in laboratory, if a large amount of detection will not applied use, what be unfavorable for reducing costs considers.
Existing computer debug technical elements, for example No. 93139762 application case of TaiWan, China invention is to utilize computer to go an automatic debug of peripheral unit to connecting, but can't be applicable to the automatic debug of inner other device of computer; No. 94135316 application case of TaiWan, China invention is when computer system crashes, and finds out the relative program module debug of abnormal address; Therefore, although the correlation technique of aforementioned announcement computer debug still can't all replace manual detection work in the robotization mode.
Summary of the invention
Therefore, the method, detection system and the external connection type memory apparatus that the purpose of this invention is to provide automatic imitation manual detection after a kind of time saving and energy saving booting computer.
So after booting computer of the present invention, the method for automatic imitation manual detection comprises following step: the external connection type memory apparatus that (a) this computer connection one is recorded the script of a corresponding manual detection work; And (b) read the script of this external connection type memory apparatus to carry out this manual detection work after this booting computer.
Better, this computer detects (POST) during the stage the start oneself, if judge that the check point code name that meets is arranged in this script, namely carries out trace routine corresponding to this check point code name and stores testing result.
Better, this computer, after at least one event is driven, if judge that the event code name that meets is arranged in this script, was namely carried out trace routine corresponding to this event code name and stores testing result during the stage in the execution time (Run Time).
The present invention records the script of a corresponding manual detection work for the external connection type memory apparatus of the rear automatic imitation manual detection of computer start, this script is for carrying out this manual detection work after this this external connection type memory apparatus of computer initialization; Wherein, this script has multiple batches of program, and respectively this batch program is in order to simulate the required instruction of this manual detection work.
Better, this script comprises a POST check point processing list, it has a POST check point and processes header, a check point code name, an action classification, a detected parameters and a testing result.
Better, this script comprises execution time event handling table, it has execution time event handling header, an event code name, an action classification, a detected parameters and a testing result.
The present invention is for the detection system of the rear automatic imitation manual detection of computer start, comprise that an external connection type memory apparatus and of script that records a corresponding manual detection work in order to connect the computer to be measured of this external connection type memory apparatus, namely reads the script of this external connection type memory apparatus to carry out this manual detection work after this booting computer to be measured.
Due at present quite consuming time to the process of unit input command detection with the manual mode of operation, the present invention with booting computer after the automatic imitation manual detection to replace the manual mode of operation, can effectively save time and human cost.
Description of drawings
Fig. 1 is a schematic diagram, illustrates that after the present invention is for the computer start, the external connection type memory apparatus of automatic imitation manual detection connects a computer to be measured;
Fig. 2 is a system block diagrams, and the inner member of this preferred embodiment is described;
Fig. 3 is a process flow diagram, and the step of the preferred embodiment of the method for automatic imitation manual detection after booting computer of the present invention is described;
Fig. 4 is a schematic diagram, illustrates that this preferred embodiment script used is usb file head data;
Fig. 5 is a schematic diagram, and the content example of these usb file head data is described; And
Fig. 6 is a process flow diagram, illustrates how this preferred embodiment carries out many batches of programs.
Embodiment
About aforementioned and other technology contents, characteristics and effect of the present invention, in the detailed description of following cooperation with reference to the preferred embodiment of accompanying drawing, can clearly present.
Consult Fig. 1 and Fig. 2, after booting computer of the present invention in the preferred embodiment of the detection system of automatic imitation manual detection, this detection system comprises a computer 1 to be measured and a USB storage device 3, dispatches from the factory front or in required manual detection work of when maintenance in order to be executed in new product.
Computer 1 to be measured has ROM (read-only memory) (Flash ROM) 11, one USB periphery controller 12, an input media 13 and the display 14 that a CPU (central processing unit) 10, is loaded with Basic Input or Output System (BIOS) (BIOS) program 111, wherein USB periphery controller 12 is in order to connect USB storage device 3, and USB storage device 3 records the script (Patch function header file) 31 of a corresponding manual detection work.
After booting computer of the present invention, the method for automatic imitation manual detection is mainly that computer 1 to be measured is connected USB storage device 3, script 31 records many batches of programs, each batch program is namely the required instruction of this manual detection work of simulation, and details are as follows for the step of the method.
Consult Fig. 3, first with computer 1 start (step 101), then initialization USB periphery controller 12 (step 102), judged whether to connect USB storage device 3 (steps 103)? if have, do you judge that USB storage device 3 has script 31 (step 104)? if have, do you judge that script 31 has a batch processing to indicate (Signature) to determine to carry out batch processing (step 105)? if indicate without this batch processing, original boot program (step 109) continues; If there is this batch processing to indicate, computer 1 is from batch program (step 106) of USB storage device 3 by an access script 31, then judge whether finishing touch (step 107)? if judgement finishing touch batch program, whole manual detection work are completed in representative, the more original boot program (step 109) that continues.
Consult Fig. 4, in this preferred embodiment, script 31 (as Fig. 2) is usb file head data 2, and the form of these usb file head data 2 comprises that batch processing indicates 20, one POST check point (POST check point) processing list 21, an execution time event (Run time event) processing list 22, BIOS debug record (Debug Log) 23 and one record data (Log data) 24.
Generally roughly divide into POST check point (POST check point) processing and execution time event (Run time event) processing two-stage for the manual detection work of computer 1, during practical operation, computer 1 can enter after the POST stage reads POST check point processing list 21 and carry out one by one the testing of POST check point processing list 21 corresponding different code names, the testing of the corresponding different code names of execution time event handling table 22 in rerun time event handling stage.
In addition, bios program 111 can read and analyze POST check point processing list 21 and the execution time event handling table 22 of script 31, and is carried out by the routine (routine) that bios program 111 has.
POST check point processing list 21 has a POST check point and processes header 210, a check point code name 211, an action classification (Action Type) 212, one detected parameters (Parameters) 213, and a testing result (Result) 214; Wherein check point code name 211 namely means the code name that a hardware element is detected; Wherein, this POST check point is processed header 210 and is had POST batch processing sign (Signature) and a check code (Checksum), this POST batch processing indicates representative and carries out a POST batch program, and this check code represents the stroke count of pending data in this POST batch program; Take Fig. 5 as example, the POST batch processing be denoted as W! POSTCK, check code 00000002 represent that pending data are 2.
Execution time event handling table 22 is similar with POST check point processing list 21, also have execution time event handling header 220, an event code name 221, an action classification 222, a detected parameters 223 and a testing result 224, execution time event handling header 220 also has execution time batch processing and indicates and a check code, this execution time batch processing indicates representative and carries out an execution time batch program, this check code represents the stroke count of pending data in this execution time batch program, take Fig. 5 as example, the execution time batch processing is denoted as W! RunTTB, check code 00000001 represent that pending data are 1; In addition, event code name 221 means the code name that a scheduled event is detected, and being all Windows of entering, DOS or any operating system, so-called " execution time " (Run time) all be considered as " execution time ", " event " is (Event) under operating system environment, any event relevant with operational hardware, such as central processing unit speed (CPU speed), keyboard input, the defined event of ACPI SPEC etc. all belongs to the category that " event " defines.
Consult Fig. 5, POST check point processing list 21 and execution time event handling table 22 be described as follows with actual example:
Aspect POST check point processing list 21, it comprises that the trace routine for CMOS and PCI register hardware element is described as follows:
1.CMOS the trace routine of reading out data: POST check point processing list 21 records comprise that carrying out check point code name 211 is the data of reading address " 72h " for " 3Ah ", action classification 212 for " at the CMOS reading out data ", detected parameters 213, and testing result 214 is read value " Abh ".
2. in the trace routine of bus register (Bus Register) data writing of PCI device: POST check point processing list 21 comprises that check point code name 211 is " data of writing address EFh " for " 49h ", action classification 212 for " at the register data writing ", detected parameters 213, and testing result 214 is " writing successfully ".
Aspect execution time event handling table 22, its trace routine is for reading the GPIO value, and it is that " 23h " and testing result 224 are " 1 " for " A_SLP ", action classification 222 for " reading the GPIO value ", detected parameters 223 that program code corresponding to this trace routine just recorded event code name 221.
Consult Fig. 6, and contrast Fig. 3 and Fig. 6, after booting computer of the present invention, the method for automatic imitation manual detection comprises following step:
at the self-detection-phase of start, computer 1 is first carried out the start oneself and is detected (step 301), initialization USB storage device 3 and carry out script 31 in the self-testing process of start, then do you judge the check point of meeting code name (step 302) are arranged in script 31? if meet, namely carry out trace routine corresponding to this check point code name and store testing result (step 303), if do not meet, does judgement start oneself detect be finished (step 304)? if be not finished, still continue to carry out the start oneself and detect (step 305), and subsequent steps 302, self-detection-phase is completed if start shooting, enter the execution time (Run-Time) stage.
In stage execution time, after each event driven (step 306), do you judge the event of meeting code name (step 307) are arranged in script 31? if meet, namely carry out trace routine corresponding to this event code name and store testing result (step 308), if do not meet, continue to drive each event (step 306).
Conclude above-mentioned, the method of automatic imitation manual detection after application booting computer of the present invention in the testing process that computer dispatches from the factory or computer overhauls, can unit be detected in the mode of computer automatic imitation operation, its testing process is rapid and complete, is conducive to the demand of quick shipment; On the other hand, use external connection type memory apparatus to replace expensive WISE or ICE detecting instrument, if in the time of need to carrying out a large amount of computer detections, not only can reuse and can reduce testing cost.
But above-described is only preferred embodiment of the present invention, when not limiting scope of the invention process with this, be that every simple equivalence of doing according to the present patent application the scope of the claims and invention description content changes and modifies, all still remain within the scope of the patent.

Claims (14)

1. the method for automatic imitation manual detection after a booting computer, this computer has one in order to carry out the Basic Input or Output System (BIOS) program of the method, and the method comprises following step:
(a) this computer connection one records the external connection type memory apparatus of the script of a corresponding manual detection work, and this script has multiple batches of program, and described each batch program is in order to simulate the required instruction of this manual detection work; And
(b) script that reads this external connection type memory apparatus after this booting computer is to carry out this manual detection work, and it comprises following substep:
This computer after at least one event is driven, if judge that the event code name that meets is arranged in this script, was namely carried out trace routine corresponding to this event code name and stores testing result when stage execution time.
2. the method for automatic imitation manual detection after booting computer according to claim 1, it is characterized in that, this computer of step (b) is to judge whether this script has a batch processing to indicate to determine whether carry out batch processing, if indicate without batch processing, original boot program continues; If there is this batch processing to indicate, this computer pursues from this external connection type memory apparatus many batches of programs that this script of an access has, after completing whole batches of programs, more original boot program that continues.
3. the method for automatic imitation manual detection after booting computer according to claim 1 and 2, is characterized in that, step (b) also comprises following substep:
(b1) this computer, if judge that the check point code name that meets is arranged in this script, is namely carried out trace routine corresponding to this check point code name and stores testing result during the stage at a start selftest.
4. the method for automatic imitation manual detection after booting computer according to claim 3, it is characterized in that, this script comprises a POST check point processing list, and it has this check point code name, a POST check point is processed header, an action classification, a detected parameters and a testing result.
5. the method for automatic imitation manual detection after booting computer according to claim 4, it is characterized in that, this POST check point is processed header and is had POST batch processing sign and a check code, this POST batch processing indicates representative and carries out a POST batch program, and this check code represents the stroke count of pending data in this POST batch program.
6. the method for automatic imitation manual detection after booting computer according to claim 1, it is characterized in that, this script comprises execution time event handling table, and it has this event code name, execution time event handling header, an action classification, a detected parameters and a testing result.
7. the method for automatic imitation manual detection after booting computer according to claim 6, it is characterized in that, this execution time event handling header has execution time batch processing and indicates and a check code, this execution time batch processing indicates representative and carries out an execution time batch program, and this check code represents the stroke count of pending data in this execution time batch program.
8. the system of automatic imitation manual detection after a booting computer, this computer has one in order to carry out the Basic Input or Output System (BIOS) program of automatic imitation manual detection, and this system comprises:
Coupling arrangement makes this computer connection one record the external connection type memory apparatus of the script of a corresponding manual detection work, and this script has multiple batches of program, and described each batch program is in order to simulate the required instruction of this manual detection work; And
Actuating unit, the script that is used for reading this external connection type memory apparatus after this booting computer is to carry out this manual detection work, and this actuating unit comprises:
Be used for when stage execution time of this computer, after at least one event is driven, if judge that the event code name that meets is arranged in this script, namely carries out trace routine corresponding to this event code name and store the device of testing result.
9. the system of automatic imitation manual detection after booting computer according to claim 8, it is characterized in that, also comprise judgment means, be used for judging whether this script has a batch processing to indicate to determine whether carry out batch processing, if indicate without batch processing, original boot program continues; If there is this batch processing to indicate, many batches of programs that make this computer have by this script of an access from this external connection type memory apparatus, after completing whole batches of programs, more original boot program that continues.
10. the system of automatic imitation manual detection after according to claim 8 or 9 described booting computers, is characterized in that, this actuating unit also comprises:
Be used for a start selftest at this computer during the stage, if judge that the check point code name that meets is arranged in this script, namely carry out trace routine corresponding to this check point code name and store the device of testing result.
11. the system of automatic imitation manual detection after booting computer according to claim 10, it is characterized in that, this script comprises a POST check point processing list, and it has this check point code name, a POST check point is processed header, an action classification, a detected parameters and a testing result.
12. the system of automatic imitation manual detection after booting computer according to claim 11, it is characterized in that, this POST check point is processed header and is had POST batch processing sign and a check code, this POST batch processing indicates representative and carries out a POST batch program, and this check code represents the stroke count of pending data in this POST batch program.
13. the system of automatic imitation manual detection after booting computer according to claim 8, it is characterized in that, this script comprises execution time event handling table, and it has this event code name, execution time event handling header, an action classification, a detected parameters and a testing result.
14. the system of automatic imitation manual detection after booting computer according to claim 13, it is characterized in that, this execution time event handling header has execution time batch processing and indicates and a check code, this execution time batch processing indicates representative and carries out an execution time batch program, and this check code represents the stroke count of pending data in this execution time batch program.
CN 200810125104 2008-06-11 2008-06-11 Method for automatically simulating manual detection after starting computer, detecting system and external storage device Expired - Fee Related CN101604279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810125104 CN101604279B (en) 2008-06-11 2008-06-11 Method for automatically simulating manual detection after starting computer, detecting system and external storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810125104 CN101604279B (en) 2008-06-11 2008-06-11 Method for automatically simulating manual detection after starting computer, detecting system and external storage device

Publications (2)

Publication Number Publication Date
CN101604279A CN101604279A (en) 2009-12-16
CN101604279B true CN101604279B (en) 2013-06-19

Family

ID=41470018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810125104 Expired - Fee Related CN101604279B (en) 2008-06-11 2008-06-11 Method for automatically simulating manual detection after starting computer, detecting system and external storage device

Country Status (1)

Country Link
CN (1) CN101604279B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782869B (en) * 2010-03-09 2013-10-02 南京航空航天大学 Method for testing function of panel based on Bash shell script

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN1889051A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Method for realizing parts detection utilizing intelligent equipment firmware

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591376B1 (en) * 2000-03-02 2003-07-08 Hewlett-Packard Development Company, L.P. Method and system for failsafe recovery and upgrade of an embedded operating system
CN1889051A (en) * 2005-06-28 2007-01-03 联想(北京)有限公司 Method for realizing parts detection utilizing intelligent equipment firmware

Also Published As

Publication number Publication date
CN101604279A (en) 2009-12-16

Similar Documents

Publication Publication Date Title
US9727436B2 (en) Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
CN102521105B (en) Output method of power on self test information, virtual machine manager and processor
US20120254662A1 (en) Automated test system and automated test method
CN106547653B (en) Computer system fault state detection method, device and system
EP2650781A2 (en) Method for detecting hardware
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
US8122293B2 (en) Method for automatically simulating manual testing of a computer, and testing system for performing the method
CN103593281A (en) Test system and test method
US10185616B1 (en) Computer system vulnerability analysis apparatus and method
US8909989B2 (en) Method for outputting power-on self test information, virtual machine manager, and processor
CN104572143A (en) Startup detection system and method for computer
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
US7213159B2 (en) Method for testing and verifying power management features of computer system
CN101604279B (en) Method for automatically simulating manual detection after starting computer, detecting system and external storage device
CN113377586A (en) Automatic server detection method and device and storage medium
CN110955566B (en) Error detecting method
CN109857583B (en) Processing method and device
CN100524245C (en) Method for monitoring input/output port data
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
KR20110036243A (en) Real-time monitoring system for stack and method thereof
CN1287252C (en) Re-starting card and method for determining test moment of re-starting mechanism
CN100426234C (en) Method for self turn-on test time for measuring basic input and output system
CN107122275A (en) It is a kind of to check the device and method that RMT tests information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130619

Termination date: 20190611

CF01 Termination of patent right due to non-payment of annual fee