[go: up one dir, main page]

TWI626539B - Computer System Error Warning Method - Google Patents

Computer System Error Warning Method Download PDF

Info

Publication number
TWI626539B
TWI626539B TW106113716A TW106113716A TWI626539B TW I626539 B TWI626539 B TW I626539B TW 106113716 A TW106113716 A TW 106113716A TW 106113716 A TW106113716 A TW 106113716A TW I626539 B TWI626539 B TW I626539B
Authority
TW
Taiwan
Prior art keywords
system management
management interrupt
interrupt condition
condition
state
Prior art date
Application number
TW106113716A
Other languages
Chinese (zh)
Other versions
TW201839610A (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 TW106113716A priority Critical patent/TWI626539B/en
Application granted granted Critical
Publication of TWI626539B publication Critical patent/TWI626539B/en
Publication of TW201839610A publication Critical patent/TW201839610A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

電腦系統錯誤的警示方法包含執行裝置記憶體初始化程序;執行驅動裝置初始化程序;進入系統管理模式以設置至少一個系統管理中斷條件;啟動作業系統;及若至少一個系統管理中斷條件中的一個系統管理中斷條件被觸發,控制發光裝置操作於閃爍狀態。The computer system error warning method includes executing the device memory initialization program; executing the driver initialization program; entering the system management mode to set at least one system management interrupt condition; starting the operating system; and if at least one of the system management interrupt conditions is managed by a system The interrupt condition is triggered to control the illumination device to operate in a blinking state.

Description

電腦系統錯誤的警示方法Computer system error warning method

本發明描述了一種電腦系統錯誤的警示方法,尤指一種利用發光裝置發出特定閃爍頻率的警示方法。The invention describes a warning method for a computer system error, in particular a warning method for using a light-emitting device to emit a specific blinking frequency.

隨著電腦的普及化,各式各樣的硬體、軟體、以及韌體也大量被整合於電腦中以提升電腦的功能性。由於電腦是以主機板為中心而驅動各種不同的軟體/硬體,當某些軟體/硬體異常時,會導致電腦無法正常啟動作業系統。With the popularity of computers, a wide variety of hardware, software, and firmware have also been integrated into computers to enhance the functionality of computers. Since the computer drives a variety of different software/hardware centered on the motherboard, when some software/hardware is abnormal, the computer cannot start the operating system normally.

為了便於使用者除錯,一些電腦設計商會在主機板上整合硬體偵測系統。硬體偵測系統在開機時可自我偵測基本輸入輸出系統(BIOS)的代碼,並檢測主機板上各種設備的狀態。如果有部件發生故障,整合硬體偵測系統會產生錯誤碼至基本輸入輸出系統。因此,使用者根據觀察基本輸入輸出系統上的錯誤碼,可以判斷電腦故障的位置和原因。In order to facilitate user debugging, some computer designers will integrate hardware detection systems on the motherboard. The hardware detection system can self-detect the code of the basic input/output system (BIOS) when booting, and detect the status of various devices on the motherboard. If a component fails, the integrated hardware detection system generates an error code to the basic input/output system. Therefore, the user can determine the location and cause of the computer failure based on observing the error code on the basic input/output system.

然而,舊型的主機板並沒有整合硬體偵測系統,使用者必須購買額外的除錯卡(Debug Card)才能達到上述功能。並且,如上述,傳統的主機板的錯誤訊息會以基本輸入輸出系統上的錯誤碼表示。除非熟悉電腦程式或是錯誤編碼的使用者才能快速地找到電腦發生故障的位置和原因。否則,對於一般的使用者而言,觀察基本輸入輸出系統上的錯誤碼進而找到電腦發生故障的原因需要不短的時間。換句話說,對於傳統電腦內建的硬體偵測系統或是使用者額外購買的除錯卡而言,由於錯誤信息不夠直觀,因此可能導致一般使用者或是維修人員無法立刻解決問題。However, the old motherboard does not have a hardware detection system integrated, and the user must purchase an additional Debug Card to achieve the above functions. And, as mentioned above, the error message of the conventional motherboard is represented by the error code on the basic input/output system. Unless you are familiar with computer programs or incorrectly coded users, you can quickly find out where and why the computer has failed. Otherwise, it is not a short time for the average user to observe the error code on the basic input/output system and find the cause of the computer failure. In other words, for the traditional computer built-in hardware detection system or the error card that the user purchases extra, the error message is not intuitive enough, so the general user or the maintenance personnel cannot solve the problem immediately.

本發明一實施例提出一種電腦系統錯誤的警示方法,包含執行裝置記憶體初始化程序以偵測及還原錯誤的韌體參數,執行驅動裝置初始化程序以辨識並溝通所有硬體,在執行驅動裝置初始化程序後,進入系統管理模式以設置至少一個系統管理中斷條件,啟動作業系統,在作業系統啟動後,啟動系統管理中斷監控程序以監控至少一個系統管理中斷條件中的一個系統管理中斷條件是否被觸發,以及若系統管理中斷條件被觸發,控制發光裝置以使發光裝置操作於閃爍狀態。An embodiment of the present invention provides a method for alerting a computer system error, including executing a device memory initialization program to detect and restore incorrect firmware parameters, executing a driver initialization program to identify and communicate all hardware, and performing driver initialization. After the program, enter the system management mode to set at least one system management interrupt condition, start the operating system, and after the operating system starts, start the system management interrupt monitoring program to monitor whether a system management interrupt condition in at least one system management interrupt condition is triggered. And if the system management interrupt condition is triggered, controlling the illumination device to cause the illumination device to operate in a blinking state.

第1圖係為本發明之電腦系統100之實施例的架構圖。電腦系統100包含電腦PC以及發光裝置L。電腦PC可為一般家用的個人電腦(Personal Computer)的機身、工作機台、伺服器平台、筆記型電腦或是平板電腦等等。發光裝置L可為任何具備產生光信號能力的裝置,例如發光二極體燈或是鎢絲燈等等。發光裝置L耦接於電腦PC,用以顯示電腦PC目前的操作狀態。然而,電腦系統100的發光裝置L也可以整合在與電腦PC一體成形的機殼。舉例而言,發光裝置L可為設置於電腦PC之機殼上的電源顯示燈或是硬碟存取燈,任何合理的硬體變更皆屬於本發明所揭露的範疇。電腦PC包含主機板MB以及多個裝置D1至DN,其中N為正整數。裝置D1至DN可為硬體裝置、韌體裝置或是虛擬的軟體裝置。舉例而言,裝置D1可為隨機存取記憶體(Random Access Memory,RAM),裝置D2可為硬碟,裝置D3可為散熱風扇。裝置D1至DN耦接於主機板MB。因此,若電腦PC順利開機,則裝置D1至DN可被主機板MB驅動。主機板MB耦接於發光裝置L。在電腦系統100中,主機板MB可為任何形式的集成電路。並且,主機板MB具備電腦PC執行開機程序所用的所有軟體以及韌體。舉例而言,主機板MB可內存基本輸入輸出系統(Basic Input/Output System)。電腦PC可透過主機板MB內的基本輸入輸出系統執行進入作業系統(Operating System,OS)前的預動作。在電腦系統100中,若主機板MB啟動作業系統前發生錯誤,則發光裝置L將發出特定頻率的光信號,以警示使用者錯誤的位置和原因。並且,當主機板MB在啟動作業系統後,若作業系統運行時發生錯誤,則發光裝置L也將發出特定頻率的光信號,以警示使用者錯誤的位置和原因。當作業系統由錯誤中恢復為正常狀態時,發光裝置L也將變為正常的燈號。因此使用者可利用發光裝置L發出的光信號之型態,快速地找到錯誤的位置和原因。本發明的電腦系統錯誤的警示方法描述於後文。1 is an architectural diagram of an embodiment of a computer system 100 of the present invention. The computer system 100 includes a computer PC and a light emitting device L. The computer PC can be a personal computer (Personal Computer) body, a work machine, a server platform, a notebook computer or a tablet computer, and the like. The illuminating device L can be any device capable of generating an optical signal, such as a light emitting diode lamp or a tungsten wire lamp or the like. The illuminating device L is coupled to the computer PC for displaying the current operating state of the computer PC. However, the light-emitting device L of the computer system 100 can also be integrated into a casing that is integrally formed with the computer PC. For example, the light-emitting device L can be a power display light or a hard disk access light disposed on the casing of the computer PC, and any reasonable hardware change is within the scope of the present invention. The computer PC contains a motherboard MB and a plurality of devices D1 to DN, where N is a positive integer. Devices D1 through DN can be hardware devices, firmware devices, or virtual software devices. For example, the device D1 may be a random access memory (RAM), the device D2 may be a hard disk, and the device D3 may be a cooling fan. The devices D1 to DN are coupled to the motherboard MB. Therefore, if the computer PC is turned on smoothly, the devices D1 to DN can be driven by the motherboard MB. The motherboard MB is coupled to the light emitting device L. In computer system 100, motherboard MB can be any form of integrated circuit. Moreover, the motherboard MB has all the software and firmware used by the computer PC to execute the booting process. For example, the motherboard MB can be a basic input/output system (Basic Input/Output System). The PC can perform pre-operations before entering the operating system (OS) through the basic input/output system in the motherboard MB. In the computer system 100, if an error occurs before the motherboard MB starts the operating system, the lighting device L will emit an optical signal of a specific frequency to alert the user of the wrong location and cause. Moreover, when the motherboard MB starts the operating system, if an error occurs during the operation of the operating system, the lighting device L will also emit an optical signal of a specific frequency to alert the user of the wrong position and cause. When the operating system returns to the normal state from the error, the lighting device L will also become a normal light number. Therefore, the user can quickly find the wrong position and cause by using the type of the light signal emitted by the light-emitting device L. The warning method of the computer system error of the present invention is described later.

第2圖及第3圖係為電腦系統100中,電腦系統錯誤的警示方法之流程圖。電腦系統錯誤的警示方法包含步驟S201至步驟S214。然而,任何步驟內容或順序的合理變動皆屬於本發明所揭露的範疇。步驟S201至步驟S214描述於下。 <TABLE border="1" borderColor="#000000" width="85%"><TBODY><tr><td> 步驟S201: </td><td> 開機; </td></tr><tr><td> 步驟S202: </td><td> 執行裝置記憶體初始化程序; </td></tr><tr><td> 步驟S203: </td><td> 偵測裝置是否錯誤? 若是,執行步驟S204;若否,執行步驟S205; </td></tr><tr><td> 步驟S204: </td><td> 控制發光裝置L以使發光裝置L操作於第二閃爍狀態,並停止開機程序。 </td></tr><tr><td> 步驟S205: </td><td> 執行驅動裝置初始化程序; </td></tr><tr><td> 步驟S206: </td><td> 進入系統管理模式以設置至少一個系統管理中斷條件; </td></tr><tr><td> 步驟S207: </td><td> 執行開機裝置選擇程序; </td></tr><tr><td> 步驟S208: </td><td> 啟動作業系統; </td></tr><tr><td> 步驟S209: </td><td> 啟動系統管理中斷監控程序,以監控至少一個系統管理中斷條件之一個系統管理中斷條件是否被觸發? 若否,重新執行步驟S209以繼續監控系統管理中斷條件;若是,執行步驟S210; </td></tr><tr><td> 步驟S210: </td><td> 經過預定時間後,再次檢查系統管理中斷條件是否被觸發? 若否,執行步驟S211;若是,執行步驟S212; </td></tr><tr><td> 步驟S211: </td><td> 將系統管理中斷條件的狀態變更為初始化的狀態,並返回步驟S209以繼續監控系統管理中斷條件。 </td></tr><tr><td> 步驟S212: </td><td> 設置系統管理中斷條件為被觸發的狀態; </td></tr><tr><td> 步驟S213: </td><td> 控制發光裝置L,依據中斷條件的觸發結果而驅使發光裝置L操作於對應的燈號狀態; </td></tr><tr><td> 步驟S214: </td><td> 重新設定更新的系統管理中斷條件,並返回步驟S209以繼續監控系統管理中斷條件。 </td></tr></TBODY></TABLE>2 and 3 are flow charts of a warning method for a computer system error in the computer system 100. The warning method of the computer system error includes steps S201 to S214. However, reasonable variations in the content or order of any steps are within the scope of the present invention. Steps S201 to S214 are described below.  <TABLE border="1" borderColor="#000000" width="85%"><TBODY><tr><td> Step S201: </td><td> Power on; </td></tr>< Tr><td> Step S202: </td><td> Execute the device memory initialization program; </td></tr><tr><td> Step S203: </td><td> If yes, go to step S204; if no, go to step S205; </td></tr><tr><td> Step S204: </td><td> Control the light-emitting device L to operate the light-emitting device L The second flashing state and stop the boot process. </td></tr><tr><td> Step S205: </td><td> Execute the driver initialization program; </td></tr><tr><td> Step S206: </td ><td> Enter system management mode to set at least one system management interrupt condition; </td></tr><tr><td> Step S207: </td><td> Execute the boot device selection program; </td ></tr><tr><td> Step S208: </td><td> Start the operating system; </td></tr><tr><td> Step S209: </td><td> Start The system management interrupt monitor program to monitor whether a system management interrupt condition of at least one system management interrupt condition is triggered? If not, re-execute step S209 to continue monitoring the system management interrupt condition; if yes, execute step S210; </td>< /tr><tr><td> Step S210: </td><td> After the predetermined time has elapsed, check whether the system management interrupt condition is triggered again? If not, go to step S211; if yes, go to step S212; </td ></tr><tr><td> Step S211: </td><td> Changes the state of the system management interrupt condition to the initialized state, and returns to step S209 to continue monitoring the system management interrupt condition. </td></tr><tr><td> Step S212: </td><td> Set the system management interrupt condition to the triggered state; </td></tr><tr><td> S213: </td><td> controls the illuminating device L to drive the illuminating device L to operate in a corresponding light state according to the triggering result of the interrupt condition; </td></tr><tr><td> Step S214: </td><td> Resets the updated system management interrupt condition and returns to step S209 to continue monitoring the system management interrupt condition. </td></tr></TBODY></TABLE>

各步驟詳述如下。在步驟S201中,電腦PC會被開機。開機的定義可為使用者使用開機按鍵開啟了電腦PC的電源。接著,在步驟S202中,電腦PC會執行裝置記憶體初始化程序,以偵測及還原錯誤的韌體參數。舉例而言,電腦PC上的主機板MB會於開機後執行PEI程序(Unified Extensible Firmware Interface內的PEI程序),而PEI程序可視為後文所述的驅動裝置初始化程序之前置步驟,主要的動作為將記憶體初始化,並依據步驟S203,針對一些主要裝置去偵測錯誤。在步驟S203中,電腦PC會偵測裝置是否錯誤,若某些裝置發生錯誤,例如隨機存與記憶體RAM無法辨識,則依據步驟S204,電腦PC會利用基本輸入輸出系統來控制發光裝置L,以使發光裝置L操作於第二閃爍狀態,並停止開機程序。舉例而言,當主機板MB各元件初始化的過程中,若發生錯誤時(可為中央處理器發生錯誤),導致電腦PC無法進入作業系統時,則電腦PC會利用基本輸入輸出系統來控制發光裝置L,以使發光裝置L發出三短一長的閃爍光。並且,由於中央處理器發生錯誤,因此基本輸入輸出系統會停止開機程序,以避免主機板MB各元件發生不可逆的損壞。若沒有裝置發生錯誤,則依據步驟S205,電腦PC會執行驅動裝置初始化程序,以辨識並溝通所有硬體。舉例而言,電腦PC上的主機板MB會執行DXE程序(Unified Extensible Firmware Interface內的DXE程序),而DXE程序會辨識所有硬體,產生可延伸韌體介面(Extensible Firmware Interface)表,以提供各種服務於後面階段使用。DXE程序也會將電腦PC的控制權交給後文所述的BDS程序,以用來啟動作業系統。並且,電腦PC在執行步驟S205的同時,也可以執行步驟S206,進入系統管理模式(System Management Mode,SMM)以設置至少一個系統管理中斷(System Management Interrupt,SMI)條件。然而,本發明不限制步驟S205之執行驅動裝置初始化程序與步驟S206之進入系統管理模式為同時進行,步驟S206在步驟S205之後被執行也屬於本發明所揭露的範疇。在步驟S206中,至少一個系統管理中斷條件可為使用者手動設定或是系統的預設條件,例如風扇工作週期(Duty Cycle)的異常條件、中央處理器溫度的異常條件、及/或電壓狀態的異常條件都可被設定為不同的系統管理中斷條件。接著,依據步驟S207,電腦PC會執行開機裝置選擇程序。舉例而言,電腦PC上的主機板MB會執行BDS程序(Unified Extensible Firmware Interface內的BDS程序),而BDS程序會將辨識到的硬體有效化,這個有效化的步驟一般稱為連結(Connect)化。BDS程序也會控制主控器(Host Controller)去連結在可延伸韌體介面表內的裝置。BDS程序也會產生一些參數,如初始化特定鍵盤、滑鼠等這些操作桌面之裝置(Console Devices)的參數(例如ConIn、ConOut、StdErr),並產生連結這些裝置順序的參數(例如DriverOrder),並產生啟動作業系統之開機裝置順序的參數(例如 BootOrder),以選擇開機裝置啟動作業系統。當前述步驟均順利執行後,依據步驟S208,電腦PC的作業系統將被啟動。在本實施例中,電腦PC的作業系統不限於特定的作業系統,例如電腦PC的作業系統可為微軟的視窗(Windows)作業系統。The steps are detailed below. In step S201, the computer PC will be turned on. The definition of the boot can be used to power the computer PC using the power button. Next, in step S202, the computer PC executes a device memory initialization process to detect and restore the wrong firmware parameters. For example, the motherboard MB on the computer PC will execute the PEI program (the PEI program in the Unified Extensible Firmware Interface) after booting, and the PEI program can be regarded as the pre-step of the driver initialization program described later, the main As the memory is initialized, according to step S203, an error is detected for some main devices. In step S203, the computer PC detects whether the device is wrong. If some devices have errors, such as random memory and memory RAM cannot be recognized, the computer PC controls the light-emitting device L by using the basic input/output system according to step S204. The light-emitting device L is operated in the second blinking state, and the booting process is stopped. For example, when the components of the motherboard MB are initialized, if an error occurs (the central processor may generate an error), and the computer PC cannot enter the operating system, the computer PC uses the basic input/output system to control the illumination. The device L is such that the light-emitting device L emits three short and one long flashes of light. Moreover, due to an error in the central processing unit, the basic input/output system will stop the boot process to avoid irreversible damage to the components of the motherboard MB. If there is no error in the device, according to step S205, the computer PC executes the driver initialization program to identify and communicate all the hardware. For example, the motherboard MB on the PC will execute the DXE program (the DXE program in the Unified Extensible Firmware Interface), and the DXE program will recognize all the hardware and generate the Extensible Firmware Interface table to provide Various services are used in later stages. The DXE program also passes control of the computer PC to the BDS program described later to start the operating system. Moreover, the computer PC may perform step S206 at the same time as step S206, and enter a system management mode (SMM) to set at least one System Management Interrupt (SMI) condition. However, the present invention does not limit the execution of the drive device initialization procedure of step S205 to the simultaneous entry of the system management mode of step S206, and the execution of step S206 after step S205 is also within the scope of the present invention. In step S206, the at least one system management interrupt condition may be manually set by the user or a preset condition of the system, such as an abnormal condition of a fan duty cycle (Duty Cycle), an abnormal condition of a central processor temperature, and/or a voltage state. The exception conditions can be set to different system management interrupt conditions. Then, according to step S207, the computer PC executes the boot device selection process. For example, the motherboard MB on the PC will execute the BDS program (the BDS program in the Unified Extensible Firmware Interface), and the BDS program will validate the recognized hardware. This effective step is generally called a link. ). The BDS program also controls the Host Controller to connect to devices in the Extensible Firmware Interface Table. The BDS program also generates parameters such as initializing the parameters of a particular keyboard, mouse, etc. (such as ConIn, ConOut, StdErr) and generating parameters (such as DriverOrder) that link the order of the devices. A parameter (such as BootOrder) that initiates the sequence of the boot device of the operating system is generated to select the boot device to activate the operating system. After the foregoing steps are successfully performed, according to step S208, the operating system of the computer PC will be started. In this embodiment, the operating system of the computer PC is not limited to a specific operating system. For example, the operating system of the computer PC may be a Microsoft Windows operating system.

