CN1329795C - Power supply status automatic test method for computer apparatus - Google Patents

Power supply status automatic test method for computer apparatus Download PDF

Info

Publication number
CN1329795C
CN1329795C CNB200310112246XA CN200310112246A CN1329795C CN 1329795 C CN1329795 C CN 1329795C CN B200310112246X A CNB200310112246X A CN B200310112246XA CN 200310112246 A CN200310112246 A CN 200310112246A CN 1329795 C CN1329795 C CN 1329795C
Authority
CN
China
Prior art keywords
power supply
test
computer apparatus
testing
supply status
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 - Lifetime
Application number
CNB200310112246XA
Other languages
Chinese (zh)
Other versions
CN1622005A (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.)
Mitac Computer Shunde Ltd
Getac Technology Corp
Original Assignee
Mitac Computer Shunde Ltd
Mitac Technology 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 Mitac Computer Shunde Ltd, Mitac Technology Corp filed Critical Mitac Computer Shunde Ltd
Priority to CNB200310112246XA priority Critical patent/CN1329795C/en
Publication of CN1622005A publication Critical patent/CN1622005A/en
Application granted granted Critical
Publication of CN1329795C publication Critical patent/CN1329795C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for automatically testing the power supply state of a computer. The present invention solves the problem that the specific hardware configuration is limited when the power supply state of a computer is tested by the traditional technique. The method of the present invention mainly comprises the steps: after an operator selects a single picture and selects power supply state testing items to be tested and number values through operation, the selected test functions can be executed according to the selected power supply state testing items so as to orderly go into the selected test power supply states; after the preset timing of a timer in a keyboard control device counts, the selected testing items which are repeatedly executed can be set. The present invention can be used for testing various functions, such as stand-by, sleeping, power supply switching off, restarting, etc. of the computer.

Description

