TW202111526A - Computer device and shutdown and reboot controlling method thereof - Google Patents

Computer device and shutdown and reboot controlling method thereof Download PDF

Info

Publication number
TW202111526A
TW202111526A TW108133122A TW108133122A TW202111526A TW 202111526 A TW202111526 A TW 202111526A TW 108133122 A TW108133122 A TW 108133122A TW 108133122 A TW108133122 A TW 108133122A TW 202111526 A TW202111526 A TW 202111526A
Authority
TW
Taiwan
Prior art keywords
signal
power
computer device
level
logic circuit
Prior art date
Application number
TW108133122A
Other languages
Chinese (zh)
Other versions
TWI720615B (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 神雲科技股份有限公司
Priority to TW108133122A priority Critical patent/TWI720615B/en
Application granted granted Critical
Publication of TWI720615B publication Critical patent/TWI720615B/en
Publication of TW202111526A publication Critical patent/TW202111526A/en

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

A computer device and a shutdown and reboot controlling method thereof are provided. The method includes a logic circuit generating a first enable signal at a first level for a power generating circuit to generate a working power and a standby power for operation of a processing circuit, the processing circuit generating an abnormal signal when an temperature of an processor being higher than a predetermined temperature, the processing circuit generating the abnormal signal when a time period of an pressing signal corresponding to a power button being pressed being at a predetermined level for longer than a predetermined time length, the logic circuit generating the first enable signal at a second level when receiving the abnormal signal and the time period of the pressing signal at the predetermined level being longer than the predetermined time length, and the power generating circuit stopping generating the working power and the standby power according to the first enable signal at the second level.

Description

電腦裝置及其關機及重啟方法Computer device and its shutdown and restart method

本發明是關於一種電腦裝置,且特別是具緊急關機及重啟功能之電腦裝置。The present invention relates to a computer device, and particularly a computer device with emergency shutdown and restart functions.

電腦已普遍地被使用在人們的生活中,電腦能處理諸多取代人力之運算,然而電腦在使用上還是具其極限,例如電腦同時處理過多的軟體或程式導致其可用之記憶體容量不足將導致電腦當機,而在電腦當機時,電腦之使用者一般會持續按壓電腦的電源鍵,期望藉由長按電源鍵將電腦關機而解決當機之問題。Computers have been widely used in people’s lives. Computers can handle many calculations that replace humans. However, computers still have their limits in use. For example, computers are processing too many software or programs at the same time, which leads to insufficient memory capacity. The computer crashes, and when the computer crashes, the user of the computer generally keeps pressing the power button of the computer, hoping to solve the crash problem by long pressing the power button to shut down the computer.

然而,因為電腦所搭配的系統單晶片的版本不同,而導致電腦的主板所搭配的特定版本的系統單晶片並無法根據使用者長按電源鍵而關機,也就是無法提供使用者慣用地以長按電源鍵觸發其進行關機作業,對於此類之電腦,一旦電腦發生當機,若想要修復,使用者僅能在當機後直接拔除電腦之電源線以迫使電腦因為沒有接收到市電而在不完整的執行正常關機程序的狀況下直接進入完全關機狀態,接著再重新插入電源線以再次提供市電給電腦以使電腦重新啟動,而以拔除電腦之電源線迫使電腦關閉之手段,電腦突然失電的狀態,可能會造成電腦在不完整的執行正常關機程序的狀況下直接進入完全關機狀態,因而可能導致電腦損壞而在重新啟動之後無法正常地運作。However, due to the different versions of the system-on-chip that the computer is equipped with, the specific version of the system-on-a-chip equipped on the computer’s motherboard cannot be shut down according to the user’s long press of the power button. Press the power button to trigger its shutdown operation. For this type of computer, once the computer crashes, if you want to repair it, the user can only unplug the computer's power cord after the crash to force the computer to stop because it did not receive the mains power. Under the condition of incomplete execution of the normal shutdown procedure, the computer will directly enter the complete shutdown state, and then plug the power cord again to provide the mains power to the computer to restart the computer, and unplug the power cord of the computer to force the computer to shut down. The computer suddenly loses The state of electricity may cause the computer to enter the complete shutdown state directly under the condition of incompletely executing the normal shutdown procedure, which may cause the computer to be damaged and unable to operate normally after restarting.

在一實施例中,一種具緊急關機及重啟功能之電腦裝置包含電源鍵、處理電路、電源產生電路及邏輯電路。處理電路耦接電源鍵,處理電路具有一運作溫度,且處理電路在運作溫度大於一預設溫度時產生一異常訊號,或在相應源鍵受按壓時所產生之一按壓訊號處於一預設位準的時間長度大於一預設時間長度時產生異常訊號。電源產生電路耦接處理電路,用以根據處於一第一位準之一第一致能訊號產生供處理電路運作之一工作電源及待機電源,並根據處於一第二位準之第一致能訊號不產生工作電源及待機電源。邏輯電路耦接處理電路及電源產生電路,用以在電腦裝置之一工作模式中產生處於第一位準之第一致能訊號,並偵測異常訊號,且判斷按壓訊號處於預設位準的時間長度是否大於預設時間長度,當邏輯電路偵測到異常訊號且按鍵訊號處於預設位準的時間長度大於預設時間長度時,邏輯電路產生處於第二位準之第一致能訊號控制電源產生電路停止產生電壓訊號,以關閉處理電路,致使電腦裝置由工作模式切換至一監控模式。In one embodiment, a computer device with emergency shutdown and restart functions includes a power button, a processing circuit, a power generation circuit, and a logic circuit. The processing circuit is coupled to the power button, the processing circuit has an operating temperature, and the processing circuit generates an abnormal signal when the operating temperature is greater than a preset temperature, or a pressing signal generated when the corresponding source key is pressed is at a preset position An abnormal signal is generated when the accurate time length is greater than a preset time length. The power generation circuit is coupled to the processing circuit for generating a working power supply and a standby power supply for the processing circuit to operate according to a first enable signal at a first level, and is enabled according to the first enable signal at a second level The signal does not generate working power and standby power. The logic circuit is coupled to the processing circuit and the power generation circuit for generating a first enabling signal at the first level in a working mode of the computer device, detecting an abnormal signal, and judging that the pressing signal is at a preset level Whether the time length is greater than the preset time length, when the logic circuit detects the abnormal signal and the key signal is at the preset level for longer than the preset time length, the logic circuit generates the first enable signal control at the second level The power generating circuit stops generating a voltage signal to turn off the processing circuit, causing the computer device to switch from a working mode to a monitoring mode.

在一實施例中,一種電腦裝置的關機及重啟方法包含一邏輯電路產生處於一第一位準之一第一致能訊號給一電源產生電路產生供一處理電路運作之一工作電源及待機電源,處理電路在一運作溫度大於一預設溫度時產生一異常訊號,或在相應一電源鍵受按壓時所產生之一按壓訊號處於一預設位準的時間長度大於一預設時間長度時產生異常訊號,邏輯電路判斷是否接收到異常訊號,邏輯電路判斷按壓訊號處於預設位準的時間長度是否大於預設時間長度,當邏輯電路接收到異常訊號且按壓訊號處於預設位準的時間長度大於預設時間長度時,邏輯電路產生處於一第二位準之第一致能訊號,以及電源產生電路根據處於第二位準之第一致能訊號停止產生工作電源及待機電源以關閉處理電路,使電腦裝置切換至一監控模式。In one embodiment, a method for shutting down and restarting a computer device includes a logic circuit generating a first enable signal at a first level to a power generating circuit generating a working power and a standby power for a processing circuit to operate , The processing circuit generates an abnormal signal when an operating temperature is greater than a preset temperature, or when a press signal generated when a corresponding power button is pressed is at a preset level for longer than a preset period of time Abnormal signal, the logic circuit judges whether the abnormal signal is received, the logic circuit judges whether the time length of the pressing signal at the preset level is greater than the preset time length, when the logic circuit receives the abnormal signal and the pressing signal is at the preset level time length When longer than the preset time length, the logic circuit generates a first enable signal at a second level, and the power generation circuit stops generating working power and standby power to shut down the processing circuit according to the first enable signal at the second level To switch the computer device to a monitoring mode.

請合併參照圖1至圖3,電腦裝置1包含邏輯電路11、處理電路12、電源鍵(power button)13及電源產生電路14。如圖1所示,電源鍵13可設置在電腦裝置1之機殼;如圖2所示,處理電路12及邏輯電路11耦接電源鍵13,邏輯電路11耦接處理電路12及電源產生電路14,且電源產生電路14耦接處理電路12。Please refer to FIGS. 1 to 3 together. The computer device 1 includes a logic circuit 11, a processing circuit 12, a power button 13 and a power generation circuit 14. As shown in FIG. 1, the power button 13 can be arranged in the casing of the computer device 1. As shown in FIG. 2, the processing circuit 12 and the logic circuit 11 are coupled to the power button 13, and the logic circuit 11 is coupled to the processing circuit 12 and the power generating circuit. 14, and the power generation circuit 14 is coupled to the processing circuit 12.

在一實施例中,處理電路12可以系統單晶片(System on a Chip;SoC)來實現,處理電路12具有一高溫偵測單元用以偵測一運作溫度,高溫偵測單元比較運作溫度及一預設溫度以判斷處理電路12的運作溫度是否大於預設溫度(步驟S07),當運作溫度大於預設溫度,則處理電路12切換自身的運行狀態(處理電路12由正常的運行於運作模式切換為低耗電模式,例如為降頻模式、休眠模式、待運行模式等;其中,當處理電路12運行於待運行模式時,處理電路12接收並判斷相應於電源鍵13受按壓時所產生之按壓訊號S1處於一預設位準的持續時間長度是否小於一預設時間長度,當處理電路12判定電源鍵13受按壓時所產生之按壓訊號S1處於一預設位準的持續時間長度小於一預設時間長度,則處理電路12切換運行於運作模式;其中,處理電路12運行於低耗電模式所耗電量低於處理電路12運行於運作模式)並產生異常訊號S2,以表示處理電路12的運作溫度為異常。In one embodiment, the processing circuit 12 may be implemented by a System on a Chip (SoC). The processing circuit 12 has a high temperature detection unit for detecting an operating temperature, and the high temperature detecting unit compares the operating temperature and the operating temperature. The preset temperature is used to determine whether the operating temperature of the processing circuit 12 is greater than the preset temperature (step S07). When the operating temperature is greater than the preset temperature, the processing circuit 12 switches its operating state (the processing circuit 12 switches from normal operation to operating mode). It is a low power consumption mode, such as a frequency reduction mode, a sleep mode, a standby mode, etc.; wherein, when the processing circuit 12 is running in the standby mode, the processing circuit 12 receives and determines that it corresponds to the output generated when the power button 13 is pressed. Whether the duration of the pressing signal S1 at a preset level is less than a preset duration, and the duration of the pressing signal S1 generated when the processing circuit 12 determines that the power button 13 is pressed at a preset level is less than one For a preset length of time, the processing circuit 12 switches to operate in the operation mode; wherein the processing circuit 12 operates in the low power consumption mode and consumes less power than the processing circuit 12 operates in the operation mode) and generates an abnormal signal S2 to indicate that the processing circuit The operating temperature of 12 is abnormal.

