TWI803628B - Warning light control method and electronic device - Google Patents

Warning light control method and electronic device Download PDF

Info

Publication number
TWI803628B
TWI803628B TW108114934A TW108114934A TWI803628B TW I803628 B TWI803628 B TW I803628B TW 108114934 A TW108114934 A TW 108114934A TW 108114934 A TW108114934 A TW 108114934A TW I803628 B TWI803628 B TW I803628B
Authority
TW
Taiwan
Prior art keywords
warning light
system event
processor
electronic device
weight
Prior art date
Application number
TW108114934A
Other languages
Chinese (zh)
Other versions
TW202040363A (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 TW108114934A priority Critical patent/TWI803628B/en
Priority to CN202010358270.5A priority patent/CN111858262A/en
Publication of TW202040363A publication Critical patent/TW202040363A/en
Application granted granted Critical
Publication of TWI803628B publication Critical patent/TWI803628B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Burglar Alarm Systems (AREA)
  • Push-Button Switches (AREA)

Abstract

A warning light control method for an electronic device having a warning light. The method includes: detecting a system event; controlling the warning light to be turned on in response to the system event; and automatically turning off the warning light in response to that a weight value of the system event meets a default condition after the warning light is turned on.

Description

警示燈控制方法與電子裝置Warning light control method and electronic device

本發明是有關於一種裝置控制技術,且特別是有關於一種警示燈控制方法與電子裝置。The invention relates to a device control technology, and in particular to a warning light control method and an electronic device.

某些類型的電子裝置外觀配置有警示燈以反映某些系統異常。然而,在放置大量主機的機房中,若同時間有過多裝置的警示燈皆亮起,則機房維護人員需要花費很長時間逐一對每一異常裝置進行檢測,以嘗試尋找發生異常的原因。此外,大部分配置有警示燈的電子裝置也都只配置有單一個警示燈,使得維護人員無法根據亮起的警示燈判斷系統目前發生的異常類型。在實務上,可能會導致需要優先排除的系統異常被延誤處理,進而產生相關作業上的損失。Some types of electronic devices are equipped with warning lights to reflect certain system abnormalities. However, in a computer room where a large number of hosts are placed, if the warning lights of too many devices are on at the same time, the maintenance personnel in the computer room need to spend a long time detecting each abnormal device one by one to try to find the cause of the abnormality. In addition, most electronic devices equipped with a warning light are only equipped with a single warning light, so that maintenance personnel cannot judge the type of abnormality currently occurring in the system according to the lighted warning light. In practice, it may cause the system abnormalities that need to be eliminated first to be delayed, and then cause related operational losses.

本發明提供一種警示燈控制方法與電子裝置,可有效改善上述問題。The invention provides a warning light control method and an electronic device, which can effectively improve the above problems.

本發明的實施例提供一種警示燈控制方法,其用於具有警示燈的電子裝置。所述警示燈控制方法包括:偵測系統事件;響應於所述系統事件,控制所述警示燈亮燈;以及在控制所述警示燈亮燈後,響應於所述系統事件的權重符合預設條件,自動關閉所述警示燈。An embodiment of the present invention provides a method for controlling a warning light, which is used in an electronic device with a warning light. The warning light control method includes: detecting a system event; in response to the system event, controlling the warning light to turn on; and after controlling the warning light to turn on, responding to the weight of the system event conforming to a preset conditions, the warning lights are automatically turned off.

本發明的實施例另提供一種電子裝置,其包括警示燈、警示燈控制器及處理器。所述處理器耦接至所述警示燈與所述警示燈控制器。所述處理器用以偵測系統事件。所述處理器更用以響應於所述系統事件,指示所述警示燈控制器控制所述警示燈亮燈。在控制所述警示燈亮燈後,所述處理器更用以響應於所述系統事件的權重符合預設條件,指示所述警示燈控制器關閉所述警示燈。An embodiment of the invention further provides an electronic device, which includes a warning light, a warning light controller, and a processor. The processor is coupled to the warning light and the warning light controller. The processor is used for detecting system events. The processor is further configured to instruct the warning light controller to control the warning light to turn on in response to the system event. After controlling the warning light to turn on, the processor is further configured to instruct the warning light controller to turn off the warning light in response to the weight of the system event meeting a preset condition.

基於上述,在偵測到特定系統事件後,響應於所述系統事件,裝置的警示燈可被亮燈。接著,若判定所述系統事件的權重符合預設條件,已被點亮的警示燈可被自動關閉。透過警示燈的自動開關機制,維護人員或一般使用者可以根據警示燈是否持續亮燈而優先對需要優先進行異常狀況排除的電子裝置進行維護,從而改善上述問題。Based on the above, after a certain system event is detected, the warning light of the device may be turned on in response to the system event. Then, if it is determined that the weight of the system event meets the preset condition, the warning light that has been turned on can be automatically turned off. Through the automatic switching mechanism of the warning light, the maintenance personnel or ordinary users can prioritize maintenance on the electronic devices that need to be prioritized to eliminate abnormal conditions according to whether the warning light is continuously on, so as to improve the above-mentioned problems.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.

圖1是根據本發明的一實施例所繪示的電子裝置的功能方塊圖。圖2是根據本發明的一實施例所繪示的電子裝置的外觀示意圖。請參照圖1,電子裝置10可以是伺服器主機、交換器、路由器、數據機、智慧型手機、平板電腦、筆記型電腦、桌上型電腦、工業電腦、顯示器、多媒體播放器或智慧家電(例如智慧電視、智慧電鍋、智慧冰箱)等各式設置有一或多個警示燈以反映系統異常的電子裝置。本發明並不限制電子裝置10的類型。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a schematic diagram illustrating the appearance of an electronic device according to an embodiment of the present invention. Please refer to FIG. 1, the electronic device 10 can be a server host, a switch, a router, a modem, a smart phone, a tablet computer, a notebook computer, a desktop computer, an industrial computer, a display, a multimedia player or a smart home appliance ( For example, various electronic devices such as smart TV, smart electric cooker, and smart refrigerator are equipped with one or more warning lights to reflect system abnormalities. The invention does not limit the type of the electronic device 10 .

在以下實施例中,是以伺服器主機作為電子裝置10的範例。例如,作為伺服器主機的電子裝置10可連接至網路並提供特定的網路服務,例如網頁服務、資料庫服務或雲端平台服務等等。In the following embodiments, a server host is used as an example of the electronic device 10 . For example, the electronic device 10 serving as a server host can be connected to a network and provide specific network services, such as web services, database services, or cloud platform services, and so on.

在本實施例中,電子裝置10包括警示燈11、警示燈控制器12、處理器13、記憶體模組14及基板管理控制器(Baseboard Management Controller, BMC)15。警示燈11可包括LED燈或其他類型的燈。警示燈11可設置於電子裝置10的外殼體,如圖2所示。須注意的是,在另一實施例中,警示燈11的類型、警示燈11的數量、警示燈11的設置位置及/或電子裝置10的外觀皆可以視實務上需求進行調整,本發明不加以限制。In this embodiment, the electronic device 10 includes a warning light 11 , a warning light controller 12 , a processor 13 , a memory module 14 and a Baseboard Management Controller (BMC) 15 . The warning lights 11 may include LED lights or other types of lights. The warning light 11 can be disposed on the outer casing of the electronic device 10 , as shown in FIG. 2 . It should be noted that, in another embodiment, the type of the warning lights 11, the number of the warning lights 11, the location of the warning lights 11 and/or the appearance of the electronic device 10 can all be adjusted according to practical needs. be restricted.

警示燈控制器12耦接至警示燈11並用以控制警示燈11亮燈或關燈。在一實施例中,警示燈控制器12亦可控制警示燈11的亮燈顏色、警示燈11的亮度、警示燈11的亮燈持續時間及/或警示燈11的閃爍頻率。警示燈控制器12可包括嵌入式控制器等控制電路,以控制警示燈11。The warning light controller 12 is coupled to the warning light 11 and used for controlling the warning light 11 to turn on or off. In one embodiment, the warning light controller 12 can also control the color of the warning light 11 , the brightness of the warning light 11 , the duration of the warning light 11 and/or the flashing frequency of the warning light 11 . The warning light controller 12 may include a control circuit such as an embedded controller to control the warning light 11 .

處理器13耦接至警示燈控制器12。處理器13用以發送控制訊號至警示燈控制器12,以指示警示燈控制器12對警示燈11進行控制。例如,響應於來自處理器13的控制訊號,警示燈控制器12可將警示燈11點亮、關閉、改變警示燈11的亮燈顏色、改變警示燈11的亮度、改變警示燈11的亮燈持續時間及/或改變警示燈11的閃爍頻率等。處理器13可包括中央處理單元、圖形處理器、嵌入式控制器或是其他可程式化之一般用途或特殊用途的微處理器、數位訊號處理器、可程式化控制器、特殊應用積體電路、可程式化邏輯裝置或其他類似裝置或這些裝置的組合。此外,處理器13可負責電子裝置10的整體或部分運作。The processor 13 is coupled to the warning light controller 12 . The processor 13 is used for sending a control signal to the warning light controller 12 to instruct the warning light controller 12 to control the warning light 11 . For example, in response to a control signal from the processor 13, the warning light controller 12 can turn the warning light 11 on, off, change the color of the warning light 11, change the brightness of the warning light 11, and change the lighting of the warning light 11. duration and/or change the flashing frequency of the warning light 11, etc. The processor 13 may include a central processing unit, a graphics processing unit, an embedded controller, or other programmable general-purpose or special-purpose microprocessors, digital signal processors, programmable controllers, and application-specific integrated circuits , programmable logic device or other similar devices or a combination of these devices. In addition, the processor 13 may be responsible for the whole or part of the operations of the electronic device 10 .

記憶體模組14耦接至處理器13。記憶體模組14用以儲存資料。例如,記憶體模組14可包括揮發性儲存媒體及/或非揮發性儲存媒體。其中,揮發性儲存媒體可以是隨機存取記憶體(RAM),而非揮發性儲存媒體可以是唯讀記憶體(ROM)、固態硬碟(SSD)或傳統硬碟(HDD)。The memory module 14 is coupled to the processor 13 . The memory module 14 is used for storing data. For example, the memory module 14 may include volatile storage media and/or non-volatile storage media. Wherein, the volatile storage medium may be random access memory (RAM), and the non-volatile storage medium may be read only memory (ROM), solid state disk (SSD) or traditional hard disk (HDD).

基板管理控制器15耦接至處理器13。基板管理控制器15可用以監控電子裝置10的系統狀態。例如,基板管理控制器15可監控電子裝置10的軟/硬體狀態。處理器13可根據基板管理控制器15回報的資訊判斷電子裝置10(或基板管理控制器15)當前的系統狀態為良好(即健康)或警示(不健康)等。在一實施例中,電子裝置10還可包括螢幕、觸控螢幕、觸控板、滑鼠、鍵盤、實體按鈕、揚聲器、麥克風、網路介面卡等輸入/輸出介面,且輸入/輸出介面的類型不限於此。The BMC 15 is coupled to the processor 13 . The baseboard management controller 15 can be used to monitor the system status of the electronic device 10 . For example, the BMC 15 can monitor the software/hardware status of the electronic device 10 . The processor 13 can determine whether the current system status of the electronic device 10 (or the baseboard management controller 15 ) is good (ie healthy) or warning (unhealthy) according to the information reported by the baseboard management controller 15 . In one embodiment, the electronic device 10 may further include input/output interfaces such as a screen, a touch screen, a touchpad, a mouse, a keyboard, physical buttons, a speaker, a microphone, a network interface card, and the input/output interface Types are not limited to this.

圖3是根據本發明的一實施例所繪示的警示燈控制方法的流程圖。請參照圖1與圖3,在步驟S301中,處理器13可偵測系統事件。此系統事件可反映電子裝置10的系統異常。例如,此系統異常可包括各式記憶體異常、各式作業系統異常、各式軟體異常及各式硬體異常。在本實施例中,可偵測之系統事件包括反映記憶體模組14發生異常之事件及/或反映基板管理控制器15發生異常之事件。響應於所偵測的系統事件,在步驟S301中,處理器13可指示警示燈控制器12控制警示燈11亮燈。FIG. 3 is a flowchart of a warning light control method according to an embodiment of the present invention. Please refer to FIG. 1 and FIG. 3 , in step S301 , the processor 13 may detect system events. The system event may reflect a system abnormality of the electronic device 10 . For example, the system abnormality may include various memory abnormalities, various operating system abnormalities, various software abnormalities and various hardware abnormalities. In this embodiment, the detectable system events include events reflecting abnormality of the memory module 14 and/or events reflecting abnormality of the BMC 15 . In response to the detected system event, in step S301 , the processor 13 may instruct the warning light controller 12 to control the warning light 11 to turn on.

另一方面,針對所偵測的系統事件,處理器13可決定此系統事件的權重(亦稱為權重值)。不同類型的系統事件可具有不同的權重值。在一實施例中,某一系統事件的權重值與此系統事件的嚴重性(或嚴重程度)有關。例如,某一系統事件的權重值可正相關於此系統事件的嚴重性。若某一系統事件(亦稱為第一系統事件)的嚴重性高於另一系統事件(亦稱為第二系統事件)的嚴重性,則對應於第一系統事件的權重值可高於第二系統事件的權重值。On the other hand, for the detected system event, the processor 13 can determine the weight (also referred to as weight value) of the system event. Different types of system events can have different weight values. In one embodiment, the weight value of a system event is related to the severity (or severity) of the system event. For example, the weight value of a certain system event may be positively correlated with the severity of the system event. If the severity of a certain system event (also referred to as the first system event) is higher than that of another system event (also referred to as the second system event), the weight value corresponding to the first system event may be higher than that of the second system event. The weight value of the second system event.

系統事件的權重值之計算可根據電子裝置10的類型及/或主要功能而進行客製化。例如,針對主要功能是提供即時網路服務的電子裝置10,與網路連線品質及/或資料存取速度有關的系統事件可被決定為具有相對較高的權重。或者,針對主要功能是提供資料儲存及/或雲端備份服務的電子裝置10,與資料存取之可靠度有關的系統事件可被決定為具有相對較高的權重。對應於不同類型及/或不同功能的電子裝置10來說,相同類型的系統事件也可能被決定為具有不同的權重,視實務上需求而定。The calculation of the weight value of the system event can be customized according to the type and/or main function of the electronic device 10 . For example, for the electronic device 10 whose main function is to provide real-time Internet services, system events related to Internet connection quality and/or data access speed may be determined to have relatively higher weights. Alternatively, for the electronic device 10 whose main function is to provide data storage and/or cloud backup service, system events related to the reliability of data access can be determined to have a relatively high weight. Corresponding to different types and/or different functions of the electronic devices 10 , the same type of system events may also be determined to have different weights, depending on practical requirements.

處理器13可根據客製化的演算法或表格來獲得某一系統事件所對應的權重。例如,處理器13可建立一個查找表。此查找表可儲存於記憶體模組14並在電子裝置10開機時被讀取。此查找表可記錄不同類型的系統事件與相應的權重值。在偵測到某一系統事件時,處理器13可根據此查找表獲得此系統事件所對應的權重。The processor 13 can obtain the weight corresponding to a certain system event according to a customized algorithm or table. For example, processor 13 may build a look-up table. The look-up table can be stored in the memory module 14 and read when the electronic device 10 is turned on. This lookup table records different types of system events and their corresponding weight values. When a system event is detected, the processor 13 can obtain the weight corresponding to the system event according to the lookup table.

在警示燈11亮燈後,在步驟S303中,處理器13可判斷所偵測的系統事件是否符合預設條件(亦稱為第一預設條件)。若所偵測的系統事件符合第一預設條件,在步驟S304中,處理器13可自動指示警示燈控制器12關閉警示燈11。反之,若所偵測的系統事件不符合第一預設條件,在步驟S305中,處理器13可指示警示燈控制器12持續控制警示燈11亮燈。After the warning light 11 is turned on, in step S303, the processor 13 may determine whether the detected system event meets a preset condition (also referred to as a first preset condition). If the detected system event meets the first preset condition, in step S304 , the processor 13 may automatically instruct the warning light controller 12 to turn off the warning light 11 . On the contrary, if the detected system event does not meet the first preset condition, in step S305 , the processor 13 may instruct the warning light controller 12 to continuously control the warning light 11 to turn on.

在一實施例中,處理器13可判斷所偵測的系統事件的權重是否小於一個預設值。若此系統事件的權重小於此預設值,處理器13可判定所偵測的系統事件符合第一預設條件並進入步驟S304。反之,若此系統事件的權重不小於此預設值,處理器13可判定所偵測的系統事件不符合第一預設條件並進入步驟S305。In one embodiment, the processor 13 may determine whether the weight of the detected system event is less than a preset value. If the weight of the system event is less than the preset value, the processor 13 may determine that the detected system event meets the first preset condition and proceed to step S304. On the contrary, if the weight of the system event is not less than the preset value, the processor 13 may determine that the detected system event does not meet the first preset condition and enter step S305.

在一實施例中,處理器13可根據某些類型的系統事件發送警示訊息至遠端裝置,以通知遠端裝置的管理者或維護人員電子裝置10發生異常。在一實施例中,處理器13可判斷所偵測的系統事件的權重是否符合另一預設條件(亦稱為第二預設條件)。若所偵測的系統事件的權重符合第二預設條件,處理器13可發送相應的警示訊息至遠端裝置。反之,若所偵測的系統事件的權重不符合第二預設條件,處理器13可不發送相應的警示訊息。此外,所述警示訊息可以是藉由電子郵件或簡訊而發送至管理者或維護人員的手機等遠端裝置。In one embodiment, the processor 13 may send a warning message to the remote device according to certain types of system events, so as to notify the administrator or maintenance personnel of the remote device that the electronic device 10 is abnormal. In one embodiment, the processor 13 may determine whether the weight of the detected system event meets another preset condition (also referred to as a second preset condition). If the weight of the detected system event meets the second preset condition, the processor 13 may send a corresponding warning message to the remote device. On the contrary, if the weight of the detected system event does not meet the second preset condition, the processor 13 may not send the corresponding warning message. In addition, the warning message can be sent to remote devices such as mobile phones of administrators or maintenance personnel by email or short message.

在一實施例中,處理器13可判斷所偵測的系統事件的權重是否不小於上述預設值。若此系統事件的權重不小於此預設值,處理器13可判定所偵測的系統事件符合第二預設條件。反之,若此系統事件的權重小於此預設值,處理器13可判定所偵測的系統事件不符合第二預設條件。例如,在圖3的一實施例中,若所偵測的系統事件的權重不小於預設值,則在步驟S305中,處理器13可指示警示燈控制器12持續控制警示燈11亮燈並發送相應的警示訊息。此外,在步驟S304中,處理器13可不發送對應於此系統事件的警示訊息,以免過度頻繁地發送警示訊息。In one embodiment, the processor 13 may determine whether the weight of the detected system event is not less than the above preset value. If the weight of the system event is not less than the preset value, the processor 13 may determine that the detected system event meets the second preset condition. On the contrary, if the weight of the system event is less than the preset value, the processor 13 may determine that the detected system event does not meet the second preset condition. For example, in one embodiment of FIG. 3, if the weight of the detected system event is not less than the preset value, then in step S305, the processor 13 may instruct the warning light controller 12 to continuously control the warning light 11 to turn on and Send appropriate alert messages. In addition, in step S304, the processor 13 may not send an alert message corresponding to the system event, so as to avoid sending alert messages too frequently.

圖4是根據本發明的一實施例所繪示的警示燈控制方法的流程圖。請參照圖1與圖4,在步驟S401中,處理器13執行系統初始化(例如軟/硬體的初始化設定)。在步驟S402中,處理器13偵測系統事件並由警示燈控制器12控制警示燈11亮燈。FIG. 4 is a flowchart of a warning light control method according to an embodiment of the present invention. Please refer to FIG. 1 and FIG. 4 , in step S401 , the processor 13 executes system initialization (such as software/hardware initialization settings). In step S402 , the processor 13 detects a system event and the warning light controller 12 controls the warning light 11 to turn on.

在步驟S403中,處理器13判斷所偵測的系統事件是否是反映從記憶體模組14讀取之資料存在過多錯誤位元。若步驟S403判斷為是(即發生了從記憶體模組14讀取之資料存在過多錯誤位元之事件),則在步驟S404中,處理器13可指示發送對應於此系統事件的警示訊息至遠端裝置。若步驟S403判斷為否,則處理器13可不發送警示訊息並進入步驟S405。In step S403 , the processor 13 determines whether the detected system event reflects too many error bits in the data read from the memory module 14 . If step S403 is determined to be yes (that is, there is an event that there are too many error bits in the data read from the memory module 14), then in step S404, the processor 13 can instruct to send a warning message corresponding to this system event to remote device. If the determination in step S403 is no, the processor 13 may not send the warning message and enter step S405.

在步驟S405中,處理器13可判斷所偵測的系統事件是否是反映從記憶體模組14讀取之資料存在無法更正之錯誤。若步驟S405判斷為是(即發生了從記憶體模組14讀取之資料存在無法更正之錯誤之事件),則在步驟S404中,處理器13可指示發送對應於此系統事件的警示訊息至遠端裝置。若步驟S405判斷為否,則處理器13可不發送警示訊息並進入步驟S406。在步驟S404之後,可回到步驟S402且警示燈控制器12可持續控制警示燈11亮燈,直到異常狀況被排除。In step S405 , the processor 13 can determine whether the detected system event reflects an uncorrectable error in the data read from the memory module 14 . If step S405 is determined to be yes (that is, there is an event that the data read from the memory module 14 has an uncorrectable error), then in step S404, the processor 13 can instruct to send a warning message corresponding to the system event to remote device. If the determination in step S405 is no, the processor 13 may not send the warning message and proceed to step S406. After step S404, return to step S402 and the warning light controller 12 can continue to control the warning light 11 to turn on until the abnormal condition is eliminated.

在步驟S406中,處理器13可根據基板管理控制器15回報的資訊判斷電子裝置10(或基板管理控制器15)當前的系統狀態是否為良好(即健康)。若判定電子裝置10(或基板管理控制器15)當前的系統狀態為良好(即健康),在步驟S407中,處理器13可判斷警示燈自動關閉之機制是否已啟動。若是(即警示燈自動關閉之機制已啟動),則在步驟S408中,處理器13可自動指示警示燈控制器12關閉警示燈11。此外,若步驟S406判斷為否(即判定電子裝置10(或基板管理控制器15)當前的系統狀態非為良好(即不健康))或步驟S407判斷警示燈自動關閉之機制未被啟動,則可回到步驟S402且警示燈控制器12可持續控制警示燈11亮燈,直到異常狀況被排除。此外,在圖4的另一實施例中,若步驟S406判斷為否之後亦可進入步驟S404以發送相應的警示訊息。In step S406 , the processor 13 can determine whether the current system status of the electronic device 10 (or the BMC 15 ) is good (ie healthy) according to the information reported by the BMC 15 . If it is determined that the current system status of the electronic device 10 (or BMC 15 ) is good (ie healthy), in step S407, the processor 13 may determine whether the mechanism for automatically turning off the warning light has been activated. If yes (that is, the mechanism for automatically turning off the warning light has been activated), then in step S408 , the processor 13 may automatically instruct the warning light controller 12 to turn off the warning light 11 . In addition, if step S406 judges no (that is, it is determined that the current system status of the electronic device 10 (or baseboard management controller 15) is not good (that is, unhealthy)) or step S407 judges that the mechanism for automatically turning off the warning light is not activated, then you can Return to step S402 and the warning light controller 12 can continue to control the warning light 11 to turn on until the abnormal condition is eliminated. In addition, in another embodiment of FIG. 4 , if step S406 is judged to be negative, step S404 may also be entered to send a corresponding warning message.

須注意的是,圖4的實施例中的判斷步驟S403、S405及S406皆可以是根據所偵測之系統事件的權重值來進行判斷。步驟S403~S406可分別對應一個預設值。若所偵測之系統事件的權重值小於對應於步驟S403之判斷條件的預設值,則可進入步驟S405。若所偵測之系統事件的權重值不小於對應於步驟S403之判斷條件的預設值,則可進入步驟S404。若所偵測之系統事件的權重值小於對應於步驟S405之判斷條件的預設值,則可進入步驟S406。若所偵測之系統事件的權重值不小於對應於步驟S405之判斷條件的預設值,則可進入步驟S404。若所偵測之系統事件的權重值小於對應於步驟S406之判斷條件的預設值,則可進入步驟S407。若所偵測之系統事件的權重值不小於對應於步驟S406之判斷條件的預設值,則可回到步驟S402(或進入步驟S404)。It should be noted that the determination steps S403 , S405 and S406 in the embodiment of FIG. 4 can all be determined according to the weight value of the detected system event. Steps S403-S406 may respectively correspond to a preset value. If the weight value of the detected system event is smaller than the preset value corresponding to the judgment condition of step S403, then step S405 can be entered. If the weight value of the detected system event is not less than the preset value corresponding to the judgment condition of step S403, the process may proceed to step S404. If the weight value of the detected system event is smaller than the preset value corresponding to the judgment condition of step S405, then step S406 can be entered. If the weight value of the detected system event is not less than the preset value corresponding to the judgment condition of step S405, the process may proceed to step S404. If the weight value of the detected system event is smaller than the preset value corresponding to the judgment condition of step S406, then step S407 can be entered. If the weight value of the detected system event is not less than the preset value corresponding to the judgment condition of step S406, return to step S402 (or enter step S404).

在一實施例中,圖4的判斷流程亦可視為多層的權重判斷機制(亦稱為多層篩選機制),以篩選出符合自動關閉警示燈之判斷條件的系統事件並可響應於此系統事件而關閉警示燈11。此外,在圖4的一實施例中,只有在進入步驟S408之後,警示燈11才可被自動關閉,否則皆維持在亮燈狀態。In one embodiment, the judgment process in FIG. 4 can also be regarded as a multi-layer weight judgment mechanism (also called a multi-layer screening mechanism) to filter out system events that meet the judgment conditions for automatically turning off the warning lights and respond to the system events. Turn off warning light 11. In addition, in an embodiment of FIG. 4 , only after step S408 is entered, the warning light 11 can be turned off automatically, otherwise, the warning light 11 remains on.

須注意的是,圖4的流程圖僅為範例而非用以限制本發明。在一實施例中,電子裝置10可能不包含基板管理控制器15,故圖4的一實施例可不包含步驟S406。或者,圖4中步驟S403、S405及S406的執行順序亦可以調整(例如先執行步驟S406再執行步驟S403與S405及/或先執行步驟S405再執行步驟S403等等),本發明不加以限制。此外,更多或更少的判斷步驟可以被導入至圖4的多層篩選機制,以符合不同的應用情境。It should be noted that the flowchart of FIG. 4 is only an example and not intended to limit the present invention. In one embodiment, the electronic device 10 may not include the baseboard management controller 15, so the embodiment of FIG. 4 may not include the step S406. Alternatively, the order of execution of steps S403, S405, and S406 in FIG. 4 can also be adjusted (for example, execute step S406 before executing steps S403 and S405 and/or execute step S405 before executing step S403, etc.), which is not limited by the present invention. In addition, more or fewer judgment steps can be introduced into the multi-layer screening mechanism in Fig. 4 to meet different application scenarios.

然而,圖3與圖4中各步驟已詳細說明如上,在此便不再贅述。值得注意的是,圖3與圖4中各步驟可以實作為多個程式碼或是電路,本發明不加以限制。此外,圖3與圖4的方法可以搭配以上範例實施例使用,也可以單獨使用,本發明不加以限制。However, each step in FIG. 3 and FIG. 4 has been described in detail above, and will not be repeated here. It should be noted that each step in FIG. 3 and FIG. 4 can be implemented as a plurality of program codes or circuits, which is not limited by the present invention. In addition, the methods shown in FIG. 3 and FIG. 4 can be used together with the above exemplary embodiments, or can be used alone, which is not limited by the present invention.

綜上所述,在偵測到特定系統事件後,響應於所述系統事件,警示燈可被亮燈。接著,藉由多層篩選機制,若所述系統事件的權重符合預設條件,已被點亮的警示燈可被自動關閉。藉此,維護人員或一般使用者可以根據警示燈是否持續亮燈而優先對需要優先進行異常狀況排除的電子裝置進行維護,有效提高對於電子裝置的維護效率。To sum up, after a specific system event is detected, the warning light can be turned on in response to the system event. Then, through the multi-layer screening mechanism, if the weight of the system event meets the preset condition, the already lit warning light can be automatically turned off. In this way, maintenance personnel or general users can prioritize maintenance on the electronic devices that need to be eliminated in priority according to whether the warning lights are continuously on, thereby effectively improving the maintenance efficiency of the electronic devices.

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

10:電子裝置 11:警示燈 12:警示燈控制器 13:處理器 14:記憶體模組 15:基板管理控制器 S301~S305、S401~S408:步驟10: Electronic device 11: warning lights 12: Warning light controller 13: Processor 14: Memory module 15: Baseboard Management Controller S301~S305, S401~S408: steps

圖1是根據本發明的一實施例所繪示的電子裝置的功能方塊圖。 圖2是根據本發明的一實施例所繪示的電子裝置的外觀示意圖。 圖3是根據本發明的一實施例所繪示的警示燈控制方法的流程圖。 圖4是根據本發明的一實施例所繪示的警示燈控制方法的流程圖。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the present invention. FIG. 2 is a schematic diagram illustrating the appearance of an electronic device according to an embodiment of the present invention. FIG. 3 is a flowchart of a warning light control method according to an embodiment of the present invention. FIG. 4 is a flowchart of a warning light control method according to an embodiment of the present invention.

S301~S305:步驟 S301~S305: steps

Claims (8)

一種警示燈控制方法,用於具有一警示燈的一電子裝置,且該警示燈控制方法包括:偵測一系統事件,其中於一查找表中記錄該系統事件以及該系統事件權重,根據該查找表取得該系統事件所對應的該權重;響應於該系統事件,控制該警示燈亮燈;以及在控制該警示燈亮燈後,判斷該系統事件的該權重是否小於一預設值,響應於該權重小於該預設值,判定該系統事件的該權重符合一預設條件,並且響應於該系統事件符合一預設條件,自動關閉該警示燈。 A warning light control method for an electronic device with a warning light, and the warning light control method includes: detecting a system event, wherein recording the system event and the system event weight in a lookup table, according to the lookup obtain the weight corresponding to the system event; control the warning light to turn on in response to the system event; and determine whether the weight of the system event is less than a preset value after controlling the warning light to turn on, and respond to When the weight is less than the preset value, it is determined that the weight of the system event meets a preset condition, and in response to the system event meeting a preset condition, the warning light is automatically turned off. 如申請專利範圍第1項所述的警示燈控制方法,更包括:響應於該系統事件,發送一警示訊息至一遠端裝置。 The warning light control method described in claim 1 of the patent application further includes: sending a warning message to a remote device in response to the system event. 如申請專利範圍第1項所述的警示燈控制方法,其中該電子裝置更具有一記憶體模組,該系統事件包括反映該記憶體模組發生異常之事件。 In the warning light control method described in claim 1 of the patent application, the electronic device further has a memory module, and the system event includes an event reflecting an abnormality of the memory module. 如申請專利範圍第1項所述的警示燈控制方法,其中該電子裝置更具有一基板管理控制器,且該系統事件包括反映該基板管理控制器發生異常之事件。 In the warning light control method described in claim 1, the electronic device further has a baseboard management controller, and the system event includes an event reflecting an abnormal occurrence of the baseboard management controller. 一種電子裝置,包括:一警示燈;一警示燈控制器;以及一處理器,耦接至該警示燈與該警示燈控制器, 其中該處理器用以偵測一系統事件,其中於一查找表中記錄該系統事件以及該系統事件權重,該處理器根據該查找表取得該系統事件所對應的該權重,該處理器更用以響應於該系統事件,指示該警示燈控制器控制該警示燈亮燈,並且在控制該警示燈亮燈後,該處理器更用以判斷該系統事件的該權重是否小於一預設值,響應於該權重小於該預設值,該處理器判定該系統事件的該權重符合一預設條件,並且響應於該系統事件符合一預設條件,指示該警示燈控制器關閉該警示燈。 An electronic device, comprising: a warning light; a warning light controller; and a processor coupled to the warning light and the warning light controller, Wherein the processor is used to detect a system event, wherein the system event and the system event weight are recorded in a lookup table, the processor obtains the weight corresponding to the system event according to the lookup table, and the processor is further used for In response to the system event, instruct the warning light controller to control the warning light to turn on, and after controlling the warning light to turn on, the processor is further used to determine whether the weight of the system event is less than a preset value, responding When the weight is less than the preset value, the processor determines that the weight of the system event meets a preset condition, and instructs the warning light controller to turn off the warning light in response to the system event meeting a preset condition. 如申請專利範圍第5項所述的電子裝置,其中該處理器更用以響應於該系統事件,發送一警示訊息至一遠端裝置。 The electronic device described in item 5 of the claimed invention, wherein the processor is further configured to send a warning message to a remote device in response to the system event. 如申請專利範圍第5項所述的電子裝置,更包括:一記憶體模組,耦接至該處理器,其中該系統事件包括反映該記憶體模組發生異常之事件。 The electronic device described in item 5 of the scope of the patent application further includes: a memory module coupled to the processor, wherein the system event includes an event reflecting an abnormality of the memory module. 如申請專利範圍第5項所述的電子裝置,更包括:一基板管理控制器,耦接至該處理器,其中該系統事件包括反映該基板管理控制器發生異常之事件。The electronic device described in claim 5 of the patent application further includes: a baseboard management controller coupled to the processor, wherein the system event includes an event reflecting an abnormality of the baseboard management controller.
TW108114934A 2019-04-29 2019-04-29 Warning light control method and electronic device TWI803628B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW108114934A TWI803628B (en) 2019-04-29 2019-04-29 Warning light control method and electronic device
CN202010358270.5A CN111858262A (en) 2019-04-29 2020-04-29 Warning lamp control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108114934A TWI803628B (en) 2019-04-29 2019-04-29 Warning light control method and electronic device

Publications (2)

Publication Number Publication Date
TW202040363A TW202040363A (en) 2020-11-01
TWI803628B true TWI803628B (en) 2023-06-01

Family

ID=72985248

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108114934A TWI803628B (en) 2019-04-29 2019-04-29 Warning light control method and electronic device

Country Status (2)

Country Link
CN (1) CN111858262A (en)
TW (1) TWI803628B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201222246A (en) * 2010-11-30 2012-06-01 Inventec Corp Computer chassis system and hard disk status display method thereof
US8260741B2 (en) * 2003-08-15 2012-09-04 Intel Corporation System and method for utilizing a modular operating system (OS) resident agent allowing an out-of-band server management
US20160226788A1 (en) * 2012-07-05 2016-08-04 International Business Machines Corporation Managing use of lease resources allocated on fallover in a high availability computing environment
TW201715397A (en) * 2015-09-24 2017-05-01 鴻海精密工業股份有限公司 Detecting system and method for baseboard management controller
TW201723839A (en) * 2015-12-17 2017-07-01 英業達股份有限公司 Method, system, and server for detecting system status

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638378B (en) * 2012-02-22 2014-05-21 中国人民解放军国防科学技术大学 Mass storage system monitoring method integrating heterogeneous storage devices
CN104679116B (en) * 2013-11-28 2018-06-01 英业达科技有限公司 Server cabinet system, circuit board composition system and its circuit board
CN105630853A (en) * 2014-12-01 2016-06-01 宏达国际电子股份有限公司 Intelligent notice filtering method and handheld communication apparatus
CN105373465A (en) * 2015-12-04 2016-03-02 英业达科技有限公司 System state detection method and system, and server
CN105657039A (en) * 2016-02-15 2016-06-08 上海带来科技有限公司 Big data based power plant equipment fault fast positioning system and method
CN107145431A (en) * 2017-05-26 2017-09-08 郑州云海信息技术有限公司 The method and server of server B MC systems air channel abnormal monitoring alarm
CN108132869A (en) * 2017-12-21 2018-06-08 郑州云海信息技术有限公司 A kind of method of quick location-server motherboard hardware failure
CN109032901A (en) * 2018-06-28 2018-12-18 郑州云海信息技术有限公司 A kind of monitoring method, device and the controlled terminal of the outer SSD of remote band
CN109240896A (en) * 2018-09-21 2019-01-18 郑州云海信息技术有限公司 A kind of server and its hard disk lighting system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8260741B2 (en) * 2003-08-15 2012-09-04 Intel Corporation System and method for utilizing a modular operating system (OS) resident agent allowing an out-of-band server management
TW201222246A (en) * 2010-11-30 2012-06-01 Inventec Corp Computer chassis system and hard disk status display method thereof
US20160226788A1 (en) * 2012-07-05 2016-08-04 International Business Machines Corporation Managing use of lease resources allocated on fallover in a high availability computing environment
TW201715397A (en) * 2015-09-24 2017-05-01 鴻海精密工業股份有限公司 Detecting system and method for baseboard management controller
TW201723839A (en) * 2015-12-17 2017-07-01 英業達股份有限公司 Method, system, and server for detecting system status

Also Published As

Publication number Publication date
CN111858262A (en) 2020-10-30
TW202040363A (en) 2020-11-01

Similar Documents

Publication Publication Date Title
TWI567540B (en) Method and system for dynamically managing power supply
US9875111B2 (en) Information handling system performance optimization system
CN110147155A (en) Server power supply cold redundancy control method, device and BMC based on BMC
US20170350403A1 (en) Fan failure detection and reporting
CN109189640A (en) Monitoring method, device, computer equipment and the storage medium of server
WO2021196585A1 (en) Test method and apparatus, electronic device, and computer-readable storage medium
US8140913B2 (en) Apparatus and method for monitoring computer system, taking dependencies into consideration
CN111274099A (en) Indicator lamp control method, system, equipment and medium of switch system
CN111858240B (en) Monitoring method, system, equipment and medium of distributed storage system
JP2012088855A (en) Event occurrence notification apparatus, event occurrence notification method, event occurrence notification program
JP2006107080A (en) Storage device system
JP2020053017A (en) System and method for hybrid power source
WO2020000760A1 (en) Server management method and device, computer apparatus, and storage medium
JP7436737B1 (en) Server management system that supports multi-vendors
US20140289437A1 (en) Expander interrupt processing
TWI803628B (en) Warning light control method and electronic device
JP2013138041A (en) Electronic apparatus and fan control method of the same
TW201530304A (en) Method for alarming abnormal status
TWI689814B (en) Server hard disk indicator control system and control method
WO2019241199A1 (en) System and method for predictive maintenance of networked devices
CN110798347B (en) Service state detection method, device, equipment and storage medium
CN115307277A (en) Control method and system of multi-split air conditioner
US11366651B2 (en) Framework for hardware-specific analytic plugins
TWI711285B (en) Network failure detection method and network failure detection device
CN113835971A (en) Monitoring method for abnormal lighting of server backboard and related components