The power supply status automatic test approach of computer apparatus
Technical field
The invention relates to a kind of automatic test technology of computer apparatus, particularly about a kind of automatic test approach of computer apparatus power supply status.
Background technology
In the Windows that is extensive use of at present (for example Windows XP, Windows2000, Windows Me), generally in its operating system, integrated the power management function of advanced framework power interface standard A CPI (Advanced Configuration and Power Interface), by the power management operations of related hardware in this ACPI interface standard may command computer system.
This advanced person's framework power interface standard A CPI (Advanced Configuration and PowerInterface) be by the computer industry the common electric power management system interface of formulating exploitation, its objective is for a common power-management interface is arranged between operating system and hardware, with improve computer system in the past on power management by disunity interface that each other manufacturer was formulated.Seeing through this electric power management system makes operating system (Operating System) can manage the electricity consumption situation of peripherals according to certain mode.
In the power management function of ACPI interface standard institute standard, include electric power starting (Active), dormancy (Hibernation), standby (Standby), powered-down functions such as (Shutdown).According to user's setting, computer system can enter standby or dormant state, can make computer system be in low power consumption (Low-power State) when holding state, then can make computer system handle the state of power saving more during dormant state.It is particularly useful when this kind function is applied in battery as the portable computer equipment in electric power supply source.
Typical portable computer system includes a CPU (central processing unit), ROM-BIOS (SystemBasic Input Output System, SYS-BIOS) with keyboard controller (Keyboard Controller, KBC), wherein include in this keyboard controller a built-in microprocessor (EmbeddedMicro-controller), a keyboard ROM-BIOS (Keyboard Basic Input OutputSystem, KB-BIOS), the interface circuit of internal memory and other specific function.The working power of this portable computer is supplied by battery, and the battery status of this battery can be detected by the battery status detecting interface of keyboard controller.When this portable computer operated under the ACPI pattern operating system, its operating system can regularly see through ACPI Machine Language (being called for short AML) and read the battery status data in the keyboard controller.
Under typical A CPI framework, the state of power supply is defined as the power supply status of five kinds of differences, be respectively:
S0-normal power source supply status.
The S1-first rank holding state in this state, is stopped power supply to monitor and disc driver, but still supply electric power is to central processing unit, internal memory and fan.
The S2-second rank holding state in this state, except stopping power supply to monitor, disc driver, is also stopped power supply to central processing unit and high-speed cache.
S3-the 3rd rank holding state in this state, is stopped power supply to devices such as monitor, disc driver, central processing unit and high-speed caches, only keeps minimum power and is supplied to random access memory (RAM).
The S4-dormant state in this state, is stopped power supply to all devices and assembly, but operating system can be stored the data and the program execution state of former unlatching before power-off.And desire can be recovered original state rapidly as long as press simply by power switch when waking back the computer system of dormant state up the normal boot-strap state, and does not need to re-execute tediously long system start-up program.
S5-closes the supply of all power supplys.
According to user's setting, computer system can enter standby or dormant state, can make computer system be in low power consumption (Low-power State) when holding state, then can make computer system handle the state of power saving more during dormant state.It is particularly useful when this kind function is applied in battery as the portable computer equipment in electric power supply source.
Be able to normally carry out every function in order to ensure computer apparatus when the user uses, the dealer promptly must carry out the test and the checking of every function after finishing complicated computer hardware assembling operation.For example can normally carry out the function of aforementioned ACPI power management for the operating system that will guarantee computer, how every power supply status being tested is very important problem.For whether the power management function of wanting the test computer system is normal, generally be to repeat start (boot), standby (Standby), dormancy (Hibernation), powered-down (Shutdown), and the program of reopening machine (Reboot).
In the prior art, in order to carry out aforementioned standby, dormancy, powered-down, and the functional test of reopening machine, the tester carries out repeated operation before must standing on machine for a long time, and needs that it has finished the number of times of test from line item.This kind traditional test mode, the not only time-consuming and utmost point consumes great human cost.
In order to overcome the problem of aforementioned measuring technology, though industry has been developed the technology with autorun, but in this type of measuring technology, all must be defined in specific hardware combines with software, can finish the function of test, if no specific hardware collocation promptly can't utilize software to carry out the test of function.Therefore, except cost comparatively the costliness, also lack flexibility and adaptability in application facet.
Summary of the invention
Therefore, the present invention's fundamental purpose promptly is the power supply status method of testing that a kind of computer apparatus is provided at the defective of aforementioned known techniques, the operator is after the power supply status test event and numerical value of the desire test of selected institute, can under the present invention and his like process control, carry out each selected test function, and sequentially enter the power supply status of selected test according to the power supply status test event that should select.
Another object of the present invention provides a kind of power supply status automatic test approach of computer apparatus, and the operator also can set automatically the function of test again, to reach the purpose of test automatically except the various power supply status test events of selected institute desire test.
Another object of the present invention provides a kind of power supply status automatic test approach of the computer apparatus that is not subjected to specific hardware and is limited, the present invention utilizes keyboard controller rice to carry out the test of power supply statuss such as shutdown automatically, dormancy, it can not be subject to the specific hardware and the operating system of computer apparatus, can carry out the test of power supply status, with application elasticity that reaches height and the purpose that can adapt to various hardware and operating system.
The present invention by the technological means that the problem that solves prior art is adopted is, at first on the display of computer apparatus, show an operation menu picture, the operator is after power supply status test event and numerical value by this selected institute of operation menu picture desire test, can carry out each selected test function according to this selected power supply status test event, and sequentially enter the power supply status of selected test, and after the predetermined timing of a timer arrives in keyboard controller, can set and repeat each selected test event.Preferably, repeat in the step of each selected test event, also include one and judge whether to repeat the aforementioned respectively step of test at this.
Compared to prior art, the present invention has effectively overcome and must be subjected to specific hardware in the conventional test methodologies and combine the restriction that can finish test with software, is using the enhancement that obviously has effect than located by prior art aspect elasticity and the environmental suitability.Moreover, power supply status automatic test approach via the present invention's computer apparatus, can make the operator carry out the power supply standby of computer apparatus, dormancy, powered-down, and during the functional test of reopening machine, do not need to stand on for a long time before the machine and carry out repeated operation, so can save a large amount of time and human cost, help the efficient of test.
Description of drawings
Concrete grammar of the present invention and control flow are described further below in conjunction with embodiment and accompanying drawing formula:
Fig. 1 disposes the system schematic of the computer apparatus of an embedded keyboard controller for the present invention is applied in;
Fig. 2 is the process flow diagram of the present invention when the power supply status of carrying out computer apparatus is tested;
Fig. 3 is in the flow process of the present invention, shown operation menu picture on computer apparatus.
Embodiment
Fig. 1 disposes the system schematic of the computer apparatus of an embedded keyboard controller for the present invention is applied in.This computer apparatus 1 includes a CPU (central processing unit) 10, and its system bus 11 is connected with one first bridge 12 (also be called main bridge Host bridge or be called north bridge North Bridge).One primary memory 13 is connected in these first bridge, 12, one AGP display device 14 via rambus and then is connected in this first bridge 12 through AGP (Accelerated Graphic Port) bus.
One pci bus 15 (Peripheral Component Interconnect) is connected in this first bridge 12, and can connect various PCI devices 16 on this pci bus 15.One second bridge 17 (being called south bridge South Bridge again) is connected in this pci bus 15, and then connects an expansion bus (ExtendedBus), and for example isa bus 18.
One keyboard controller 2 is connected in this isa bus 18.This keyboard controller 2 includes the isa bus 18 that a main interface (Host Interface) is connected in this computer apparatus 1, with as the interface of carrying out the data transmission with this CPU (central processing unit) 10.In the system architecture between typical embedded controller and computer apparatus, the main interface of this keyboard controller 2 includes two address areas, one of them is the address of sexadecimal 60H/64H, be connected in the interior keyboard interface of this keyboard controller 2, with input function as QWERTY keyboard, another location, location district is sexadecimal 62H/66H then, is connected in the System Management Controller in this keyboard controller 2, with the executive system management function.
This keyboard controller 2 can produce a system management signal SMI (System Management Interrupt) Central Processing Unit 10 to this computer apparatus 1.When the executive system management function, after this keyboard controller 2 deposits a numerical value buffer 21 of keyboard controller 2 inside in, can produce this system management signal SMI then to CPU (central processing unit) 10.CPU (central processing unit) 10 can be according to the system management sign indicating number System Management Code that is stored in advance in its primary memory 13 then) and respond this system management signal SMI and handle the execution action of the numerical value representative in these keyboard controller 2 existing buffers.In this keyboard controller 2, also can open beginning one timer 22 by the mode of program setting and do the action of timing.
This keyboard controller 2 is connected with a keyboard ROM-BIOS 3 (Keyboard BIOS).Can connect keyboard 4 and computer mouse 5 in the most keyboard controller 2 that is adopted now, under the control of this keyboard controller 2, the signal that this keyboard 4 and computer mouse 5 can be imported is delivered in the computer system.
The battery 6 of this computer apparatus (for example intelligent battery Smart Battery that is used always at present) is connected in this keyboard controller 2 via a bus interface 61.This bus interface 61 can be a System Management Bus (SMBus), in the standard connecting line of System Management Bus, connects this battery 6 by a clock pulse line SCL and a data line SDA.
Consult shown in Figure 2, be the process flow diagram of the present invention when carrying out automatic test of computer apparatus power supply status, its control flow at first is in step 101, on the display of computer apparatus, show an operation menu picture 7 (consulting configuration schematic diagram shown in Figure 3 simultaneously), set every test event and numerical value (step 102) so that the operator can operate affine man-machine interface shown on the menu picture 7 according to this.For example on this operation menu picture 7, have:
(1) standby testing setup district 71: can choose whether to carry out standby test and how long set (second) for the operator and enter holding state afterwards;
(2) dormancy testing setup district 72: can choose whether to carry out dormancy test and how long set (second) for the operator and enter dormant state afterwards;
(3) the testing setup district 73 of starting shooting again: can choose the test of whether carrying out start again and set how long (second) carries out is again afterwards started shooting for the operator;
(4) shutdown testing setup district 74: can choose for the operator and whether carry out shutdown and how long set (second) and carry out shutdown afterwards;
(5) the multiplicity setting district 75: can set the number of times of desiring repeated test or remove this testing time setting value for the operator;
(6) testing setup district 76 again automatically: can choose whether carry out automatically the function of test (AutoResume) again for the operator;
(7) begin carry out to select button 77: can operator's point touch this begin to carry out select button after, carry out the test of the selected function in prostatitis;
(8) cancel execution and select button 78: can after operator's point touches this cancellation execution selection button, stop the test of the selected function of each point.
(9) the test result viewing area 79: can be presented in this test result viewing area 79 via every test result that the present invention tested out, so that the operator grasps the situation and the analytical test result of its test.
After every test event and numerical value that clicks of operator on configuring this operation menu picture 7, promptly in the keyboard controller 2 of this computer apparatus 1, set the timer 22 (step 103) of test (Auto Resume) again.Operator point touch this operation menu picture 7 begin carry out selection button 77 after, each test event that control flow promptly clicks and sets according to the operator and begin to carry out each selected test function (step 104).And according to aforementioned each selected test function and sequentially enter the power supply status (step 105) of selected test, at the same time, the timer 22 in this keyboard controller 2 also carries out timing action (step 106).
At the power supply status that sequentially carries out aforementioned each selected test and when carrying out the action of timing simultaneously, the Preset Time value that in step 107, can judge whether to have reached timer and preset.If do not reach the Preset Time value of timer as yet, then step can be got back to step 106, continues to carry out the action of timing.
And after the time of judging this execution in the step 107 has arrived the time that this timer 22 preset, then whether further decision operation person formerly has setting to test the function of (AutoResume) automatically again in step 108, if words, then flow process is got back to abovementioned steps 104, re-executes the test and the arbitration functions of step 104 ~ 108 automatically.
And in step 108, formerly do not set automatically the function of test again if judge the operator, then further whether decision operation person opens the function (step 109) of the aforementioned test of beginning with manual mode, if words, then also get back to abovementioned steps 104, re-execute the test and the arbitration functions of step 104 ~ 109.If not, then finish test job.
By the above-mentioned embodiment of the invention as can be known, the present invention really can be under specific hardware that is not limited to computer apparatus and operating system, and by the keyboard controller of this computer apparatus can the selected power status test of complete operation person project, so make the present invention can reach application elasticity highly and can adapt to various hardware and operating system environment.As long as whether again the operator after the setting of the power supply status test event of selected institute desire test and numerical value and test, can sequentially finish selected various power supply status tests according to should selected power supply status test event carrying out each selected test function under the present invention and his like process control.
More than embodiment explanation, only be the present invention's preferred embodiment explanation, allly be proficient in this operator when doing other all improvement and variation according to the foregoing description explanation of the present invention.Yet all improvement and variation that these are done according to the embodiment of the invention are in invention spirit that still belongs to the present invention and the rights protection scope that defines.