在作業系統被啟動後,依據步驟S209,電腦PC會進入一個監控系統管理中斷條件的程序。主機板MB會監控之前設定之至少一個系統管理中斷條件之一個系統管理中斷條件是否被觸發?而監控的方式可為依序檢查每一個系統管理中斷條件。舉例而言,第一系統管理中斷條件可為風扇速度低於X轉/分鐘,第二系統管理中斷條件可為主機板MB溫度高於攝氏Y度。電腦PC會依據步驟S209,先檢查風扇速度低於X轉/分鐘的條件是否成立,若不成立,表示風扇是正常狀態,因此電腦PC會重新執行步驟S209以繼續監控系統管理中斷條件(例如監控第二系統管理中斷條件:主機板MB溫度高於攝氏Y度)。若成立,則依據步驟S210,經過預定時間後,再次檢查先前被觸發的系統管理中斷條件是否仍被觸發? 舉例而言,風扇速度低於X轉/分鐘的條件於第一時間點成立,表示電腦PC的風扇轉速於第一時間點確實異常。然而,為了避免假警報(False Alarm)或是暫時的人為誤觸所導致的異常轉速,電腦PC於數秒後會再次檢查風扇速度低於X轉/分鐘的條件是否成立。若不成立,表示先前被觸發的系統管理中斷條件可能只是暫時性的系統異常,因此依據步驟S211,電腦PC會將系統管理中斷條件的狀態變更為初始化的狀態,並返回步驟S209以繼續監控系統管理中斷條件(例如監控第二系統管理中斷條件:主機板MB溫度高於攝氏Y度)。若成立,表示系統管理中斷條件不是暫時性地被觸發,電腦PC確實運作在異常狀態,例如風扇發生故障,轉速低於X轉/分鐘的條件一直成立。此時,依據步驟S212,電腦PC會設置系統管理中斷條件為被觸發的狀態。並且,依據步驟S213,主機板MB內的基本輸入輸出系統會設定輸入輸出晶片(例如Super I/O的晶片),以控制發光裝置L操作於第一閃爍狀態。舉例而言,作業系統在運作中,若發生系統警告時,主機板MB會利用設定好的系統管理中斷條件,觸發系統對輸入輸出晶片指定的暫存器做寫入的動作,如此將可以控制發光裝置L發出特定閃爍頻率的光信號。接著,依據步驟S214,電腦PC可重新設定更新的系統管理中斷條件。於此說明,當第一次電腦PC的錯誤發生時,會觸發步驟S209中之系統管理中斷條件,並於步驟S210中再次確認是否觸發。若系統管理中斷條件仍被觸發,則進入步驟S212以及步驟S213,控制發光裝置L,依據中斷條件的觸發結果而驅使發光裝置L操作於對應的燈號狀態。系統會驅使發光裝置L開始閃爍以警示使用者。例如發光裝置L可以第一頻率的閃爍狀態警示使用者。此時,電腦PC會進入步驟S214,重新設定更新的系統管理中斷條件。例如電腦PC可以設定讓系統恢復正常之中斷條件。當系統管理中斷條件於步驟S214被更新後,電腦PC會回到步驟S209繼續進行系統監控。由於系統管理中斷條件已經被設定為讓系統恢復正常之中斷條件,因此,當電腦PC由錯誤恢復為正常狀態時才會再次觸發中斷條件。After the operating system is started, according to step S209, the computer PC enters a program for monitoring the system management interrupt condition. The motherboard MB monitors whether a system management interrupt condition of at least one of the previously set system management interrupt conditions is triggered, and the monitoring mode may be to sequentially check each system management interrupt condition. For example, the first system management interrupt condition may be that the fan speed is lower than X rpm, and the second system management interrupt condition may be that the motherboard MB temperature is higher than Y degrees Celsius. The computer PC first checks whether the condition that the fan speed is lower than X revolutions/minute is established according to step S209. If not, it indicates that the fan is in a normal state, so the computer PC will re-execute step S209 to continue monitoring the system management interruption condition (for example, monitoring) The second system management interrupt condition: the motherboard MB temperature is higher than the Y degree Celsius). If yes, according to step S210, after a predetermined time elapses, it is checked again whether the previously triggered system management interrupt condition is still triggered. For example, the condition that the fan speed is lower than X revolutions/minute is established at the first time point, indicating The fan speed of the computer PC is abnormal at the first time. However, in order to avoid abnormal speed caused by false alarm or temporary human error, the computer PC will check again whether the condition that the fan speed is lower than X revolutions/minute is established after a few seconds. If not, it indicates that the previously triggered system management interrupt condition may be only a temporary system abnormality. Therefore, according to step S211, the computer PC changes the state of the system management interrupt condition to the initialized state, and returns to step S209 to continue monitoring system management. Interrupt conditions (such as monitoring the second system management interrupt condition: the motherboard MB temperature is higher than Y degrees Celsius). If it is established, it indicates that the system management interrupt condition is not triggered temporarily, and the computer PC does operate in an abnormal state. For example, if the fan fails, the condition that the rotation speed is lower than X rpm is always established. At this time, according to step S212, the computer PC sets the system management interrupt condition to the triggered state. Moreover, according to step S213, the basic input/output system in the motherboard MB sets an input/output chip (for example, a wafer of Super I/O) to control the operation of the light-emitting device L in the first blinking state. For example, if the operating system is in operation, if a system warning occurs, the motherboard MB will use the set system management interrupt condition to trigger the system to write to the specified register of the input and output chips, so that it can be controlled. The light-emitting device L emits an optical signal of a specific flicker frequency. Then, according to step S214, the computer PC can reset the updated system management interrupt condition. As described herein, when the error of the first computer PC occurs, the system management interrupt condition in step S209 is triggered, and in step S210, it is confirmed again whether or not the trigger is triggered. If the system management interrupt condition is still triggered, the process proceeds to step S212 and step S213, and the light-emitting device L is controlled to drive the light-emitting device L to operate in the corresponding light state according to the trigger result of the interrupt condition. The system will drive the illumination device L to begin blinking to alert the user. For example, the illumination device L can alert the user to the blinking state of the first frequency. At this time, the computer PC proceeds to step S214 to reset the updated system management interrupt condition. For example, a computer PC can set an interrupt condition that restores the system to normal. When the system management interruption condition is updated in step S214, the computer PC returns to step S209 to continue the system monitoring. Since the system management interrupt condition has been set to return the system to a normal interrupt condition, the interrupt condition is triggered again when the computer PC returns from the error to the normal state.