舉例來說,前述之預設溫度可為90度,高溫偵測單元偵測並比較運作溫度與為90度之預設溫度,以判斷運作溫度是否大於90度。當高溫偵測單元判定運作溫度大於90度,則觸發處理電路12產生異常訊號S2。其中,高溫偵測單元可以是以內建於處理電路12的態樣來實施,也可以是以高溫偵測單元與處理電路12電連接的外掛於處理電路12的態樣來實施,其中,高溫偵測單元能藉由設置於鄰近處理電路12的位置以偵測處理電路12的運作溫度。在一實施例中,高溫偵測單元例如為一熱敏電阻偵測其處理器溫度並於判斷出所偵測的運作溫度高於預設溫度,即觸發處理電路12產生異常訊號S2。For example, the aforementioned preset temperature may be 90 degrees, and the high temperature detection unit detects and compares the operating temperature with the preset temperature of 90 degrees to determine whether the operating temperature is greater than 90 degrees. When the high temperature detection unit determines that the operating temperature is greater than 90 degrees, the processing circuit 12 is triggered to generate an abnormal signal S2. Among them, the high temperature detection unit may be implemented in a state built in the processing circuit 12, or may be implemented in a state in which the high temperature detection unit is electrically connected to the processing circuit 12 and externally connected to the processing circuit 12. The detecting unit can detect the operating temperature of the processing circuit 12 by being disposed at a position adjacent to the processing circuit 12. In one embodiment, the high temperature detection unit is, for example, a thermistor that detects the temperature of its processor and determines that the detected operating temperature is higher than the preset temperature, that is, triggers the processing circuit 12 to generate the abnormal signal S2.

並且,由於電源鍵13可能受電腦裝置1之使用者按壓,處理電路12判斷相應於電源鍵13受按壓時所產生之按壓訊號S1處於一預設位準的持續時間長度是否大於一預設時間長度(步驟S08),以判斷使用者是否長按電源鍵13。當處理電路12判定按壓訊號S1處於預設位準的時間長度大於預設時間長度,處理電路12產生異常訊號S2,表示電腦裝置1之使用者長按電源鍵13。其中,以按壓訊號S1處於低位準係表示電源鍵13受按壓而按壓訊號S1處於高位準係表示電源鍵13未受按壓為例,前述之預設時間長度可為4秒,處理電路12可判斷按壓訊號S1處於低位準之持續時間長度是否大於4秒,以判斷電腦裝置1之使用者是否長按電源鍵13。於是,如圖3所示,當處理電路12藉由高溫偵測單元判斷出電腦裝置1之處理電路12的運作溫度異常(步驟S07之判斷結果為「是」)或是處理電路12判斷出按壓訊號S1持續處於預設位準的時間長度大於預設時間長度(步驟S08之判斷結果為「是」),則觸發處理電路12產生異常訊號S2(步驟S09)。Moreover, since the power button 13 may be pressed by the user of the computer device 1, the processing circuit 12 determines whether the duration of the pressing signal S1 generated when the power button 13 is pressed at a predetermined level is greater than a predetermined time Length (step S08) to determine whether the user presses the power button 13 for a long time. When the processing circuit 12 determines that the time length of the pressing signal S1 at the preset level is greater than the preset time length, the processing circuit 12 generates an abnormal signal S2, indicating that the user of the computer device 1 presses the power button 13 for a long time. Among them, taking the pressing signal S1 at a low level to indicate that the power button 13 is pressed and the pressing signal S1 at a high level to indicate that the power button 13 is not pressed as an example, the aforementioned preset time length can be 4 seconds, and the processing circuit 12 can determine Whether the duration of the pressing signal S1 is at a low level is greater than 4 seconds to determine whether the user of the computer device 1 presses the power button 13 for a long time. Therefore, as shown in FIG. 3, when the processing circuit 12 determines that the operating temperature of the processing circuit 12 of the computer device 1 is abnormal by the high temperature detection unit (the determination result of step S07 is "Yes") or the processing circuit 12 determines that the pressure is pressed The signal S1 continues to be at the preset level for a period of time longer than the preset period of time (the judgment result of step S08 is "Yes"), and the processing circuit 12 is triggered to generate an abnormal signal S2 (step S09).

