TWI534611B - Computer system, indicating method and indicating apparatus for hard disk status thereof - Google Patents
Computer system, indicating method and indicating apparatus for hard disk status thereof Download PDFInfo
- Publication number
- TWI534611B TWI534611B TW104114047A TW104114047A TWI534611B TW I534611 B TWI534611 B TW I534611B TW 104114047 A TW104114047 A TW 104114047A TW 104114047 A TW104114047 A TW 104114047A TW I534611 B TWI534611 B TW I534611B
- Authority
- TW
- Taiwan
- Prior art keywords
- hard disk
- state
- packet
- logic
- unit
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 21
- 230000005540 biological transmission Effects 0.000 claims description 26
- 230000002159 abnormal effect Effects 0.000 claims description 25
- 230000005856 abnormality Effects 0.000 claims description 7
- 230000009466 transformation Effects 0.000 claims description 3
- 238000005286 illumination Methods 0.000 claims 1
- 239000000872 buffer Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009474 immediate action Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Description
本發明是有關於一種電子數位資料處理方法及裝置,特別是指一種硬碟操作狀態的顯示方法、指示硬碟操作狀態的電腦系統及其硬碟狀態指示裝置。 The present invention relates to an electronic digital data processing method and apparatus, and more particularly to a display method of a hard disk operating state, a computer system for indicating a hard disk operating state, and a hard disk state indicating device thereof.
使用磁碟陣列系統的伺服器電腦經常需要同時監測多個彼此相異的硬碟的運作情形,並讓使用者直觀得知每一硬碟目前是操作在例如無效存在(Not present)、閒置(Idle)、存取(Access)、錯誤(Fault)或斷線(Offline)等狀態,以便在硬碟出錯時即時採取相應的處理措施。 A server computer using a disk array system often needs to simultaneously monitor the operation of a plurality of hard disks that are different from each other, and let the user intuitively know that each hard disk is currently operating in, for example, Not present, idle ( Idle), Access, Fault, or Offline to take immediate action on a hard drive error.
參閱圖1,現有指示硬碟狀態的方式多是利用一串列附接式小型電腦介面控制器11(Serial Attached SCSI Controller,SAS controller)、一電連接於該串列附接式小型電腦介面控制器11及多個硬碟13並具有多個傳輸埠的串列附接式小型電腦介面擴充器12(Serial Attached SCSI Expander,SAS Expander)、多個電連接於該等傳輸埠的緩衝器14,及多個電連接於該等緩衝器14的發光單元15,藉 由配合該串列附接式小型電腦介面擴充器12的作業系統(圖未示出)與每一硬碟13溝通交換資料並自每一硬碟13取得三個狀態封包來分別解析出其存在狀態、正常狀態、異常狀態,再由該串列附接式小型電腦介面擴充器12分別經由其中三個傳輸埠輸出一存在狀態信號、一正常狀態信號及一異常狀態信號,由所對應的緩衝器14接收該存在狀態信號及該正常狀態信號加以處理輸出後,再與該異常狀態信號共同輸出至所對應的發光單元15,來驅使該發光單元15發光或是閃爍,藉以供使用者直觀識出各硬碟當前的操作狀態。然而,現有的硬碟狀態指示方式具有的缺點如下。 Referring to FIG. 1, the existing way of indicating the state of the hard disk is to use a serial attached SCSI controller (SAS controller) and an electrical connection to the serial attached small computer interface. And a plurality of hard disks 13 and having a plurality of serial attached Servo SCSI Expanders (SAS Expander) 12 and a plurality of buffers 14 electrically connected to the transport ports. And a plurality of light emitting units 15 electrically connected to the buffers 14 An operating system (not shown) that cooperates with the serial attached small computer interface expander 12 communicates with each hard disk 13 to exchange data and obtains three status packets from each hard disk 13 to separately analyze the existence thereof. The state, the normal state, the abnormal state, and the serial attached small computer interface expander 12 respectively output a presence state signal, a normal state signal and an abnormal state signal via the three transmission ports, respectively, by the corresponding buffer The device 14 receives the presence state signal and the normal state signal for processing and output, and then outputs the same to the corresponding light-emitting unit 15 together with the abnormal state signal to drive the light-emitting unit 15 to emit light or blink, so that the user can intuitively recognize The current operating status of each hard disk. However, the existing hard disk status indication method has the following disadvantages.
一、需要較多的傳輸埠數目,由於單一硬碟13需利用該串列附接式小型電腦介面擴充器12的三個傳輸埠來與所對應的緩衝器14配合,因此,當為了同時指示該多個硬碟13的工作狀態時,該串列附接式小型電腦介面擴充器12必須具備三倍於硬碟數目的傳輸埠來輸出該存在、正常及異常狀態信號,舉例來說,當須同時監測二十四個硬碟13時,該串列附接式小型電腦介面擴充器12必須具備七十二個傳輸埠來將前述信號輸出至緩衝器14進行處理。 First, the number of transmission ports is required. Since the single hard disk 13 needs to use the three transmission ports of the serial attached small computer interface expander 12 to cooperate with the corresponding buffer 14, therefore, when simultaneously indicating When the plurality of hard disks 13 are in an operating state, the serial attached small computer interface expander 12 must have three times the number of hard disks to output the presence, normal, and abnormal state signals, for example, when When twenty-four hard disks 13 are to be monitored simultaneously, the serial attached small computer interface expander 12 must have seventy-two transmission ports to output the aforementioned signals to the buffer 14 for processing.
二、該串列附接式小型電腦介面擴充器12、該等緩衝器14及該等發光單元15互相電連接時的實體電路佔用空間過大,與該等緩衝器14及該等發光單元15連接線路佈設的複雜度高,並且在測試階段還可能發生接線錯誤而導致硬體電路毀損,進而增加額外的成本耗費,因此,實有必要對現有指示硬碟操作狀態的作法尋求解決之道。 The physical circuit occupied by the serial attached small-sized computer interface expander 12, the buffers 14 and the light-emitting units 15 are electrically connected to each other, and are connected to the buffers 14 and the light-emitting units 15. The complexity of the circuit layout is high, and wiring errors may occur during the test phase, resulting in damage to the hardware circuit, thereby adding additional cost, so it is necessary to find a solution to the existing operation state of the hard disk.
因此,本發明之第一目的,即在提供一種解決前述缺點的硬碟狀態顯示方法。 Accordingly, a first object of the present invention is to provide a hard disk state display method that solves the aforementioned disadvantages.
於是,本發明硬碟狀態顯示方法藉由一硬碟狀態指示裝置執行,該硬碟狀態指示裝置電連接多個硬碟及多個分別對應該等硬碟的顯示單元,每一硬碟用於發送一指示是否有效存在的第一封包,及一指示其狀態異常的第二封包,每一顯示單元根據一指示所對應的硬碟操作於哪一狀態的驅動信號,來產生所對應的顯示狀態,且該硬碟狀態顯示方法包含一步驟(A)、一步驟(B),及一步驟(C)。 Therefore, the hard disk state display method of the present invention is performed by a hard disk state indicating device electrically connecting a plurality of hard disks and a plurality of display units respectively corresponding to the hard disks, each hard disk being used for Sending a first packet indicating whether the indication is valid, and a second packet indicating that the state is abnormal, and each display unit generates a corresponding display state according to a driving signal indicating which state the hard disk corresponds to. And the hard disk state display method includes a step (A), a step (B), and a step (C).
步驟(A):該硬碟狀態指示裝置接收該第一封包,並根據該第一封包的電位判斷所對應的該硬碟是否有效存在,若是則執行步驟(B)。 Step (A): The hard disk status indication device receives the first packet, and determines whether the corresponding hard disk is valid according to the potential of the first packet, and if yes, performs step (B).
步驟(B):該硬碟狀態指示裝置接收所對應的該第二封包,根據該第二封包產生一變換於一第一邏輯準位和一第二邏輯準位間的脈衝信號。 Step (B): The hard disk status indication device receives the corresponding second packet, and generates a pulse signal converted between a first logic level and a second logic level according to the second packet.
步驟(C):該硬碟狀態指示裝置依據該脈衝信號處於該第一邏輯準位或該第二邏輯準位,來產生一指示有無異常的驅動信號至對應該硬碟的顯示單元。 Step (C): The hard disk state indicating device is at the first logic level or the second logic level according to the pulse signal to generate a driving signal indicating whether there is an abnormality to the display unit corresponding to the hard disk.
本發明之第二目的,即在提供一種能指示硬碟狀態的電腦系統,及一種用於該電腦系統的硬碟狀態指示裝置。 A second object of the present invention is to provide a computer system capable of indicating the state of a hard disk, and a hard disk state indicating device for the computer system.
於是,本發明電腦系統包含多個硬碟、多個顯 示單元,及該硬碟狀態指示裝置。 Thus, the computer system of the present invention comprises a plurality of hard disks and a plurality of displays The display unit and the hard disk status indicating device.
每一硬碟用於發送一指示是否有效存在的第一封包,及一指示其狀態異常的第二封包。 Each hard disk is used to send a first packet indicating whether it is valid or not, and a second packet indicating that its state is abnormal.
每一顯示單元對應每一硬碟,且根據一指示所對應的硬碟操作於哪一狀態的驅動信號,來產生所對應的顯示狀態。 Each display unit corresponds to each hard disk, and generates a corresponding display state according to a driving signal indicating which state the hard disk corresponds to.
該硬碟狀態指示裝置包括一邏輯單元,及一具有多個傳輸埠的擴充單元。 The hard disk status indication device includes a logic unit and an expansion unit having a plurality of transmission ports.
該邏輯單元電連接該擴充單元的每一傳輸埠,而且電連接每一硬碟以接收每一第一封包,並根據該第一封包的電位判斷所對應的該硬碟是否有效存在。 The logic unit is electrically connected to each transmission port of the expansion unit, and electrically connects each hard disk to receive each first packet, and determines whether the corresponding hard disk is valid according to the potential of the first packet.
該擴充單元電連接於每一硬碟而於該邏輯單元判斷該硬碟有效存在時接收對應該硬碟的第二封包,並根據該第二封包產生一變換於一第一邏輯準位和一第二邏輯準位間的脈衝信號,且該擴充單元的每一傳輸埠分別將每一硬碟所對應的該脈衝信號輸出至該邏輯單元,藉以使該邏輯單元依據該脈衝信號處於該第一邏輯準位或該第二邏輯準位,來產生一指示有無異常的驅動信號至對應該硬碟的顯示單元。 The expansion unit is electrically connected to each hard disk, and when the logic unit determines that the hard disk is valid, receives the second packet corresponding to the hard disk, and generates a transformation according to the second packet to a first logic level and a a pulse signal between the second logic levels, and each of the transmission units outputs the pulse signal corresponding to each hard disk to the logic unit, so that the logic unit is in the first according to the pulse signal The logic level or the second logic level is used to generate a driving signal indicating whether there is an abnormality to the display unit corresponding to the hard disk.
本發明之功效在於:藉由該邏輯單元接收由該擴充單元輸出的每一脈衝信號所處的邏輯準位,來判斷每一硬碟處於哪一狀態,並據以驅動每一顯示單元產生所對應的顯示狀態,因而僅需利用該擴充單元的單一傳輸埠來將所對應的硬碟來達到指示硬碟狀態的效果,並藉該邏輯 單元來降低線路佈設的複雜度。 The effect of the present invention is to determine, by the logic unit, the logic level at which each pulse signal output by the expansion unit is located, to determine which state each hard disk is in, and to drive each display unit accordingly. Corresponding display state, and thus only need to use the single transmission port of the expansion unit to bring the corresponding hard disk to the effect of indicating the state of the hard disk, and borrow the logic Unit to reduce the complexity of wiring.
11‧‧‧串列附接式小型電腦介面控制器 11‧‧‧In-line attached small computer interface controller
24‧‧‧判斷脈衝信號的步驟 24‧‧‧Steps for judging the pulse signal
25‧‧‧判斷硬碟正常狀態的步驟 25‧‧‧Steps for judging the normal state of the hard disk
12‧‧‧串列附接式小型電腦介面擴充器 12‧‧‧Sequential Attached Small Computer Interface Expander
251‧‧‧初始化第一計時器開始計時的子步驟 251‧‧‧Substeps to initialize the first timer to start timing
13‧‧‧硬碟 13‧‧‧ Hard disk
14‧‧‧緩衝器 14‧‧‧ buffer
252‧‧‧判斷處於第一邏輯準位時間的子步驟 252‧‧‧Substeps to judge the first logical timing
15‧‧‧發光單元 15‧‧‧Lighting unit
3‧‧‧硬碟 3‧‧‧ Hard disk
253‧‧‧接收第三封包並初始化第二計時器的子步驟 253‧‧‧Substeps to receive the third packet and initialize the second timer
4‧‧‧顯示單元 4‧‧‧ display unit
5‧‧‧硬碟狀態指示裝置 5‧‧‧hard disk status indicator
254‧‧‧判斷第三封包是否具有長達第二預定時間脈衝的子步驟 254‧‧‧Subjects to determine if the third packet has a second predetermined time pulse
51‧‧‧擴充單元 51‧‧‧Extension unit
52‧‧‧邏輯單元 52‧‧‧Logical unit
20‧‧‧判斷硬碟是否有效存在的步驟 20‧‧‧Steps to determine if a hard disk is valid
255‧‧‧使顯示單元持續發出綠光的子步驟 255‧‧‧Substeps to keep the display unit continuously emitting green light
21‧‧‧接收第一封包的子步驟 21‧‧‧Substeps to receive the first packet
256‧‧‧使顯示單元發出閃爍紅光的子步驟 256‧‧‧Substeps for the display unit to emit a flashing red light
22‧‧‧偵測第一封包的子步驟 22‧‧‧Substeps to detect the first packet
26‧‧‧判斷硬碟異常狀態的步驟 26‧‧‧Steps for judging the abnormal state of the hard disk
221‧‧‧使顯示單元不發光子的步驟 221‧‧‧Steps to make the display unit not illuminate
261‧‧‧使顯示單元持續發出紅光的子步驟 261‧‧‧Substeps for the display unit to continue to emit red light
23‧‧‧接收第二封包並產生脈衝信號的步驟 23‧‧‧Steps to receive the second packet and generate a pulse signal
262‧‧‧使顯示單元發出閃爍紅光的子步驟 262‧‧‧Substeps for the display unit to flash red
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一示意圖,說明一現有的硬碟狀態指示裝置;圖2是一示意圖,說明本發明硬碟狀態指示裝置的一實施例;圖3是一流程圖,說明該硬碟狀態指示裝置施行的一硬碟狀態顯示方法;及圖4是一狀態遷移圖,輔助圖3說明該硬碟狀態顯示方法。 Other features and effects of the present invention will be apparent from the following description of the drawings, wherein: FIG. 1 is a schematic diagram illustrating a conventional hard disk state indicating device; FIG. 2 is a schematic view showing the present invention. An embodiment of the disc state indicating device; FIG. 3 is a flow chart illustrating a hard disk state display method performed by the hard disk state indicating device; and FIG. 4 is a state transition diagram, and FIG. 3 illustrates the hard disk state display method.
參閱圖2,本發明電腦系統的一實施例包含多個硬碟3(圖中僅示出其二)、多個顯示單元4(圖中僅示出其二),及一硬碟指示裝置5。 Referring to FIG. 2, an embodiment of the computer system of the present invention includes a plurality of hard disks 3 (only two of which are shown), a plurality of display units 4 (only two of which are shown), and a hard disk indicating device 5. .
每一硬碟3用於發送一指示是否有效存在的第一封包、一指示其狀態有無異常的第二封包,及一指示其狀態正常的第三封包,而且於此要先行說明,所謂是否有效存在係指所對應的硬碟3是否與一背板電性插接,而異常狀態包括所對應的硬碟3處於一錯誤(fault)或一斷線(offline)兩者之一,正常狀態則包括所對應的硬碟3處於一閒置(idle)或一存取(access)兩者之一。 Each hard disk 3 is configured to send a first packet indicating whether the indication is valid, a second packet indicating whether the state is abnormal, and a third packet indicating that the state is normal, and the first packet is first explained, and the so-called effective Existence means whether the corresponding hard disk 3 is electrically plugged into a backplane, and the abnormal state includes that the corresponding hard disk 3 is in one of a fault or an offline, and the normal state is The corresponding hard disk 3 is included in one of an idle or an access.
每一顯示單元4是根據一指示所對應的硬碟3 操作於哪一狀態的驅動信號,來產生所對應的顯示狀態,在本例中,每一顯示單元4以一可發出紅色光來指示所對應的硬碟3處於異常的紅色發光二極體(Light Emitting Diode,LED),及一可發出綠色光來指示所對應的硬碟3處於正常的綠色發光二極體來實現。 Each display unit 4 is a hard disk 3 corresponding to an indication The driving signal of which state is operated to generate the corresponding display state. In this example, each display unit 4 indicates a red light emitting diode in which the corresponding hard disk 3 is abnormal by emitting red light ( Light Emitting Diode (LED), and a green light emitting diode that emits green light to indicate that the corresponding hard disk 3 is in a normal state.
該硬碟狀態指示裝置5包含一具有一用於計時一第一預定時間的第一計時器(圖未示出)和一用於計時一第二預定時間的第二計時器(圖未示出)的邏輯單元52,及一具有多個傳輸埠的擴充單元51。 The hard disk state indicating device 5 includes a first timer (not shown) for timing a first predetermined time and a second timer for timing a second predetermined time (not shown) a logic unit 52, and an expansion unit 51 having a plurality of transmission ports.
該邏輯單元52電連接該擴充單元51的每一傳輸埠,並且電連接每一硬碟3,搭配其自身的該第一計時器及該第二計時器來進行硬碟狀態的判斷。在本例中,該邏輯單元52是以複雜可規劃邏輯元件(Complex Programmable Logic Device,CPLD)來實施,將對應前述判斷操作硬碟狀態的邏輯電路下載燒錄至其中而能藉此執行邏輯判斷,當然該邏輯單元52的選擇並不受此限,例如也可以是選擇場效可程式邏輯陣列(Field Programmable Gate Array,FPGA)來實施,同樣可輸入設計邏輯以實現可程式化的邏輯合成及晶片燒錄。 The logic unit 52 is electrically connected to each transmission port of the expansion unit 51, and electrically connects each hard disk 3 with its own first timer and the second timer to determine the state of the hard disk. In this example, the logic unit 52 is implemented by a Complex Programmable Logic Device (CPLD), and the logic circuit corresponding to the foregoing judgment operation hard disk state is downloaded and burned therein to perform logical judgment. Of course, the selection of the logic unit 52 is not limited thereto. For example, it may be implemented by selecting a Field Programmable Gate Array (FPGA), and the design logic may be input to implement a programmable logic synthesis and Wafer burning.
該擴充單元51電連接於每一硬碟3,且每一傳輸埠分別將每一硬碟3所對應的該脈衝信號輸出至該邏輯單元52,藉以使該邏輯單元52依據該脈衝信號的邏輯準位,來產生一指示有無異常的驅動信號至對應該硬碟3的顯示單元4。在本例中,該擴充單元51包括互相電連接的 一串列附接式小型電腦介面控制器(Serial Attached SCSI Controller,SAS controller),及一具有該等傳輸埠的串列附接式小型電腦介面擴充器(Serial Attached SCSI Expander,SAS Expander),藉該串列附接式小型電腦介面擴充器擴充該串列附接式小型電腦介面控制器的傳輸通道(lane)而可同時電連接更多硬碟3,而且該串列附接式小型電腦介面擴充器的傳輸埠符合串列通用輸入/輸出(Serial General Purpose Input/Output,SGPIO)介面規範來將該脈衝信號輸出。當然,輸出該脈衝信號的實施方式並不以此為限,例如,該脈衝信號也可以直接利用更多輸出/輸出埠的串列附接式小型電腦介面控制器直接輸出至該邏輯單元52,而不須搭配該串列附接式小型電腦介面擴充器,然而此為熟悉電路技藝之人士能輕易變更達成,於此不再贅述。 The expansion unit 51 is electrically connected to each hard disk 3, and each transmission port outputs the pulse signal corresponding to each hard disk 3 to the logic unit 52, so that the logic unit 52 is based on the logic of the pulse signal. The level is used to generate a driving signal indicating whether there is an abnormality to the display unit 4 corresponding to the hard disk 3. In this example, the expansion unit 51 includes electrical connections to each other. A series of attached Serial SCSI Controller (SAS controller), and a Serial Attached SCSI Expander (SAS Expander) with such a transport port. The serial attached small computer interface expander expands the transmission lane of the serial attached small computer interface controller and can electrically connect more hard disks 3 at the same time, and the serial attached small computer interface The transmission of the expander conforms to the Serial General Purpose Input/Output (SGPIO) interface specification to output the pulse signal. Certainly, the implementation manner of outputting the pulse signal is not limited thereto. For example, the pulse signal can also be directly output to the logic unit 52 by using a serial attached small computer interface controller with more output/output ports. It is not necessary to match the serial attached small computer interface expander. However, this can be easily changed by those who are familiar with the circuit technology, and will not be described here.
在具體說明本例前,首先依據所對應的硬碟3處於無效存在、錯誤、斷線、閒置、存取此五種狀態時,該顯示單元4指示所對應的硬碟3的狀態的方式列示於下表。 Before specifically describing this example, firstly, according to the corresponding hard disk 3 being in the presence of invalidity, error, disconnection, idle, and access, the display unit 4 indicates the state of the corresponding hard disk 3. Shown in the table below.
配合參閱圖3,本發明硬碟狀態指示裝置5執行一硬碟狀態顯示方法,以同時對每一硬碟3進行狀態判斷,且該硬碟狀態顯示方法的實施包含以下步驟。 Referring to FIG. 3, the hard disk state indicating device 5 of the present invention executes a hard disk state display method to perform state determination for each hard disk 3 at the same time, and the implementation of the hard disk state display method includes the following steps.
首先,步驟20是該邏輯單元52接收該第一封 包,並根據該第一封包的電位判斷所對應的該硬碟3是否有效存在。該步驟20包括以下子步驟。 First, step 20 is that the logic unit 52 receives the first seal. And determining whether the corresponding hard disk 3 is valid according to the potential of the first packet. This step 20 includes the following sub-steps.
在子步驟21中,該邏輯單元52接收該第一封包。 In sub-step 21, the logic unit 52 receives the first packet.
在子步驟22中,該邏輯單元52判斷該第一封包是否為低電位,若是低電位則判斷該硬碟3為有效存在,並接著執行步驟23;若是高電位,則進行子步驟221。 In sub-step 22, the logic unit 52 determines whether the first packet is low. If it is low, it determines that the hard disk 3 is valid, and then proceeds to step 23; if it is high, it performs sub-step 221.
在子步驟221中,該邏輯單元52輸出該指示所對應的硬碟3操作於無效存在狀態的驅動信號,並使所對應的該顯示單元4不發光,並且重複子步驟21。 In sub-step 221, the logic unit 52 outputs a drive signal for the hard disk 3 corresponding to the indication to operate in the inactive presence state, and causes the corresponding display unit 4 to not emit light, and repeats the sub-step 21.
接著,步驟23是藉該擴充單元51接收該硬碟3所對應的該第二封包,辨識該第二封包有無異常,而產生一變換於一第一邏輯準位和一第二邏輯準位間的脈衝信號,並將該脈衝信號輸出至該邏輯單元52。在此需補充的是,由於該擴充單元51只需接收該第二封包來對所對應的硬碟3作異常狀態判斷,因此,更可節省接收來自該硬碟3的實體電連接線路。 Next, in step 23, the extension unit 51 receives the second packet corresponding to the hard disk 3, and identifies whether the second packet is abnormal, and generates a transition between a first logic level and a second logic level. The pulse signal is output to the logic unit 52. It should be added here that since the expansion unit 51 only needs to receive the second packet to make an abnormal state determination on the corresponding hard disk 3, it is more convenient to receive the physical electrical connection line from the hard disk 3.
接著,步驟24是藉該邏輯單元52依據該脈衝信號處於第一邏輯準位或第二邏輯準位,來產生一指示有無異常的驅動信號至對應該硬碟3的顯示單元4。若該脈衝信號處於第二邏輯準位,則該邏輯單元52判斷該硬碟3操作於異常狀態並接著執行步驟26;若該脈衝信號處於第一邏輯準位,則該邏輯單元52判斷該硬碟3操作於正常狀態並接著執行步驟25。 Next, in step 24, the logic unit 52 generates a driving signal indicating whether there is an abnormality to the display unit 4 corresponding to the hard disk 3 according to whether the pulse signal is at the first logic level or the second logic level. If the pulse signal is at the second logic level, the logic unit 52 determines that the hard disk 3 is operating in an abnormal state and then performs step 26; if the pulse signal is at the first logic level, the logic unit 52 determines the hard The disc 3 operates in a normal state and then proceeds to step 25.
在步驟26中,該脈衝信號處於第二邏輯準位,該邏輯單元52進一步由該脈衝信號是否由第二邏輯準位變化成第一邏輯準位來判斷該硬碟3是處於離線或錯誤,若判斷結果為是則執行步驟262,若判斷結果為否則執行步驟261。 In step 26, the pulse signal is at the second logic level, and the logic unit 52 further determines whether the hard disk 3 is offline or incorrect by whether the pulse signal is changed from the second logic level to the first logic level. If the result of the determination is yes, step 262 is performed, and if the result of the determination is otherwise, step 261 is performed.
步驟262:該邏輯單元52判斷該脈衝信號在第二邏輯準位和第一邏輯準位間來回跳動,並輸出一指示所對應的硬碟3操作於離線狀態的驅動信號,使所對應的該紅色發光二極體發出閃爍紅光。 Step 262: The logic unit 52 determines that the pulse signal jumps back and forth between the second logic level and the first logic level, and outputs a driving signal indicating that the corresponding hard disk 3 is operating in an offline state, so that the corresponding signal is The red light emitting diode emits a flashing red light.
步驟261:該邏輯單元52判斷該脈衝信號保持於第二邏輯準位,並輸出一指示所對應的硬碟3操作於錯誤狀態的驅動信號,使所對應的該紅色發光二極體持續發出紅光。 Step 261: The logic unit 52 determines that the pulse signal is maintained at the second logic level, and outputs a driving signal indicating that the corresponding hard disk 3 is operating in an error state, so that the corresponding red light emitting diode continues to emit red. Light.
在步驟25中,該脈衝信號處於第一邏輯準位,該邏輯單元52進一步執行以下子步驟來判斷該硬碟3是處於閒置或存取。 In step 25, the pulse signal is at a first logic level, and the logic unit 52 further performs the following sub-steps to determine whether the hard disk 3 is idle or accessed.
子步驟251:該邏輯單元52利用該第一計時器開始計時該第一預定時間。 Sub-step 251: The logic unit 52 starts counting the first predetermined time using the first timer.
子步驟252:該邏輯單元52判斷該脈衝信號是否處於第一邏輯準位是否長達該第一預定時間,若判斷結果為是,則繼續執行子步驟253;若判斷結果為否,則重複步驟26。 Sub-step 252: The logic unit 52 determines whether the pulse signal is at the first logic level for the first predetermined time. If the determination result is yes, proceed to sub-step 253; if the determination result is no, repeat the step 26.
子步驟253:該邏輯單元52接收該第三封包,並初始化該第二計時器開始計時該第二預定時間。 Sub-step 253: The logic unit 52 receives the third packet and initializes the second timer to start timing the second predetermined time.
子步驟254:該邏輯單元52判斷該第三封包是否具有長達該第二預定時間的脈衝,且在本例中,該脈衝為位於第一邏輯準位的脈衝。若有,則繼續執行子步驟255;若無,則跳至子步驟256。 Sub-step 254: The logic unit 52 determines whether the third packet has a pulse for the second predetermined time, and in this example, the pulse is a pulse at the first logic level. If so, proceed to sub-step 255; if not, skip to sub-step 256.
子步驟255:該邏輯單元52判斷該第三封包為處於第一邏輯準位長達該第二預定時間的脈衝,並輸出一指示所對應的硬碟3操作於閒置狀態的驅動信號,使所對應的該綠色發光二極體持續發出綠光。 Sub-step 255: the logic unit 52 determines that the third packet is a pulse at the first logic level for the second predetermined time, and outputs a driving signal indicating that the corresponding hard disk 3 is operating in an idle state. The corresponding green light emitting diode continuously emits green light.
子步驟256:該邏輯單元52判斷該第三封包為在第一邏輯準位和第二邏輯準位間跳動的脈衝,並輸出一指示所對應的硬碟3操作於存取狀態的驅動信號,使所對應的該綠色發光二極體發出閃爍綠光。 Sub-step 256: the logic unit 52 determines that the third packet is a pulse that jumps between the first logic level and the second logic level, and outputs a driving signal indicating that the corresponding hard disk 3 is operating in an access state. The corresponding green light emitting diode emits a flashing green light.
參閱圖4,於此再以一狀態遷移圖為例進一步說明前述硬碟狀態顯示方法,且在本例中,令該第一邏輯準位為邏輯0,該第二邏輯準位為邏輯1,然而此仍可視各硬碟出廠規格作相反實施,而不以本例為限。此外,設定該第一預定時間為1.5秒,該第二預定時間為0.5秒。 Referring to FIG. 4, the state of the hard disk state display method is further illustrated by using a state transition diagram as an example. In this example, the first logic level is logic 0, and the second logic level is logic 1. However, this can still be implemented in reverse depending on the factory specifications of each hard disk, and is not limited to this example. Further, the first predetermined time is set to 1.5 seconds, and the second predetermined time is 0.5 seconds.
首先,只要該指示硬碟3是否有效存在的第一封包處於高電位,則無論於任何狀態皆會直接指示所對應的硬碟3為無效存在,並且使所對應的紅色發光二極體及綠色發光二極體不發光。 First, as long as the first packet indicating whether the hard disk 3 is effectively present is at a high potential, the corresponding hard disk 3 is directly indicated to be invalid in any state, and the corresponding red light emitting diode and the green color are made. The light emitting diode does not emit light.
接著,當該第一封包處於低電位時,則進一步判斷該脈衝信號是否處於邏輯0長達1.5秒,若是,則判斷所對應的硬碟3處於正常狀態,並轉為本圖上半部,此時 只有綠色發光二極體發光,並藉由判斷該第三封包來決定該硬碟3處於閒置或存取,若該第三封包具有處於邏輯0長達0.5秒的脈衝,則指示該硬碟3處於閒置狀態,並使所對應的綠色發光二極體持續發出綠光;若該第三封包具有變換於邏輯1和邏輯0間的脈衝,則指示該硬碟3處於存取狀態,並使所對應的綠色發光二極體發出閃爍綠光。 Then, when the first packet is at a low potential, it is further determined whether the pulse signal is at logic 0 for 1.5 seconds, and if so, it is determined that the corresponding hard disk 3 is in a normal state, and is turned to the upper half of the figure. at this time Only the green LED emits light, and the hard disk 3 is determined to be idle or accessed by determining the third packet. If the third packet has a pulse of logic 0 for 0.5 seconds, the hard disk 3 is indicated. Being in an idle state, and causing the corresponding green light emitting diode to continuously emit green light; if the third packet has a pulse that is changed between logic 1 and logic 0, indicating that the hard disk 3 is in an access state, and The corresponding green LED emits a flashing green light.
然而,當該第一封包處於低電位,而該脈衝信號是處於邏輯1,則判斷所對應的硬碟3處於異常狀態,並轉為本圖下半部,此時只有紅色發光二極體發光,並藉由判斷該脈衝信號來決定該硬碟3處於斷線或錯誤,若該脈衝信號處於邏輯1,則指示該硬碟3處於錯誤狀態,並使所對應的紅色發光二極體發出紅光;若該脈衝信號在邏輯1和邏輯0間來回變化,則指示該硬碟3處於斷線狀態,並使所對應的紅色發光二極體發出閃爍紅光。 However, when the first packet is at a low potential and the pulse signal is at logic 1, it is determined that the corresponding hard disk 3 is in an abnormal state, and is turned to the lower half of the figure, and only the red LED is illuminated at this time. And determining the hard disk 3 to be disconnected or error by judging the pulse signal, if the pulse signal is at logic 1, indicating that the hard disk 3 is in an error state, and causing the corresponding red light emitting diode to emit red Light; if the pulse signal changes back and forth between logic 1 and logic 0, it indicates that the hard disk 3 is in a disconnected state, and the corresponding red light emitting diode emits a blinking red light.
在此須強調的是,在本實施例中,即便當該邏輯單元52判定該硬碟3操作於正常狀態而要開始利用第三封包進行解析,然而由於該邏輯單元52仍會優先判斷該脈衝信號是否在邏輯0長達1.5秒而決定是否接收該第三封包,以避免在解析該脈衝信號又跳回邏輯1,因此,只要在1.5秒內,或經過1.5秒後該脈衝信號再出次現邏輯1,則該邏輯單元52會隨即再判定所對應的硬碟3為異常狀態,而決定使該顯示單元4相應地持續發出紅光或是閃爍紅光。也因此,異常狀態在解析的過程中具有較高的優先權,而在當該硬碟3有錯誤或是斷線的狀態產生時,能優先解 析以供使用者得知當前所對應的硬碟3是否發生異常的情形。 It should be emphasized here that in this embodiment, even if the logic unit 52 determines that the hard disk 3 is operating in a normal state and starts to use the third packet for parsing, since the logic unit 52 still preferentially determines the pulse. Whether the signal is in logic 0 for 1.5 seconds to decide whether to receive the third packet, to avoid jumping back to logic 1 after parsing the pulse signal, therefore, the pulse signal is repeated again within 1.5 seconds or after 1.5 seconds. Now logic 1, the logic unit 52 will then determine that the corresponding hard disk 3 is in an abnormal state, and decide to cause the display unit 4 to continuously emit red light or blink red light. Therefore, the abnormal state has a higher priority in the process of parsing, and can be preferentially solved when the hard disk 3 has an error or a disconnected state. The user is informed of whether the current hard disk 3 corresponding to the abnormality has occurred.
綜上所述,本發明硬碟狀態指示裝置5藉由該邏輯單元52由該擴充單元51的其中一個傳輸埠輸出所對應的硬碟3的脈衝信號,並藉由該邏輯單元52的第一及第二計時器來將時間切分,而能同時解析出所對應的硬碟3的無效存在、錯誤、斷線、閒置、存取五種狀態,因而具有以下優點。 In summary, the hard disk state indicating device 5 of the present invention outputs a pulse signal of the corresponding hard disk 3 by one of the expansion units 51 by the logic unit 52, and is first by the logic unit 52. And the second timer divides the time, and can simultaneously parse out the five states of the invalid presence, error, disconnection, idle, and access of the corresponding hard disk 3, thereby having the following advantages.
一、相同的硬碟數目需要較少的傳輸埠,由於本發明僅需利用該擴充單元51的其中一個傳輸埠來傳輸該脈衝信號,因此,當欲同時對二十四顆硬碟進行監控時,僅需佔用該擴充單元51的二十四個傳輸埠來將該脈衝信號傳輸至該邏輯單元52進行後續狀態解析,因此相較於習知可省下四十八個傳輸埠,因而使得剩餘未使用的傳輸埠進而可容納其他簡易的邏輯電路來結合運用,大幅提升該等傳輸埠的使用效率。 1. The same number of hard disks requires less transmission. Since the present invention only needs to transmit the pulse signal by using one of the transmission units of the expansion unit 51, when it is desired to monitor twenty-four hard disks at the same time. Only twenty-four transmission ports of the expansion unit 51 need to be occupied to transmit the pulse signal to the logic unit 52 for subsequent state analysis, so that forty-eight transmission ports can be saved compared to the conventional one, thereby making the remaining unused. The transmission port can then accommodate other simple logic circuits to be combined to greatly improve the efficiency of use of the transmission ports.
二、藉該邏輯單元52來對硬碟3進行後續狀態解析,藉以省去與例如緩衝器等額外邏輯判斷電路的線路佈設,進而在同時監測該多個硬碟3時不易發生接線錯誤的情形,此外,由於該邏輯單元52可重複進行燒錄,因此在測試階段時當欲隨時改變邏輯電路與該顯示單元4對應各硬碟的邏輯關係時,也可隨時進行修改,而不需如同習知僅能更換硬體電路,因而節省實體電路的成本,故確實能達成本發明之目的。 Second, the logic unit 52 performs subsequent state analysis on the hard disk 3, thereby omitting the circuit layout with an additional logic judging circuit such as a buffer, thereby preventing the wiring error from occurring when the plurality of hard disks 3 are simultaneously monitored. In addition, since the logic unit 52 can repeatedly perform the burning, when the logic relationship between the logic circuit and the hard disk corresponding to the display unit 4 is to be changed at any time during the testing phase, the modification can be performed at any time without being like a habit. It is known that only the hardware circuit can be replaced, thereby saving the cost of the physical circuit, and the object of the present invention can be achieved.
惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the simple equivalent changes and modifications made by the patent application scope and patent specification content of the present invention, All remain within the scope of the invention patent.
3‧‧‧硬碟 3‧‧‧ Hard disk
4‧‧‧顯示單元 4‧‧‧ display unit
5‧‧‧硬碟狀態指示裝置 5‧‧‧hard disk status indicator
51‧‧‧擴充單元 51‧‧‧Extension unit
52‧‧‧邏輯單元 52‧‧‧Logical unit
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW104114047A TWI534611B (en) | 2015-05-01 | 2015-05-01 | Computer system, indicating method and indicating apparatus for hard disk status thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW104114047A TWI534611B (en) | 2015-05-01 | 2015-05-01 | Computer system, indicating method and indicating apparatus for hard disk status thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI534611B true TWI534611B (en) | 2016-05-21 |
| TW201640350A TW201640350A (en) | 2016-11-16 |
Family
ID=56509377
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW104114047A TWI534611B (en) | 2015-05-01 | 2015-05-01 | Computer system, indicating method and indicating apparatus for hard disk status thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI534611B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI839116B (en) * | 2023-02-17 | 2024-04-11 | 神雲科技股份有限公司 | Hard disk backplane lighting method and server system |
-
2015
- 2015-05-01 TW TW104114047A patent/TWI534611B/en not_active IP Right Cessation
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI839116B (en) * | 2023-02-17 | 2024-04-11 | 神雲科技股份有限公司 | Hard disk backplane lighting method and server system |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201640350A (en) | 2016-11-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI556113B (en) | Hot-pluggable computing system, computer-implemented method and system | |
| TWI624758B (en) | System for controlling indicator lights and method for controlling light-emitting diode | |
| CN104198911B (en) | A kind of chip pin method of testing of DTU and circuit | |
| CN106326077B (en) | Hard disk status display method, computer system and hard disk status indication device thereof | |
| US9123442B2 (en) | Testing device | |
| TWI488045B (en) | A device, a system and a method for detecting sgpio and i2c | |
| CN104375915A (en) | A method for quickly diagnosing the timing of the main board by using the BMC and CPLD of the main board of the server | |
| EP3244319B1 (en) | Flexible nvme drive management solution | |
| CN104978243A (en) | A fast optical path diagnosis method for server | |
| US10650907B2 (en) | Storage protocol matching device and method | |
| CN114968681B (en) | Method and device for monitoring abnormal communication of I2C bus, and I2C master device | |
| WO2014082275A1 (en) | Method and apparatus for detecting cable connection condition | |
| CN102479140A (en) | Computer system and hard disk state display method thereof | |
| TWI534611B (en) | Computer system, indicating method and indicating apparatus for hard disk status thereof | |
| CN105702187B (en) | A kind of interface circuit, test device | |
| CN111338911B (en) | Server hard disk indicator lamp control system and control method thereof | |
| CN108319540B (en) | Hard disk lamp signal control system | |
| CN102999405B (en) | Test device of computer main board | |
| CN117608952B (en) | Detection device and detection method | |
| CN104679116A (en) | Server cabinet system, circuit board combined system and circuit board of circuit combined system | |
| TWI587130B (en) | HDD LED Control System | |
| CN106407090B (en) | Status display panel of optical path diagnosis server | |
| TW201721431A (en) | System is applied to control indicator lights for non-volatile memory express solid state disk | |
| CN117729668A (en) | Control circuit and method of server network port indicator lamp and server | |
| US9679611B2 (en) | Method for displaying status associated with a storage device, computer system and status-monitoring device thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |