TWI799126B - Power operating method for electronic apparatus and electronic apparatus - Google Patents

Power operating method for electronic apparatus and electronic apparatus Download PDF

Info

Publication number
TWI799126B
TWI799126B TW111104575A TW111104575A TWI799126B TW I799126 B TWI799126 B TW I799126B TW 111104575 A TW111104575 A TW 111104575A TW 111104575 A TW111104575 A TW 111104575A TW I799126 B TWI799126 B TW I799126B
Authority
TW
Taiwan
Prior art keywords
power
electronic device
power button
controller
state
Prior art date
Application number
TW111104575A
Other languages
Chinese (zh)
Other versions
TW202331462A (en
Inventor
王明偉
林三勝
施俊炫
羅健維
Original Assignee
大陸商環榮電子(惠州)有限公司
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 大陸商環榮電子(惠州)有限公司 filed Critical 大陸商環榮電子(惠州)有限公司
Application granted granted Critical
Publication of TWI799126B publication Critical patent/TWI799126B/en
Publication of TW202331462A publication Critical patent/TW202331462A/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)
  • Direct Current Feeding And Distribution (AREA)
  • Automatic Cycles, And Cycles In General (AREA)
  • Control Of Electric Motors In General (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present disclosure provides a power operating method for an electronic apparatus, which includes an apparatus configuring step, a setting step and a power button operating step. In the apparatus configuring step, a power button controller is connected to the power button and the platform controller hub. In the setting step, the power button function is disabled or enabled. In the power button operating step, as the power button function is disabled, if the electronic device is in a working state and the duration for which the power button is operated is smaller than a threshold value, the power button controller does not send the power on/off signal to the power button pin. If the duration for which the power button is operated is equal to or greater than the threshold value, the power button controller sends the forced shutdown signal to the thermal trip pin to force quit the electronic device. Therefore, power off of the electronic device caused by miss operation of the power button can be prevented, and meanwhile the forced shutdown function caused by pressing the power button for a long time can be remained.

Description

電子設備電源操作方法及電子設備Electronic device power supply operation method and electronic device

本發明是有關一種電子設備電源操作方法及電子設備,且尤其是有關一種可設定電源鍵的電子設備電源操作方法及電子設備。The present invention relates to a method for operating a power source of an electronic device and the electronic device, and in particular relates to a method for operating a power source of the electronic device with a settable power key and the electronic device.

一般而言,電子裝置均包含電源鍵,其用以供使用者操作以讓電子裝置進行開機動作或關機動作,並可進一步透過基本輸入輸出系統來禁能或使能電源鍵。Generally speaking, electronic devices include a power button, which is used for user operation to enable the electronic device to perform a power-on action or shutdown action, and the power key can be further disabled or enabled through the BIOS.

在某些情況下,為了避免誤觸電源鍵導致正處於開機狀態下的電子裝置無預期地關機,使用者會禁能電源鍵,然而,如此會無法使用電源鍵來進行強制關機,而仍有其不便之處。In some cases, in order to avoid accidental shutdown of the electronic device in the power-on state due to accidental touch of the power button, the user will disable the power button. its inconvenience.

有鑑於此,如何在避免使用者誤觸電源鍵造成電子裝置關機的情況下同時保留長按電源鍵進行強制關機的功能,遂成相關業者努力的目標。In view of this, how to keep the function of pressing and holding the power button to shut down the electronic device while preventing the user from accidentally touching the power button to shut down the electronic device has become a goal of the related industry.

依據本發明一實施方式提供一種電子設備電源操作方法,其包含一設備配置步驟、一設定步驟以及一電源鍵操作步驟。於設備配置步驟中,提供一電源鍵控制器及一電子裝置,電子裝置包含一電源鍵及一平台路徑控制器,平台路徑控制器包含一熱跳脫針腳及一電源鍵針腳,其中使電源鍵控制器連接至電源鍵及平台路徑控制器。於設定步驟中,使電子裝置之一基本輸入輸出系統的一電源鍵功能被禁能或使能。於電源鍵操作步驟中,操作電源鍵以控制電子裝置開關機,其中,當電源鍵功能被禁能時,若電子裝置處於一關機狀態,操作電源鍵使電源鍵控制器傳送一開關機訊號至電源鍵針腳讓電子裝置由關機狀態切換至一開機狀態;若電子裝置處於開機狀態,且操作電源鍵的時間小於一閾值,不使電源鍵控制器傳送開關機訊號至電源鍵針腳,而若操作電源鍵的時間等於或大於閾值,使電源鍵控制器傳送一強制關機訊號至熱跳脫針腳讓電子裝置進行一強制關機。According to one embodiment of the present invention, there is provided a method for operating a power supply of an electronic device, which includes a device configuration step, a setting step, and a power key operation step. In the equipment configuration step, a power button controller and an electronic device are provided, the electronic device includes a power button and a platform path controller, the platform path controller includes a thermal trip pin and a power button pin, wherein the power button The controller is connected to the power button and the platform path controller. In the setting step, a power key function of a basic input output system of the electronic device is disabled or enabled. In the power button operation step, operate the power button to control the electronic device to switch on and off, wherein, when the function of the power button is disabled, if the electronic device is in a shutdown state, operate the power button to make the power button controller send a switch signal to The power button pin allows the electronic device to switch from a power-off state to a power-on state; if the electronic device is in the power-on state and the time for operating the power button is less than a threshold value, the power button controller will not send a power-on/off signal to the power button pin, and if the power button is operated The time of the power button is equal to or greater than the threshold value, so that the power button controller sends a forced shutdown signal to the thermal trip pin to make the electronic device perform a forced shutdown.

藉此,可避免在電子裝置處於開機狀態下誤觸電源鍵造成的關機,且同時可保留強制關機的功能,而能達到防呆及使用方便的效果。In this way, the shutdown caused by accidentally touching the power button when the electronic device is turned on can be avoided, and at the same time, the function of forced shutdown can be retained, so as to achieve the effect of foolproof and convenient use.

依據本發明另一實施方式提供一種電子設備,其包含一電子裝置以及一電源鍵控制器。電子裝置包含一電源鍵、一基本輸入輸出系統及一平台路徑控制器。基本輸入輸出系統用以供操作以使能或禁能一電源鍵功能,平台路徑控制器訊號連接基本輸入輸出系統且包含一熱跳脫針腳及一電源鍵針腳。電源鍵控制器訊號連接電源鍵及平台路徑控制器。當基本輸入輸出系統的電源鍵功能被禁能時,若電子裝置處於一關機狀態,操作電源鍵使電源鍵控制器傳送一開關機訊號至電源鍵針腳讓電子裝置由關機狀態切換至一開機狀態;若電子裝置處於開機狀態,且操作電源鍵的時間小於一閾值,不使電源鍵控制器傳送開關機訊號至電源鍵針腳,而若操作電源鍵的時間等於或大於閾值,使電源鍵控制器傳送一強制關機訊號至熱跳脫針腳讓電子裝置進行一強制關機。According to another embodiment of the present invention, an electronic device is provided, which includes an electronic device and a power key controller. The electronic device includes a power button, a basic input output system and a platform path controller. The BIOS is used for operation to enable or disable a power button function, the platform path controller signal is connected to the BIOS and includes a thermal trip pin and a power button pin. The power button controller signal connects the power button and the platform path controller. When the power key function of the basic input and output system is disabled, if the electronic device is in a power-off state, operate the power key to make the power key controller send a power-on/off signal to the pin of the power key to switch the electronic device from the power-off state to a power-on state ; If the electronic device is in the power-on state, and the time of operating the power button is less than a threshold value, the power button controller does not send a power button signal to the power button pin, and if the time of operating the power button is equal to or greater than the threshold value, the power button controller is enabled Sending a forced shutdown signal to the thermal trip pin allows the electronic device to perform a forced shutdown.

請參閱第1圖,其中第1圖繪示依照本發明一實施例之一種電子設備100的方塊架構圖。電子設備100包含一電子裝置120以及一電源鍵控制器110。電子裝置120包含一電源鍵122、一基本輸入輸出系統(Basic Input/Output System;BIOS)121及一平台路徑控制器(Platform Controller Hub;PCH)123。基本輸入輸出系統121用以供操作以使能(enable)或禁能(disable)對應電源鍵122的一電源鍵功能,平台路徑控制器123訊號連接基本輸入輸出系統121且包含一熱跳脫針腳(THERMTRIP)1231及一電源鍵針腳(PWRBTN)1232。電源鍵控制器110訊號連接電源鍵122及平台路徑控制器123。Please refer to FIG. 1 , wherein FIG. 1 shows a block diagram of an electronic device 100 according to an embodiment of the present invention. The electronic device 100 includes an electronic device 120 and a power button controller 110 . The electronic device 120 includes a power button 122 , a Basic Input/Output System (BIOS) 121 and a Platform Controller Hub (PCH) 123 . The BIOS 121 is used for operation to enable (enable) or disable (disable) a power button function corresponding to the power button 122, and the platform path controller 123 is signally connected to the BIOS 121 and includes a thermal tripping pin (THERMTRIP) 1231 and a power button pin (PWRBTN) 1232 . The power button controller 110 is signally connected to the power button 122 and the platform path controller 123 .

其中,當基本輸入輸出系統121的電源鍵功能被禁能時,若電子裝置120處於一關機狀態,操作電源鍵122使電源鍵控制器110傳送一開關機訊號135至電源鍵針腳1232讓電子裝置120由關機狀態切換至一開機狀態;若電子裝置120處於開機狀態,且操作電源鍵122的時間小於一閾值(此時可稱短按電源鍵122),不使電源鍵控制器110傳送開關機訊號135至電源鍵針腳1232,而若操作電源鍵122的時間等於或大於閾值(此時可稱長按電源鍵122),使電源鍵控制器110傳送一強制關機訊號134至熱跳脫針腳1231讓電子裝置120進行一強制關機。Wherein, when the power button function of the basic input and output system 121 is disabled, if the electronic device 120 is in a power-off state, the power button 122 is operated to make the power button controller 110 send a power button signal 135 to the power button pin 1232 to allow the electronic device 120 is switched from a power-off state to a power-on state; if the electronic device 120 is in the power-on state, and the time for operating the power key 122 is less than a threshold (at this time, it can be called a short press of the power key 122), the power key controller 110 is not sent to switch on and off. Signal 135 to the power key pin 1232, and if the time of operating the power key 122 is equal to or greater than the threshold value (at this time, it can be called a long press of the power key 122), the power key controller 110 sends a forced shutdown signal 134 to the thermal trip pin 1231 Let the electronic device 120 perform a forced shutdown.

藉此,可避免在電子裝置120處於開機狀態下誤觸電源鍵122造成的關機,且同時可保留強制關機的功能,而能達到防呆及使用方便的效果。In this way, the shutdown caused by accidentally touching the power button 122 when the electronic device 120 is turned on can be avoided, and at the same time, the function of forced shutdown can be retained, so as to achieve the effect of foolproof and convenient use.

電子裝置120可例如為服務式端點銷售裝置(post of sale或post of server),電源鍵122可具有按鍵型式而可被按壓操作。使用者可透過串列週邊介面(Serial Peripheral Interface;SPI)由基本輸入輸出系統菜單(BIOS menu)設定基本輸入輸出系統121,而可讓對應電源鍵122的電源鍵功能被禁能或使能。電源鍵控制器110可例如為一嵌入式控制器(Embedded Controller;EC),其可透過平台路徑控制器123所傳送之增強串列週邊介面訊號(Enhanced Serial Peripheral Interface;eSPI)131得知目前電源鍵功能的使能或禁能狀態,而在電源鍵122被操作時做對應的處理。The electronic device 120 can be, for example, a service-type point-of-sale device (post of sale or post of server), and the power button 122 can have a button type and can be pressed for operation. The user can configure the BIOS 121 from the BIOS menu through the Serial Peripheral Interface (SPI), so as to disable or enable the function of the power button corresponding to the power button 122 . The power button controller 110 can be, for example, an embedded controller (Embedded Controller; EC), which can know the current power supply through the enhanced serial peripheral interface signal (Enhanced Serial Peripheral Interface; eSPI) 131 sent by the platform path controller 123 The enabling or disabling state of the key function, and corresponding processing is performed when the power key 122 is operated.

一般而言,在未額外設置電源鍵控制器110前,若電源鍵功能被使能,則電源鍵122被按壓後所產生的訊號可被傳至平台路徑控制器123的電源鍵針腳1232,而能使電子裝置120切換開機狀態、關機狀態或強制關機;反之,若電源鍵功能被禁能,則按壓電源鍵122並不會傳送訊號至電源鍵針腳1232,亦不會造成電子裝置120的狀態改變。而在本發明第1圖的實施例中,因為在電源鍵122及平台路徑控制器123之間額外連接電源鍵控制器110,故當電源鍵功能被禁能時,會由電源鍵控制器110依電子裝置120的狀態確認是否要傳送開關機訊號135至電源鍵針腳1232,或是傳送強制關機訊號134至熱跳脫針腳1231,而電源鍵控制器110可依SLP_S3訊號132及SLP_S5訊號133得知電子裝置120當前是處於開機狀態或關機狀態。在其他實施例中,電源鍵控制器可包含複數輸入針腳、複數邏輯電路及複數輸出針腳,輸入針腳接收電位的輸入,邏輯電路例如比較器等,透過電位之高低比較可判斷電源鍵功能是否被禁能或被使能,以及知道電子裝置的狀態,而輸出針腳則可依對應之比較結果或判斷結果輸出高位或低位電壓,不以上述揭露為限。Generally speaking, before the power button controller 110 is additionally provided, if the power button function is enabled, the signal generated after the power button 122 is pressed can be transmitted to the power button pin 1232 of the platform path controller 123, and It can make the electronic device 120 switch the power-on state, power-off state or forced shutdown; on the contrary, if the power button function is disabled, pressing the power button 122 will not send a signal to the power button pin 1232, nor will it cause the state of the electronic device 120 Change. In the embodiment of the present invention in Fig. 1, because the power button controller 110 is additionally connected between the power button 122 and the platform path controller 123, when the power button function is disabled, the power button controller 110 will According to the state of the electronic device 120, it is confirmed whether to send the switch signal 135 to the power button pin 1232, or to send the forced shutdown signal 134 to the thermal trip pin 1231, and the power button controller 110 can be obtained according to the SLP_S3 signal 132 and the SLP_S5 signal 133. It is known whether the electronic device 120 is currently in the power-on state or in the power-off state. In other embodiments, the power button controller may include multiple input pins, multiple logic circuits, and multiple output pins. The input pins receive potential input, and logic circuits such as comparators can determine whether the power key function is activated by comparing the potentials. Disable or enable, and know the state of the electronic device, and the output pin can output high or low voltage according to the corresponding comparison result or judgment result, not limited to the above disclosure.

在電性連接上,是讓電源鍵控制器110電性連接至熱跳脫針腳1231及電源鍵針腳1232,並依電子裝置120的當前狀態以及電源鍵122被操作的時間來決定訊號的傳輸。因此,當電源鍵控制器110判定電子裝置120是處於開機狀態時,只要使用者短按電源鍵122,均不會傳送開關機訊號135給電源鍵針腳1232,如此電子裝置120即不會被關機。反之,若電子裝置120處於開機狀態但使用者欲強制關閉電子裝置120時,可長按電源鍵122,而電源鍵控制器110更包含一計時器111,其用以計算電源鍵122被操作的時間,再以其所計算之時間與閾值比較,以確認是否需傳出強制關機訊號134給熱跳脫針腳1231,若確認電源鍵122被操作的時間等於或大於閾值,便可傳出強制關機訊號134,其中閾值可例如為4秒。In terms of electrical connection, the power button controller 110 is electrically connected to the thermal trip pin 1231 and the power button pin 1232, and the transmission of signals is determined according to the current state of the electronic device 120 and the time when the power button 122 is operated. Therefore, when the power button controller 110 determines that the electronic device 120 is in the power-on state, as long as the user presses the power button 122 for a short time, the switch signal 135 will not be sent to the power button pin 1232, so that the electronic device 120 will not be turned off. . Conversely, if the electronic device 120 is turned on but the user wants to forcibly shut down the electronic device 120, he can press and hold the power button 122, and the power button controller 110 further includes a timer 111, which is used to count the time when the power button 122 is operated. Time, and then compare the calculated time with the threshold to confirm whether the forced shutdown signal 134 needs to be sent to the thermal trip pin 1231. If it is confirmed that the power button 122 is operated for a time equal to or greater than the threshold, a forced shutdown can be sent out Signal 134, wherein the threshold can be, for example, 4 seconds.

在此要特別說明的是,一般而言,在未額外設置電源鍵控制器110前,電源鍵122的訊號均是傳至電源鍵針腳1232,並由平台路徑控制器123計算電源鍵122被操作的時間是否等於或大於4秒,即訊號持續且不中斷的時間等於或大於4秒,如此將進行強制關機的程序。熱跳脫針腳1231可被電子裝置120內的溫度感測器觸發,當溫度過高時,熱跳脫針腳1231收到訊號,並會進行強制關機處理,而此時電子裝置120所進行的關機程序與長按電源鍵122後的關機程序相同,即內部元件關機的時序也相同,故當電源鍵控制器110傳送強制關機訊號134至熱跳脫針腳1231時,可達到相同的強制關機效果。此外,若是改讓電源鍵控制器110傳送強制關機訊號134至電源鍵針腳1232,則平台路徑控制器123需再次計算電源鍵針腳1232上訊號的持續時間,而會產生強制關機的延遲,如此會增加使用上的不便。It should be noted here that, generally speaking, before the power button controller 110 is additionally provided, the signal of the power button 122 is transmitted to the power button pin 1232, and the platform path controller 123 calculates that the power button 122 is operated. Whether the time is equal to or greater than 4 seconds, that is, the continuous and uninterrupted time of the signal is equal to or greater than 4 seconds, so the procedure of forced shutdown will be carried out. The thermal trip pin 1231 can be triggered by the temperature sensor in the electronic device 120. When the temperature is too high, the thermal trip pin 1231 receives a signal and will perform a forced shutdown process. At this time, the shutdown of the electronic device 120 The procedure is the same as the shutdown procedure after pressing the power button 122 for a long time, that is, the timing of internal component shutdown is also the same, so when the power button controller 110 sends the forced shutdown signal 134 to the thermal trip pin 1231, the same forced shutdown effect can be achieved. In addition, if the power button controller 110 is changed to transmit the forced shutdown signal 134 to the power button pin 1232, the platform path controller 123 needs to calculate the duration of the signal on the power button pin 1232 again, and a delay of forced shutdown will be generated. Increase the inconvenience in use.

進一步地,即便額外設置電源鍵控制器110,仍可不影響電源鍵功能被使能時的操作方式。仔細而言,當電源鍵功能被使能時,若電子裝置120處於開機狀態,則電源鍵122被操作時讓電源鍵控制器110觸發電源鍵針腳1232,由平台路徑控制器123計算電源鍵122被操作的時間,若電源鍵122被操作的時間小於閾值,則可讓電子裝置120由開機狀態切換至關機狀態;而若電源鍵122被操作的時間等於或大於閾值,則可讓電子裝置120進行強制關機;若電子裝置120處於關機狀態,操作電源鍵122使電源鍵控制器110傳送開關機訊號135至電源鍵針腳1232讓電子裝置120由關機狀態切換至開機狀態。Further, even if the power key controller 110 is additionally provided, it still does not affect the operation mode when the power key function is enabled. Specifically, when the power key function is enabled, if the electronic device 120 is in the power-on state, the power key controller 110 triggers the power key pin 1232 when the power key 122 is operated, and the platform path controller 123 calculates the power key 122 If the power key 122 is operated for less than the threshold, the electronic device 120 can be switched from the power-on state to the power-off state; and if the power key 122 is operated for a time equal to or greater than the threshold, the electronic device 120 can Perform forced shutdown; if the electronic device 120 is in the off state, operate the power button 122 to make the power button controller 110 send the power button signal 135 to the power button pin 1232 to switch the electronic device 120 from the off state to the on state.

請參閱第2圖,並一併參閱第1圖,其中第2圖繪示依照本發明另一實施例之一種電子設備電源操作方法200的方塊流程圖。電子設備電源操作方法200包含一設備配置步驟201、一設定步驟202以及一電源鍵操作步驟203,以下將搭配電子設備100說明電子設備電源操作方法200的細節。Please refer to FIG. 2 and also refer to FIG. 1 , wherein FIG. 2 shows a block flow chart of a method 200 for operating a power supply of an electronic device according to another embodiment of the present invention. The electronic device power operation method 200 includes a device configuration step 201 , a setting step 202 and a power button operation step 203 . The details of the electronic device power operation method 200 will be described below with the electronic device 100 .

於設備配置步驟201中,提供一電源鍵控制器110及一電子裝置120,電子裝置120包含一電源鍵122及一平台路徑控制器123,平台路徑控制器123包含一熱跳脫針腳1231及一電源鍵針腳1232,其中使電源鍵控制器110連接至電源鍵122及平台路徑控制器123。In the equipment configuration step 201, a power button controller 110 and an electronic device 120 are provided, the electronic device 120 includes a power button 122 and a platform path controller 123, and the platform path controller 123 includes a thermal trip pin 1231 and a The power button pin 1232 connects the power button controller 110 to the power button 122 and the platform path controller 123 .

於設定步驟202中,使電子裝置120之一基本輸入輸出系統121的一電源鍵功能被禁能或使能。In the setting step 202 , a power key function of a BIOS 121 of the electronic device 120 is disabled or enabled.

於電源鍵操作步驟203中,操作電源鍵122以控制電子裝置120開關機,其中,當電源鍵功能被禁能時,若電子裝置120處於一關機狀態,操作電源鍵122使電源鍵控制器110傳送一開關機訊號135至電源鍵針腳1232讓電子裝置120由關機狀態切換至一開機狀態;若電子裝置120處於開機狀態,且操作電源鍵122的時間小於一閾值,不使電源鍵控制器110傳送開關機訊號135至電源鍵針腳1232,而若操作電源鍵122的時間等於或大於閾值,使電源鍵控制器110傳送一強制關機訊號134至熱跳脫針腳1231讓電子裝置120進行一強制關機。In the power key operation step 203, the power key 122 is operated to control the electronic device 120 to switch on and off, wherein, when the power key function is disabled, if the electronic device 120 is in a shutdown state, the power key 122 is operated to make the power key controller 110 Send an on/off signal 135 to the power key pin 1232 to switch the electronic device 120 from the off state to the on state; Send the power switch signal 135 to the power button pin 1232, and if the time of operating the power button 122 is equal to or greater than the threshold value, the power button controller 110 sends a forced shutdown signal 134 to the thermal trip pin 1231 to allow the electronic device 120 to perform a forced shutdown .

具體而言,請參閱第3圖,其中第3圖繪示第2圖實施例之電子設備電源操作方法200的一步驟流程圖。於步驟211中,使用者透過基本輸入輸出系統121讓電源鍵功能禁能,而於步驟212中,電源鍵控制器110由SLP_S3訊號132及SLP_S5訊號133得知電子裝置120當前是否處於開機狀態,若否,則進入步驟213判斷電源鍵122是否被操作;若是,則進入步驟214中,讓電源鍵控制器110傳送開關機訊號135至電源鍵針腳1232,如此可進入步驟215讓電子裝置120改為開機狀態。Specifically, please refer to FIG. 3 , wherein FIG. 3 shows a flowchart of a step of the method 200 for operating the power supply of an electronic device according to the embodiment in FIG. 2 . In step 211, the user disables the function of the power button through the BIOS 121, and in step 212, the power button controller 110 learns whether the electronic device 120 is currently in the power-on state from the SLP_S3 signal 132 and the SLP_S5 signal 133, If not, then enter step 213 to determine whether the power button 122 is operated; if so, then enter step 214, and allow the power button controller 110 to transmit the switch signal 135 to the power button pin 1232, so that step 215 can be entered to allow the electronic device 120 to change to power-on state.

於步驟212中,若電源鍵控制器110由SLP_S3訊號132及SLP_S5訊號133得知電子裝置120當前是處於開機狀態,則進入步驟216,確認電源鍵122是否被操作。若是,則進入步驟217由電源鍵控制器110計時並判斷操作電源鍵122的時間是否小於閾值,若小於閾值,表示有可能是使用者誤觸,則於步驟218中,電源鍵控制器110不傳送開關機訊號135至電源鍵針腳1232,且於步驟219中讓電子裝置120維持於開機狀態。In step 212, if the power button controller 110 knows that the electronic device 120 is currently in the power-on state from the SLP_S3 signal 132 and the SLP_S5 signal 133, then enters step 216 to confirm whether the power button 122 is operated. If so, then enter step 217 and be timed by the power key controller 110 and judge whether the time for operating the power key 122 is less than the threshold value, if less than the threshold value, it means that the user may touch it by mistake, then in step 218, the power key controller 110 does not Send the power on/off signal 135 to the power key pin 1232 , and keep the electronic device 120 in the power-on state in step 219 .

若於步驟217由電源鍵控制器110判斷操作電源鍵122的時間等於或大於閾值,表示使用者是有意強制關閉電子裝置120,故進入步驟220,由電源鍵控制器110傳送強制關機訊號134至熱跳脫針腳1231,並進入步驟221中讓電子裝置120進行強制關機。If the power button controller 110 judges that the time for operating the power button 122 is equal to or greater than the threshold value in step 217, it means that the user intends to forcibly shut down the electronic device 120, so enter step 220, and the power button controller 110 sends a forced shutdown signal 134 to Thermally trip the pin 1231, and enter step 221 to force the electronic device 120 to shut down.

請參閱第4圖,其中第4圖繪示第2圖實施例之電子設備電源操作方法200的另一步驟流程圖,於步驟231中,使用者透過基本輸入輸出系統121讓電源鍵功能使能,而於步驟232中,電源鍵控制器110由SLP_S3訊號132及SLP_S5訊號133得知電子裝置120當前是否處於開機狀態,若否,則進入步驟233判斷電源鍵122是否被操作;若是,則進入步驟234中,讓電源鍵控制器110傳送開關機訊號135至電源鍵針腳1232,如此進入步驟235讓電子裝置120改為開機狀態。Please refer to FIG. 4, wherein FIG. 4 shows another flow chart of the electronic device power operation method 200 of the embodiment in FIG. 2. In step 231, the user enables the power key function through the basic input output system 121 , and in step 232, the power button controller 110 knows whether the electronic device 120 is currently in the power-on state from the SLP_S3 signal 132 and the SLP_S5 signal 133, if not, then enters step 233 to determine whether the power button 122 is operated; if so, then enters In step 234 , let the power button controller 110 send the power on/off signal 135 to the power button pin 1232 , so enter into step 235 to change the electronic device 120 to the power on state.

於步驟232中,若電源鍵控制器110由SLP_S3訊號132及SLP_S5訊號133得知電子裝置120當前是處於開機狀態,則進入步驟236,確認電源鍵122是否被操作,若是則進入步驟237讓電源鍵控制器110觸發電源鍵針腳1232,再進入步驟238由平台路徑控制器123確認操作電源鍵122的時間是否小於閾值。當確認操作的時間小於閾值時,進入步驟239讓電子裝置120改為關機狀態。In step 232, if the power button controller 110 knows from the SLP_S3 signal 132 and the SLP_S5 signal 133 that the electronic device 120 is currently in the power-on state, then enter step 236 to confirm whether the power button 122 is operated, and if so, enter step 237 to allow the power The key controller 110 triggers the power key pin 1232, and then enters step 238, and the platform path controller 123 confirms whether the time for operating the power key 122 is less than the threshold. When the time for confirming the operation is less than the threshold, go to step 239 to change the electronic device 120 to the shutdown state.

又,若於步驟238中確認操作的時間並不小於閾值,則進入步驟240,讓電子裝置120強制關機。Also, if it is confirmed in step 238 that the operation time is not less than the threshold, then enter step 240 to force the electronic device 120 to shut down.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Anyone skilled in this art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope shall be defined by the appended patent application scope.

100:電子設備 110:電源鍵控制器 111:計時器 120:電子裝置 121:基本輸入輸出系統 122:電源鍵 123:平台路徑控制器 1231:熱跳脫針腳 1232:電源鍵針腳 131:增強串列週邊介面訊號 132:SLP_S3 133:SLP_S5 134:強制關機訊號 135:開關機訊號 200:電子設備電源操作方法 201:設備配置步驟 202:設定步驟 203:電源鍵操作步驟 211,212,213,214,215,216,217,218,219,220,221:步驟 231,232,233,234,235,236,237,238,239,240:步驟100: Electronic equipment 110: Power button controller 111: timer 120: electronic device 121: Basic Input Output System 122: Power key 123: Platform path controller 1231: thermal trip pin 1232: Power key pin 131:Enhance the serial peripheral interface signal 132:SLP_S3 133:SLP_S5 134: Forced shutdown signal 135: switch signal 200: Operation method of electronic equipment power supply 201: Device configuration steps 202: Setting steps 203: Power button operation steps 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221: steps 231,232,233,234,235,236,237,238,239,240: steps

第1圖繪示依照本發明一實施例之一種電子設備的方塊架構圖; 第2圖繪示依照本發明另一實施例之一種電子設備電源操作方法的方塊流程圖; 第3圖繪示第2圖實施例之電子設備電源操作方法的一步驟流程圖;以及 第4圖繪示第2圖實施例之電子設備電源操作方法的另一步驟流程圖。 FIG. 1 shows a block diagram of an electronic device according to an embodiment of the present invention; FIG. 2 shows a block flow diagram of a method for operating a power supply of an electronic device according to another embodiment of the present invention; Fig. 3 shows a flowchart of a step of the method for operating the power supply of the electronic device in the embodiment of Fig. 2; and FIG. 4 shows a flow chart of another step of the method for operating the power supply of the electronic device in the embodiment of FIG. 2 .

200:電子設備電源操作方法 200: Operation method of electronic equipment power supply

201:設備配置步驟 201: Device configuration steps

202:設定步驟 202: Setting steps

203:電源鍵操作步驟 203: Power button operation steps

Claims (7)

一種電子設備電源操作方法,包含: 一設備配置步驟,提供一電源鍵控制器及一電子裝置,該電子裝置包含一電源鍵及一平台路徑控制器,該平台路徑控制器包含一熱跳脫針腳及一電源鍵針腳,其中使該電源鍵控制器連接至該電源鍵及該平台路徑控制器; 一設定步驟,使該電子裝置之一基本輸入輸出系統的一電源鍵功能被禁能或使能;以及 一電源鍵操作步驟,操作該電源鍵以控制該電子裝置開關機,其中,當該電源鍵功能被禁能時,若該電子裝置處於一關機狀態,操作該電源鍵使該電源鍵控制器傳送一開關機訊號至該電源鍵針腳讓該電子裝置由該關機狀態切換至一開機狀態;若該電子裝置處於該開機狀態,且操作該電源鍵的時間小於一閾值,不使該電源鍵控制器傳送該開關機訊號至該電源鍵針腳,而若操作該電源鍵的時間等於或大於該閾值,使該電源鍵控制器傳送一強制關機訊號至該熱跳脫針腳讓該電子裝置進行一強制關機。 A method for operating a power supply of an electronic device, comprising: An equipment configuration step, providing a power button controller and an electronic device, the electronic device includes a power button and a platform path controller, the platform path controller includes a heat trip pin and a power button pin, wherein the a power key controller connected to the power key and the platform path controller; a setting step of disabling or enabling a power key function of a basic input output system of the electronic device; and A power key operation step, operating the power key to control the power switch of the electronic device, wherein, when the function of the power key is disabled, if the electronic device is in a shutdown state, operating the power key causes the power key controller to transmit An on/off signal to the power key pin switches the electronic device from the off state to an on state; if the electronic device is in the on state and the power key is operated for less than a threshold, the power key controller is not activated Send the on/off signal to the power button pin, and if the power button is operated for a time equal to or greater than the threshold, the power button controller sends a forced shutdown signal to the thermal trip pin to force the electronic device to shut down . 如請求項1所述之電子設備電源操作方法,其中,於該電源鍵操作步驟中,當該電源鍵功能被使能時,若該電子裝置處於該開機狀態,則該電源鍵被操作時讓該電源鍵控制器觸發該電源鍵針腳,由該平台路徑控制器計算該電源鍵被操作的時間,若該電源鍵被操作的時間小於該閾值,讓該電子裝置由該開機狀態切換至該關機狀態,而若該電源鍵被操作的時間等於或大於該閾值,讓該電子裝置進行該強制關機;若該電子裝置處於該關機狀態,操作該電源鍵使該電源鍵控制器傳送該開關機訊號至該電源鍵針腳讓該電子裝置由該關機狀態切換至該開機狀態。The method for operating the power supply of electronic equipment as described in Claim 1, wherein, in the step of operating the power key, when the function of the power key is enabled, if the electronic device is in the power-on state, the power key is operated so that The power key controller triggers the power key pin, and the platform path controller calculates the time when the power key is operated, and if the time when the power key is operated is less than the threshold, the electronic device is switched from the power-on state to the power-off state state, and if the power button is operated for a time equal to or greater than the threshold, the electronic device is forced to shut down; if the electronic device is in the shutdown state, the power button is operated to cause the power button controller to send the power on/off signal Connecting to the power button pin allows the electronic device to switch from the off state to the on state. 如請求項1所述之電子設備電源操作方法,其中,於該電源鍵操作步驟中,當該電源鍵功能被禁能時,由該電源鍵控制器進行數秒以取得該電源鍵被操作的時間。The method for operating the power supply of an electronic device as described in Claim 1, wherein, in the step of operating the power key, when the function of the power key is disabled, the power key controller performs several seconds to obtain the time when the power key is operated . 一種電子設備,包含: 一電子裝置,包含: 一電源鍵; 一基本輸入輸出系統,用以供操作以使能或禁能一電源鍵功能;及 一平台路徑控制器,訊號連接該基本輸入輸出系統且包含一熱跳脫針腳及一電源鍵針腳;以及 一電源鍵控制器,訊號連接該電源鍵及該平台路徑控制器; 其中,當該基本輸入輸出系統的該電源鍵功能被禁能時,若該電子裝置處於一關機狀態,操作該電源鍵使該電源鍵控制器傳送一開關機訊號至該電源鍵針腳讓該電子裝置由該關機狀態切換至一開機狀態;若該電子裝置處於該開機狀態,且操作該電源鍵的時間小於一閾值,不使該電源鍵控制器傳送該開關機訊號至該電源鍵針腳,而若操作該電源鍵的時間等於或大於該閾值,使該電源鍵控制器傳送一強制關機訊號至該熱跳脫針腳讓該電子裝置進行一強制關機。 An electronic device comprising: An electronic device, comprising: a power button; a BIOS for operation to enable or disable a power key function; and a platform path controller, signal connected to the BIOS and including a thermal trip pin and a power key pin; and a power button controller, signally connected to the power button and the platform path controller; Wherein, when the function of the power button of the basic input and output system is disabled, if the electronic device is in a power-off state, the power button is operated to make the power button controller send a power button signal to the pin of the power button to let the electronic device The device is switched from the power-off state to a power-on state; if the electronic device is in the power-on state, and the power button is operated for less than a threshold, the power button controller is not sent the power button signal to the power button pin, and If the time of operating the power button is equal to or greater than the threshold, the power button controller sends a forced shutdown signal to the thermal trip pin to make the electronic device perform a forced shutdown. 如請求項4所述之電子設備,其中,該電源鍵控制器為一嵌入式控制器。The electronic device according to claim 4, wherein the power key controller is an embedded controller. 如請求項4所述之電子設備,其中,該電子裝置為一服務式端點銷售裝置。The electronic device according to claim 4, wherein the electronic device is a service-type point-of-sale device. 如請求項4所述之電子設備,其中,該電源鍵控制器更包含一計時器,其用以計算該電源鍵被操作的時間。The electronic device as claimed in claim 4, wherein the power key controller further includes a timer for counting the time when the power key is operated.
TW111104575A 2022-01-19 2022-02-08 Power operating method for electronic apparatus and electronic apparatus TWI799126B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210059437.7 2022-01-19
CN202210059437.7A CN114415546B (en) 2022-01-19 2022-01-19 Electronic equipment power supply operation method and electronic equipment

Publications (2)

Publication Number Publication Date
TWI799126B true TWI799126B (en) 2023-04-11
TW202331462A TW202331462A (en) 2023-08-01

Family

ID=81272832

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111104575A TWI799126B (en) 2022-01-19 2022-02-08 Power operating method for electronic apparatus and electronic apparatus

Country Status (2)

Country Link
CN (1) CN114415546B (en)
TW (1) TWI799126B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201304412A (en) * 2011-07-04 2013-01-16 Pegatron Corp Power switching circuit
WO2016204031A1 (en) * 2015-06-18 2016-12-22 株式会社コナミデジタルエンタテインメント Game system, and computer program used in same
WO2018082411A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 Method and terminal for preventing false touch
WO2021068627A1 (en) * 2019-10-10 2021-04-15 华为技术有限公司 Interaction method for electronic device and electronic device
CN216052683U (en) * 2021-10-21 2022-03-15 厦门亿联网络技术股份有限公司 MCU long press reset disaster prevention circuit

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006323605A (en) * 2005-05-18 2006-11-30 Shuttle Inc Control unit and method of computer power supply management matching key
CN101576765B (en) * 2008-05-09 2011-08-10 华硕电脑股份有限公司 Method, element and circuit board for controlling electronic device to shut down
CN101661410B (en) * 2008-08-29 2012-02-01 佛山市顺德区汉达精密电子科技有限公司 False touch protection method realized by utilizing power switch delay and computer device
CN101763290B (en) * 2008-12-26 2011-09-14 英业达股份有限公司 Method for preventing inadvertently touching capacitance switch and electronic device with function of preventing inadvertent touch
TWI456382B (en) * 2011-10-03 2014-10-11 Leadtrend Tech Corp Power supply, power management device applied to a power supply, and method for brown-out protection and over-heated protection of a power management device
US9954464B2 (en) * 2012-11-19 2018-04-24 Siemens Aktiengesellschaft Switching device for controlling energy supply of a downstream electric motor
CN206258817U (en) * 2016-12-16 2017-06-16 龙芯中科技术有限公司 Power control and computer
CN110134216B (en) * 2019-04-25 2020-09-15 维沃移动通信有限公司 Power supply control device and method and terminal equipment
CN112326101A (en) * 2020-11-20 2021-02-05 深圳市康泓威科技有限公司 Electronic atomization device with digital air pressure sensing chip and control method thereof
CN113220352A (en) * 2021-05-17 2021-08-06 杭州宏杉科技股份有限公司 Shutdown control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201304412A (en) * 2011-07-04 2013-01-16 Pegatron Corp Power switching circuit
WO2016204031A1 (en) * 2015-06-18 2016-12-22 株式会社コナミデジタルエンタテインメント Game system, and computer program used in same
WO2018082411A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 Method and terminal for preventing false touch
WO2021068627A1 (en) * 2019-10-10 2021-04-15 华为技术有限公司 Interaction method for electronic device and electronic device
CN216052683U (en) * 2021-10-21 2022-03-15 厦门亿联网络技术股份有限公司 MCU long press reset disaster prevention circuit

Also Published As

Publication number Publication date
CN114415546B (en) 2024-03-26
TW202331462A (en) 2023-08-01
CN114415546A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
JP6377836B2 (en) Electronic device fast charging method, apparatus, and device
TWI521483B (en) Bluetooth remote control system and related device
CN106155797B (en) Terminal equipment and switching method of performance modes thereof
WO2014040468A1 (en) Device for controlling heat dissipation fan and electronic equipment
WO2013033948A1 (en) Mobile terminal boot control method and mobile terminal
CN108183807A (en) The tele-control system of server
TWI799126B (en) Power operating method for electronic apparatus and electronic apparatus
US8407381B2 (en) Keypad de-bouncing apparatus and method
TW201327192A (en) Network management system
US10433369B2 (en) Power supply control method based on mobile power sources
TWI693513B (en) Server system and power saving method thereof
US11594871B2 (en) Methods and apparatus for battery current monitoring
WO2024007679A1 (en) Key control circuit, method and apparatus, device, storage medium, and remote controller
TWI465873B (en) Apparatus and method for controlling fan speed
TWI483124B (en) Computer system and the method of using the computer system
TWI570621B (en) Electronic system, wearable electronic apparatus and power control method thereof
CN115587369A (en) Safety detection device for BIOS (basic input output System) and EC (embedded logic controller) firmware
TWI408544B (en) Electronic apparatus and power control module thereof
WO2019071577A1 (en) Universal serial bus (usb) apparatus and method for saving power of usb apparatus
CN109557993B (en) Power supply restarting device and server
CN109600736B (en) Alarm device and alarm method
CN104407883B (en) A kind of control method and electronic equipment
TW201436503A (en) Controlling system and method for server
TWI509393B (en) Computer system and the control method thereof
TWI710875B (en) Electronic device