電源產生電路14係接收由電源供應器(power supply)及選擇性搭配的適配器(adapter)其中至少一者所產生之一外部電源,並根據具有第一位準或第二位準之一第二致能訊號S32及一第一致能訊號S31選擇性地轉換外部電源為提供電腦裝置1運作於工作模式、待機模式及監控模式其中一者所需之工作電源P1、待機電源P2及監控電源其中至少一者以及產生供處理電路12以及邏輯電路11其中至少一者監控電源產生電路14的電源產生狀態之一第一電壓訊號及一第二電壓訊號其中至少一者。當電腦裝置1運行於工作模式時,第二致能訊號S32及第一致能訊號S31均處於第一位準,使電源產生電路14產生供電腦裝置1運作於工作模式時所需之工作電源P1、待機電源P2及監控電源以及供處理電路12以及邏輯電路11監控電源產生狀態之第一電壓訊號及第二電壓訊號;當電腦裝置1運行於待機模式時,第二致能訊號S32處於第二位準且第一致能訊號S31處於第一位準,使電源產生電路14產生供電腦裝置1運作於待機模式時所需之待機電源P2、監控電源以及供邏輯電路11監控電源產生狀態之第二電壓訊號且不產生工作電源P1及第一電壓訊號;當第一致能訊號S31處於第二位準時,電源產生電路14產生監控電源且不產生工作電源P1、待機電源P2、第一電壓訊號及第二電壓訊號而使電腦裝置1運作於監控模式。The power generation circuit 14 receives an external power source generated by at least one of a power supply and a selectively matched adapter (adapter), and according to the second one of the first level or the second level The enable signal S32 and a first enable signal S31 selectively convert the external power supply to provide the working power supply P1, the standby power supply P2, and the monitoring power supply for the computer device 1 to operate in one of the working mode, the standby mode, and the monitoring mode. At least one and at least one of a first voltage signal and a second voltage signal is generated for at least one of the processing circuit 12 and the logic circuit 11 to monitor the power generation state of the power generation circuit 14. When the computer device 1 is operating in the working mode, the second enabling signal S32 and the first enabling signal S31 are both at the first level, so that the power generating circuit 14 generates the working power required for the computer device 1 to operate in the working mode P1, standby power supply P2 and monitoring power supply, as well as the first voltage signal and the second voltage signal for the processing circuit 12 and the logic circuit 11 to monitor the power generation state; when the computer device 1 is operating in the standby mode, the second enable signal S32 is in the first Two levels and the first enable signal S31 is at the first level, so that the power generation circuit 14 generates the standby power P2, the monitoring power, and the logic circuit 11 to monitor the power generation state required for the computer device 1 to operate in the standby mode. The second voltage signal does not generate the working power supply P1 and the first voltage signal; when the first enabling signal S31 is at the second level, the power generation circuit 14 generates the monitoring power supply and does not generate the working power supply P1, the standby power supply P2, and the first voltage Signal and the second voltage signal to make the computer device 1 operate in the monitoring mode.

在一實施例中,電源產生電路14包括一第一電源產生單元及一第二電源產生單元,第二電源產生單元根據具有第一位準之第一致能訊號S31轉換外部電源以產生待機電源P2及第二電壓訊號,而第一電源產生單元根據具有第一位準之第二致能訊號S32轉換第二電源產生單元所產生之待機電源P2以產生工作電源P1及第一電壓訊號,因此當第一致能訊號S31處於第二位準時,則電源產生電路14產生監控電源且不產生待機電源P2,且第一電源產生單元也會因為沒有收到待機電源P2而無法轉換並產生工作電源P1。In one embodiment, the power generation circuit 14 includes a first power generation unit and a second power generation unit. The second power generation unit converts the external power source to generate the standby power source according to the first enable signal S31 having the first level. P2 and the second voltage signal, and the first power generating unit converts the standby power P2 generated by the second power generating unit according to the second enabling signal S32 with the first level to generate the working power P1 and the first voltage signal. When the first enable signal S31 is at the second level, the power generation circuit 14 generates monitoring power and does not generate the standby power P2, and the first power generation unit cannot convert and generate the working power because it does not receive the standby power P2. P1.

基於上述,請合併參照圖2及圖4,在電腦裝置1運作於工作模式時,邏輯電路11產生處於第一位準之第一致能訊號S31(步驟S01)給電源產生電路14,且處理電路12產生處於第一位準之第二致能訊號S32給電源產生電路14,而電源產生電路14根據所接收的具有第一位準之第二致能訊號S32及第一致能訊號S31而產生供電腦裝置1運作於工作模式的工作電源P1、待機電源P2(步驟S02)及監控電源以及供處理電路12以及邏輯電路11監控電源產生狀態之第一電壓訊號及第二電壓訊號,且邏輯電路11判斷是否接收到來自處理電路12之異常訊號S2(步驟S03),並且,邏輯電路11進一步判斷按壓訊號S1處於預設位準的時間長度是否大於預設時間長度(步驟S04)。其中,圖4係以邏輯電路11依序執行步驟S03、S04為例,然本發明不以此為限,邏輯電路11亦可同時執行步驟S03、S04或是先執行步驟S04再執行步驟S03。Based on the above, please refer to FIGS. 2 and 4 together. When the computer device 1 is operating in the working mode, the logic circuit 11 generates the first enable signal S31 at the first level (step S01) to the power generation circuit 14 and processes The circuit 12 generates the second enable signal S32 at the first level to the power generation circuit 14, and the power generation circuit 14 receives the second enable signal S32 and the first enable signal S31 with the first level. Generate a working power supply P1, a standby power supply P2 (step S02) and a monitoring power supply for the computer device 1 to operate in the working mode, and a first voltage signal and a second voltage signal for the processing circuit 12 and the logic circuit 11 to monitor the power generation state, and logic The circuit 11 judges whether the abnormal signal S2 from the processing circuit 12 is received (step S03), and the logic circuit 11 further judges whether the time length of the pressing signal S1 at the preset level is greater than the preset time length (step S04). 4 is an example in which the logic circuit 11 executes steps S03 and S04 sequentially, but the present invention is not limited to this. The logic circuit 11 can also execute steps S03 and S04 at the same time or execute step S04 first and then execute step S03.

當邏輯電路11偵測到異常訊號S2時(步驟S03之判斷結果為「是」),表示可能是處理電路12之運作溫度為異常,或是處理電路12判定電源鍵13受按壓之時間長度大於預設時間長度且處理電路12已切換運行於低耗電模式;此時,邏輯電路11會再更進一步的根據按壓訊號S1處於預設位準的時間長度是否大於預設時間長度之判斷結果選擇是否產生處於第二位準之第一致能訊號S31。當邏輯電路11在偵測到異常訊號S2時同時判斷出按壓訊號S1處於預設位準的時間長度大於預設時間長度時(步驟S04之判斷結果為「是」),表示電源鍵13係受使用者長按而致使處理電路12切換運行於低耗電模式並產生異常訊號S2,此時,邏輯電路11執行一緊急處理作業,即邏輯電路11產生處於第二位準之第一致能訊號S31給電源產生電路14(步驟S05),使電源產生電路14根據處於第二位準之第一致能訊號S31僅產生監控電源且停止產生工作電源P1及待機電源P2(步驟S06)與第一電壓訊號及第二電壓訊號,以使處理電路12因沒有接收到待機電源P2而無法運行於低耗電模式進而切換為處於關閉狀態,致使電腦裝置1由工作模式切換至一監控模式。When the logic circuit 11 detects the abnormal signal S2 (the judgment result of step S03 is "Yes"), it means that the operating temperature of the processing circuit 12 is abnormal, or the processing circuit 12 determines that the power button 13 has been pressed for longer than A preset time length and the processing circuit 12 has switched to operate in a low power consumption mode; at this time, the logic circuit 11 will further select according to the judgment result of whether the pressing signal S1 is at the preset level for longer than the preset time length Whether to generate the first enable signal S31 at the second level. When the logic circuit 11 detects that the abnormal signal S2 is at the same time and judges that the time length of the pressing signal S1 at the preset level is greater than the preset time length (the judgment result of step S04 is "Yes"), it means that the power button 13 is affected. The user presses for a long time to cause the processing circuit 12 to switch to operate in the low power consumption mode and generate an abnormal signal S2. At this time, the logic circuit 11 performs an emergency processing operation, that is, the logic circuit 11 generates the first enable signal at the second level S31 gives the power generation circuit 14 (step S05) so that the power generation circuit 14 generates only the monitoring power according to the first enable signal S31 at the second level and stops generating the working power P1 and the standby power P2 (step S06) and the first enable signal S31. The voltage signal and the second voltage signal, so that the processing circuit 12 cannot operate in the low power consumption mode because it does not receive the standby power P2 and then switches to the off state, causing the computer device 1 to switch from the working mode to a monitoring mode.

