CN101256518A - Method and apparatus for preventing host system from power-off illegally due to misoperation - Google Patents

Method and apparatus for preventing host system from power-off illegally due to misoperation Download PDF

Info

Publication number
CN101256518A
CN101256518A CN 200810066464 CN200810066464A CN101256518A CN 101256518 A CN101256518 A CN 101256518A CN 200810066464 CN200810066464 CN 200810066464 CN 200810066464 A CN200810066464 A CN 200810066464A CN 101256518 A CN101256518 A CN 101256518A
Authority
CN
China
Prior art keywords
circuit
output
host computer
computer system
input
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.)
Pending
Application number
CN 200810066464
Other languages
Chinese (zh)
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.)
SHENZHEN NORCO INTELLIGENT TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN NORCO INTELLIGENT TECHNOLOGY Co Ltd
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 SHENZHEN NORCO INTELLIGENT TECHNOLOGY Co Ltd filed Critical SHENZHEN NORCO INTELLIGENT TECHNOLOGY Co Ltd
Priority to CN 200810066464 priority Critical patent/CN101256518A/en
Publication of CN101256518A publication Critical patent/CN101256518A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention discloses a method which is capable of software configuration and prevents from illegal power off caused by misoperation. The method comprises a hardware part and a software part. The hardware part comprises a power supply, a relay circuit for controlling host system electron switch and a logic judge circuit; the software part utilizes the GPIO software programmable output function of host machine SuperIO. The method comprises the following steps: (1) unlocking IO address space of I/O chip and entering extended functions mode; (2) selecting the number of logic equipment; (3) setting the designated pin function as input and output function; (4) defining the set and designated GPIO Pin function as input; (5) setting designated GPIO Pin output state, and forbidding or starting the circuit; (6) exiting the extended functions mode. The method of the invention can prevent from misoperation.

Description

