TW202107280A - Method of determining operation status of hard disk - Google Patents

Method of determining operation status of hard disk Download PDF

Info

Publication number
TW202107280A
TW202107280A TW108128609A TW108128609A TW202107280A TW 202107280 A TW202107280 A TW 202107280A TW 108128609 A TW108128609 A TW 108128609A TW 108128609 A TW108128609 A TW 108128609A TW 202107280 A TW202107280 A TW 202107280A
Authority
TW
Taiwan
Prior art keywords
operating state
signal
hard disk
operating
original
Prior art date
Application number
TW108128609A
Other languages
Chinese (zh)
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 TW108128609A priority Critical patent/TW202107280A/en
Publication of TW202107280A publication Critical patent/TW202107280A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A method of determining a hard disk operation status is used for determining the operation status of an electronic device which comprises a serial general purpose input/output port and a hard disk. Said method comprises receiving an operation status raw signal of the hard disk from the serial general purpose input/output port, determining whether receiving a previous operation status raw signal of the hard disk has been performed before an operational cycle before receiving the previous operation status raw signal, generating an operation status adjusted signal according to the operation status raw signal of the hard disk when determining that receiving the previous operation status raw signal has not been performed, and performing a delay procedure on the operation status adjusted signal according to a preset time interval to generate and output an operation status determined signal.

Description

硬碟運作狀態判定方法Method for judging the operating state of hard disk

本發明係關於一種硬碟運作狀態判定方法。The invention relates to a method for determining the operating state of a hard disk.

一般而言,當基板管理控制器欲取得電子裝置或系統中的硬碟的運作狀態時,通常會藉由複雜可程式化邏輯裝置來解析串列通用型輸入輸出埠上的訊號,以取得每個硬碟的運作狀態。然而,當串列通用型輸入輸出埠處於不穩定的狀態而產生有雜訊或突波的訊號波形時,基板管理控制器將會取得此訊號波形,而導致硬碟運作狀態的誤報。Generally speaking, when the baseboard management controller wants to obtain the operating status of the electronic device or the hard disk in the system, it usually uses a complex programmable logic device to parse the signal on the serial universal input and output port to obtain each The operating status of each hard drive. However, when the serial universal I/O port is in an unstable state and a signal waveform with noise or glitches is generated, the baseboard management controller will obtain this signal waveform, which may cause false alarms on the operating state of the hard disk.

鑒於上述,本發明提供一種硬碟運作狀態判定方法。In view of the above, the present invention provides a method for determining the operating status of a hard disk.

依據本發明一實施例,硬碟運作狀態判定方法用於判定包含串列通用型輸入輸出埠及硬碟的電子裝置的運作狀態。所述硬碟運作狀態判定方法包含從串列通用型輸入輸出埠接收硬碟的運作狀態原始訊號,判斷在接收運作狀態原始訊號前的運作週期之前是否接收過硬碟的前次運作狀態原始訊號,當判斷在接收運作狀態原始訊號前的運作週期之前未接收過前次運作狀態原始訊號時,依據硬碟的運作狀態原始訊號及串列通用型輸入輸出埠的致能狀態訊號產生運作狀態校正訊號,以及依據預設時間對運作狀態校正訊號執行延遲程序以產生並輸出運作狀態判定訊號。According to an embodiment of the present invention, a method for determining the operating status of a hard disk is used to determine the operating status of an electronic device including a serial universal input/output port and a hard disk. The method for determining the operating state of the hard disk includes receiving an original signal of the operating state of the hard disk from a serial universal input and output port, and determining whether the original signal of the previous operating state of the hard disk has been received before the operating period before the original signal of the operating state is received, When it is determined that the original signal of the previous operating state has not been received before the operating cycle before the original signal of the operating state is received, the operating state correction signal is generated based on the operating state raw signal of the hard disk and the enable state signal of the serial universal input and output port , And perform a delay procedure on the operating state correction signal according to the preset time to generate and output the operating state determination signal.

依據本發明另一實施例,硬碟運作狀態判定方法用於判定包含串列通用型輸入輸出埠及硬碟的電子裝置的運作狀態。所述硬碟運作狀態判定方法包含從串列通用型輸入輸出埠接收硬碟的運作狀態原始訊號,判斷運作狀態原始訊號指示運作正常或異常,當運作狀態原始訊指示運作異常時判斷在接收運作狀態原始訊號之前所接收過的硬碟的前次運作狀態原始訊號指示運作正常或異常,當前次運作狀態原始訊號指示運作正常時依據硬碟的運作狀態原始訊號及串列通用型輸入輸出埠的致能狀態訊號產生運作狀態校正訊號,以及依據預設時間對運作狀態校正訊號執行延遲程序以產生並輸出運作狀態判定訊號。According to another embodiment of the present invention, a method for determining the operating status of a hard disk is used to determine the operating status of an electronic device including a serial universal input and output port and a hard disk. The method for determining the operating state of the hard disk includes receiving an original signal of the operating state of the hard disk from a serial universal input and output port, determining whether the original signal of the operating state indicates normal or abnormal operation, and determining whether the operating state original signal indicates an abnormal operation is receiving operation Status original signal The previous operating status of the hard disk received before. The original signal indicates normal or abnormal operation. The original signal of the current operating status indicates normal operation based on the original signal of the hard disk's operating status and the serial universal input/output port. The enabling state signal generates an operating state calibration signal, and performs a delay process on the operating state calibration signal according to a preset time to generate and output an operating state determination signal.

藉由上述內容,本案所揭示的硬碟運作狀態判定方法能夠判斷所應用之電子裝置是否處於不穩定狀態以選擇性地執行特殊的運作狀態訊號處理程序,藉此提高硬碟運作狀態判定的準確性,減少誤報的情況發生。。With the above content, the method for determining the operating state of the hard disk disclosed in this case can determine whether the applied electronic device is in an unstable state to selectively execute a special operating state signal processing program, thereby improving the accuracy of determining the operating state of the hard disk To reduce the occurrence of false alarms. .

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the disclosure and the following description of the implementation manners are used to demonstrate and explain the spirit and principle of the present invention, and to provide a further explanation of the patent application scope of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention will be described in detail in the following embodiments. The content is sufficient to enable anyone familiar with the relevant art to understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the scope of patent application and the drawings. Anyone who is familiar with relevant skills can easily understand the purpose and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention by any viewpoint.

本發明的一或多個實施例所提之硬碟運作狀態判定方法係用於判定包含串列通用型輸入輸出埠及硬碟的電子裝置的運作狀態,特別是硬碟的真實運作狀態。請參考圖1,圖1係本發明後述之一或多個實施例的硬碟運作狀態判定方法所適用的運作系統的功能方塊圖,所述運作環境可以包含電子裝置1、處理器2及基板管理控制器(Baseboard management controller,BMC)3。電子裝置1包含硬碟11及串列通用型輸入輸出(Serial general purpose input/output,SGPIO)埠13,其中硬碟11例如為串行ATA硬碟(SATA HDD)、串列連線SCSI硬碟(SAS HDD)等,與串列通用型輸入輸出埠13電性連接。圖1示例性地繪示電子裝置1包含一個硬碟11,而於另一實施例中,電子裝置1亦可包含多個硬碟11,分別電性連接於串列通用型輸入輸出埠13。舉例來說,電子裝置1可以為主機匯流排配接器(Host bus adapter,HBA)、容錯式磁碟陣列(Redundant array of independent disks,RAID)、平台路徑控制器(Platform controller hub,PCH)或其他利用串列通用型輸入輸出來擷取硬碟狀態之裝置。The method for determining the operating status of a hard disk provided by one or more embodiments of the present invention is used to determine the operating status of an electronic device including a serial universal input and output port and a hard disk, especially the actual operating status of the hard disk. Please refer to FIG. 1. FIG. 1 is a functional block diagram of an operating system applicable to the method for determining the operating state of a hard disk in one or more embodiments of the present invention. The operating environment may include an electronic device 1, a processor 2, and a substrate. Baseboard management controller (BMC) 3. The electronic device 1 includes a hard disk 11 and a serial general purpose input/output (Serial general purpose input/output, SGPIO) port 13. The hard disk 11 is, for example, a serial ATA hard disk (SATA HDD) or a serial-connected SCSI hard disk. (SAS HDD), etc., are electrically connected to the serial universal input/output port 13. FIG. 1 exemplarily shows that the electronic device 1 includes a hard disk 11. In another embodiment, the electronic device 1 may also include a plurality of hard disks 11 electrically connected to the serial universal input and output ports 13. For example, the electronic device 1 can be a host bus adapter (HBA), a fault-tolerant array of independent disks (RAID), a platform controller hub (PCH), or Other devices that use serial general-purpose input and output to capture the status of the hard disk.

處理器2例如為複雜可程式邏輯裝置(Complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(Field programmable gate array,FPGA)等,可以與串列通用型輸入輸出埠13電性連接,藉此取得一或多個硬碟11的資訊。處理器2可以包含暫存器(例如自定義暫存器)來暫時儲存所取得之各個硬碟11的資訊。於一實施例中,處理器2為設置於背板(Backplane,BP)上的複雜可程式邏輯裝置。基板管理控制器3可以電性連接於處理器2,以自暫存器讀取電子裝置1的各硬碟11的資訊,以取得各硬碟11的狀態,例如活躍(activity)、在位(locate)及異常(fail)狀態。The processor 2 is, for example, a complex programmable logic device (CPLD), a field programmable gate array (FPGA), etc., and can be electrically connected to a serial universal input and output port 13. In this way, information about one or more hard disks 11 can be obtained. The processor 2 may include a register (such as a custom register) to temporarily store the acquired information of each hard disk 11. In one embodiment, the processor 2 is a complex programmable logic device arranged on a backplane (BP). The baseboard management controller 3 can be electrically connected to the processor 2 to read the information of each hard disk 11 of the electronic device 1 from the register to obtain the status of each hard disk 11, such as activity and presence ( locate) and abnormal (fail) status.

請一併參考圖1及圖2,其中圖2係依據本發明一實施例所繪示的硬碟運作狀態判定方法的流程圖。Please refer to FIG. 1 and FIG. 2 together. FIG. 2 is a flowchart of a method for determining the operating state of a hard disk according to an embodiment of the present invention.

於步驟S101中,處理器2會從串列通用型輸入輸出埠13接收硬碟11的運作狀態原始訊號,其中運作狀態原始訊號可以包含硬碟11的活躍(activity)狀態訊號、在位(locate)狀態訊號及異常(fail)狀態訊號。如前所述,於圖1所示的運作系統中,由於處理器2是透過串列通用型輸入輸出埠13而非直接從硬碟11取得硬碟11的資訊,所取得之資訊可能會因串列通用型輸入輸出埠13的不穩定而有誤。於步驟S101中從串列通用型輸入輸出埠13取得之硬碟11的運作狀態原始訊號不一定代表硬碟11真實的運作狀態。因此,處理器2會再執行以下步驟。In step S101, the processor 2 receives an original signal of the operating state of the hard disk 11 from the serial universal input/output port 13, where the original signal of the operating state may include the activity state signal of the hard disk 11, and the location (locate). ) Status signal and abnormal (fail) status signal. As mentioned above, in the operating system shown in Figure 1, since the processor 2 obtains the information of the hard disk 11 through the serial universal input and output port 13 instead of directly from the hard disk 11, the information obtained may be affected by The serial universal input/output port 13 is unstable and incorrect. The original signal of the operating state of the hard disk 11 obtained from the serial universal input/output port 13 in step S101 does not necessarily represent the actual operating state of the hard disk 11. Therefore, the processor 2 will perform the following steps again.

於步驟S102中,處理器2會判斷在接收運作狀態原始訊號之前是否接收過硬碟11的前次運作狀態原始訊號。進一步來說,在電子裝置1剛開始運作(開機)時,往往會有不穩定的狀況發生步驟S102可以用於判斷電子裝置1是否剛開機。當處理器2判斷在接收運作狀態原始訊號之前並未接收過硬碟11的前次運作狀態原始訊號,即判斷電子裝置1為剛開機時,便會執行步驟S103。此外,電子裝置1的剛開機階段亦可以定義為電子裝置1接收電源而開啟後的一運作週期內。於此實施例中,處理器2會判斷在接收運作狀態原始訊號前的一運作週期之前是否接收過硬碟11的前次運作狀態原始訊號。舉例來說,運作週期可以為串列通用型輸入輸出埠13的載入訊號(SLoad signal)第一個及第二個週期。其中,載入訊號係用於指示位元流(bit stream)何時結束及何時重新開始。In step S102, the processor 2 determines whether it has received the original signal of the previous operating state of the hard disk 11 before receiving the original signal of the operating state. Furthermore, when the electronic device 1 just starts to operate (turn on), an unstable situation often occurs. Step S102 can be used to determine whether the electronic device 1 is just turned on. When the processor 2 determines that it has not received the original operating state signal of the hard disk 11 before receiving the original operating state signal, that is, when it determines that the electronic device 1 has just been turned on, step S103 is executed. In addition, the start-up phase of the electronic device 1 can also be defined as an operation period after the electronic device 1 receives power and is turned on. In this embodiment, the processor 2 determines whether the original signal of the previous operating state of the hard disk 11 has been received before an operating period before the original signal of the operating state is received. For example, the operation cycle may be the first and second cycles of the load signal (SLoad signal) of the serial universal input/output port 13. Among them, the load signal is used to indicate when the bit stream ends and when it restarts.

於步驟S103中,處理器2依據硬碟11的運作狀態原始訊號及串列通用型輸入輸出埠13的致能狀態訊號產生運作狀態校正訊號。其中,致能狀態訊號可以指示串列通用型輸入輸出埠13處於致能或禁能狀態。進一步來說,處理器2可以選擇硬碟11的運作狀態原始訊號中的異常狀態訊號來與串列通用型輸入輸出埠13的致能狀態訊號進行運算以產生運作狀態校正訊號。假設運作狀態原始訊號中的異常狀態訊號定義為sgpio_fail(當指示正常狀態時數值為0;當指示異常狀態時則數值為1),致能狀態訊號定義為sgpio_active_n(當指示禁能狀態時數值為0;當指示致能狀態時則數值為1),則處理器2會以下列運算邏輯來產生運作狀態校正訊號hdd_fail(當指示正常狀態時數值為0;當指示異常狀態時則數值為1):In step S103, the processor 2 generates an operating status correction signal based on the original operating status signal of the hard disk 11 and the enabling status signal of the serial universal input/output port 13. Among them, the enabling state signal can indicate that the serial universal input and output port 13 is in the enabled or disabled state. Furthermore, the processor 2 can select the abnormal state signal in the original operating state signal of the hard disk 11 to perform operation with the enable state signal of the serial universal input and output port 13 to generate the operating state correction signal. Assuming that the abnormal state signal in the original signal of the operating state is defined as sgpio_fail (the value is 0 when the normal state is indicated; the value is 1 when the abnormal state is indicated), and the enabled state signal is defined as sgpio_active_n (the value is when the disabled state is indicated 0; when the enabled state is indicated, the value is 1), the processor 2 will use the following arithmetic logic to generate the operating state correction signal hdd_fail (the value is 0 when the normal state is indicated; the value is 1 when the abnormal state is indicated) :

hdd_fail=sgpio_fail&(!sgpio_active_n),即對致能狀態訊號進行反運算,並將反運算的結果和異常狀態訊號作與運算,以產生運作狀態校正訊號。hdd_fail=sgpio_fail&(!sgpio_active_n), that is, perform the inverse operation on the enable state signal, and perform the AND operation on the result of the inverse operation and the abnormal state signal to generate the operating state correction signal.

於步驟S104中,處理器2會依據一預設時間,對運作狀態校正訊號執行延遲程序以產生並輸出運作狀態判定訊號。其中,延遲程序例如為de-bounce函式。假設預設時間為t秒,則處理器2於此步驟中會等待t秒後再將產生的運作狀態校正訊號作為運作狀態判定訊號以儲存於暫存器,或是輸出至基板管理控制器3。進一步來說,預設時間可以取決於基板管理控制器3的讀取週期,更進一步來說,預設時間可以介於所述讀取週期的2至5倍之間,其中又以4倍為較佳。於一實施例中,基板管理控制器3從處理器2接收運作狀態判定訊號,並據以產生並輸出對應的運作狀態訊息。In step S104, the processor 2 executes a delay procedure on the operating state correction signal according to a preset time to generate and output the operating state determination signal. Among them, the delay procedure is, for example, a de-bounce function. Assuming that the preset time is t seconds, the processor 2 will wait for t seconds in this step and then use the generated operating state correction signal as an operating state determination signal to store in the register or output to the baseboard management controller 3 . Further, the preset time may depend on the reading period of the baseboard management controller 3. Furthermore, the preset time may be between 2 to 5 times the reading period, and 4 times is Better. In one embodiment, the baseboard management controller 3 receives the operation status determination signal from the processor 2 and generates and outputs corresponding operation status information accordingly.

於圖2所示之實施例中,當處理器2於步驟S102的判斷結果為在接收運作狀態原始訊號之前已接收過硬碟11的前次運作狀態原始訊號時,處理器2會判斷電子裝置1非處於剛開機階段,因此便可以直接將運作狀態原始訊號儲存起來或是輸出。於剛開機階段定義為電子裝置1接收電源而開啟後的一運作週期內的實施例中,處理器2則在判斷接收運作狀態原始訊號前的一運作週期前已接收過硬碟11的前次運作狀態原始訊號時,判斷電子裝置1非處於剛開機階段,並直接將運作狀態原始訊號儲存起來或是輸出。In the embodiment shown in FIG. 2, when the determination result of the processor 2 in step S102 is that it has received the original signal of the previous operating state of the hard disk 11 before receiving the original signal of the operating state, the processor 2 will determine the electronic device 1 It is not in the initial startup stage, so the original signal of the operating state can be directly stored or output. In the embodiment defined as the first operation period after the electronic device 1 receives power and is turned on in the just booting stage, the processor 2 has received the previous operation of the hard disk 11 before determining the operation period before receiving the original signal of the operation state. When the original signal is in the state, it is determined that the electronic device 1 is not in the just-starting stage, and the original signal in the operating state is directly stored or output.

於一實施例中,硬碟運作狀態判定方法在上述步驟S103執行之前,更可以包含以處理器2(特別是複雜可程式邏輯裝置)來解析所得之運作狀態原始訊號。進一步來說,串列通用型輸入輸出埠13提供之運作狀態原始訊號中的活躍狀態訊號、在位狀態訊號及異常狀態訊號係串列形式的訊號,因此處理器2可以先將串列形式的運作狀態原始訊號解碼轉換為並列形式的活躍狀態訊號、在位狀態訊號及異常狀態訊號,以擷取異常狀態訊號來執行上述步驟S103之訊號處理程序。In one embodiment, the method for determining the operating state of the hard disk may further include using the processor 2 (especially a complex programmable logic device) to analyze the original operating state signal obtained before the above step S103 is executed. Furthermore, the active state signal, the presence state signal, and the abnormal state signal in the original operating state signal provided by the serial universal input and output port 13 are serial signals. Therefore, the processor 2 can first connect the serial form of the active state signal, the presence state signal, and the abnormal state signal. The original signal of the operating state is decoded and converted into parallel active state signals, in-position state signals, and abnormal state signals to capture the abnormal state signals to execute the signal processing procedure of step S103 described above.