基此,當處理電路12沒有支援直接根據使用者長按電源鍵13而正常地執行電腦裝置1之關機作業而進入監控模式的功能時,可以搭配邏輯電路11而能藉由共用偵測高溫後的緊急處理作業之方式在確保處理電路12已切換的運行於低耗電模式後,仍然能夠藉由使用者長按電源鍵13而緊急地控制電源產生電路14不產生工作電源P1及待機電源P2,以迫使電腦裝置1因未收到工作電源P1及待機電源P2而切換進入監控模式。Based on this, when the processing circuit 12 does not support the function of entering the monitoring mode directly according to the user's long press of the power button 13 to normally perform the shutdown operation of the computer device 1, it can be used with the logic circuit 11 to share the high temperature detection function. After ensuring that the processing circuit 12 has been switched to operate in the low power consumption mode, the emergency processing operation method can still be used to control the power generation circuit 14 urgently without generating the working power supply P1 and the standby power supply P2 by pressing the power button 13 for a long time. , In order to force the computer device 1 to switch to the monitoring mode because it has not received the working power P1 and the standby power P2.

在一實施例中,在電腦裝置1運作於監控模式時,電源產生電路14提供監控電源給電腦裝置1以供邏輯電路11偵測並判斷是否接收處於預設位準的按壓訊號S1(步驟S10),若邏輯電路11於電腦裝置1運作於監控模式時接收到處於預設位準的按壓訊號S1(判斷結果為「是」),則邏輯電路11產生並傳送第一致能訊號S31至電源產生電路14以使電源產生電路14再次產生待機電源P2,而處理電路12也因為再次接收到待機電源P2而進行初始化,且再次產生第二致能訊號S32至電源產生電路14進而使電源產生電路14再次提供工作電源P1(也就是電腦裝置1切換運作於工作模式)並使處理電路12切換運行於運作模式。In one embodiment, when the computer device 1 is operating in the monitoring mode, the power generation circuit 14 provides monitoring power to the computer device 1 for the logic circuit 11 to detect and determine whether to receive the pressing signal S1 at a preset level (step S10 ), if the logic circuit 11 receives the pressing signal S1 at the preset level when the computer device 1 is operating in the monitor mode (the judgment result is "Yes"), the logic circuit 11 generates and transmits the first enable signal S31 to the power supply The generating circuit 14 causes the power generating circuit 14 to generate the standby power P2 again, and the processing circuit 12 also initializes because it receives the standby power P2 again, and again generates the second enable signal S32 to the power generating circuit 14 to make the power generating circuit 14 provides the working power P1 again (that is, the computer device 1 is switched to operate in the working mode) and the processing circuit 12 is switched to operate in the working mode.

在一實施例中,前述之第一位準及第二位準可分別為高位準(即邏輯「1」)及低位準(即邏輯「0」),邏輯電路11在步驟S01及步驟S05中係分別發送具低位準之第一致能訊號S31及具高位準之第一致能訊號S31;異常訊號S2可具有低位準,而處理電路12於高溫偵測單元判斷運作溫度並未大於預設溫度且處理電路12並未接收到按壓訊號S1處於預設位準的時間長度大於預設時間長度時,則處理電路12產生正常訊號而不產生異常訊號S2,其中正常訊號具有高位準,邏輯電路11在步驟S03中係判斷是否接收到具有低位準之異常訊號S2。In one embodiment, the aforementioned first level and second level may be high level (ie logic "1") and low level (ie logic "0"), respectively. The logic circuit 11 performs steps S01 and S05. The first enabling signal S31 with a low level and the first enabling signal S31 with a high level are respectively sent; the abnormal signal S2 may have a low level, and the processing circuit 12 judges that the operating temperature is not greater than the preset in the high-temperature detection unit When the temperature and the processing circuit 12 does not receive the pressing signal S1 at the preset level for a time longer than the preset time length, the processing circuit 12 generates a normal signal without generating an abnormal signal S2, where the normal signal has a high level, and the logic circuit 11 In step S03, it is judged whether an abnormal signal S2 with a low level is received.

在一實施例中,當邏輯電路11偵測到異常訊號S2卻未判斷出按壓訊號S1處於預設位準的時間長度大於預設時間長度時(步驟S04之判斷結果為「否」),表示處理電路12的運作溫度異常而切換至低耗電模式但使用者並未長按電源鍵13;此時,邏輯電路11繼續產生處於第一位準之第一致能訊號S31(步驟S01),使電源產生電路14持續產生工作電源P1及待機電源P2(步驟S02),也就是當邏輯電路11未判定按壓訊號S1處於預設位準的時間長度大於預設時間長度時,邏輯電路11並不會控制電源產生電路14停止產生待機電源P2,因而電腦裝置1並不會因為沒有接收到待機電源P2而切換至監控模式。In one embodiment, when the logic circuit 11 detects the abnormal signal S2 but does not determine that the time length of the pressing signal S1 at the preset level is greater than the preset time length (the judgment result of step S04 is "No"), it means The operating temperature of the processing circuit 12 is abnormal and it switches to the low power consumption mode but the user does not long press the power button 13; at this time, the logic circuit 11 continues to generate the first enable signal S31 at the first level (step S01), Make the power generation circuit 14 continue to generate the working power P1 and the standby power P2 (step S02), that is, when the logic circuit 11 does not determine that the pressing signal S1 is at the preset level for longer than the preset time length, the logic circuit 11 does not The power generation circuit 14 is controlled to stop generating the standby power P2, so the computer device 1 will not switch to the monitoring mode because it does not receive the standby power P2.

在一實施例中,如圖2所示,處理電路12包含中央處理器121及平台路徑控制器122,當電腦裝置1處在工作模式時,平台路徑控制器122產生具有第一位準的第二致能訊號S32用以控制電源產生電路14產生工作電源P1,以供電腦裝置1運作於工作模式,當平台路徑控制器122產生具有第二位準的第二致能訊號S32以控制電源產生電路14不產生工作電源P1,而使電腦裝置1運作於待機模式;當邏輯電路11產生處於第一位準之第一致能訊號S31,則使電源產生電路14產生待機電源P2,以供電腦裝置1運作於工作模式及待機模式其中一者所需的電力,當邏輯電路11產生處於第二位準之第一致能訊號S31,以控制電源產生電路14根據處於第二位準之第一致能訊號S31停止產生待機電源P2及工作電源P1(步驟S06),使平台路徑控制器122及中央處理器121因為沒有接收到待機電源P2及工作電源P1而進入關閉狀態,電腦裝置1也由工作模式切換至監控模式。In one embodiment, as shown in FIG. 2, the processing circuit 12 includes a central processing unit 121 and a platform path controller 122. When the computer device 1 is in the working mode, the platform path controller 122 generates a first level The second enable signal S32 is used to control the power generation circuit 14 to generate the working power P1 for the computer device 1 to operate in the working mode. When the platform path controller 122 generates the second enable signal S32 with the second level to control the power generation The circuit 14 does not generate the working power supply P1, but makes the computer device 1 operate in the standby mode; when the logic circuit 11 generates the first enable signal S31 at the first level, the power generation circuit 14 generates the standby power supply P2 for the computer When the device 1 operates in one of the working mode and the standby mode, when the logic circuit 11 generates the first enable signal S31 at the second level, the power generating circuit 14 is controlled according to the first enable signal S31 at the second level. The enable signal S31 stops generating the standby power supply P2 and the working power supply P1 (step S06), so that the platform path controller 122 and the central processing unit 121 enter the shutdown state because they do not receive the standby power supply P2 and the working power supply P1, and the computer device 1 is also switched off The working mode is switched to the monitoring mode.