而當電腦PC由錯誤中恢復為正常狀態後,會觸發前述提及之系統恢復正常之中斷條件(於步驟S209),並於步驟S210中再次確認是否系統恢復正常之中斷條件仍被觸發。若仍被觸發,則電腦PC會進入步驟S212及步驟S213,判斷發光裝置的閃爍狀態,並驅使發光裝置L操作於對應的燈號狀態。例如,電腦PC可控制發光裝置L操作於正常的燈號狀態,以告知使用者電腦PC之系統已經回復正常。此時,電腦PC會進入步驟S214,重新設定更新的系統管理中斷條件。例如電腦PC可以再次設定讓系統發生錯誤之中斷條件。並回到步驟S209,電腦PC繼續監控其系統是否發生錯誤。When the computer PC returns to the normal state from the error, the system mentioned above is triggered to resume the normal interrupt condition (in step S209), and in step S210, it is confirmed again whether the system resumes normal interrupt condition. If it is still triggered, the computer PC proceeds to step S212 and step S213, determines the blinking state of the light emitting device, and drives the light emitting device L to operate in the corresponding light state. For example, the computer PC can control the lighting device L to operate in a normal light state to inform the user that the computer PC system has returned to normal. At this time, the computer PC proceeds to step S214 to reset the updated system management interrupt condition. For example, the computer PC can set the interrupt condition for the system to be wrong again. And returning to step S209, the computer PC continues to monitor whether its system has an error.