Claims (9)

1. the power supply status automatic test approach of a computer apparatus is tested in order to the power supply state to the power supply of a computer apparatus, disposes a keyboard controller in this computer apparatus, it is characterized in that this method comprises the following steps:
(a) the power supply status test event of selected desire test and the schedule time numerical value of the power supply status that setting enters this selected test event;
(b) in the keyboard controller of this computer apparatus, set the timer of test again;
(c) carry out each selected test function according to the selected power supply status test event of operator;
(d) sequentially enter the power supply status of selected test according to selected power supply status test function, and start the timing of the timer in this keyboard controller simultaneously;
(e) after the time that this timer of arrival is preset, the test of repeated execution of steps (c) to (d).
2. method of testing according to claim 1, it is characterized in that: step (a) also includes the step that shows an operation menu picture on the display device of computer apparatus before, so that the operator is selected according to every power supply status test event shown on this operation menu picture and the setting of numerical value.
3. as the method for testing as described in the claim 2, it is characterized in that: include at least on this operation menu picture a standby testing setup district, a dormancy testing setup district, start shooting again testing setup district, a shutdown testing setup district, a multiplicity setting district, automatically again the testing setup district, carry out and select button, a cancellation to carry out to select button at the beginning.
4. as the method for testing as described in the claim 3, it is characterized in that: also include a test result viewing area on this operation menu picture.
5. method of testing as claimed in claim 1 or 2, it is characterized in that: the power supply status test event in the step (a) includes the test of holding state, in this holding state, the power supply of this computer apparatus is any at least one device to the monitor of this computer apparatus, disc driver, central processing unit, internal memory, fan, the high-speed cache of stopping power supply.
6. method of testing as claimed in claim 1 or 2, it is characterized in that: the power supply status test event in the step (a) includes the test of dormant state, in this dormant state, the power supply of this computer apparatus stop power supply all devices and assembly to computer apparatus, but the data and the program execution state of being opened before with power-off before the power-off of this computer apparatus are stored.
7. method of testing as claimed in claim 1 or 2, it is characterized in that: the power supply status test event in the step (a) includes the test of reopening machine, to test the power up function of this computer apparatus.
8. method of testing as claimed in claim 1 or 2, it is characterized in that: the power supply status test event in the step (a) includes the test of shutdown, to test the shutdown function of this computer apparatus.
9. method of testing as claimed in claim 1 or 2 is characterized in that: also include one in the step (e) and judge whether the step of repeated execution of steps (c) to (d) test.
CNB200310112246XA 2003-11-24 2003-11-24 Power supply status automatic test method for computer apparatus Expired - Lifetime CN1329795C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200310112246XA CN1329795C (en) 2003-11-24 2003-11-24 Power supply status automatic test method for computer apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200310112246XA CN1329795C (en) 2003-11-24 2003-11-24 Power supply status automatic test method for computer apparatus