再者,在平台路徑控制器122進入關閉狀態之前也就是邏輯電路11尚未產生具有第二位準的第一致能訊號S31以控制電源產生電路14停止產生待機電源P2之前,當邏輯電路11偵測到異常訊號S2且按鍵訊號S1處於預設位準的時間長度大於預設時間長度時,請合併參照圖2及圖5,邏輯電路11更產生一關機訊號S6給平台路徑控制器122,且邏輯電路11係藉由輸出端112輸出關機訊號S6,輸出端112係有別於輸出第一致能訊號S31之輸出端111,使平台路徑控制器122根據關機訊號S6執行相應之關機作業,例如使平台路徑控制器122產生具有第二位準的第二致能訊號S32,進而先控制電源產生電路14停止產生工作電源P1。然而,由於電腦裝置1發生當機時,中央處理器121及平台路徑控制器122並無法正常地切換至關閉狀態而控制電腦裝置1重新啟動以重新初始化來解決電腦裝置1當機的問題,本案的電腦裝置1係根據邏輯電路11控制電源產生電路14停止產生工作電源P1及待機電源P2而切換至監控模式,由於電腦裝置1當機時,其中央處理器121或其處理電路12無法順利的進入關閉狀態,而無法再次進行初始化,由於其自身沒有支援根據使用者長按電源鍵13而正常地執行電腦裝置1之關機作業的功能,進而無法在無需使用者插拔電源線的狀況下修復電腦裝置1的當機問題,本案藉由邏輯電路11判斷按鍵訊號S1處於預設位準的時間長度大於預設時間長度時,即執行前述偵測高溫後之緊急處理作業而控制電腦裝置1進入監控模式,也就是處理電路12包括中央處理器121均已處於關閉狀態,且整個電腦裝置1,僅能透過藉由監控電源運作的邏輯電路11來偵測處於預設位準的按壓訊號S1之輸入之監控模式,而在無需使用者插拔電源線的狀況下,使電腦裝置1僅根據邏輯電路11偵測到處於預設位準的按壓訊號S1即可使電腦裝置1進行重新開機而重新初始化電腦裝置1的處理電路12,包括重新初始化中央處理器121及平台路徑控制器122,進而解除電腦裝置1的當機問題。Furthermore, before the platform path controller 122 enters the off state, that is, before the logic circuit 11 has generated the first enable signal S31 with the second level to control the power generation circuit 14 to stop generating the standby power P2, when the logic circuit 11 detects When the abnormal signal S2 is detected and the time length of the key signal S1 at the preset level is greater than the preset time length, please refer to FIGS. 2 and 5 together. The logic circuit 11 further generates a shutdown signal S6 to the platform path controller 122, and The logic circuit 11 outputs the shutdown signal S6 through the output terminal 112. The output terminal 112 is different from the output terminal 111 that outputs the first enable signal S31, so that the platform path controller 122 executes the corresponding shutdown operation according to the shutdown signal S6, for example The platform path controller 122 generates the second enable signal S32 with the second level, and then controls the power generation circuit 14 to stop generating the working power P1. However, when the computer device 1 crashes, the central processing unit 121 and the platform path controller 122 cannot normally switch to the off state and control the computer device 1 to restart to reinitialize to solve the problem of the computer device 1 crashing. According to the logic circuit 11, the computer device 1 controls the power generation circuit 14 to stop generating the working power supply P1 and the standby power supply P2 and switches to the monitoring mode. When the computer device 1 is down, its central processing unit 121 or its processing circuit 12 cannot be smoothly It enters the shutdown state and cannot be initialized again, because it does not support the function of normally executing the shutdown operation of the computer device 1 according to the user's long press of the power button 13, and it cannot be repaired without the user plugging and unplugging the power cord. The computer device 1 crashes. In this case, the logic circuit 11 determines that the key signal S1 is at the preset level for longer than the preset time period. The aforementioned emergency processing operation after detecting the high temperature is executed to control the computer device 1 to enter Monitoring mode, that is, the processing circuit 12 including the central processing unit 121 are all turned off, and the entire computer device 1 can only detect the pressing signal S1 at the preset level by monitoring the power operation of the logic circuit 11 Input monitoring mode, without the user plugging or unplugging the power cord, the computer device 1 can restart the computer device 1 only by detecting the pressing signal S1 at the preset level based on the logic circuit 11 Initializing the processing circuit 12 of the computer device 1 includes reinitializing the central processing unit 121 and the platform path controller 122 so as to resolve the crash problem of the computer device 1.

於是,當電腦裝置1之平台路徑控制器122並無法根據長按之電源鍵13使電腦裝置1之處理電路12進入關閉狀態時,邏輯電路11可藉由執行緊急處理作業來控制電源產生電路14停止產生供處理電路12(包括中央處理器121及平台路徑控制器122)運作之待機電源P2及工作電源P1,以迫使電腦裝置1切換至監控模式。並且,由於平台路徑控制器122與中央處理器121均為關閉狀態,電腦裝置1係處在低功耗之監控模式,相較於進階組態與電源介面(Advanced Configuration and Power Interface;ACPI)所定義之軟關機模式(soft-off,S5/G2),處在低功耗之監控模式之電腦裝置1所產生之功耗係小於電腦裝置1處在軟關機模式所產生之功耗,也就是藉由邏輯電路11控制電腦裝置1關機之機制更減少電腦裝置1處在軟關機模式中所產生之功耗,且處於當機中的電腦裝置1並無法藉由軟關機來完全的關閉處理電路12,而無法使處於當機中的電腦裝置1在無需使用者藉由插拔電源線的狀況下,使電腦裝置1進行重新開機。Therefore, when the platform path controller 122 of the computer device 1 cannot turn off the processing circuit 12 of the computer device 1 according to the long press of the power button 13, the logic circuit 11 can control the power generation circuit 14 by performing emergency processing operations. Stop generating the standby power P2 and the working power P1 for the operation of the processing circuit 12 (including the central processing unit 121 and the platform path controller 122) to force the computer device 1 to switch to the monitoring mode. In addition, since the platform path controller 122 and the central processing unit 121 are both off, the computer device 1 is in a low-power monitoring mode, compared to the advanced configuration and power interface (ACPI) The defined soft-off mode (soft-off, S5/G2), the power consumption of the computer device 1 in the low-power monitoring mode is less than the power consumption of the computer device 1 in the soft-off mode. The mechanism of controlling the shutdown of the computer device 1 by the logic circuit 11 reduces the power consumption of the computer device 1 in the soft shutdown mode, and the computer device 1 in the crash cannot be completely shut down by soft shutdown. The circuit 12 cannot enable the computer device 1 in a crash to restart the computer device 1 without the user having to plug and unplug the power cord.