換句話說,電腦PC於步驟S214中重新設定更新的系統管理中斷條件,可包含系統是否發生錯誤以及系統是否恢復正常的系統管理中斷條件。當系統恢復正常的中斷條件被觸發時,表示系統由錯誤中回復為正常狀態。發光裝置L會發出特定的光信號(例如,恆亮的正常狀態信號)。當系統發生錯誤的系統管理中斷條件被觸發時,表示系統運作於非正常的狀態,發光裝置L會發出特定的光信號(例如第一閃爍狀態)以警示使用者錯誤發生的位置和原因。In other words, the computer PC resets the updated system management interrupt condition in step S214, which may include whether the system has an error and whether the system returns to a normal system management interrupt condition. When the system resumes normal interrupt condition, it indicates that the system returns from the error to the normal state. The illuminating device L emits a specific optical signal (for example, a steady-state normal state signal). When the system management interrupt condition of the system error is triggered, it indicates that the system is operating in an abnormal state, and the illumination device L emits a specific optical signal (for example, the first blinking state) to alert the user of the location and cause of the error.

在前述步驟S201至步驟S214中,任何合理順變更或是內容異動皆屬於本發明所揭露的範疇。舉例而言,步驟S210至步驟S212為防止誤判斷或是誤警報的步驟,在較簡化的實施例中也可以省略。亦即電腦PC只要偵測出某個系統管理中斷條件成立,即會依據步驟S213,控制發光裝置L以使發光裝置L操作於第一閃爍狀態。並且,前述提及的系統管理中斷條件,在電腦PC的系統中具有較高的中斷權限。因此,只要觸發某個預設的系統管理中斷條件,不管系統的運行狀態如何,系統管理中斷條件被觸發的程序必會被執行。換句話說,本發明由於利用了高優先權的系統管理模式(SMM)來設置至少一個系統管理中斷(SMI)條件,因此,當系統發生錯誤或警告時(例如軟體/韌體衝突,或是硬體發生異常),錯誤的影響不會干擾到高權限的SMI機制。因此,除非發生極為嚴重的硬體錯誤(例如中央處理器失能),系統管理中斷條件的監控以及觸發程序將不易被中斷。並且,前文提及的發光裝置L,也可進行客製化地處理。例如,輸入輸出晶片(Super I/O晶片)上的發光二極體可視為發光裝置L,並可進行客製化地處理,可呈現多種發光頻率的變化組合以對應不同被觸發的系統管理中斷條件。In the foregoing steps S201 to S214, any reasonable change or content change is within the scope of the present invention. For example, steps S210 to S212 are steps to prevent erroneous determination or false alarm, and may be omitted in a more simplified embodiment. That is, when the computer PC detects that a certain system management interrupt condition is established, the light-emitting device L is controlled to operate the light-emitting device L in the first blinking state according to step S213. Moreover, the aforementioned system management interrupt condition has a higher interrupt authority in the system of the computer PC. Therefore, as long as a preset system management interrupt condition is triggered, regardless of the operating state of the system, the program that the system management interrupt condition is triggered must be executed. In other words, the present invention utilizes a high priority System Management Mode (SMM) to set at least one System Management Interrupt (SMI) condition, thus, when an error or warning occurs in the system (eg, software/firmware conflict, or The hardware has an exception. The effect of the error does not interfere with the high-privilege SMI mechanism. Therefore, unless an extremely serious hardware error occurs (such as a central processor disable), monitoring of system management interrupt conditions and triggering procedures will not be easily interrupted. Further, the light-emitting device L mentioned above can also be handled in a customized manner. For example, a light-emitting diode on an input/output wafer (Super I/O wafer) can be regarded as a light-emitting device L, and can be processed in a customized manner, and can exhibit a combination of changes in various light-emitting frequencies to correspond to different triggered system management interrupts. condition.

綜上所述,本發明描述了一種電腦系統錯誤的警示方法。電腦發生錯誤的時間點有兩種可能。第一種為在進入作業系統前,主機板在初始化過程中即發生錯誤。此時主機板會控制發光裝置以發出特定頻率的光信號。使用者觀察特定頻率的光信號後便可立刻明瞭錯誤位置和原因而進行處理。第二種為在進入作業系統後,作業系統在運行中時發生錯誤。此時主機板會依據先前設定的系統管理中斷條件,控制發光裝置以發出特定頻率的光信號。因此,在作業系統運行時,若使用者發現發光裝置發出特定頻率的光信號,即可明瞭電腦目前發生錯誤的位置和原因,而可立即處理。因此,本發明之電腦系統錯誤的警示方法,無須複雜的額外硬體設備(例如除錯卡),也能在不影響系統效能下,即時地呈現電腦的運作狀態。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。In summary, the present invention describes a method of alerting a computer system error. There are two possibilities when the computer has an error. The first is that the motherboard has an error during the initialization process before entering the operating system. At this point, the motherboard controls the illumination device to emit an optical signal of a specific frequency. When the user observes the light signal of a specific frequency, the user can immediately understand the wrong position and cause the problem. The second is that an error occurs when the operating system is running after entering the operating system. At this time, the motherboard controls the illuminating device to emit an optical signal of a specific frequency according to the previously set system management interrupt condition. Therefore, when the operating system is running, if the user finds that the light emitting device emits a light signal of a specific frequency, the position and cause of the current error of the computer can be known, and can be processed immediately. Therefore, the error warning method of the computer system of the present invention can present the operating state of the computer in real time without affecting the system performance without complicated additional hardware devices (such as a debugging card). The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.

100‧‧‧電腦系統100‧‧‧ computer system

PC‧‧‧電腦PC‧‧‧ computer

L‧‧‧發光裝置L‧‧‧Lighting device

D1至DN‧‧‧裝置D1 to DN‧‧‧ device

MB‧‧‧主機板MB‧‧‧ motherboard

S201至S214‧‧‧步驟Steps S201 to S214‧‧

第1圖係為本發明之電腦系統之實施例的架構圖。 第2圖係為第1圖的電腦系統中,電腦系統錯誤的警示方法之流程圖。 第3圖係為第1圖的電腦系統中,電腦系統錯誤的警示方法之流程圖。Figure 1 is an architectural diagram of an embodiment of a computer system of the present invention. Fig. 2 is a flow chart showing the warning method of the computer system error in the computer system of Fig. 1. Fig. 3 is a flow chart showing the warning method of the computer system error in the computer system of Fig. 1.

Claims (10)

一種電腦系統錯誤的警示方法,包含:執行一裝置記憶體初始化程序,以偵測及還原錯誤的韌體參數;執行一驅動裝置初始化程序,以辨識並溝通所有硬體;在執行該驅動裝置初始化程序後,進入一系統管理模式(System Management M0de),以設置至少一系統管理中斷(System Management Interrupt)條件;啟動一作業系統;在該作業系統啟動後,啟動一系統管理中斷監控程序,以監控該至少一系統管理中斷條件之一系統管理中斷條件是否被觸發;若該系統管理中斷條件被觸發,控制一發光裝置以使該發光裝置操作於一第一閃爍狀態,並於一預定時間後,再次檢查該系統管理中斷條件是否被觸發;及於再次檢查該系統管理中斷條件後,設定該系統管理中斷條件的一狀態。 A computer system error warning method includes: executing a device memory initialization program to detect and restore incorrect firmware parameters; executing a driver initialization program to identify and communicate all hardware; performing the driver initialization After the program, enter a system management mode (System Management M0de) to set at least one system management interrupt (System Management Interrupt) condition; start a working system; after the operating system starts, start a system management interrupt monitoring program to monitor Whether the system management interrupt condition is triggered by one of the at least one system management interrupt condition; if the system management interrupt condition is triggered, controlling an illumination device to operate the illumination device in a first blinking state, and after a predetermined time, Check again whether the system management interrupt condition is triggered; and after checking the system management interrupt condition again, set a state of the system management interrupt condition. 如請求項1所述之方法,另包含:在執行該驅動裝置初始化程序後,若偵測到至少一錯誤硬體,控制該發光裝置以使該發光裝置操作於一第二閃爍狀態。 The method of claim 1, further comprising: after performing the driver initialization procedure, if at least one error hardware is detected, controlling the illumination device to operate the illumination device in a second blinking state. 如請求項2所述之方法,其中該發光裝置係為一發光二極體燈,該發光二極體燈在該第一閃爍狀態下發出一第一閃爍頻率的一光訊號,該發光二極體燈在該第二閃爍狀態下發出一第二閃爍頻率的一光訊號,且該第一閃爍頻率與該第二閃爍頻率不同。 The method of claim 2, wherein the illuminating device is a light-emitting diode lamp, and the light-emitting diode lamp emits a light signal of a first blinking frequency in the first blinking state, the light-emitting diode The body lamp emits an optical signal of a second blinking frequency in the second blinking state, and the first blinking frequency is different from the second blinking frequency. 如請求項1所述之方法,另包含: 在該系統管理中斷條件被觸發後,重新設定一更新的系統管理中斷條件。 The method of claim 1, further comprising: After the system management interrupt condition is triggered, an updated system management interrupt condition is reset. 如請求項1所述之方法,其中於再次檢查該系統管理中斷條件後,設定該系統管理中斷條件的該狀態,係為於再次檢查該系統管理中斷條件後,若該系統管理中斷條件仍被觸發,設置該系統管理中斷條件為一被觸發的狀態。 The method of claim 1, wherein after the system management interrupt condition is checked again, the state of the system management interrupt condition is set, after the system management interrupt condition is checked again, if the system management interrupt condition is still Trigger, set the system management interrupt condition to a triggered state. 如請求項1所述之方法,其中於再次檢查該系統管理中斷條件後,設定該系統管理中斷條件的該狀態,係為於再次檢查該系統管理中斷條件後,若該系統管理中斷條件未被觸發,將該系統管理中斷條件的狀態變更為一初始化的狀態。 The method of claim 1, wherein after the system management interrupt condition is checked again, the state of the system management interrupt condition is set, after the system management interrupt condition is checked again, if the system management interrupt condition is not Trigger, changing the state of the system management interrupt condition to an initialized state. 如請求項1所述之方法,另包含:在該驅動裝置初始化程序被執行後,執行一開機裝置選擇程序,以選擇一開機裝置以啟動該作業系統。 The method of claim 1, further comprising: after the driver initialization program is executed, executing a boot device selection program to select a boot device to activate the operating system. 如請求項1所述之方法,其中在該系統管理中斷條件被觸發後,一基本輸入輸出系統(BIOS)設定一輸入輸出晶片,以控制該發光裝置的閃爍狀態。 The method of claim 1, wherein after the system management interrupt condition is triggered, a basic input/output system (BIOS) sets an input/output chip to control the blinking state of the illumination device. 如請求項1所述之方法,其中啟動該系統管理中斷監控程序包含依序檢查該至少一系統管理中斷條件。 The method of claim 1, wherein initiating the system management interrupt monitoring program comprises sequentially checking the at least one system management interrupt condition. 如請求項1所述之方法,其中該至少一系統管理中斷條件包含一風扇工作週期(Duty Cycle)的異常條件、一中央處理器溫度的異常條件、及/或一 電壓狀態的異常條件。 The method of claim 1, wherein the at least one system management interrupt condition comprises an abnormal condition of a fan duty cycle, an abnormal condition of a central processor temperature, and/or a Abnormal condition of the voltage state.
TW106113716A 2017-04-25 2017-04-25 Computer System Error Warning Method TWI626539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106113716A TWI626539B (en) 2017-04-25 2017-04-25 Computer System Error Warning Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106113716A TWI626539B (en) 2017-04-25 2017-04-25 Computer System Error Warning Method

Publications (2)

Publication Number Publication Date
TWI626539B true TWI626539B (en) 2018-06-11
TW201839610A TW201839610A (en) 2018-11-01

Family

ID=63255793

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106113716A TWI626539B (en) 2017-04-25 2017-04-25 Computer System Error Warning Method

Country Status (1)

Country Link
TW (1) TWI626539B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI801412B (en) * 2018-09-06 2023-05-11 神雲科技股份有限公司 Debug method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW530201B (en) * 2001-03-28 2003-05-01 Giga Byte Tech Co Ltd Method and apparatus for alerting the error detection of electronic components
US20080022158A1 (en) * 2006-07-20 2008-01-24 Asustek Computer Inc. Display system and method for displaying self-testing message
TW201346542A (en) * 2012-05-10 2013-11-16 Hon Hai Prec Ind Co Ltd Power on indication circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW530201B (en) * 2001-03-28 2003-05-01 Giga Byte Tech Co Ltd Method and apparatus for alerting the error detection of electronic components
US20080022158A1 (en) * 2006-07-20 2008-01-24 Asustek Computer Inc. Display system and method for displaying self-testing message
TW201346542A (en) * 2012-05-10 2013-11-16 Hon Hai Prec Ind Co Ltd Power on indication circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI801412B (en) * 2018-09-06 2023-05-11 神雲科技股份有限公司 Debug method

Also Published As

Publication number Publication date
TW201839610A (en) 2018-11-01

Similar Documents

Publication Publication Date Title
TWI588649B (en) Hardware recovery methods, hardware recovery systems, and computer-readable storage device
TWI589135B (en) Server system and its operation method
TWI587140B (en) Fan management method, server system and non-transitory computer-readable medium
CN104636221B (en) Computer system fault processing method and device
CN104572226A (en) Method and device for detecting mainboard starting abnormity
CN101796489A (en) Clock supervision unit
TW202036293A (en) Computer system and debugging method thereof
US8954629B2 (en) Adapter and debugging method using the same
TW202009704A (en) Server and error detecting method thereof
TWI439854B (en) Processing method for booting error
CN104679626A (en) System and method for debugging and detecting BIOS (Basic Input / Output System)
TWI626539B (en) Computer System Error Warning Method
CN110083491A (en) A kind of BIOS initialization method, apparatus, equipment and storage medium
CN103176581A (en) Power management device and power management method
TW201918880A (en) Device for detection before booting and operation method thereof
TW201734779A (en) Boot status notification method and server system using the same
TWM509371U (en) Monitoring apparatus and computer apparatus
CN1145104C (en) Method for detecting and processing unexpected stop of computer system
US20180052798A1 (en) Techniques of accessing bmc terminals through serial port
CN108874632A (en) Method for warning computer system error
CN111045899B (en) Method for displaying BIOS information in early stage of computer system startup self-check
CN103136064B (en) Boot Error Handling Method
TW201527965A (en) System and method for detecting a BIOS test process of a computer
CN107179911B (en) Method and equipment for restarting management engine
CN101408860A (en) Monitoring device and monitoring method thereof