Publications (2)

Publication Number Publication Date
CN1622005A CN1622005A (en) 2005-06-01
CN1329795C true CN1329795C (en) 2007-08-01

Family

ID=34759657

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200310112246XA Expired - Lifetime CN1329795C (en) 2003-11-24 2003-11-24 Power supply status automatic test method for computer apparatus

Country Status (1)

Country Link
CN (1) CN1329795C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100489794C (en) * 2006-01-21 2009-05-20 鸿富锦精密工业(深圳)有限公司 System and method for detecting time of starting up computer system
TWI358018B (en) 2008-04-02 2012-02-11 Via Tech Inc Method for battery management in a computer system
CN101727167B (en) * 2008-10-21 2011-12-07 英业达股份有限公司 power switching circuit
CN102479127B (en) * 2010-11-30 2013-07-31 英业达股份有限公司 System for performing power supply cycle period test on multiple servers
CN104572366B (en) * 2013-10-18 2019-01-29 神讯电脑(昆山)有限公司 Laptop closes machine suspend mode automatic test approach
CN105607977A (en) * 2015-12-28 2016-05-25 环胜电子(深圳)有限公司 Power state testing system
CN109240864A (en) * 2018-09-06 2019-01-18 郑州云海信息技术有限公司 A kind of AEP memory DC test method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5560023A (en) * 1994-09-07 1996-09-24 International Business Machines Corporation Automatic backup system for advanced power management
US5630142A (en) * 1994-09-07 1997-05-13 International Business Machines Corporation Multifunction power switch and feedback led for suspend systems
US5903765A (en) * 1992-01-02 1999-05-11 Smith Corona/Acer Power management system for a computer
CN1303035A (en) * 1999-10-25 2001-07-11 三星电子株式会社 Power controlling circuit possessing computer system with several power source management state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5903765A (en) * 1992-01-02 1999-05-11 Smith Corona/Acer Power management system for a computer
US5560023A (en) * 1994-09-07 1996-09-24 International Business Machines Corporation Automatic backup system for advanced power management
US5630142A (en) * 1994-09-07 1997-05-13 International Business Machines Corporation Multifunction power switch and feedback led for suspend systems
CN1303035A (en) * 1999-10-25 2001-07-11 三星电子株式会社 Power controlling circuit possessing computer system with several power source management state