在一實施例中,當電腦裝置1處在監控模式時,中央處理器121及平台路徑控制器122也因為沒有接收到工作電源P1及待機電源P2而處於關閉狀態,而藉由監控電源運作的邏輯電路11則於電腦裝置1處在監控模式時仍可正常運作,邏輯電路11在監控模式中判斷按壓訊號S1處於預設位準時(步驟S10),以判斷電腦裝置1之使用者是否藉由按壓電源鍵13欲重新啟動電腦裝置1。當邏輯電路11判斷出具有預設位準的按壓訊號S1輸入時(步驟S10之判斷結果為「是」),表示電腦裝置1之使用者按壓電源鍵13,此時邏輯電路11產生具有第一位準的第一致能訊號S31(步驟S11)以控制電源產生電路14產生待機電源P2,而使平台路徑控制器122再次接收到待機電源P2以進行初始化而再次產生具有第一位準的第二致能訊號S32進而控制電源產生電路14產生供中央處理器121及平台路徑控制器122運作之工作電源P1,且邏輯電路11還藉由輸出端113發送一重置訊號S5至處理電路12(步驟S12),使處理電路12進行一重置作業,中央處理器121及平台路徑控制器122可根據重置訊號S5設定各暫存器之設定參數或暫存之資料均恢復至預設值,詳細來說,平台路徑控制器122重新接收到待機電源P2及重置訊號S5即以重置後的設定參數或暫存資料進行自身的初始化以重新產生具有第一位準的第二致能訊號S32,進而控制電源產生電路14提供電腦裝置1進入工作模式所需的工作電源P1,雷同的,中央處理器121亦於接收到工作電源P1後以具有預設值之設定參數來重新啟動;待重置作業完成之後中央處理器121及平台路徑控制器122始執行電腦裝置1之開機作業,以避免中央處理器121及平台路徑控制器122因斷電關閉後未回復至預設之設定而導致電腦裝置1在進行重新開機的過程中因未回復至預設之設定再次造成電腦裝置1發生當機問題。In one embodiment, when the computer device 1 is in the monitoring mode, the central processing unit 121 and the platform path controller 122 are also in the off state because they did not receive the working power P1 and the standby power P2. The logic circuit 11 can still operate normally when the computer device 1 is in the monitoring mode. In the monitoring mode, the logic circuit 11 determines that the pressing signal S1 is at the preset level (step S10) to determine whether the user of the computer device 1 Press the power button 13 to restart the computer device 1. When the logic circuit 11 determines that the pressing signal S1 with a preset level is input (the result of step S10 is "Yes"), it means that the user of the computer device 1 presses the power button 13, and the logic circuit 11 generates a first The first enable signal S31 of the first level (step S11) is used to control the power generation circuit 14 to generate the standby power P2, so that the platform path controller 122 receives the standby power P2 again for initialization to generate the first level of the first power again. The two enable signal S32 further controls the power generation circuit 14 to generate the working power P1 for the operation of the central processing unit 121 and the platform path controller 122, and the logic circuit 11 also sends a reset signal S5 to the processing circuit 12 through the output terminal 113 ( Step S12), make the processing circuit 12 perform a reset operation, the central processing unit 121 and the platform path controller 122 can set the setting parameters of each register or the temporarily stored data to restore to the default value according to the reset signal S5. In detail, when the platform path controller 122 receives the standby power P2 and the reset signal S5 again, it initializes itself with the reset setting parameters or temporary data to regenerate the second enable signal with the first level. In S32, the power generating circuit 14 is further controlled to provide the working power P1 required by the computer device 1 to enter the working mode. Similarly, the central processing unit 121 also restarts with preset parameters after receiving the working power P1; After the reset operation is completed, the CPU 121 and the platform path controller 122 will start the computer device 1 to prevent the CPU 121 and the platform path controller 122 from not returning to the default settings after being powered off. When the computer device 1 is restarted, the computer device 1 fails to return to the default setting, which causes the computer device 1 to crash again.

在一實施例中,電源產生電路14所產生之工作電源P1係相應於電腦裝置1之主機板上供中央處理器121及平台路徑控制器122運作之一主電源(main power)(為方便描述,以下稱為工作電源P1)且工作電源P1係藉由轉換電源產生電路14所產生之待機電源P2(standby power)而產生,電源產生電路14在接收到處於第二位準之第一致能訊號S31時係停止產生前述之待機電源P2,以連帶的停止電源產生電路14產生工作電源P1,進而造成中央處理器121及平台路徑控制器122進入關閉狀態而致使電腦裝置1關機而進入監控模式;再者,當電腦裝置1處於監控模式時,邏輯電路11係根據電腦裝置1之主機板上提供之監控電源運作,而由於電腦裝置1的監控電源僅供少數相關於偵測判斷按壓訊號S1處於預設位準的相關電路(包括邏輯電路11、連接邏輯電路11及電源鍵13的相關電路以及根據觸發產生按壓訊號S1的電源鍵13相關電路等)使用,因此電腦裝置1的監控電源的功耗小於前述之待機電源P2的功耗。In one embodiment, the working power P1 generated by the power generating circuit 14 corresponds to a main power on the motherboard of the computer device 1 for the central processing unit 121 and the platform path controller 122 to operate (for the convenience of description) , Hereinafter referred to as the working power P1) and the working power P1 is generated by converting the standby power P2 (standby power) generated by the power generating circuit 14. The power generating circuit 14 receives the first enable at the second level The signal S31 stops generating the aforementioned standby power supply P2, and the associated stop power generation circuit 14 generates the working power supply P1, which causes the central processing unit 121 and the platform path controller 122 to enter the off state, causing the computer device 1 to shut down and enter the monitoring mode ; Furthermore, when the computer device 1 is in the monitoring mode, the logic circuit 11 operates according to the monitoring power supply provided by the motherboard of the computer device 1, and since the monitoring power supply of the computer device 1 is only a small number related to the detection and determination of the pressing signal S1 The related circuits at the preset level (including the logic circuit 11, the related circuit connecting the logic circuit 11 and the power button 13, and the power button 13 related circuit that generates the pressing signal S1 according to the trigger, etc.) are used, so the monitoring power supply of the computer device 1 The power consumption is less than the power consumption of the aforementioned standby power supply P2.

在一實施例中,邏輯電路11可以微控制器(MCU)來實現。In an embodiment, the logic circuit 11 may be implemented by a microcontroller (MCU).

綜上所述,根據本案之電腦裝置及其關機及重啟方法之一實施例,當電腦裝置的處理電路或是其他元件無法根據使用者長按電源鍵而正常地執行關機作業以進入監控模式時,邏輯電路能藉由緊急處理作業之方式緊急地關閉處理電路至關閉狀態,以迫使電腦裝置關機至監控模式,以解決使用者於電腦裝置當機的情況下無法以長按電源鍵來使處理電路切換至關閉狀態而無法正常地使電腦裝置重新啟動進行開機程序來對處理電路進行重置作業,以修正處理電路中可能造成電腦裝置當機的錯誤的設定參數。並且,邏輯電路能控制處理電路在電腦裝置關機進入監控模式後之重啟作業中的開機程序進行重置作業,以避免發生處理電路因進入監控模式後未回復至預設值之設定參數而導致電腦裝置在重啟後仍以錯誤的設定參數執行開機程序而再次造成電腦裝置的當機之問題。In summary, according to an embodiment of the computer device and its shutdown and restart method in this case, when the processing circuit or other components of the computer device cannot normally perform shutdown operations to enter the monitoring mode according to the user's long press of the power button , The logic circuit can urgently shut down the processing circuit to the off state by means of emergency processing operations, so as to force the computer device to shut down to the monitoring mode, so as to solve the problem that the user can not long press the power button to make the processing when the computer device is down. The circuit is switched to the off state and the computer device cannot be restarted normally to perform a boot process to reset the processing circuit, so as to correct the wrong setting parameters in the processing circuit that may cause the computer device to crash. In addition, the logic circuit can control the processing circuit to reset the boot program in the restart operation after the computer device is shut down and enter the monitoring mode, so as to avoid the occurrence of the processing circuit that does not return to the preset value after entering the monitoring mode and the computer After the device is restarted, it still executes the boot process with the wrong setting parameters, which again causes the computer device to crash.

雖然本案已以實施例揭露如上然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although this case has been disclosed by the examples above, it is not intended to limit the case. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the case. Therefore, the scope of protection of this case The scope of the patent application attached hereafter shall prevail.

