CN102193609B - Setting method and electronic device of power lock - Google Patents
Setting method and electronic device of power lock Download PDFInfo
- Publication number
- CN102193609B CN102193609B CN201010145322.7A CN201010145322A CN102193609B CN 102193609 B CN102193609 B CN 102193609B CN 201010145322 A CN201010145322 A CN 201010145322A CN 102193609 B CN102193609 B CN 102193609B
- Authority
- CN
- China
- Prior art keywords
- line lock
- interface
- operating system
- management controller
- baseboard management
- 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
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种电源锁定的设定方法及其电子装置,尤其涉及一种通过基板管理控制器进行设定的电源锁定的设定方法及其电子装置。The invention relates to a method for setting a power lock and an electronic device thereof, in particular to a method for setting a power lock through a baseboard management controller and an electronic device thereof.
背景技术 Background technique
目前一般的服务器大多具备电源按键的锁定功能,以防止服务器开机后,非信息管理系统(Management Information System)人员误触电源按键,而使得服务器在非正常状态下关机,导致正在服务器上进行处理的资料无法保存,或造成服务器中电子组件的损坏。At present, most of the general servers have the lock function of the power button, in order to prevent the non-information management system (Management Information System) personnel from accidentally touching the power button after the server is turned on, so that the server is shut down in an abnormal state, resulting in processing on the server. data cannot be saved, or cause damage to electronic components in the server.
参照图1,其为现有技术的具备电源按键锁定功能的服务器方块示意图。图1中,服务器包含电源按键11、通用型输入输出接口(General Purpose Input/Output,GPIO)12、芯片组南桥(Chipset Southbridge)13、中央处理器(CPU)14及基本输出输入系统(BIOS)15。当电源按键锁定功能被启动时,根据BIOS 15设定GPIO 12的操作模式,使在操作系统的工作环境下,电源按键11被按压时所产生的信号无法通过GPIO 12传送至CPU 14。Referring to FIG. 1 , it is a schematic block diagram of a server with a power button lock function in the prior art. In Fig. 1, the server includes a power button 11, a general purpose input/output interface (General Purpose Input/Output, GPIO) 12, a chipset Southbridge (Chipset Southbridge) 13, a central processing unit (CPU) 14 and a basic input/output system (BIOS) )15. When the power button lock function is activated, the operating mode of the GPIO 12 is set according to the BIOS 15, so that in the working environment of the operating system, the signal generated when the power button 11 is pressed cannot be transmitted to the CPU 14 through the GPIO 12.
当使用者在操作系统的环境下选择关机或休眠等模式时,操作系统会通知BIOS 15,以更改GPIO 12的操作模式,使得服务器关机或休眠后,再次按压电源按键11时,可再次启动服务器。When the user selects a mode such as shutdown or hibernation in the environment of the operating system, the operating system will notify the BIOS 15 to change the operation mode of the GPIO 12, so that after the server is shut down or hibernated, when the power button 11 is pressed again, the server can be restarted .
然而,当服务器在操作的过程中,操作系统在非预期的情况下产生错误,而导致服务器当机时,由于GPIO 12是被设定成禁止通过电源按键11进行关机的操作模式,因此使用者在此时仅能通过拔除服务器的电源插头强制断电关机,而无法通过按压电源按键11来关机。However, when the server is in operation, the operating system generates an error in an unexpected situation, causing the server to crash, because the GPIO 12 is set to an operation mode that prohibits shutting down through the power button 11, the user At this time, only by pulling out the power plug of the server, the server can be powered off forcibly, but cannot be shut down by pressing the power button 11 .
发明内容 Contents of the invention
本发明是为了解决上述问题而提出的,其目的就在于提供一种电源锁定的设定方法及其电子装置,以解决操作系统错误导致当机时,只能以拔除插头的方式来强制断电关机的问题。The present invention is proposed to solve the above problems, and its purpose is to provide a power lock setting method and its electronic device, so as to solve the problem that when the operating system crashes due to an error in the operating system, the power can only be forcibly cut off by pulling out the plug. Shutdown problem.
根据本发明的目的,提出一种电源锁定的设定方法。所述电源锁定的设定方法适用于电子装置,该电子装置包含电源开关、通用型输入输出接口(General Purpose Input/Output,GPIO)、控制单元、逻辑处理单元及处理模块,所述电源控制方法包含下列步骤。首先使用通用型输入输出接口的接脚接收电源开关被按压而产生的触发信号,并将触发信号传送至控制单元,控制单元收到触发信号后便启动电子装置,之后由处理模块执行逻辑处理单元中的开机自我测试(Power-on-self-test)等指令。再由逻辑处理单元判断通用型输入输出接口是否被设定为电源锁定状态。当通用型输入输出接口被设定为电源锁定状态时,则由逻辑处理单元将接脚的电位设定为禁能(Disable)电位。最后使用处理模块加载操作系统,以执行操作系统开机程序。According to the object of the present invention, a method for setting power lock is proposed. The setting method of the power lock is applicable to an electronic device, and the electronic device includes a power switch, a general purpose input/output interface (General Purpose Input/Output, GPIO), a control unit, a logic processing unit and a processing module, and the power control method Contains the following steps. First, use the pins of the general-purpose input and output interface to receive the trigger signal generated by pressing the power switch, and transmit the trigger signal to the control unit. After the control unit receives the trigger signal, it starts the electronic device, and then the processing module executes the logic processing unit. Instructions such as Power-on-self-test in Power-on-self-test. Then the logic processing unit judges whether the general-purpose input and output interface is set to the power lock state. When the general-purpose input and output interface is set to the power lock state, the logic processing unit sets the potential of the pin to a disabled (Disable) potential. Finally, the processing module is used to load the operating system to execute the operating system boot program.
其中,在所述操作系统的工作环境下,当触发信号再次产生时,禁止被传送至控制单元。Wherein, in the working environment of the operating system, when the trigger signal is generated again, the prohibition is transmitted to the control unit.
其中,逻辑处理单元包含基本输出输入系统与基板管理控制器,基本输出输入系统可判断通用型输入输出接口是否被设定为电源锁定状态,当通用型输入输出接口被设定为电源锁定状态时,基本输出输入系统则传送锁定指令至基板管理控制器,使基板管理控制器设定接脚的电位为禁能电位。Wherein, the logic processing unit includes a basic input and output system and a baseboard management controller. , the basic I/O system transmits a lock command to the baseboard management controller, so that the baseboard management controller sets the potential of the pin as a disabled potential.
其中,所述电源锁定的设定方法,还包含提供连网模块以联机至网域中之控制端。当操作系统中断冲突(Hang UP)时,通过连网模块接收控制端所传送的强制关机指令,并由基板管理控制器根据此强制关机指令将接脚的电位设定为致能电位。再利用基板管理控制器使所述电子装置进入关机模式。Wherein, the setting method of the power lock also includes providing a network module to connect to the control terminal in the network domain. When the operating system interrupts conflict (Hang UP), the network module receives the forced shutdown command sent by the control terminal, and the baseboard management controller sets the potential of the pin as the enabling potential according to the forced shutdown command. The baseboard management controller is then used to enable the electronic device to enter a shutdown mode.
此外,本发明还提出一种具电源锁定功能的电子装置,该电子装置包含电源开关、通用型输入输出接口、控制单元、逻辑处理单元及处理模块。电源开关可用以接收触碰动作,以对应产生触发信号。通用型输入输出接口以接脚连接电源开关,以接收所述触发信号。控制单元连接通用型输入输出接口,以通过通用型输入输出接口接收所述触发信号,并启动所述具有电源锁定功能的电子装置。处理模块连接控制单元。逻辑处理单元连接处理模块与通用型输入输出接口,以使处理模块执行所述逻辑处理单元的开机自我测试,并由逻辑处理单元判断通用型输入输出接口是否被设定为电源锁定状态。In addition, the present invention also proposes an electronic device with a power lock function, the electronic device includes a power switch, a general input and output interface, a control unit, a logic processing unit and a processing module. The power switch can be used to receive a touch action to correspondingly generate a trigger signal. The general-purpose input and output interface is connected to the power switch through pins to receive the trigger signal. The control unit is connected to the universal input and output interface, so as to receive the trigger signal through the universal input and output interface, and start the electronic device with power locking function. The processing module is connected to the control unit. The logical processing unit is connected to the processing module and the general-purpose input and output interface, so that the processing module executes the boot self-test of the logical processing unit, and the logical processing unit determines whether the general-purpose input and output interface is set to a power lock state.
其中,处理模块执行开机自我测试后,加载操作系统,并执行操作系统开机程序。Wherein, the processing module loads the operating system after performing the boot self-test, and executes the booting program of the operating system.
其中,当逻辑处理单元判断通用型输入输出接口被设定为电源锁定状态时,逻辑处理单元则将接脚的电位设定为禁能电位,以在操作系统的工作环境下,且触发信号再次产生时,禁止由通用型输入输出接口传送至控制单元。Wherein, when the logic processing unit judges that the general-purpose input and output interface is set to the power lock state, the logic processing unit sets the potential of the pin as a disabled potential, so that in the working environment of the operating system, and the trigger signal again When generated, the prohibition is transmitted to the control unit through the general-purpose input and output interface.
其中,逻辑处理单元包含基本输出输入系统与基板管理控制器,基本输出输入系统可判断通用型输入输出接口是否被设定为电源锁定状态,当通用型输入输出接口被设定为电源锁定状态时,基本输出输入系统则传送锁定指令至基板管理控制器,使基板管理控制器设定接脚的电位为禁能电位。Wherein, the logic processing unit includes a basic input and output system and a baseboard management controller. , the basic I/O system transmits a lock command to the baseboard management controller, so that the baseboard management controller sets the potential of the pin as a disabled potential.
其中,所述具有电源锁定功能的电子装置还包含连网模块连接于基板管理控制器以联机至网域中的控制端,当操作系统中断冲突时,基板管理控制器通过连网模块接收控制端所传送的强制关机指令,并根据强制关机指令,将接脚的电位设定为致能电位,并使具电源锁定功能的电子装置进入关机模式。Wherein, the electronic device with power lock function also includes a network module connected to the baseboard management controller to connect to the control terminal in the network domain. When the operating system interrupts conflict, the baseboard management controller receives the control terminal through the network module. The transmitted forced shutdown command, according to the forced shutdown command, sets the potential of the pin as the enable potential, and makes the electronic device with the power lock function enter the shutdown mode.
综上所述,根据本发明的一种电源锁定的设定方法及其电子装置,其可具有下述优点:To sum up, according to a method for setting power lock and its electronic device of the present invention, it can have the following advantages:
所述电源锁定的设定方法及其电子装置可由逻辑处理单元设定通用型输入输出接口,藉此以解决当操作系统中断冲突时,无法将电源锁定功能解除的问题。The method for setting the power lock and its electronic device can set the general-purpose input and output interfaces by the logic processing unit, so as to solve the problem that the power lock function cannot be released when the operating system interrupts conflicts.
附图说明 Description of drawings
图1为现有技术的具电源按键锁定功能的服务器方块示意图;FIG. 1 is a schematic block diagram of a server with a power key lock function in the prior art;
图2为本发明的具有电源锁定功能的电子装置的第一实施例方块图;Fig. 2 is the block diagram of the first embodiment of the electronic device with power lock function of the present invention;
图3为本发明的具有电源锁定功能的电子装置的第二实施例方块图;Fig. 3 is the block diagram of the second embodiment of the electronic device with power lock function of the present invention;
图4为本发明的具电源锁定功能的电子装置的第三实施例方块图;4 is a block diagram of a third embodiment of an electronic device with a power lock function of the present invention;
图5为本发明的电源锁定的设定方法的流程图;FIG. 5 is a flow chart of the method for setting the power lock of the present invention;
图6为图5的电源锁定的设定方法的第一实施例流程图;以及FIG. 6 is a flow chart of the first embodiment of the method for setting the power lock in FIG. 5; and
图7为图5的电源锁定的设定方法的第二实施例流程图。FIG. 7 is a flow chart of a second embodiment of the setting method of the power lock shown in FIG. 5 .
主要符号说明:11为电源按键;12为通用型输入输出接口;13为芯片组南桥;14为中央处理器;15为基本输出输入系统;2为具电源锁定功能的电子装置;21为电源开关;211为触发信号;22为通用型输入输出接口;221为接脚;23为控制单元;231为芯片组南桥;24为处理模块;241为省电模式信号或关机模式信号;25为逻辑处理单元;251为基本输出输入系统;252为基板管理控制器;253为锁定指令;254为解除锁定指令;26为连网模块;27为控制端;271为强制关机指令;A41~A44为步骤;B11~B17为步骤;以及B21~B27为步骤。Explanation of main symbols: 11 is a power button; 12 is a general-purpose input and output interface; 13 is a chipset south bridge; 14 is a central processing unit; 15 is a basic input and output system; 2 is an electronic device with a power lock function; 21 is a power supply 211 is a trigger signal; 22 is a general-purpose input and output interface; 221 is a pin; 23 is a control unit; 231 is a chipset south bridge; 24 is a processing module; 241 is a power-saving mode signal or a shutdown mode signal; 25 is Logic processing unit; 251 is the basic input and output system; 252 is the base board management controller; 253 is the locking command; 254 is the unlocking command; 26 is the networking module; 27 is the control terminal; steps; B11 to B17 are steps; and B21 to B27 are steps.
具体实施方式 Detailed ways
参照图2,其为本发明的具电源锁定功能的电子装置的第一实施例方块图。图2中,所述具电源锁定功能的电子装置2包含电源开关21、通用型输入输出接口(General Purpose Input/Output,GPIO)22、控制单元23、处理模块24及逻辑处理单元25。Referring to FIG. 2 , it is a block diagram of the first embodiment of the electronic device with power lock function of the present invention. In FIG. 2 , the electronic device 2 with power lock function includes a power switch 21, a general purpose input/output interface (General Purpose Input/Output, GPIO) 22, a control unit 23, a processing module 24 and a
当使用者在电源开关21上施压一个触碰动作时,电源开关21会对应产生一个触发信号211。GPIO 22以接脚(Pin)221连接电源开关21,以接收所述触发信号211,并传送该触发信号211至控制单元23,以使控制单元23启动所述具电源锁定功能的电子装置2。再由处理模块24执行逻辑处理单元25中开机自我测试(Power-on-self-test,POST)等指令后加载操作系统,以进行操作系统开机程序。When the user presses a touch action on the power switch 21 , the power switch 21 will correspondingly generate a trigger signal 211 . The GPIO 22 is connected to the power switch 21 through a pin (Pin) 221 to receive the trigger signal 211, and transmit the trigger signal 211 to the control unit 23, so that the control unit 23 activates the electronic device 2 with power lock function. Then, the processing module 24 executes instructions such as power-on-self-test (POST) in the
此外,逻辑处理单元25还可侦测GPIO 22的设定状态,当逻辑处理单元25判断GPIO 22被设定为电源锁定状态时,逻辑处理单元25可将接脚221的电位设定为禁能电位,让电源开关21与控制单元23间的路径变成开回路,以使本发明的具电源锁定功能的电子装置2在操作系统的工作环境下,防止使用者不小心误触电源开关21所产生的触发信号211通过GPIO 22传送至控制单元23。所述禁能电位的电压值优选为高于预设导通的电压值。In addition, the
所述控制单元23优选为芯片组南桥、芯片组北桥或内嵌式控制器(Embedded Controller,EC)。The control unit 23 is preferably a chipset south bridge, a chipset north bridge or an embedded controller (Embedded Controller, EC).
参照图3,其为本发明的具电源锁定功能的电子装置的第二实施例方块图。与第一实施例相较,其差异在于第二实施例的逻辑处理单元25还包含基本输出输入系统(BIOS)251与基板管理控制器(Baseboard Management Controller,BMC)252。另外,以芯片组南桥231取代控制单元23。其余部分都相同,就不在此详述。Referring to FIG. 3 , it is a block diagram of the second embodiment of the electronic device with power lock function of the present invention. Compared with the first embodiment, the difference is that the
BIOS 251可用以判断GPIO 22是否被设定为电源锁定状态。当BIOS251判断GPIO 22被设定为电源锁定状态时,BIOS 251可传送一个锁定指令253给BMC 252,使BMC 252进行设定电位的动作。The BIOS 251 can be used to determine whether the GPIO 22 is set to a power lock state. When the BIOS 251 judges that the GPIO 22 is set to the power lock state, the BIOS 251 can send a lock command 253 to the BMC 252 to make the BMC 252 perform the action of setting the potential.
此外,所述BMC 252本身也会执行一个内嵌式操作系统,且所述内嵌式操作系统是与处理模块24所执行的操作系统是分别独立运行的系统。内嵌式操作系统优选为如Linux此类较稳定的操作系统,以让BMC 252收集及侦测具有电源锁定功能的电子装置2的各种系统健康与系统状态信息,当有严重事件产生时可以进行纠正动作。所述系统健康信息可为如各种系统电压、温度与风扇速度等。而处理模块24所加载的操作系统通常为Windows此类具有使用者友善界面的操作系统,以提高使用的便利性。In addition, the BMC 252 itself also executes an embedded operating system, and the embedded operating system is a system that operates independently of the operating system executed by the processing module 24. The embedded operating system is preferably a relatively stable operating system such as Linux, so that the BMC 252 can collect and detect various system health and system status information of the electronic device 2 with the power lock function, and when a serious event occurs, it can Take corrective action. The system health information can be, for example, various system voltages, temperatures, and fan speeds. The operating system loaded by the processing module 24 is usually an operating system with a user-friendly interface such as Windows, so as to improve the convenience of use.
另外,当使用者在操作系统的工作环境下,选择进入省电模式或关机模式时,处理模块24会传送省电模式信号或关机模式信号241给BIOS 251,而BIOS 251会据此传送一个解除锁定指令254给BMC 252,让BMC 252将接脚221的电位设定为致能电位,进而使电源开关21与芯片组南桥231之间的路径导通。当本发明的具有电源锁定功能的电子装置2进入省电模式或关机模式后,可由按压电源开关21再次启动。其中,所述致能电位的电压值优选为接脚221预设导通的电压值,所述省电模式可为进阶组态与电源接口(Advanced Configuration and Power Interface,ACPI)的S1或S4状态,而关机模式可为ACPI的S5状态。In addition, when the user chooses to enter the power saving mode or the shutdown mode in the working environment of the operating system, the processing module 24 will send the power saving mode signal or the
参照图4,其为本发明的具有电源锁定功能的电子装置的第三实施例方块图。与第二实施例相较,其差异在于第三实施例的具有电源锁定功能的电子装置2还包含一个连网模块26与BMC 252相连接,由此可与网域中的控制端27建立一个沟通管道。当在操作系统工作的环境下,由于意外事件或软件故障引起的操作系统和应用程序死锁(Deadlock)所导致的操作系统中断冲突(Hang UP)时,由于此时操作系统已经没有响应,信息管理系统人员可由控制端传送强制关机指令271至BMC 252,让BMC 252据此将接脚221的电位设定回致能电位,以使强制关机后的具有电源锁定功能的电子装置2可经由按压电源开关21后再次启动,且BMC 252也会让所述具有电源锁定功能的电子装置2进入关机状态。Referring to FIG. 4 , it is a block diagram of a third embodiment of the electronic device with power lock function of the present invention. Compared with the second embodiment, the difference is that the electronic device 2 with the power lock function of the third embodiment also includes a networking module 26 connected to the BMC 252, thereby establishing a network connection with the control terminal 27 in the network domain. communication channels. When the operating system is working in an operating system environment, due to unexpected events or software failures caused by operating system and application program deadlock (Deadlock) caused by the operating system interrupt conflict (Hang UP), because the operating system has not responded at this time, the message The management system personnel can send the forced shutdown command 271 to the BMC 252 from the control terminal, so that the BMC 252 can set the potential of the pin 221 back to the enabling potential, so that the electronic device 2 with the power lock function after the forced shutdown can be pressed Start again after the power switch 21, and the BMC 252 will also allow the electronic device 2 with the power lock function to enter the shutdown state.
此外,在操作系统中断冲突时,除了由控制端27控制强制关机外,另外也可由BMC 252中独立作业的看门狗定时器(Watchdog Timer)来侦测操作系统的工作状况,多种软件组件如BIOS、操作系统、应用程序或诊断软件引起的系统死锁,当看门狗定时器产生超时,BMC 252可以被设定成自动重启系统,且同时将电源锁定状态解除,并将死锁情况通过连网模块26报告给控制端27。其余部分都与第二实施例相同,就不在此详述。In addition, when the operating system interrupts conflicts, in addition to the forced shutdown controlled by the control terminal 27, the working status of the operating system can also be detected by the independent watchdog timer (Watchdog Timer) in the BMC 252. Various software components For example, system deadlock caused by BIOS, operating system, application program or diagnostic software, when the watchdog timer times out, BMC 252 can be set to automatically restart the system, and at the same time release the power lock state, and the deadlock situation Report to the control terminal 27 through the networking module 26. The rest are the same as the second embodiment, and will not be described in detail here.
需要注意,当本发明的具有电源锁定功能的电子装置2的电源线从离开市电供电端的状态(即ACPI的G3状态)到插上插头(即ACPI的S5状态)时,GPIO 22的接脚221应当是处与预设导通状态,如此使用者方得以按压电源开关21以启动本发明的具有电源锁定功能的电子装置2。It should be noted that when the power cord of the electronic device 2 with the power supply locking function of the present invention is from the state of leaving the mains power supply terminal (i.e. the G3 state of ACPI) to plugging in the plug (i.e. the S5 state of ACPI), the pin of GPIO 22 221 should be in a preset conduction state, so that the user can press the power switch 21 to activate the electronic device 2 with power lock function of the present invention.
尽管前述实施例已同时说明本发明的电源锁定的设定方法,但为使本领域技术人员能更加清楚明了,以下将再另外绘示流程图并搭配说明。Although the foregoing embodiments have simultaneously described the power lock setting method of the present invention, in order to make it clearer for those skilled in the art, a flow chart will be drawn and explained below.
参照图5,其为本发明的电源锁定的设定方法的流程图。所述电源锁定的设定方法设用于电子装置,该电子装置包含电源开关、GPIO、BIOS、芯片组南桥、处理模块及BMC。图5中,所述电源锁定的设定方法包含下列步骤:Referring to FIG. 5 , it is a flow chart of the method for setting the power lock of the present invention. The method for setting the power lock is applied to an electronic device, and the electronic device includes a power switch, GPIO, BIOS, chipset south bridge, processing module and BMC. In Fig. 5, the setting method of described power supply lock comprises the following steps:
在步骤A41中,使用GPIO的接脚接收电源开关被按压而产生的触发信号,并传送该触发信号至芯片组南桥,由芯片组南桥启动所述电子装置,并使处理模块执行BIOS的开机自我测试指令。In step A41, use the GPIO pin to receive the trigger signal generated by pressing the power switch, and transmit the trigger signal to the chipset south bridge, and the chipset south bridge starts the electronic device, and makes the processing module execute the BIOS POST command.
在步骤A42中,判断GPIO是否被设定为电源锁定状态,若是则进行步骤A43,若否则进行步骤A44。In step A42, it is judged whether the GPIO is set to the power lock state, if yes, proceed to step A43, otherwise, proceed to step A44.
在步骤A43中,根据BIOS传送锁定指令至BMC,使BMC将接脚的电位设定为禁能(Disable)电位。In step A43, the BIOS transmits a locking command to the BMC, so that the BMC sets the potential of the pin to a disabled (Disable) potential.
在步骤A44中,使用处理模块加载操作系统,以执行操作系统开机程序,并进行步骤B。In step A44, use the processing module to load the operating system to execute the booting procedure of the operating system, and proceed to step B.
参照图6,其为图5的电源锁定的设定方法的第一实施例流程图。Referring to FIG. 6 , it is a flow chart of the first embodiment of the method for setting the power lock in FIG. 5 .
在步骤B11中,在操作系统的工作环境下选择进入省电模式或关机模式。In step B11, choose to enter power saving mode or shutdown mode under the working environment of the operating system.
在步骤B12中,利用处理模块传送省电模式信号或关机模式信号给BIOS。In step B12, the processing module transmits the power saving mode signal or the shutdown mode signal to the BIOS.
在步骤B13中,由BIOS传送解除锁定指令至BMC。In step B13, the BIOS sends an unlock command to the BMC.
在步骤B14中,利用BMC将接脚的电位设定成致能电位。In step B14 , the BMC is used to set the potential of the pin to the enabling potential.
在步骤B15中,进入省电模式或关机模式。In step B15, enter the power saving mode or shutdown mode.
在步骤B16中,由芯片组南桥侦测是否接收到触发信号,当接收到的时候进行步骤B17,若否则持续侦测。In step B16, the south bridge of the chipset detects whether the trigger signal is received, and if so, proceeds to step B17, otherwise, continues the detection.
在步骤B17中,重新启动电子装置。In step B17, restart the electronic device.
参照图7,其为图5的电源锁定的设定方法的第二实施例流程图。Referring to FIG. 7 , it is a flow chart of the second embodiment of the method for setting the power lock in FIG. 5 .
在步骤B21中,提供连网模块以联机至网域中的控制端。In step B21, a networking module is provided to connect to the control terminal in the network domain.
在步骤B22中,侦测操作系统是否处于中断冲突状态,若是则进行步骤B23,若否,则持续侦测。In step B22, it is detected whether the operating system is in interrupt conflict state, if yes, proceed to step B23, if not, continue detection.
在步骤B23中,由控制端通过连网模块传送强制关机指令至BMC。In step B23, the control end transmits a forced shutdown command to the BMC through the networking module.
在步骤B24中,使用BMC将接脚的电位设定成致能电位。In step B24 , the BMC is used to set the potential of the pin to enable potential.
在步骤B25中,利用BMC使电子装置进入关机状态。In step B25, the electronic device is turned off by using the BMC.
在步骤B26中,由芯片组南桥侦测是否接收到触发信号,当接收到的时候进行步骤B27,若否,则持续侦测。In step B26, the south bridge of the chipset detects whether the trigger signal is received, and if so, proceeds to step B27, and if not, continues the detection.
在步骤B27中,重新启动电子装置。In step B27, restart the electronic device.
根据上述步骤,可由控制端所传送的强制关机指令远程操控电子装置进入关机状态,而不需要将电子装置的插头拔除,以防电子装置中的各种电子组件损坏。According to the above steps, the electronic device can be remotely controlled to enter the shutdown state by the forced shutdown command transmitted from the control terminal without unplugging the electronic device to prevent damage to various electronic components in the electronic device.
以上所述仅为举例性,而不是限制性的。任何未脱离本发明的精神与范畴,而对其进行的等效修改或变更,均应包含于本发明的权利要求范围之中。The above description is only illustrative, not limiting. Any equivalent modification or change made without departing from the spirit and scope of the present invention shall be included in the scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010145322.7A CN102193609B (en) | 2010-03-19 | 2010-03-19 | Setting method and electronic device of power lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010145322.7A CN102193609B (en) | 2010-03-19 | 2010-03-19 | Setting method and electronic device of power lock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102193609A CN102193609A (en) | 2011-09-21 |
CN102193609B true CN102193609B (en) | 2014-04-02 |
Family
ID=44601795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010145322.7A Expired - Fee Related CN102193609B (en) | 2010-03-19 | 2010-03-19 | Setting method and electronic device of power lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102193609B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170245B (en) * | 2018-01-25 | 2022-04-29 | 郑州云海信息技术有限公司 | Control system and method for physical key operation of server and server management system |
CN111142646B (en) * | 2018-11-02 | 2023-11-07 | 佛山市顺德区顺达电脑厂有限公司 | Server system and power saving method thereof |
US20230055278A1 (en) * | 2020-03-09 | 2023-02-23 | Hewlett-Packard Development Company, L.P. | Power controls of computing devices |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2327152A (en) * | 1997-05-30 | 1999-01-13 | Daewoo Electronics Co Ltd | Device for automatically locking a power button in a computer |
US5886426A (en) * | 1996-09-25 | 1999-03-23 | Samsung Electronics Co., Ltd. | Power switch locking device |
US5918059A (en) * | 1997-08-15 | 1999-06-29 | Compaq Computer Corporation | Method and apparatus for responding to actuation of a power supply switch for a computing system |
CN1787314A (en) * | 2005-11-23 | 2006-06-14 | 杭州华为三康技术有限公司 | Apparatus and method for protecting electric source |
CN101216724A (en) * | 2007-01-04 | 2008-07-09 | 盛群半导体股份有限公司 | Improved microcontroller resetting method |
-
2010
- 2010-03-19 CN CN201010145322.7A patent/CN102193609B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5886426A (en) * | 1996-09-25 | 1999-03-23 | Samsung Electronics Co., Ltd. | Power switch locking device |
GB2327152A (en) * | 1997-05-30 | 1999-01-13 | Daewoo Electronics Co Ltd | Device for automatically locking a power button in a computer |
US5918059A (en) * | 1997-08-15 | 1999-06-29 | Compaq Computer Corporation | Method and apparatus for responding to actuation of a power supply switch for a computing system |
CN1787314A (en) * | 2005-11-23 | 2006-06-14 | 杭州华为三康技术有限公司 | Apparatus and method for protecting electric source |
CN101216724A (en) * | 2007-01-04 | 2008-07-09 | 盛群半导体股份有限公司 | Improved microcontroller resetting method |
Also Published As
Publication number | Publication date |
---|---|
CN102193609A (en) | 2011-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI436588B (en) | Power lock setting method and electronic device thereof | |
CN105807848B (en) | Touch industrial personal computer | |
CN113609051A (en) | Hot plug method, system, device and computer storage medium for expansion board | |
CN111857322B (en) | Method and device for reducing standby power consumption of washing machine, washing machine and related equipment | |
CN106055440B (en) | A kind of test method and system for realizing server exception power-off by BMC | |
CN100378617C (en) | Network awakening device and method | |
CN110098965A (en) | A kind of server management system and method | |
TW515995B (en) | Method allowing to configure computer system as wake on LAN | |
TW201321949A (en) | Power control method during booting and system thereof | |
TWI693513B (en) | Server system and power saving method thereof | |
CN102193609B (en) | Setting method and electronic device of power lock | |
CN102467427A (en) | Method for entering basic output and input system setting | |
CN101281416A (en) | Method for ensuring system shutdown completion | |
CN103135728B (en) | Power start control method and system thereof | |
CN107077343B (en) | Ignoring input in wake-on-LAN boot | |
CN116028123B (en) | A server safety power on/off method and system | |
TWI483124B (en) | Computer system and the method of using the computer system | |
TWI720615B (en) | Computer device and shutdown and reboot controlling method thereof | |
JP6255918B2 (en) | Information processing apparatus, communication control method, and communication control program | |
CN108073481B (en) | Server system capable of providing hardware operation information and processing method thereof | |
TWM598968U (en) | Out-of-band external control equipment and system | |
CN110989814A (en) | A protection method, device and equipment for a server | |
TWI612428B (en) | Integrated circuit, electronic device and operation method thereof | |
US11526203B2 (en) | Method for switching power mode of computer device based on detected and determined system state, computer accessory, and computer system applying the method | |
CN116088658B (en) | Abnormality recovery method for electronic equipment and electronic equipment |
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: 20140402 Termination date: 20170319 |
|
CF01 | Termination of patent right due to non-payment of annual fee |