藉由上述步驟,處理器2可以對從串列通用型輸入輸出埠13接收的訊號執行特殊的判斷與訊號處理程序,以避開電子裝置1於開機時的不穩定狀態,藉此提高硬碟運作狀態判定的準確性。Through the above steps, the processor 2 can perform special judgment and signal processing procedures on the signal received from the serial universal input and output port 13, so as to avoid the unstable state of the electronic device 1 when it is turned on, thereby improving the hard disk The accuracy of the operation status determination.

本發明之硬碟運作狀態判定方法除了如上所述可應用於包含硬碟及串列通用型輸入輸出埠的電子裝置的開機階段,亦可應用於其他運作階段。請一併參考圖1及圖3,其中圖3係依據本發明另一實施例所繪示的硬碟運作狀態判定方法的流程圖。The method for determining the operating status of the hard disk of the present invention can be applied to the boot phase of an electronic device including a hard disk and a serial universal input/output port as described above, as well as other operating phases. Please refer to FIG. 1 and FIG. 3 together, in which FIG. 3 is a flowchart of a method for determining the operating state of a hard disk according to another embodiment of the present invention.

於步驟S201中,同於步驟S101,處理器2會從串列通用型輸入輸出埠13接收硬碟11的運作狀態原始訊號,其中運作狀態原始訊號可以包含硬碟11的活躍狀態訊號、在位狀態訊號及異常狀態訊號。In step S201, the same as step S101, the processor 2 receives the original signal of the operating state of the hard disk 11 from the serial universal input and output port 13, where the original signal of the operating state may include the active state signal of the hard disk 11, the presence signal Status signal and abnormal status signal.

於步驟S202中,處理器2判斷運作狀態原始訊號是否指示運作正常。進一步來說,此步驟可以包含以處理器2(特別是複雜可程式邏輯裝置)來解析所得之運作狀態原始訊號。詳細來說,串列通用型輸入輸出埠13提供之運作狀態原始訊號中的活躍狀態訊號、在位狀態訊號及異常狀態訊號係串列形式的訊號,因此處理器2可以先將串列形式的運作狀態原始訊號解碼轉換為並列形式的活躍狀態訊號、在位狀態訊號及異常狀態訊號,以擷取異常狀態訊號來判斷其是否指示運作正常。舉例來說,當異常狀態訊號的數值為0時,指示運作正常;而當異常狀態訊號的數值為1時,指示運作異常。當處理器2判斷運作狀態原始訊號並非指示運作正常而是異常時,便會執行步驟S203。In step S202, the processor 2 determines whether the original operating state signal indicates normal operation. Furthermore, this step may include using the processor 2 (especially a complex programmable logic device) to analyze the original signal of the operating state obtained. In detail, the active state signal, the presence state signal and the abnormal state signal of the original operating state signal provided by the serial universal input and output port 13 are serial signals, so the processor 2 can first connect the serial form The original signal of the operating state is decoded and converted into parallel active state signals, in-position state signals and abnormal state signals, and the abnormal state signals are captured to determine whether they indicate normal operation. For example, when the value of the abnormal state signal is 0, it indicates normal operation; and when the value of the abnormal state signal is 1, it indicates abnormal operation. When the processor 2 determines that the original signal of the operating state is not indicative of normal operation but abnormal, step S203 is executed.

於步驟S203中,處理器2判斷在接收運作狀態原始訊號之前所接收過的硬碟的前次運作狀態原始訊號是否指示運作正常。當處理器2判斷前次運作狀態原始訊號指示運作正常時,便會執行步驟S204與S205。於步驟S204中,處理器2依據硬碟11的運作狀態原始訊號及串列通用型輸入輸出埠13的致能狀態訊號產生運作狀態校正訊號。於步驟S205中,處理器2依據預設時間,對運作狀態校正訊號執行延遲程序以產生並輸出運作狀態判定訊號。其中,步驟S204及S205的詳細實施內容分別類似於前述步驟S103及104之實施內容,因此於此不再贅述。於一實施例中,基板管理控制器3從處理器2接收運作狀態判定訊號,並據以產生並輸出對應的運作狀態訊息。In step S203, the processor 2 determines whether the previous operating state original signal of the hard disk received before receiving the operating state original signal indicates that the operation is normal. When the processor 2 determines that the original signal of the previous operation state indicates that the operation is normal, steps S204 and S205 are executed. In step S204, the processor 2 generates an operating status correction signal based on the original operating status signal of the hard disk 11 and the enabling status signal of the serial universal input/output port 13. In step S205, the processor 2 executes a delay procedure on the operating state correction signal according to a preset time to generate and output an operating state determination signal. Among them, the detailed implementation content of steps S204 and S205 are similar to the implementation content of the aforementioned steps S103 and 104, and therefore will not be repeated here. In one embodiment, the baseboard management controller 3 receives the operation status determination signal from the processor 2 and generates and outputs corresponding operation status information accordingly.