1:電腦裝置 11:邏輯電路 111:輸出端 112:輸出端 113:輸出端 12:處理電路 121:中央處理器 122:平台路徑控制器 13:電源鍵 14:電源產生電路 S1:按壓訊號 S2:異常訊號 S32:第二致能訊號 S31:第一致能訊號 S5:重置訊號 S6:關機訊號 P1:工作電源 P2:待機電源 S01-S12:步驟1: computer device 11: Logic circuit 111: output 112: output 113: Output 12: Processing circuit 121: Central Processing Unit 122: Platform Path Controller 13: Power button 14: Power generation circuit S1: Press signal S2: Abnormal signal S32: The second enabling signal S31: The first enabling signal S5: Reset signal S6: Shutdown signal P1: Working power supply P2: Standby power S01-S12: steps

[圖1] 為根據本發明之電腦裝置之一實施例之外觀示意圖。 [圖2] 為根據本發明之電腦裝置之一實施例之方塊示意圖。 [圖3] 為根據本發明之處理單元之異常訊號產生方法之一實施例之流程圖。 [圖4] 為根據本發明之電腦裝置的關機及重啟方法之一實施例之流程圖。 [圖5] 為圖1之電腦裝置之一實施態樣之方塊示意圖。[Fig. 1] is a schematic diagram of the appearance of an embodiment of the computer device according to the present invention. [Figure 2] is a block diagram of an embodiment of the computer device according to the present invention. [Figure 3] is a flowchart of an embodiment of the abnormal signal generation method of the processing unit according to the present invention. [Figure 4] is a flowchart of an embodiment of the shutdown and restart method of the computer device according to the present invention. [Fig. 5] is a block diagram of an implementation aspect of the computer device in Fig. 1. [Fig.

1:電腦裝置1: computer device

11:邏輯電路11: Logic circuit

12:處理電路12: Processing circuit

121:中央處理器121: Central Processing Unit

122:平台路徑控制器122: Platform Path Controller

13:電源鍵13: Power button

14:電源產生電路14: Power generation circuit

S1:按壓訊號S1: Press signal

S2:異常訊號S2: Abnormal signal

S31:第一致能訊號S31: The first enabling signal

S32:第二致能訊號S32: The second enabling signal

P1:工作電源P1: Working power supply

P2:待機電源P2: Standby power

Claims (10)

一種具緊急關機及重啟功能之電腦裝置,包含: 一電源鍵; 一處理電路,耦接該電源鍵,該處理電路具有一運作溫度,且用以在該運作溫度大於一預設溫度時產生一異常訊號,或在相應該電源鍵受按壓時所產生之一按壓訊號處於一預設位準的時間長度大於一預設時間長度時產生該異常訊號; 一電源產生電路,耦接該處理電路,用以根據處於一第一位準之一第一致能訊號產生供該處理電路運作之一工作電源及一待機電源,並根據處於一第二位準之該第一致能訊號不產生該工作電源及該待機電源;及 一邏輯電路,耦接該處理電路及該電源產生電路,用以在該電腦裝置之一工作模式中產生處於該第一位準之該第一致能訊號,並偵測該異常訊號,且判斷該按壓訊號處於該預設位準的時間長度是否大於該預設時間長度,當該邏輯電路偵測到該異常訊號且該按鍵訊號處於該預設位準的時間長度大於該預設時間長度時,該邏輯電路產生處於該第二位準之該第一致能訊號控制該電源產生電路停止產生該工作電源及該待機電源,以關閉該處理電路,致使該電腦裝置由該工作模式切換至一監控模式。A computer device with emergency shutdown and restart functions, including: A power button; A processing circuit coupled to the power button, the processing circuit has an operating temperature, and is used to generate an abnormal signal when the operating temperature is greater than a preset temperature, or to generate a pressing when the corresponding power button is pressed The abnormal signal is generated when the signal is at a predetermined level for longer than a predetermined length of time; A power generation circuit, coupled to the processing circuit, is used to generate a working power supply and a standby power supply for the processing circuit to operate according to a first enable signal at a first level, and according to a second level The first enabling signal does not generate the working power source and the standby power source; and A logic circuit, coupled to the processing circuit and the power generation circuit, is used to generate the first enable signal at the first level in a working mode of the computer device, detect the abnormal signal, and determine Whether the time length of the pressing signal at the preset level is greater than the preset time length, when the logic circuit detects the abnormal signal and the time length of the key signal at the preset level is greater than the preset time length , The logic circuit generates the first enable signal at the second level to control the power generation circuit to stop generating the working power and the standby power to turn off the processing circuit, causing the computer device to switch from the working mode to a Monitoring mode. 如請求項1所述之電腦裝置,其中該處理電路包含一中央處理器及一平台路徑控制器,其中該電源產生電路係根據該第一致能訊號產生供該平台路徑控制器運作之該待機電源,使該平台路徑控制器根據該待機電源產生一第二致能訊號,且該電源產生電路根據該第二致能訊號產生供該中央處理器及該平台路徑控制器在該工作模式中運作之該工作電源,當該邏輯電路產生處於該第二位準之該第一致能訊號時,該電源產生電路係停止產生該待機電源,使該平台路徑控制器關閉而停止產生該第二致能訊號以關閉該中央處理器,致使該電腦裝置切換至該監控模式。The computer device according to claim 1, wherein the processing circuit includes a central processing unit and a platform path controller, wherein the power generation circuit generates the standby for the platform path controller to operate according to the first enable signal The power supply enables the platform path controller to generate a second enable signal according to the standby power, and the power generation circuit generates a second enable signal according to the second enable signal for the CPU and the platform path controller to operate in the working mode For the working power supply, when the logic circuit generates the first enable signal at the second level, the power generation circuit stops generating the standby power, so that the platform path controller shuts down and stops generating the second activation signal Can signal to turn off the central processing unit, causing the computer device to switch to the monitoring mode. 如請求項2所述之電腦裝置,其中該邏輯電路在該監控模式中係根據該電腦裝置之主機板提供之監控電源運作,該邏輯電路在該監控模式中判斷相應該電源鍵受按壓時所產生之另一按壓訊號是否處於該預設位準。The computer device according to claim 2, wherein the logic circuit operates according to the monitoring power provided by the motherboard of the computer device in the monitoring mode, and the logic circuit determines in the monitoring mode that the corresponding power button is pressed Whether the generated another pressing signal is at the preset level. 如請求項3所述之電腦裝置,其中當該按壓訊號處於該預設位準時,該邏輯電路產生處於該第一位準之該第一致能訊號,以啟動該平台路徑控制器及該中央處理器,使該電腦裝置由該監控模式切換至該工作模式。The computer device according to claim 3, wherein when the pressing signal is at the preset level, the logic circuit generates the first enable signal at the first level to activate the platform path controller and the center The processor enables the computer device to switch from the monitoring mode to the working mode. 如請求項4所述之電腦裝置,其中該邏輯電路在產生處於該第一位準之該第一致能訊號之後,該邏輯電路產生一重置訊號給該中央處理器及該平台路徑控制器,使該中央處理器及該平台路徑控制器根據該重置訊號先執行一重置作業,且該中央處理器及該平台路徑控制器待執行該重置作業後始執行該電腦裝置之一開機作業,該電腦裝置進入該工作模式。The computer device according to claim 4, wherein after the logic circuit generates the first enable signal at the first level, the logic circuit generates a reset signal to the central processing unit and the platform path controller , Enabling the central processing unit and the platform path controller to first perform a reset operation according to the reset signal, and the central processing unit and the platform path controller will start one of the computer devices after the reset operation is performed Operation, the computer device enters the working mode. 一種電腦裝置的關機及重啟方法,包含: 一邏輯電路在一工作模式中產生處於一第一位準之一第一致能訊號給一電源產生電路產生供一處理電路運作之一工作電源及一待機電源; 該處理電路在一運作溫度大於一預設溫度時產生一異常訊號,或在相應一電源鍵受按壓時所產生之一按壓訊號處於一預設位準的時間長度大於一預設時間長度時產生該異常訊號; 該邏輯電路判斷是否接收到該異常訊號; 該邏輯電路判斷該按壓訊號處於該預設位準的時間長度是否大於該預設時間長度; 當該邏輯電路接收到該異常訊號且該按壓訊號處於該預設位準的時間長度大於該預設時間長度時,該邏輯電路產生處於一第二位準之該第一致能訊號;及 該電源產生電路根據處於該第二位準之該第一致能訊號停止產生該工作電源及該待機電源以關閉該處理電路,使該電腦裝置自該工作模式切換至一監控模式。A method for shutting down and restarting a computer device, including: A logic circuit generates a first enable signal at a first level in a working mode to a power generation circuit to generate a working power supply and a standby power supply for a processing circuit to operate; The processing circuit generates an abnormal signal when an operating temperature is greater than a preset temperature, or when a pressing signal generated when a corresponding power button is pressed is at a preset level for longer than a preset period of time The abnormal signal; The logic circuit judges whether the abnormal signal is received; The logic circuit determines whether the time length during which the pressing signal is at the predetermined level is greater than the predetermined time length; When the logic circuit receives the abnormal signal and the time length of the pressing signal at the predetermined level is greater than the predetermined time length, the logic circuit generates the first enable signal at a second level; and The power generating circuit stops generating the working power and the standby power according to the first enabling signal at the second level to turn off the processing circuit, so that the computer device is switched from the working mode to a monitoring mode. 如請求項6所述之電腦裝置的關機及重啟方法,其中該電源產生電路產生供該處理電路運作之該工作電源及該待機電源之步驟包含: 該電源產生電路根據處於該第一位準之該第一致能訊號產生供該處理電路之一平台路徑控制器運作之該待機電源; 該平台路徑控制器根據該待機電源運作而產生一第二致能訊號;及 該電源產生電路根據該第二致能訊號產生該工作電源供該平台路徑控制器及該處理電路之一中央處理器在該工作模式中運作; 其中,該電源產生電路根據處於該第二位準之該第一致能訊號停止產生該工作電源及該待機電源之步驟中,該電源產生電路係根據處於該第二位準之該第一致能訊號停止產生該待機電源以關閉該平台路徑控制器,使該中央處理器未接收到該工作電源而關閉。The shutdown and restart method of a computer device according to claim 6, wherein the steps of the power generation circuit generating the working power and the standby power for the processing circuit to operate include: The power generation circuit generates the standby power for the operation of a platform path controller of the processing circuit according to the first enable signal at the first level; The platform path controller generates a second enable signal according to the operation of the standby power; and The power generating circuit generates the working power according to the second enabling signal for the platform path controller and a central processing unit of the processing circuit to operate in the working mode; Wherein, the power generating circuit stops generating the working power and the standby power according to the first enabling signal at the second level, and the power generating circuit is based on the first enabling signal at the second level. It can signal to stop generating the standby power to shut down the platform path controller, so that the central processing unit shuts down without receiving the working power. 如請求項7所述之電腦裝置的關機及重啟方法,更包含: 該邏輯電路在該監控模式中根據該電腦裝置之主機板提供之監控電源運作以判斷相應該電源鍵受按壓時所產生之另一按壓訊號是否處於該預設位準。The shutdown and restart method of the computer device described in claim 7 further includes: In the monitoring mode, the logic circuit operates according to the monitoring power provided by the motherboard of the computer device to determine whether another pressing signal generated when the corresponding power button is pressed is at the preset level. 如請求項8所述之電腦裝置的關機及重啟方法,更包含: 當該按壓訊號處於該預設位準時,該邏輯電路產生處於該第一位準之該第一致能訊號,以啟動該平台路徑控制器及該中央處理器,使該電腦裝置由該監控模式切換至該工作模式。The shutdown and restart method of the computer device as described in claim 8, further including: When the pressing signal is at the preset level, the logic circuit generates the first enable signal at the first level to activate the platform path controller and the central processing unit, so that the computer device is in the monitoring mode Switch to this working mode. 如請求項9所述之電腦裝置的關機及重啟方法,更包含:該邏輯電路在產生處於該第一位準之該第一致能訊號之後,該邏輯電路產生一重置訊號給該中央處理器及該平台路徑控制器; 該中央處理器及該平台路徑控制器根據該重置訊號執行一重置作業;及 該中央處理器及該平台路徑控制器待執行該重置作業後執行該電腦裝置之一開機作業。The shutdown and restart method of a computer device according to claim 9, further comprising: after the logic circuit generates the first enable signal at the first level, the logic circuit generates a reset signal to the central processing unit And the path controller of the platform; The central processing unit and the platform path controller perform a reset operation according to the reset signal; and The central processing unit and the platform path controller execute a boot operation of the computer device after executing the reset operation.
TW108133122A 2019-09-12 2019-09-12 Computer device and shutdown and reboot controlling method thereof TWI720615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108133122A TWI720615B (en) 2019-09-12 2019-09-12 Computer device and shutdown and reboot controlling method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108133122A TWI720615B (en) 2019-09-12 2019-09-12 Computer device and shutdown and reboot controlling method thereof

Publications (2)

Publication Number Publication Date
TWI720615B TWI720615B (en) 2021-03-01
TW202111526A true TW202111526A (en) 2021-03-16

Family

ID=76035699

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108133122A TWI720615B (en) 2019-09-12 2019-09-12 Computer device and shutdown and reboot controlling method thereof

Country Status (1)

Country Link
TW (1) TWI720615B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI806380B (en) * 2022-01-24 2023-06-21 友達光電股份有限公司 Wearable electronic device and control method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8375404B2 (en) * 2008-12-30 2013-02-12 The Nielsen Company (Us), Llc Methods and apparatus to enforce a power off state of an audience measurement device during shipping
KR101688144B1 (en) * 2010-06-16 2016-12-20 엘지전자 주식회사 Mobile terminal and method for power management thereof
CN102981425B (en) * 2012-11-27 2014-12-03 广东威创视讯科技股份有限公司 Startup and shutdown circuit
CN107305416A (en) * 2016-04-21 2017-10-31 西安中兴新软件有限责任公司 A kind of control method and terminal
CN105958844B (en) * 2016-04-29 2018-08-14 优利德科技(中国)股份有限公司 A kind of intelligence soft switching power implementation method and intelligent soft switching power

Also Published As

Publication number Publication date
TWI720615B (en) 2021-03-01

Similar Documents

Publication Publication Date Title
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
TWI436588B (en) Setting method of power lock-up and electronic apparatus thereof
US8055889B2 (en) BIOS management device and method for managing BIOS setting value
US20140143477A1 (en) Computer system and data recovery method thereof
US8745367B2 (en) Electronic system, and preheating method and apparatus thereof
TW201512831A (en) Computer booting system and method of a computer
KR20200002603A (en) Power button override for persistent memory enabled platforms
JP2011258032A (en) Information processing unit
US8726088B2 (en) Method for processing booting errors
TW201321949A (en) Power control method during booting and system thereof
TWI693513B (en) Server system and power saving method thereof
TWI720615B (en) Computer device and shutdown and reboot controlling method thereof
TWI582699B (en) Boot Status Notification Method and Server System Using the Same
WO2005071531A1 (en) A method and device for start up computer
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product
CN113672433B (en) Computer device and shutdown and restarting method thereof
TWI468913B (en) Computer system and method for starting and setting computer system
JP2005165415A (en) Information processor and method and program for starting system
CN108073481B (en) Server system capable of providing hardware operation information and processing method thereof
JP2010049311A (en) Information processing apparatus, pos terminal, and control method for forced termination
TWI665561B (en) Server and remote control method thereof
CN111142646B (en) Server system and power saving method thereof
TWI715005B (en) Monitor method for demand of a bmc
TWI734357B (en) Mainboard and assisting test method of thereof
JPS6312013A (en) Restarting system for data processor