Also Published As

Publication number Publication date
CN1622005A (en) 2005-06-01

Similar Documents

Publication Publication Date Title
KR920002754B1 (en) Microcomputer w/power saving function
US6775786B2 (en) Method and apparatus for power mode transition in a multi-thread processor
US7117377B2 (en) Computer apparatus, power supply control method and program for reducing the standby power requirement in a computer supporting a wake-up function
US20040210699A1 (en) Method of operating combination personal data assistant and personal computing device
US20020038328A1 (en) Information processing system and resume processing method used in the system
US20070022309A1 (en) Method and system for power consumption management, and corresponding computer program product
US20040153762A1 (en) Hardware driven state save/restore in a data processing system
CN101470509A (en) Computer system control method, computer system and notebook computer
US20090013171A1 (en) Computer docking system using hardware abstraction
US6895517B2 (en) Method of synchronizing operation frequencies of CPU and system RAM in power management process
CN101739319B (en) Computer device
CN1329795C (en) Power supply status automatic test method for computer apparatus
US7213159B2 (en) Method for testing and verifying power management features of computer system
CN102262550A (en) Computer system and turning-on and turning-off method thereof
CN1391164A (en) On-off test method for motherboard of computer
KR100621095B1 (en) Booting-system and booting-method for initializing peripherals
CN101281416A (en) Method for ensuring system closedown completion
KR101978323B1 (en) An apparatus and method for managing a efficient power supply by using GPIO ports
CN101923503B (en) Method for regulating internal parameters of internal storage and computer system using same
CN101872233B (en) Automatic on-off schedule control method and system thereof
CN101980103A (en) Power state management method and related computer system
TW594471B (en) Automatic testing method of power status for computer device
CN109002416B (en) Simulator and method for supporting low-power-consumption debugging of chip
CN2570871Y (en) Computer motherboard starting up and shutdown testing arrangement
US8370669B2 (en) Memory device having a memory sleep logic and methods therefor

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
CX01 Expiry of patent term

Granted publication date: 20070801

CX01 Expiry of patent term