於圖3所示之實施例中,當處理器2於步驟S202的判斷結果為運作狀態原始訊號指示運作正常,或是於步驟S203的判斷結果為前次運作狀態原始訊號指示運作異常時,處理器2會判斷電子裝置1非處於不穩定的狀態,因此便可以直接將運作狀態原始訊號儲存起來或是輸出。In the embodiment shown in FIG. 3, when the determination result of the processor 2 in step S202 is that the original signal of the operation state indicates that the operation is normal, or the determination result of step S203 is that the original signal of the previous operation state indicates that the operation is abnormal, processing is performed The device 2 will determine that the electronic device 1 is not in an unstable state, so it can directly store or output the original signal of the operating state.

當處理器2判斷硬碟11狀態從正常變為異常時,由於處理器2是透過串列通用型輸入輸出埠13而非直接從硬碟11取得硬碟11的資訊,所述由正常變為異常之情況可能係由於串列通用型輸入輸出埠13的不穩定所造成,而非硬碟11的真實狀況。因此,藉由上述步驟,處理器2可以對從串列通用型輸入輸出埠13接收的訊號執行特殊的判斷與訊號處理程序,藉此提高硬碟運作狀態判定的準確性,減少誤報的情況發生。When the processor 2 judges that the state of the hard disk 11 changes from normal to abnormal, because the processor 2 obtains the information of the hard disk 11 through the serial universal input and output port 13 instead of directly from the hard disk 11, the change from normal to abnormal The abnormal situation may be caused by the instability of the serial universal input/output port 13 rather than the actual condition of the hard disk 11. Therefore, through the above steps, the processor 2 can perform special judgment and signal processing procedures on the signal received from the serial universal input and output port 13, thereby improving the accuracy of determining the operating state of the hard disk and reducing the occurrence of false alarms. .

上述之圖2的實施例用於在電子裝置1剛開機的階段來進行訊號處理;圖3的實施例則用於在電子裝置1輸出之運作訊號由正常變為異常的時候來進行訊號處理。於又一實施例中,硬碟運作狀態判定方法在電子裝置1剛開機的階段以及運作訊號由正常變為異常的時候,皆會進行特殊的訊號處理,請一併參考圖1及圖4,其中圖4係依據所述又一實施例所繪示的硬碟運作狀態判定方法的流程圖。The embodiment of FIG. 2 described above is used for signal processing when the electronic device 1 is just turned on; the embodiment of FIG. 3 is used for signal processing when the operating signal output by the electronic device 1 changes from normal to abnormal. In another embodiment, the method for determining the operating state of the hard disk will perform special signal processing when the electronic device 1 is just turned on and when the operating signal changes from normal to abnormal. Please refer to FIGS. 1 and 4 together. FIG. 4 is a flowchart of a method for determining the operating state of a hard disk according to another embodiment.

圖4所示的步驟S301~S304同於圖2所示之步驟S101~S104,描述處理器2在判斷電子裝置1處於剛開機狀態(例如定義為第一次產生訊號並輸出至處理器2時,或是接收到電源後的一運作週期內)時所進行之訊號處理,其詳細內容如前實施例所述,於此不再贅述。當處理器2判斷電子裝置1並非處於剛開機狀態時,便會執行步驟S305:判斷運作狀態原始訊號是否指示運作正常。當處理器2判斷運作狀態原始訊號並非指示運作正常而為異常時,便會執行步驟S306:判斷在接收運作狀態原始訊號之前所接收過的硬碟的前次運作狀態原始訊號是否指示運作正常。當處理器2判斷前次運作狀態原始訊號指示運作正常,意即處理器2判斷運作狀態原始訊號係從正常變為異常時,便會執行步驟S303與S304之訊號處理程序。其中,步驟S305及S306分別同於圖3所示之步驟S202及S203,詳細內容不再贅述。Steps S301 to S304 shown in FIG. 4 are the same as steps S101 to S104 shown in FIG. , Or the signal processing performed during an operation period after the power is received), the details of which are as described in the previous embodiment, and will not be repeated here. When the processor 2 determines that the electronic device 1 is not in the just-turned-on state, it will perform step S305: determining whether the original signal of the operating state indicates that it is operating normally. When the processor 2 determines that the original operating state signal is not indicative of normal operation but is abnormal, it performs step S306: determining whether the previous operating state original signal of the hard disk received before receiving the original operating state signal indicates normal operation. When the processor 2 determines that the original signal of the previous operating state indicates that the operation is normal, which means that the processor 2 determines that the original signal of the operating state changes from normal to abnormal, it will execute the signal processing procedures of steps S303 and S304. Among them, steps S305 and S306 are respectively the same as steps S202 and S203 shown in FIG. 3, and the details are not repeated here.