A kind ofly prevent that maloperation from causing the method and the device of host computer system power-off illegally
Technical field
The present invention relates to a kind ofly prevent that maloperation from causing the method for main frame power-off illegally, specifically, but is to utilize the control circuit of a kind of prolongation switch key unused time of software setting to prevent that maloperation from causing the main frame power-off illegally.
Technical background
At computer host system and need come with electronic switch in all application of control system power supply, the point that all can need to use an impulse type touches switch and triggers start or shut down event.The shutdown mode of such switch is divided into two states at present: first kind is the shut down event that can make an immediate response behind the trigger switch, can trigger the ACPI event notice system simultaneously and carry out normal shutdown.Second kind is directly shutdown of hardware 4 seconds, promptly pins switch and can not send shutdown command to operating system after 4 seconds and directly cut off the power supply.
First kind is on-off mode the most commonly used, and this shutdown mode can trigger the shut down event reporting system of ACPI and normally close, and can not cause any infringement to system.If but in a single day this kind mode has triggered power switch unintentionally, then may cause system to close automatically, the current work of handling may be stopped by force.
Second kind is pure hardware switch, and this shutdown mode need be pinned power switch just can the Shutdown Hosts power supply after 4 seconds.Can not occur owing to triggering the situation that system that power switch causes closes automatically unintentionally.But this circuit can triggering system shutdown command, can't normally close by reporting system, but directly cut-out is cut off the power supply to main frame.This kind behaviour does and might cause the system crash thing to take place at any time.
Summary of the invention
The purpose that the present invention will solve provides and a kind ofly prevents that maloperation from causing the method and the device of host computer system power-off illegally; it can be in conjunction with the advantage of present two kinds of shutdown modes; satisfy and prevent that maloperation from causing the function of host computer system power-off illegally and protection system; utilize software to realize enabling or forbid this function, strengthened the practicality of this method and the design of hommization.
For solving the problems of the technologies described above, the technical solution used in the present invention is:
A kind ofly prevent that maloperation from causing the device of host computer system power-off illegally, cooperate host computer system to use, wherein: it comprises software module, power switch and control circuit, software module is installed in the host computer system, this control circuit is connected between host computer system electronic switch input end and the power switch, and output terminal directly links to each other with the input end of main frame electronic switch.
Above-mentioned control circuit comprises delay circuit and logic judging circuit, and it embeds BIOS (Basic Input or Output System (BIOS)) by software code or application software sets whether need to enable delay function.
The above-mentioned software module of passing through embeds BIOS (Basic Input or Output System (BIOS)) or application software and sets whether to need to enable delay function be that GPIO (general input and output) output able to programme that utilizes main frame I/O chip cooperates the logical and circuit.
Above-mentioned delay circuit needs the parameter regulation circuit of Closing Switch button time length for can realize shutting down the time.
Above-mentioned delay circuit is integrated circuit 74LS123.
Above-mentioned delay circuit comprises further that also resistance and electric capacity constitute.
The input end of above-mentioned logic judging circuit links to each other with GPIO (general input and output) mouth of host computer system Super IO (super input and output).
Above-mentioned logic judging circuit comprises the logical OR circuit that is used for judging whether into the shutdown behavior of normal running.
Above-mentioned power switch is that the point of impulse type touches switch.
Application prevents that maloperation from causing the method for the device of host computer system power-off illegally, and it mainly may further comprise the steps:
1. with the IO address space release of super input-output device; Enter the expanded function pattern;
2. select logical DOS drives;
3. will specify the pin function setting is general input/output function;
4. set and specify GPIO Pin functional definition to be output;
5. the IO interface with super input-output device links to each other with control circuit;
6. set the GPIO Pin output state of appointment; Forbid or enable this control circuit;
7. withdraw from the step of expanded function pattern.
After adopting said apparatus and method, advantage and effect that the present invention had are: method of the present invention is utilized delay circuit and the switching signal of outside input and the interrelated logics such as demand of software set, judge whether this time shutdown behavior is the normal shutdown behavior, thereby play the effect that prevents maloperation.The logic that powers on involved in the present invention can satisfy the switch control requirement of main flow main frame, can solve the problem that maloperation causes host computer system to shut down and cut off the power supply automatically effectively.But software is enabled or is forbidden and makes the hommization more of this function.
Description of drawings
Fig. 1 is the structural representation of apparatus of the present invention;
Fig. 2 is the delay circuit circuit diagram logical circuitry of apparatus of the present invention;
Fig. 3 is the logic relation picture of the relevant delay circuit of the inventive method with power switch;
Fig. 4 is the logic relation picture of the software setting applying portion of the inventive method;
Fig. 5 enables the logic relation picture that this inventive method under the anti-misoperation shutdown circuit is finally exported PWRBTN# for the software of the inventive method;
Fig. 6 finally exports the logical relation of PWRBTN# for this inventive method under the inventive method software forbidding anti-misoperation shutdown circuit;
Fig. 7 is the compilation identifying code of the inventive method.
Embodiment:
But below in conjunction with accompanying drawing to a kind of software arrangements of the present invention, to prevent that maloperation from causing the method for host computer system power-off illegally to be elaborated as follows:
Input has certain requirement to switching signal at host computer system power switch control section commonly used, all is the safety shutdown that realizes host computer system with an impulse type level as the switching signal of host computer system, this signal can trigger host system software when host computer system was opened shut down event usually.
As shown in Figure 1, a kind ofly prevent that maloperation from causing the device of host computer system power-off illegally, comprise and cooperate host computer system 1 to use, wherein: it comprises software module 2, power switch 3 and control circuit 4, software module 2 is installed in the host computer system 1, this control circuit 4 is connected between host computer system 1 electronic switch input end and the power switch 3, and output terminal directly links to each other with the input end of host computer system 1 electronic switch.
Consult control circuit shown in Figure 2, above-mentioned 4 and comprise delay circuit 41 and logic judging circuit 42, it embeds Basic Input or Output System (BIOS) by software code or application software sets whether need to enable delay function.
The above-mentioned software module of passing through embeds BIOS (Basic Input or Output System (BIOS)) or application software and sets whether to need to enable delay function be that GPIO (general input and output) output able to programme that utilizes main frame I/O chip cooperates the logical and circuit.
Above-mentioned delay circuit needs the parameter regulation circuit of Closing Switch button time length for can realize shutting down the time.
Above-mentioned delay circuit 41 is 74LS 123 integrated circuit 411 and resistance 412 and electric capacity 413 formations for model.
The input end of above-mentioned logic judging circuit 42 links to each other with the general input/output port of host computer system Super IO (super input and output).
Above-mentioned logic judging circuit comprises the logical OR circuit that is used for judging whether into the shutdown behavior of normal running.
Above-mentioned power switch 3 touches switch for the point of impulse type.
The Soft_CRTL signal is Super IO GPIO output among Fig. 2; 5VSB is 5V standby (Standby) voltage, and VCC5 is the standard 5V voltage after host computer system powers on;
Start process: do not have only 5VSB that voltage is arranged before host computer system powers on, be defaulted as+5V, 5V is 0 current potential; When outside input was closed, so be 0 because VCC5 is the output of 0 current potential U1, U2 and Super IO, pulse signal that is equal to outside input of U3 logical OR output triggered host computer system and powers on, starts shooting;
Shutdown process: when outside input SW1 is closed, wait the U1 that coexists (delay circuit) A end (PWR_SW-), U1 Q end (DELAY_OUT) can be according to CEXT﹠amp simultaneously; Rectangle square wave of delay time output that REXT/CEXT RC value is set is that 5s is the upwards rectangle square wave of saltus step of an exportable 5s as setting value; Logic relation picture as shown in Figure 3.
GPIO Pin output that can be by software control main frame Super IO when software need be enabled this function, and be set and be " 1 " (high level); Need forbid this function when software is that the available software control GPIO that crosses is output as " 0 " (low level); The logical relation synoptic diagram is respectively as Enabled Delay Control among Fig. 4 and Disabled Delay Control.
But the complete function that the anti-misoperation of final realization software arrangements causes host computer system to be closed.The logical relation synoptic diagram is respectively shown in Fig. 5 (Enabled Delay Control) and Fig. 6 (Disabled Delay Control).
Fig. 7 is the compilation identifying code of the inventive method.
In actual applications can according to actual conditions adjust switch (SW) when closed the state and the output phase of U1 output terminal or starting-up signal (PWRBTN#) is carried out oppositely (logic NOT) processing satisfies actual requirement.
The above only is a kind of application mode of the inventive method, not in order to limit the inventive method.

Claims (9)

1, a kind ofly prevents that maloperation from causing the device of host computer system power-off illegally, cooperate host computer system to use, it is characterized in that: it comprises software module, power switch and control circuit, software module is installed in the host computer system, this control circuit is connected between host computer system electronic switch input end and the power switch, and output terminal directly links to each other with the input end of main frame electronic switch.
2, install according to claim 1, it is characterized in that: described control circuit comprises delay circuit and logic judging circuit.
3, as device as described in the claim 2, it is characterized in that: described delay circuit needs the parameter regulation circuit of Closing Switch button time length for can realize shutting down the time.
4, as device as described in the claim 2, it is characterized in that: described delay circuit is integrated circuit 74LS123.
5, as device as described in the claim 4, it is characterized in that: described delay circuit comprises further that also resistance and electric capacity constitute.
6, as device as described in the claim 2, it is characterized in that: the input end of described logic judging circuit links to each other with the general input/output port of the super input and output of host computer system.
7, as device as described in the claim 6, it is characterized in that: described logic judging circuit comprises the logical OR circuit that is used for judging whether into the shutdown behavior of normal running.
8, install according to claim 1, it is characterized in that: described power switch is that the point of impulse type touches switch.
9, use aforesaid right and require a kind of of 1~8 described device to prevent that maloperation from causing the method for host computer system power-off illegally, it is characterized in that: it mainly may further comprise the steps:
1. with the IO address space release of Super IO (super input-output device); Enter the expanded function pattern;
2. select logical DOS drives;
3. will specify the pin function setting is GPIO (general input and output) function;
4. set and specify GPIO Pin functional definition to be output;
5. the IO interface with Super IO (super input-output device) links to each other with control circuit;
6. set the GPIO Pin output state of appointment; Forbid or enable this control circuit;
7. withdraw from the step of expanded function pattern.
CN 200810066464 2008-04-08 2008-04-08 Method and apparatus for preventing host system from power-off illegally due to misoperation Pending CN101256518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810066464 CN101256518A (en) 2008-04-08 2008-04-08 Method and apparatus for preventing host system from power-off illegally due to misoperation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810066464 CN101256518A (en) 2008-04-08 2008-04-08 Method and apparatus for preventing host system from power-off illegally due to misoperation

Publications (1)

Publication Number Publication Date
CN101256518A true CN101256518A (en) 2008-09-03

Family

ID=39891360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810066464 Pending CN101256518A (en) 2008-04-08 2008-04-08 Method and apparatus for preventing host system from power-off illegally due to misoperation

Country Status (1)

Country Link
CN (1) CN101256518A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004521A (en) * 2009-08-31 2011-04-06 鸿富锦精密工业(深圳)有限公司 Computer and method for protecting power button of computer
CN102739028A (en) * 2011-03-31 2012-10-17 鸿富锦精密工业(深圳)有限公司 Power management apparatus
CN104680093A (en) * 2015-03-13 2015-06-03 深圳市亿威尔信息技术股份有限公司 Intelligent terminal equipment and method for controlling state of USB (universal serial bus) interface
WO2020135679A1 (en) * 2018-12-27 2020-07-02 北京术锐技术有限公司 Accidental-shutdown-proof switch control apparatus and method for robot-assisted surgical device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004521A (en) * 2009-08-31 2011-04-06 鸿富锦精密工业(深圳)有限公司 Computer and method for protecting power button of computer
CN102739028A (en) * 2011-03-31 2012-10-17 鸿富锦精密工业(深圳)有限公司 Power management apparatus
CN102739028B (en) * 2011-03-31 2015-01-21 鸿富锦精密工业(深圳)有限公司 Power management apparatus
CN104680093A (en) * 2015-03-13 2015-06-03 深圳市亿威尔信息技术股份有限公司 Intelligent terminal equipment and method for controlling state of USB (universal serial bus) interface
CN104680093B (en) * 2015-03-13 2018-01-16 深圳市亿威尔信息技术股份有限公司 A kind of intelligent terminal and its method being controlled to USB interface state
WO2020135679A1 (en) * 2018-12-27 2020-07-02 北京术锐技术有限公司 Accidental-shutdown-proof switch control apparatus and method for robot-assisted surgical device
US11803392B2 (en) 2018-12-27 2023-10-31 Beijing Surgerii Robotics Company Limited Accidental-shutdown-proof switch control apparatus and method for robot-assisted surgical device

Similar Documents

Publication Publication Date Title
CN100419699C (en) Method and device remotely automatic recovering CMOS date with network
CN101673216B (en) Closing application program method and apparatus
CN102750206A (en) Multiple-basic input/ output system (BIOS) circuit and multiple-BIOS switching method
CN111475009B (en) Power consumption reduction circuit of GPU in server and server
CN103218030B (en) Based on power-supply management system and the microserver of multinode microserver
CN103425506A (en) Powering off method, starting up method and communication terminal
US8214674B2 (en) Integrated circuit having a microcontroller unit and methods of controlling the operation mode thereof
WO2018226364A1 (en) Apparatus and methods for reducing clock-ungating induced voltage droop
CN101256518A (en) Method and apparatus for preventing host system from power-off illegally due to misoperation
CN102098385B (en) Terminal shell-based shutdown method and terminal
TW200937182A (en) Power managing method for a multi-microprocessor system
CN109614153A (en) Multi core chip and system
CN107273756B (en) Safety information protection device in F2F decoding chip
CN103890713B (en) Device and method for managing the register information in processing system
CN103810430A (en) Method for controlling electronic equipment and electronic equipment
CN102222486B (en) Display control method and display equipment
CN104166521A (en) Computer with a memory card
CN101286051A (en) Electric power closed-loop control method and system
CN109842401B (en) Latch-up resistant device and CMOS chip
CN110703869A (en) Method and system for controlling plug-pull of NVMe hard disk and related components
CN110109525A (en) A kind of method of long-range control mainboard power-off
CN113789635B (en) Child lock control method, device, clothes treatment equipment and storage medium
CN106527643B (en) A kind of communication equipment and its method for managing power supply
CN115309340A (en) Memory control method, memory controller and electronic equipment
CN104252609A (en) Hot plug protecting method and hot plug protecting device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20080903