於圖4所示之實施例中,當處理器2於步驟S305的判斷結果為運作狀態原始訊號指示運作正常,或是於步驟S306的判斷結果為前次運作狀態原始訊號指示運作異常時,處理器2會判斷電子裝置1非處於訊號變動的狀態,因此便可以直接將運作狀態原始訊號儲存起來或是輸出。In the embodiment shown in FIG. 4, when the determination result of the processor 2 in step S305 is that the original signal of the operating state indicates that the operation is normal, or the determination result of step S306 is that the original signal of the previous operation state indicates that the operation is abnormal, processing is performed The device 2 will determine that the electronic device 1 is not in a state of signal change, so it can directly store or output the original signal of the operating state.

藉由上述內容,本案所揭示的硬碟運作狀態判定方法能夠判斷所應用之電子裝置是否處於不穩定狀態以選擇性地執行特殊的運作狀態訊號處理程序,藉此提高硬碟運作狀態判定的準確性,減少誤報的情況發生。With the above content, the method for determining the operating state of the hard disk disclosed in this case can determine whether the applied electronic device is in an unstable state to selectively execute a special operating state signal processing program, thereby improving the accuracy of determining the operating state of the hard disk To reduce the occurrence of false alarms.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed in the foregoing embodiments, it is not intended to limit the present invention. All changes and modifications made without departing from the spirit and scope of the present invention fall within the scope of the patent protection of the present invention. For the scope of protection defined by the present invention, please refer to the attached scope of patent application.

1:電子裝置 11:硬碟 13:串列通用型輸入輸出埠 2:處理器 3:基板管理控制器1: Electronic device 11: Hard Disk 13: Serial universal input and output port 2: processor 3: baseboard management controller

圖1係本發明一或多個實施例的硬碟運作狀態判定方法所適用的系統的功能方塊圖。 圖2係依據本發明一實施例所繪示的硬碟運作狀態判定方法的流程圖。 圖3係依據本發明另一實施例所繪示的硬碟運作狀態判定方法的流程圖。 圖4係依據本發明又一實施例所繪示的硬碟運作狀態判定方法的流程圖。FIG. 1 is a functional block diagram of a system to which the method for determining the operating state of a hard disk according to one or more embodiments of the present invention is applicable. FIG. 2 is a flowchart of a method for determining the operating status of a hard disk according to an embodiment of the present invention. FIG. 3 is a flowchart of a method for determining the operating status of a hard disk according to another embodiment of the present invention. FIG. 4 is a flowchart of a method for determining the operating state of a hard disk according to another embodiment of the present invention.

Claims (10)

一種硬碟運作狀態判定方法,用於判定包含一串列通用型輸入輸出埠及一硬碟的一電子裝置的運作狀態,該方法包含:從該串列通用型輸入輸出埠接收該硬碟的一運作狀態原始訊號;判斷在接收該運作狀態原始訊號前的一運作週期之前是否接收過該硬碟的一前次運作狀態原始訊號;當判斷在接收該運作狀態原始訊號前的該運作週期之前未接收過該前次運作狀態原始訊號時,依據該硬碟的該運作狀態原始訊號及該串列通用型輸入輸出埠的一致能狀態訊號產生一運作狀態校正訊號;以及依據一預設時間,對該運作狀態校正訊號執行一延遲程序以產生並輸出一運作狀態判定訊號。A method for determining the operating status of a hard disk for determining the operating status of an electronic device including a serial universal input and output port and a hard disk. The method includes: receiving the hard disk from the serial universal input and output port An original operating state signal; determine whether a previous operating state original signal of the hard disk has been received before an operating period before receiving the operating state original signal; when it is determined before the operating period before receiving the operating state original signal When the previous operating state original signal has not been received, an operating state calibration signal is generated based on the operating state original signal of the hard disk and the consistent performance state signal of the serial universal input and output port; and based on a preset time, A delay process is performed on the operating state correction signal to generate and output an operating state determination signal. 如請求項1所述的方法,其中從該串列通用型輸入輸出埠接收該硬碟的該運作狀態原始訊號係以一讀取週期來進行,且該預設時間係介於該讀取週期的2倍與5倍之間。The method according to claim 1, wherein receiving the original signal of the operating state of the hard disk from the serial universal input/output port is performed in a read cycle, and the predetermined time is between the read cycle Between 2 times and 5 times of. 如請求項2所述的方法,其中該預設時間係該讀取週期的4倍。The method according to claim 2, wherein the preset time is 4 times of the reading period. 如請求項1所述的方法,更包含:以一複雜可程式邏輯裝置解析該運作狀態原始訊號。The method according to claim 1, further comprising: analyzing the original signal of the operating state with a complex programmable logic device. 如請求項1所述的方法,更包含:以一基板管理控制器接收該運作狀態判定訊號,據以產生並輸出對應的運作狀態訊息。The method according to claim 1, further comprising: receiving the operating state determination signal by a baseboard management controller, and generating and outputting corresponding operating state information accordingly. 一種硬碟運作狀態判定方法,用於判定包含一串列通用型輸入輸出埠及一硬碟的一電子裝置的運作狀態,該方法包含:從該串列通用型輸入輸出埠接收該硬碟的一運作狀態原始訊號;判斷該運作狀態原始訊號指示運作正常或異常;當該運作狀態原始訊指示運作異常時,判斷在接收該運作狀態原始訊號之前所接收過的該硬碟的一前次運作狀態原始訊號指示運作正常或異常;當該前次運作狀態原始訊號指示運作正常時,依據該硬碟的該運作狀態原始訊號及該串列通用型輸入輸出埠的一致能狀態訊號產生一運作狀態校正訊號;以及依據一預設時間,對該運作狀態校正訊號執行一延遲程序以產生並輸出一運作狀態判定訊號。A method for determining the operating status of a hard disk for determining the operating status of an electronic device including a serial universal input and output port and a hard disk. The method includes: receiving the hard disk from the serial universal input and output port An original signal of the operating state; determine whether the original signal of the operating state indicates normal or abnormal operation; when the original signal of the operating state indicates an abnormal operation, determine the previous operation of the hard disk received before receiving the original signal of the operating state The original status signal indicates normal or abnormal operation; when the previous operating status original signal indicates normal operation, an operating status is generated based on the original operating status signal of the hard disk and the consistent performance status signal of the serial universal input and output port A calibration signal; and according to a preset time, a delay procedure is performed on the operating state calibration signal to generate and output an operating state determination signal. 如請求項6所述的方法,其中從該串列通用型輸入輸出埠接收該硬碟的該運作狀態原始訊號係以一讀取週期來進行,且該預設時間係介於該讀取週期的2倍與5倍之間。The method according to claim 6, wherein receiving the original signal of the operating state of the hard disk from the serial universal input and output port is performed in a read cycle, and the predetermined time is between the read cycle Between 2 times and 5 times of. 如請求7所述的方法,其中該預設時間係該讀取週期的4倍。The method according to request 7, wherein the preset time is 4 times of the read period. 如請求項6所述的方法,其中判斷該運作狀態原始訊號指示運作正常或異常包含:以一複雜可程式邏輯裝置解析該運作狀態原始訊號。The method according to claim 6, wherein determining that the original signal of the operating state indicates normal or abnormal operation includes: analyzing the original signal of the operating state with a complex programmable logic device. 如請求項6所述的方法,其中判斷該運作狀態原始訊號指示運作正常或異常包含:以一基板管理控制器接收該運作狀態判定訊號,據以產生並輸出對應的運作狀態訊息。The method according to claim 6, wherein determining that the original operating state signal indicates normal or abnormal operation includes: receiving the operating state determining signal by a baseboard management controller, and generating and outputting corresponding operating state information accordingly.
TW108128609A 2019-08-12 2019-08-12 Method of determining operation status of hard disk TW202107280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108128609A TW202107280A (en) 2019-08-12 2019-08-12 Method of determining operation status of hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108128609A TW202107280A (en) 2019-08-12 2019-08-12 Method of determining operation status of hard disk

Publications (1)

Publication Number Publication Date
TW202107280A true TW202107280A (en) 2021-02-16

Family

ID=75745450

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108128609A TW202107280A (en) 2019-08-12 2019-08-12 Method of determining operation status of hard disk

Country Status (1)

Country Link
TW (1) TW202107280A (en)

Similar Documents

Publication Publication Date Title
TWI588649B (en) Hardware recovery methods, hardware recovery systems, and computer-readable storage device
TWI632462B (en) Switching device and method for detecting i2c bus
US8661306B2 (en) Baseboard management controller and memory error detection method of computing device utilized thereby
US8615685B2 (en) System and method for detecting errors occurring in computing device
US10127170B2 (en) High density serial over LAN management system
US7490176B2 (en) Serial attached SCSI backplane and detection system thereof
US20150095632A1 (en) Computer booting system and method for computer system
US10776193B1 (en) Identifying an remediating correctable hardware errors
CN114600088A (en) Server state monitoring system and method using baseboard management controller
US10514972B2 (en) Embedding forensic and triage data in memory dumps
WO2020010890A1 (en) Method and system for monitoring resource utilization rate of server cpu based on bmc
US10705936B2 (en) Detecting and handling errors in a bus structure
TWI553490B (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
JP2013257640A (en) Configuration controller, configuration control method and configuration control program
JP5689783B2 (en) Computer, computer system, and failure information management method
TW202107280A (en) Method of determining operation status of hard disk
US7774650B2 (en) Power failure warning in logically partitioned enclosures
TWI777628B (en) Computer system, dedicated crash dump hardware device thereof and method of logging error data
CN110347555B (en) Hard disk operation state determination method
US11366710B1 (en) Methods and systems for reducing downtime from system management mode in a computer system
US11182316B2 (en) Program interrupt code conversion
US11275638B1 (en) Systems and methods for storing debug information
US11966750B2 (en) System-on-chip management controller
TWI781452B (en) System and method for monitoring and recovering heterogeneous components
JP2023098807A (en) Methods and systems for collection of system management interrupt data