TWI587130B - HDD LED Control System - Google Patents

HDD LED Control System Download PDF

Info

Publication number
TWI587130B
TWI587130B TW105138560A TW105138560A TWI587130B TW I587130 B TWI587130 B TW I587130B TW 105138560 A TW105138560 A TW 105138560A TW 105138560 A TW105138560 A TW 105138560A TW I587130 B TWI587130 B TW I587130B
Authority
TW
Taiwan
Prior art keywords
hard disk
control unit
hard disks
protocol
hard
Prior art date
Application number
TW105138560A
Other languages
Chinese (zh)
Other versions
TW201820142A (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 TW105138560A priority Critical patent/TWI587130B/en
Application granted granted Critical
Publication of TWI587130B publication Critical patent/TWI587130B/en
Publication of TW201820142A publication Critical patent/TW201820142A/en

Links

Description

硬碟燈號控制系統 Hard disk light control system

本發明是有關於一種燈號控制系統,特別是指一種針對支援PCI Express(PCI-E)協定的固態硬碟(SSD)的硬碟燈號控制系統。 The present invention relates to a signal control system, and more particularly to a hard disk control system for a solid state drive (SSD) supporting a PCI Express (PCI-E) protocol.

參閱圖1,習知的一種硬碟燈號控制系統包含一控制單元91、一第一類硬碟93、一第二類硬碟94、一基板管理控制器(Baseboard Management Controller;BMC)92、及一發光二極體單元95。該第一類硬碟93是支援串列小型電腦系統介面(Serial Attached Small Computer System Interface;Serial Attached SCSI;SAS)協定或串列先進技術附件(Serial Advanced Technology Attachment;Serial ATA;SATA)協定的硬碟。該第二類硬碟94是支援PCI-E協定的固態硬碟(Solid-state Drive;SSD)。 Referring to FIG. 1, a conventional hard disk signal control system includes a control unit 91, a first type of hard disk 93, a second type of hard disk 94, and a baseboard management controller (BMC) 92. And a light emitting diode unit 95. The first type of hard disk 93 is a hard disk supporting a Serial Attached Small Computer System Interface (Serial Attached SCSI (SAS) protocol or a Serial Advanced Technology Attachment (Serial ATA; SATA) protocol. dish. The second type of hard disk 94 is a solid state drive (SSD) supporting the PCI-E protocol.

該基板管理控制器92電連接該第二類硬碟94,並以 I2C(Inter-Integrated Circuit)協定與該第二類硬碟94傳收信號,進而取得該第二類硬碟94的運轉狀態,如存取中(Active)或異常(Fault)。 The substrate management controller 92 is electrically connected to the second type of hard disk 94, and The I2C (Inter-Integrated Circuit) protocol transmits signals to the second type of hard disk 94, thereby obtaining the operating state of the second type of hard disk 94, such as an active or an abnormal.

該控制單元91電連接該第一類硬碟93,並與該第一類硬碟93以串列通用型輸入輸出(Serial General Purpose Input/Output;SGPIO)協定(以下簡稱SGPIO協定)傳收信號,進而取得該第一類硬碟93的運轉狀態。該控制單元91還電連接該基板管理控制器92,且以I2C(Inter-Integrated Circuit)協定與該基板管理控制器92傳收信號,更詳細地說,該基板管理控制器92是操作在一I2C主控(Master)模式,而該控制單元91是操作在一I2C從屬(Slave)模式,該基板管理控制器92須主動將該第二類硬碟94的運轉狀態傳送至該控制單元91,也就是該控制單元91只能被動地接收該基板管理控制器92所取得的該第二類硬碟94的運轉狀態。 The control unit 91 is electrically connected to the first type of hard disk 93, and transmits signals to the first type of hard disk 93 in a serial general purpose input/output (SGPIO) protocol (hereinafter referred to as SGPIO protocol). Further, the operating state of the first type of hard disk 93 is obtained. The control unit 91 is also electrically connected to the baseboard management controller 92, and transmits signals to the baseboard management controller 92 in an I2C (Inter-Integrated Circuit) protocol. In more detail, the baseboard management controller 92 is operated in a The I2C master mode, and the control unit 91 is operated in an I2C slave mode, and the baseboard management controller 92 must actively transmit the operating state of the second type hard disk 94 to the control unit 91. That is, the control unit 91 can only passively receive the operating state of the second type hard disk 94 obtained by the substrate management controller 92.

該控制單元91還電連接該發光二極體單元95,並根據該第一類硬碟93及該第二類硬碟94之其中每一硬碟的運轉狀態,控制該發光二極體單元95的對應發光二極體,例如:一個SATA硬碟在存取中,則對應的綠色發光二極體閃爍,或者,一個SAS硬碟異常,則對應的紅色發光二極體恆亮。 The control unit 91 is further electrically connected to the LED unit 95, and controls the LED unit 95 according to the operating state of each of the first type of hard disk 93 and the second type of hard disk 94. Corresponding light-emitting diodes, for example, a SATA hard disk is in access, the corresponding green light-emitting diode is blinking, or a SAS hard disk is abnormal, and the corresponding red light-emitting diode is always bright.

該習知的硬碟燈號控制系統的該控制單元91雖然能以 SGPIO協定直接取得該第一類硬碟93的運轉狀態,但卻無法直接取得該第二類硬碟94的運轉狀態,只能經由該基板管理控制器92被動地取得該第二類硬碟94的運轉狀態。因此,如何提供一種直接取得該第一類硬碟93及該第二類硬碟94的運轉狀態的硬碟燈號控制系統,使得系統的設計較為簡單不複雜,便成為一個待解決的問題。 The control unit 91 of the conventional hard disk signal control system can The SGPIO protocol directly obtains the operating state of the first type of hard disk 93, but cannot directly obtain the operating state of the second type of hard disk 94. The second type of hard disk 94 can only be passively obtained via the substrate management controller 92. Operational status. Therefore, how to provide a hard disk signal control system that directly obtains the operating states of the first type of hard disk 93 and the second type of hard disk 94 makes the system design simple and uncomplicated, and becomes a problem to be solved.

因此,本發明的目的,即在提供一種能直接取得支援PCI-E協定的固態硬碟的運轉狀態的硬碟燈號控制系統。 Accordingly, it is an object of the present invention to provide a hard disk signal control system capable of directly obtaining an operating state of a solid state hard disk supporting the PCI-E protocol.

於是,本發明硬碟燈號控制系統,包含N個硬碟、一發光二極體單元、及一控制單元。N是大於1的整數。 Thus, the hard disk signal control system of the present invention comprises N hard disks, a light emitting diode unit, and a control unit. N is an integer greater than one.

該N個硬碟分別是支援串列小型電腦系統介面(Serial Attached Small Computer System Interface;Serial Attached SCSI;SAS)協定的硬碟/串列先進技術附件(Serial Advanced Technology Attachment;Serial ATA;SATA)協定的硬碟及支援PCI Express(PCI-E)協定的固態硬碟之其中一者,並分別輸出一第一判斷信號及一第二判斷信號。 The N hard disks are respectively Serial Advanced Technology Attachment (Serial Attached SCSI; SAS) protocol Serial Attached Small Computer System Interface (Serial Attached SCSI; SAS) protocol. One of the hard disk and the solid state hard disk supporting the PCI Express (PCI-E) protocol, and outputting a first determination signal and a second determination signal, respectively.

該發光二極體單元包括分別對應該N個硬碟的N個發光二極體組,以顯示該等硬碟的運轉狀態。該控制單元電連接該N個硬碟,以接收該等第一判斷信號及該等第二判斷信號,並根據來自 該N個硬碟之其中每一者的該第一判斷信號及該第二判斷信號的邏輯值,判斷其中該者是支援SAS/SATA協定的硬碟及支援PCI-E協定的固態硬碟之其中哪一種。 The light emitting diode unit includes N light emitting diode groups respectively corresponding to N hard disks to display the operating states of the hard disks. The control unit is electrically connected to the N hard disks to receive the first determination signals and the second determination signals, and according to The logical value of the first determination signal and the second determination signal of each of the N hard disks is determined to be a hard disk supporting the SAS/SATA protocol and a solid state drive supporting the PCI-E protocol. Which one of them.

當該控制單元判斷該N個硬碟之其中一者是支援SAS/SATA協定的硬碟時,該控制單元與其中該者以串列通用型輸入輸出(Serial General Purpose Input/Output;SGPIO)協定傳收信號,進而取得其中該者的運轉狀態。 When the control unit determines that one of the N hard disks is a SAS/SATA-compliant hard disk, the control unit and the one of the serial general purpose input/output (SGPIO) protocols The signal is transmitted, and the operating state of the one is obtained.

當該控制單元判斷該N個硬碟之其中一者是支援PCI-E協定的固態硬碟時,該控制單元與其中該者以I2C(Inter-Integrated Circuit)協定傳收信號,進而取得其中該者的運轉狀態。 When the control unit determines that one of the N hard disks is a solid state hard disk supporting the PCI-E protocol, the control unit transmits the signal in agreement with the one in an Inter-Integrated Circuit (I2C), thereby obtaining the The operating status of the person.

該控制單元根據該N個硬碟之其中每一者的運轉狀態,控制該發光二極體單元之其中對應的該發光二極體組發光。 The control unit controls the corresponding light-emitting diode group illumination of the light-emitting diode unit according to the operating state of each of the N hard disks.

在一些實施態樣中,其中,當該N個硬碟之其中一者的該第一判斷信號的邏輯值等於該第二判斷信號的邏輯值等於一第一邏輯值時,該控制單元判斷其中該者是支援SAS/SATA協定的硬碟。 In some implementations, wherein, when a logical value of the first determination signal of one of the N hard disks is equal to a logic value of the second determination signal is equal to a first logic value, the control unit determines This is a hard drive that supports the SAS/SATA protocol.

當該N個硬碟之其中一者的該第一判斷信號的邏輯值等於一第二邏輯值且該第二判斷信號的邏輯值等於該第一邏輯值時,該控制單元判斷其中該者是支援PCI-E協定的固態硬碟。 When the logical value of the first determination signal of one of the N hard disks is equal to a second logic value and the logic value of the second determination signal is equal to the first logic value, the control unit determines that the one is A solid state drive that supports the PCI-E protocol.

在一些實施態樣中,該控制單元適用於電連接一基板管理控制器(Baseboard Management Controller;BMC),其中,定義該N個硬碟之其中M個是支援PCI-E協定的固態硬碟,M是大於零的整數。該控制單元包括8*M個暫存器,且每八個暫存器對應儲存該M個硬碟之其中一者的運轉狀態。該控制單元根據該M個硬碟的運轉狀態,對應儲存該8*M個暫存器的邏輯值。該基板管理控制器以系統管理匯流排(System Management Bus;SMBus)的協定至該控制單元讀取該8*M個暫存器以對應獲得該M個硬碟的運轉狀態。該M個硬碟的運轉狀態包含一狀態旗標、一警告訊息、一溫度、及一硬碟使用壽命,每一暫存器對應運轉狀態的其中一種,並包括八位元。 In some implementations, the control unit is adapted to be electrically connected to a Baseboard Management Controller (BMC), wherein M of the N hard disks are defined as a solid state hard disk supporting the PCI-E protocol. M is an integer greater than zero. The control unit includes 8*M registers, and each of the eight registers stores an operating state of one of the M hard disks. The control unit stores the logical values of the 8*M registers according to the operating states of the M hard disks. The baseboard management controller reads the 8*M registers by the protocol of the system management bus (SMBus) to the control unit to obtain the operating state of the M hard disks. The operating state of the M hard disks includes a status flag, a warning message, a temperature, and a hard disk life, and each of the registers corresponds to one of the operating states, and includes eight bits.

在一些實施態樣中,其中,每一發光二極體組包括一發出綠色光的第一發光二極體及一發出紅色光的第二發光二極體。當該控制單元判斷該M個硬碟是支援PCI-E協定的固態硬碟時,該控制單元還根據來自該M個硬碟之其中每一者的一狀態信號,控制對應的該發光二極體組的該第一發光二極體發出閃爍的綠色光。 In some embodiments, each of the light emitting diode groups includes a first light emitting diode that emits green light and a second light emitting diode that emits red light. When the control unit determines that the M hard disks are SSDs supporting the PCI-E protocol, the control unit further controls the corresponding LEDs according to a status signal from each of the M hard disks. The first light emitting diode of the body group emits blinking green light.

當對應該M個硬碟之其中任一者的該八個暫存器之其中對應該警告訊息的該暫存器的其中任何一個位元等於該第一邏輯值時,該控制單元控制對應的該發光二極體組的該第二發光二極體發出恆亮的紅色光。 When any one of the eight registers of the eight scratchpads corresponding to any of the M hard disks corresponding to the warning message is equal to the first logical value, the control unit controls the corresponding The second light emitting diode of the light emitting diode group emits a constant red light.

在一些實施態樣中,其中,當M是大於1的整數時,該硬碟燈號控制系統還包含一多工器,該多工器電連接該M個硬碟及該控制單元,該控制單元控制該多工器以依序輪流與該M個硬碟之其中一者以I2C協定傳收信號,進而取得其中該者的運轉狀態。 In some implementations, wherein, when M is an integer greater than 1, the hard disk signal control system further includes a multiplexer electrically connecting the M hard disks and the control unit, the control The unit controls the multiplexer to sequentially transmit signals in an I2C agreement with one of the M hard disks in turn, thereby obtaining an operating state of the one.

本發明的功效在於:藉由該控制單元判斷每一硬碟的該第一判斷信號及該第二判斷信號的邏輯值,判斷該N個硬碟之其中M個是支援PCI-E協定的固態硬碟,並與該M個硬碟以I2C協定傳收信號,進而直接且主動地取得該M個硬碟的運轉狀態,而不需要經由該基板管理控制器,使得系統的設計較為簡單而易於控制該發光二極體單元中對應的該發光二極體組發光。 The effect of the present invention is that the control unit determines the logical values of the first determination signal and the second determination signal of each hard disk, and determines that M of the N hard disks are solid-state supporting the PCI-E protocol. The hard disk and the M hard disk are transmitted in an I2C protocol to directly and actively obtain the operating state of the M hard disks, without the need to manage the controller via the substrate, so that the system design is simple and easy. Controlling the corresponding light emitting diode group illumination in the light emitting diode unit.

1‧‧‧控制單元 1‧‧‧Control unit

2‧‧‧第一硬碟 2‧‧‧First hard disk

3‧‧‧第二硬碟 3‧‧‧ Second hard drive

31‧‧‧第二硬碟 31‧‧‧ Second hard drive

32‧‧‧第三硬碟 32‧‧‧ Third hard disk

33‧‧‧第四硬碟 33‧‧‧ Fourth hard disk

34‧‧‧第五硬碟 34‧‧‧ Fifth hard disk

4‧‧‧發光二極體單元 4‧‧‧Lighting diode unit

5‧‧‧多工器 5‧‧‧Multiplexer

9‧‧‧基板管理控制器 9‧‧‧Base Management Controller

91‧‧‧控制單元 91‧‧‧Control unit

92‧‧‧基板管理控制器 92‧‧‧Baseboard Management Controller

93‧‧‧第一類硬碟 93‧‧‧First class hard drive

94‧‧‧第二類硬碟 94‧‧‧Second type hard drive

95‧‧‧發光二極體單元 95‧‧‧Lighting diode unit

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明習知的一種硬碟燈號控制系統;圖2是一方塊圖,說明本發明硬碟燈號控制系統的一第一實施例;及圖3是一方塊圖,說明本發明硬碟燈號控制系統的一第二實施例。 Other features and effects of the present invention will be apparent from the following description of the drawings, wherein: FIG. 1 is a block diagram illustrating a conventional hard disk light number control system; FIG. 2 is a block diagram. A first embodiment of the hard disk signal control system of the present invention is illustrated; and FIG. 3 is a block diagram showing a second embodiment of the hard disk signal control system of the present invention.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same reference numerals.

參閱圖2,本發明硬碟燈號控制系統的一第一實施例,適用與電連接一基板管理控制器(Baseboard Management Controller;BMC)9,並包含一第一硬碟2、一第二硬碟3、一發光二極體單元4、及一控制單元1。 Referring to FIG. 2, a first embodiment of the hard disk signal control system of the present invention is adapted to be electrically connected to a Baseboard Management Controller (BMC) 9, and includes a first hard disk 2 and a second hard disk. The disc 3, a light emitting diode unit 4, and a control unit 1.

該第一硬碟2及該第二硬碟3分別是支援串列小型電腦系統介面(Serial Attached Small Computer System Interface;Serial Attached SCSI;SAS)協定的硬碟/串列先進技術附件(Serial Advanced Technology Attachment;Serial ATA;SATA)協定的硬碟及支援PCI Express(PCI-E)協定的固態硬碟之其中一者,並分別輸出一第一判斷信號及一第二判斷信號。 The first hard disk 2 and the second hard disk 3 are respectively a hard disk/serial advanced technology accessory supporting a Serial Attached Small Computer System Interface (Serial Attached SCSI (SAS) protocol (Serial Advanced Technology). Attachment; Serial ATA; SATA) One of the protocol hard disks and the solid state hard disk supporting PCI Express (PCI-E) protocol, and respectively outputting a first determination signal and a second determination signal.

該發光二極體單元4包括分別對應該第一硬碟2及該第二硬碟3的二發光二極體組,每一發光二極體組包括一發出綠色光的第一發光二極體及一發出紅色光的第二發光二極體,以顯示該第一硬碟2及該第二硬碟3的運轉狀態。要特別補充說明的是:在其他實施例中,每一發光二極體組也可以是包括一顆雙色發光二極體,以對應顯示紅色光及綠色光。 The LED unit 4 includes two LED groups respectively corresponding to the first hard disk 2 and the second hard disk 3. Each of the light emitting diode groups includes a first light emitting diode that emits green light. And a second light emitting diode emitting red light to display an operating state of the first hard disk 2 and the second hard disk 3. It should be particularly noted that in other embodiments, each of the light emitting diode groups may also include a two-color light emitting diode to correspondingly display red light and green light.

該控制單元1電連接該第一硬碟2及該第二硬碟3,以接 收該等第一判斷信號及該等第二判斷信號,並根據來自該第一硬碟2及該第二硬碟3之其中每一者的該第一判斷信號及該第二判斷信號的邏輯值,判斷其中該者是支援SAS/SATA協定的硬碟及支援PCI-E協定的固態硬碟之其中哪一種。更詳細地說,在本實施例中,該控制單元1是經由來自該第一硬碟2及該第二硬碟3的二個IC腳位(PRSNT#)以分別接收該二個第一判斷信號,且經由來自該第一硬碟2及該第二硬碟3的另二個IC腳位(IfDet#)以分別接收該二個第二判斷信號。再者,該控制單元1是根據判斷該等IC腳位的邏輯值,以分別判斷對應的該等第一判斷信號及該等第二判斷信號的邏輯值。在本實施例中,該控制單元1是一種複雜可程式邏輯裝置(Complex Programmable Logic Device;CPLD),但不在此限。 The control unit 1 electrically connects the first hard disk 2 and the second hard disk 3 to connect Receiving the first determination signal and the second determination signal, and according to the logic of the first determination signal and the second determination signal from each of the first hard disk 2 and the second hard disk 3 The value is judged to be one of the hard disk supporting the SAS/SATA protocol and the solid state hard disk supporting the PCI-E protocol. In more detail, in the embodiment, the control unit 1 receives the two first judgments via the two IC pins (PRSNT#) from the first hard disk 2 and the second hard disk 3, respectively. And receiving, by the other two IC pins (IfDet#) from the first hard disk 2 and the second hard disk 3, the two second determination signals. Furthermore, the control unit 1 determines the logical values of the corresponding first determination signals and the second determination signals according to the logic values of the IC pins. In this embodiment, the control unit 1 is a Complex Programmable Logic Device (CPLD), but is not limited thereto.

為方便說明起見,以下以該第一硬碟2是支援SAS/SATA協定的硬碟,而該第二硬碟3是支援PCI-E協定的固態硬碟為例作說明。 For convenience of explanation, the first hard disk 2 is a hard disk supporting the SAS/SATA protocol, and the second hard disk 3 is a solid state hard disk supporting the PCI-E protocol as an example.

當該第一硬碟2的該第一判斷信號的邏輯值等於該第二判斷信號的邏輯值等於一第一邏輯值時,該控制單元1判斷該第一硬碟2是支援SAS/SATA協定的硬碟,且該控制單元1與該第一硬碟2以串列通用型輸入輸出(Serial General Purpose Input/Output;SGPIO)協定傳收信號,進而取得該第一硬碟2的運轉狀態。當該第一硬碟2處於存取中(Access)時,該控制單元1控制對 應的該發光二極體組的該第一發光二極體發出閃爍的綠色光。而當該第一硬碟2處於異常(Fault)時,該控制單元1控制對應的該發光二極體組的該第二發光二極體發出恆亮的紅色光。 When the logic value of the first determination signal of the first hard disk 2 is equal to the logic value of the second determination signal being equal to a first logic value, the control unit 1 determines that the first hard disk 2 supports the SAS/SATA protocol. The control unit 1 and the first hard disk 2 transmit signals by a serial general purpose input/output (SGPIO) protocol, thereby obtaining an operating state of the first hard disk 2. When the first hard disk 2 is in access, the control unit 1 controls the pair The first light-emitting diode of the light-emitting diode group should emit flashing green light. When the first hard disk 2 is in an abnormal state, the control unit 1 controls the second light emitting diode of the corresponding light emitting diode group to emit a constant red light.

當該第二硬碟3的該第一判斷信號的邏輯值等於一第二邏輯值且該第二判斷信號的邏輯值等於該第一邏輯值時,該控制單元1判斷其中該者是支援PCI-E協定的固態硬碟,且該控制單元1與該第二硬碟3以I2C(Inter-Integrated Circuit)協定傳收信號,進而取得其中該者的運轉狀態。更詳細地說,該控制單元1是操作在一I2C主控模式,因而能直接且主動地取得該第二硬碟3的運轉狀態。在本實施例中該第一邏輯值是邏輯0,該第二邏輯值是邏輯1,但不在此限。 When the logic value of the first determination signal of the second hard disk 3 is equal to a second logic value and the logic value of the second determination signal is equal to the first logic value, the control unit 1 determines that the one is supporting the PCI. a solid-state hard disk of the -E protocol, and the control unit 1 and the second hard disk 3 transmit signals by an I2C (Inter-Integrated Circuit) agreement, thereby obtaining an operating state of the one. In more detail, the control unit 1 is operated in an I2C master mode, so that the operating state of the second hard disk 3 can be directly and actively obtained. In this embodiment, the first logic value is a logic 0, and the second logic value is a logic 1, but not limited thereto.

該控制單元1包括八個暫存器,且該八個暫存器對應儲存支援PCI-E協定的固態硬碟(即第二硬碟3)的運轉狀態。該控制單元1根據該第二硬碟3的運轉狀態,儲存該八個暫存器的邏輯值,以對應表示不同的運轉狀態。該基板管理控制器9以系統管理匯流排(System Management Bus;SMBus)的協定至該控制單元1讀取該八個暫存器以對應獲得支援PCI-E協定的固態硬碟(即第二硬碟3)的運轉狀態。支援PCI-E協定的固態硬碟(即第二硬碟3)的運轉狀態包含一狀態旗標、一警告訊息、一溫度、一硬碟使用壽命、及多個預留(Reserved)狀態。每一暫存器對應運轉狀態的其中一種, 並包括八位元。 The control unit 1 includes eight registers, and the eight registers correspond to the operating state of the solid state hard disk (ie, the second hard disk 3) supporting the PCI-E protocol. The control unit 1 stores the logic values of the eight registers according to the operating state of the second hard disk 3 to correspondingly indicate different operating states. The baseboard management controller 9 reads the eight temporary registers by the system management bus (SMBus) protocol to the control unit 1 to obtain a solid state hard disk supporting the PCI-E protocol (ie, the second hard disk). The operating state of the disc 3). The operating state of the solid state hard disk (ie, the second hard disk 3) supporting the PCI-E protocol includes a status flag, a warning message, a temperature, a hard disk life, and a plurality of reserved states. Each register corresponds to one of the operating states, And includes eight bits.

當該控制單元1判斷該第二硬碟3是支援PCI-E協定的固態硬碟時,該控制單元1還根據來自該第二硬碟3且經由一IC腳位(HDD_Ready pin)的一狀態信號,控制對應的該發光二極體組的該第一發光二極體發出閃爍的綠色光。更詳細地說,當該第二硬碟3處於存取中時,該第二硬碟3所產生的該狀態信號會在邏輯0與邏輯1之間跳動,該控制單元1將該狀態信號除頻,並輸出至對應的該發光二極體組的該第一發光二極體,以控制該第一發光二極體發出閃爍的綠色光。 When the control unit 1 determines that the second hard disk 3 is a solid state drive supporting the PCI-E protocol, the control unit 1 is further based on a state from the second hard disk 3 via an IC pin (HDD_Ready pin). And a signal that controls the corresponding first LED of the LED group to emit blinking green light. In more detail, when the second hard disk 3 is in access, the status signal generated by the second hard disk 3 jumps between logic 0 and logic 1, and the control unit 1 divides the status signal. Frequency and output to the corresponding first LED of the LED group to control the first LED to emit flashing green light.

當對應該第二硬碟3的該八個暫存器之其中對應該警告訊息的該暫存器的其中任何一個位元等於該第一邏輯值時,該控制單元1控制對應的該發光二極體組的該第二發光二極體發出恆亮的紅色光。換句話說,當該第二硬碟3處於異常(Fault)時,該控制單元1以I2C協定與該第二硬碟3傳收信號,進而得知該第二硬碟3處於異常,而能改變該八個暫存器之其中對應該警告訊息的該暫存器的邏輯值。此外,對應該警告訊息的該暫存器的八個位元分別代表不同的異常情況,當該控制單元1以I2C協定與該第二硬碟3傳收信號時,能夠獲知該第二硬碟3處於異常情況的哪一種,以對應改變該暫存器之其中哪一個位元的邏輯值。此時,當該基板管理控制器9以系統管理匯流排的協定至該控制單元1讀取該八個暫存器之其 中對應該警告訊息的該暫存器的其中任何一個位元等於該第一邏輯值時,該基板管理控制器9獲知該第二硬碟3處於異常(Fault),並將所對應的異常情況紀錄於一日誌檔案(Logs)中。 When any one of the registers of the eight registers corresponding to the second hard disk 3 corresponding to the warning message is equal to the first logic value, the control unit 1 controls the corresponding light-emitting two The second light-emitting diode of the polar body group emits a constant red light. In other words, when the second hard disk 3 is in an abnormal state, the control unit 1 transmits a signal to the second hard disk 3 by using the I2C protocol, and further knows that the second hard disk 3 is abnormal, and can The logical value of the register of the eight registers corresponding to the warning message is changed. In addition, the eight bits of the register corresponding to the warning message respectively represent different abnormal conditions. When the control unit 1 transmits the signal to the second hard disk 3 by using the I2C protocol, the second hard disk can be known. 3 Which one of the exception conditions is in response to changing the logical value of which of the bits of the register. At this time, when the baseboard management controller 9 manages the busbar protocol by the system, the control unit 1 reads the eight temporary registers. When any one of the registers of the register corresponding to the warning message is equal to the first logic value, the baseboard management controller 9 learns that the second hard disk 3 is in an abnormal state and corresponds to the abnormal situation. Recorded in a log file (Logs).

參閱圖3,本發明硬碟燈號控制系統的一第二實施例,大致上是與該第一實施例相同,不同的地方在於:該硬碟燈號控制系統包含N個硬碟,且其中M個硬碟是支援PCI-E協定的固態硬碟,該硬碟燈號控制系統還包含一多工器(MUX)5,該控制單元1包括8*M個暫存器。N及M都是大於1的整數,該發光二極體單元包括分別對應該N個硬碟的N個發光二極體組,以顯示該等硬碟的運轉狀態。該8*M個暫存器中的每八個暫存器對應儲存該M個硬碟之其中一者的運轉狀態。該控制單元1根據該M個硬碟的運轉狀態,對應儲存該8*M個暫存器的邏輯值。為方便說明起見,以下以一第一硬碟2是支援SAS/SATA協定的硬碟,且M=4,即一第二硬碟31、一第三硬碟32、一第四硬碟33、及一第五硬碟34是支援PCI-E協定的固態硬碟為例作說明。 Referring to FIG. 3, a second embodiment of the hard disk signal control system of the present invention is substantially the same as the first embodiment, except that the hard disk light control system includes N hard disks, and wherein The M hard disks are solid state hard disks supporting the PCI-E protocol, and the hard disk signal control system further includes a multiplexer (MUX) 5, and the control unit 1 includes 8*M registers. Both N and M are integers greater than 1, and the light-emitting diode unit includes N light-emitting diode groups respectively corresponding to N hard disks to display the operating states of the hard disks. Each of the eight*M scratchpads stores an operational state of one of the M hard disks. The control unit 1 stores the logical values of the 8*M registers according to the operating states of the M hard disks. For convenience of explanation, the first hard disk 2 is a hard disk supporting the SAS/SATA protocol, and M=4, that is, a second hard disk 31, a third hard disk 32, and a fourth hard disk 33. And a fifth hard disk 34 is a solid state hard disk supporting the PCI-E protocol as an example.

該多工器電連接該等硬碟31~34及該控制單元1。該控制單元1控制該多工器5以依序輪流與該等硬碟31~34之其中一者以I2C協定傳收信號,進而取得其中該者的運轉狀態。更詳細地說,該等硬碟31~34之其中每一者經由一個不同的IC腳位(PRSNT#)將對應的該第一判斷信號傳送至該控制單元1,且經由一個不同的 IC腳位(IfDet#)將對應的該第二判斷信號傳送至該控制單元1。舉例來說,該等硬碟31~34共有四個,則該IC腳位(PRSNT#)有四個,且該IC腳位(IfDet#)也有四個。而該等硬碟31~34還將支援I2C協定的信號輸出至該多工器5的輸入端,使得該控制單元1依序輪流控制該多工器5切換其輸入端至其輸出端,而能依序輪流取得該等硬碟31~34的運轉狀態,進而能節省該控制單元1與該等硬碟31~34之間的信號連接的數量,即節省該控制單元1的IC腳位的數量。再者,由於該多工器5要將來自該等硬碟31~34之其中哪一者的信號輸出至該控制單元1是由該控制單元1控制該多工器5來決定,因此,該控制單元1在控制該多工器5的切換時,主動地獲知當下所接收的信號是來自哪一個硬碟,因而能將所獲得的硬碟的運轉狀態儲存至對應的暫存器,也就能簡單且正確地控制對應的發光二極體組發光。 The multiplexer electrically connects the hard disks 31 to 34 and the control unit 1. The control unit 1 controls the multiplexer 5 to sequentially transmit signals in an I2C agreement with one of the hard disks 31 to 34 in order to obtain the operating state of the one. In more detail, each of the hard disks 31-34 transmits the corresponding first determination signal to the control unit 1 via a different IC pin (PRSNT#), and via a different one. The IC pin (IfDet#) transmits the corresponding second determination signal to the control unit 1. For example, if there are four such hard disks 31~34, there are four IC pin positions (PRSNT#), and there are four IC pin positions (IfDet#). The hard disks 31-34 also output the signals supporting the I2C protocol to the input end of the multiplexer 5, so that the control unit 1 sequentially controls the multiplexer 5 to switch its input end to its output end, and The operating states of the hard disks 31 to 34 can be obtained in turn, and the number of signal connections between the control unit 1 and the hard disks 31 to 34 can be saved, that is, the IC pin of the control unit 1 can be saved. Quantity. Furthermore, since the multiplexer 5 outputs a signal from which one of the hard disks 31 to 34 to the control unit 1 is controlled by the control unit 1 to control the multiplexer 5, therefore, When controlling the switching of the multiplexer 5, the control unit 1 actively knows which hard disk the received signal is from, and thus can store the obtained operating state of the hard disk to the corresponding temporary storage device. The corresponding light-emitting diode group illumination can be controlled simply and correctly.

此外,在本實施例中,該多工器5是設置於該控制單元1之外,而在其他實施例中,該多工器5也可以設置於該控制單元1之內。另外要特別補充說明的是:該控制單元1是經由來自各個硬碟的每二個IC腳位(PRSNT#、IfDet#)(視為一組IC腳位)以接收一個對應的硬碟的該第一判斷信號及該第二判斷信號。因此,當該控制單元1判斷其中一組IC腳位的邏輯值都等於該第二邏輯值時,也就是相當於該第一判斷信號的邏輯值等於該第二判斷信號的邏輯 值等於該第二邏輯值時,該控制單元1判斷該對應的硬碟並未連接。 In addition, in the embodiment, the multiplexer 5 is disposed outside the control unit 1, and in other embodiments, the multiplexer 5 may also be disposed within the control unit 1. In addition, it should be particularly noted that the control unit 1 is via the two IC pins (PRSNT#, IfDet#) from each hard disk (considered as a group of IC pins) to receive a corresponding hard disk. a first determination signal and the second determination signal. Therefore, when the control unit 1 determines that the logical value of one of the IC pin positions is equal to the second logic value, that is, the logic value corresponding to the first determination signal is equal to the logic of the second determination signal. When the value is equal to the second logic value, the control unit 1 determines that the corresponding hard disk is not connected.

綜上所述,本發明硬碟燈號控制系統藉由該控制單元1判斷每一硬碟的該第一判斷信號及該第二判斷信號的邏輯值,而判斷該N個硬碟之其中M個是支援PCI-E協定的固態硬碟,並與該M個硬碟以I2C協定傳收信號,進而直接且主動地取得該M個硬碟的運轉狀態,而不需要經由該基板管理控制器9,使得系統的設計較為簡單而易於控制該發光二極體單元4中對應的該發光二極體組發光,故確實能達成本發明的目的。 In summary, the hard disk signal control system of the present invention determines the M of the N hard disks by the control unit 1 determining the logical values of the first determination signal and the second determination signal of each hard disk. A solid state drive that supports the PCI-E protocol, and transmits signals to the M hard disks in an I2C protocol, thereby directly and actively acquiring the operating state of the M hard disks without the need to manage the controller via the baseboard. 9. The design of the system is relatively simple and it is easy to control the corresponding light-emitting diode group illumination in the light-emitting diode unit 4, so that the object of the present invention can be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 However, the above is only the embodiment of the present invention, and the scope of the invention is not limited thereto, and all the simple equivalent changes and modifications according to the scope of the patent application and the patent specification of the present invention are still Within the scope of the invention patent.

1‧‧‧控制單元 1‧‧‧Control unit

2‧‧‧第一硬碟 2‧‧‧First hard disk

3‧‧‧第二硬碟 3‧‧‧ Second hard drive

4‧‧‧發光二極體單元 4‧‧‧Lighting diode unit

9‧‧‧基板管理控制器 9‧‧‧Base Management Controller

Claims (4)

一種硬碟燈號控制系統,包含:N個硬碟,分別是支援串列小型電腦系統介面(Serial Attached Small Computer System Interface;Serial Attached SCSI;SAS)協定的硬碟/串列先進技術附件(Serial Advanced Technology Attachment;Serial ATA;SATA)協定的硬碟及支援PCI Express(PCI-E)協定的固態硬碟之其中一者,並分別輸出一第一判斷信號及一第二判斷信號,N是大於1的整數;一發光二極體單元,包括分別對應該N個硬碟的N個發光二極體組,以顯示該等硬碟的運轉狀態;一控制單元,電連接該N個硬碟,以接收該等第一判斷信號及該等第二判斷信號,並根據來自該N個硬碟之其中每一者的該第一判斷信號及該第二判斷信號的邏輯值,判斷其中該者是支援SAS/SATA協定的硬碟及支援PCI-E協定的固態硬碟之其中哪一種,當該控制單元判斷該N個硬碟之其中一者是支援SAS/SATA協定的硬碟時,該控制單元與其中該者以串列通用型輸入輸出(Serial General Purpose Input/Output;SGPIO)協定傳收信號,進而取得其中該者的運轉狀態,當該控制單元判斷該N個硬碟之其中一者是支援PCI-E協定的固態硬碟時,該控制單元與其中該者以I2C(Inter-Integrated Circuit)協定傳收信號,進而取 得其中該者的運轉狀態,該控制單元根據該N個硬碟之其中每一者的運轉狀態,控制該發光二極體單元之其中對應的該發光二極體組發光,該控制單元適用於電連接一基板管理控制器(Baseboard Management Controller;BMC),其中,定義該N個硬碟之其中M個是支援PCI-E協定的固態硬碟,M是大於零的整數,該控制單元包括8*M個暫存器,且每八個暫存器對應儲存該M個硬碟之其中一者的運轉狀態,該控制單元根據該M個硬碟的運轉狀態,對應儲存該8*M個暫存器的邏輯值,該基板管理控制器以系統管理匯流排(System Management Bus;SMBus)的協定至該控制單元讀取該8*M個暫存器以對應獲得該M個硬碟的運轉狀態,該M個硬碟的運轉狀態包含一狀態旗標、一警告訊息、一溫度、及一硬碟使用壽命,每一暫存器對應運轉狀態的其中一種,並包括八位元。 A hard disk light number control system comprising: N hard disks, respectively, a hard disk/serial advanced technology accessory supporting a Serial Attached Small Computer System Interface (Sialial Attached SCSI; SAS) protocol (Serial) Advanced Technology Attachment; Serial ATA; SATA) one of the hard disk and one of the PCI Express (PCI-E)-compliant solid state drives, and outputs a first determination signal and a second determination signal, respectively, N is greater than An integer of 1; a light-emitting diode unit comprising N light-emitting diode groups respectively corresponding to N hard disks to display an operating state of the hard disks; a control unit electrically connecting the N hard disks, Receiving the first determination signal and the second determination signal, and determining, according to the logic values of the first determination signal and the second determination signal from each of the N hard disks, Which of the hard disk drives supporting the SAS/SATA protocol and the solid state drive supporting the PCI-E protocol, when the control unit determines that one of the N hard disks supports a SAS/SATA protocol hard disk, the control Unit and The latter transmits the signal by a serial general purpose input/output (SGPIO) protocol to obtain the operating state of the one, and the control unit determines that one of the N hard disks is supported. In the PCI-E protocol solid state hard disk, the control unit transmits the signal in agreement with the one in the I2C (Inter-Integrated Circuit), and then takes the signal The operation unit of the one of the N hard disks is controlled according to the operating state of each of the N hard disks, and the control unit is adapted to emit light corresponding to the light emitting diode group. Electrically connected to a Baseboard Management Controller (BMC), wherein M of the N hard disks are defined as a solid state hard disk supporting PCI-E protocol, and M is an integer greater than zero, and the control unit includes 8 *M registers, and each of the eight registers stores the operating state of one of the M hard disks, and the control unit stores the 8*M temporary according to the operating state of the M hard disks. The logic value of the memory, the baseboard management controller uses the system management bus (SMBus) agreement to the control unit to read the 8*M registers to obtain the operating state of the M hard disks. The operating state of the M hard disks includes a status flag, a warning message, a temperature, and a hard disk life, and each of the registers corresponds to one of the operating states, and includes eight bits. 如請求項1所述的硬碟燈號控制系統,其中,當該N個硬碟之其中一者的該第一判斷信號的邏輯值等於該第二判斷信號的邏輯值等於一第一邏輯值時,該控制單元判斷其中該者是支援SAS/SATA協定的硬碟,當該N個硬碟之其中一者的該第一判斷信號的邏輯值等於一第二邏輯值且該第二判斷信號的邏輯值等於該第一邏輯值時,該控制單元判斷其中該者是支援PCI-E協定的固態硬碟。 The hard disk light number control system of claim 1, wherein a logic value of the first determination signal of one of the N hard disks is equal to a logic value of the second determination signal is equal to a first logic value When the control unit determines that the one is a hard disk supporting the SAS/SATA protocol, when the logical value of the first determination signal of one of the N hard disks is equal to a second logic value and the second determination signal When the logical value is equal to the first logical value, the control unit determines that the one is a solid state hard disk supporting the PCI-E protocol. 如請求項1所述的硬碟燈號控制系統,其中,每一發光二極體組包括一發出綠色光的第一發光二極體及一發出紅色光的第二發光二極體,當該控制單元判斷該M個硬碟是支援PCI-E協定的固態硬碟時,該控制單元還根據來自該M個硬碟之其中每一者的一狀態信號,控制對應的該發光二極體組的該第一發光二極體發出閃爍的綠色光,當對應該M個硬碟之其中任一者的該八個暫存器之其中對應該警告訊息的該暫存器的其中任何一個位元等於該第一邏輯值時,該控制單元控制對應的該發光二極體組的該第二發光二極體發出恆亮的紅色光。 The hard disk signal control system of claim 1, wherein each of the light emitting diode groups includes a first light emitting diode that emits green light and a second light emitting diode that emits red light. When the control unit determines that the M hard disks are solid state disks supporting the PCI-E protocol, the control unit further controls the corresponding LED group according to a status signal from each of the M hard disks. The first light emitting diode emits blinking green light when any one of the eight registers of the eight scratchpads corresponding to any one of the M hard disks corresponds to the buffer When the first logic value is equal to the first logic value, the control unit controls the second LED of the corresponding LED group to emit a constant red light. 如請求項3所述的硬碟燈號控制系統,其中,當M是大於1的整數時,該硬碟燈號控制系統還包含一多工器,該多工器電連接該M個硬碟及該控制單元,該控制單元控制該多工器以依序輪流與該M個硬碟之其中一者以I2C協定傳收信號,進而取得其中該者的運轉狀態。 The hard disk light number control system of claim 3, wherein when the M is an integer greater than 1, the hard disk light number control system further comprises a multiplexer electrically connecting the M hard disks. And the control unit, the control unit controls the multiplexer to sequentially transmit and receive signals in an I2C agreement with one of the M hard disks in order to obtain an operating state of the one of the M multiplexers.
TW105138560A 2016-11-24 2016-11-24 HDD LED Control System TWI587130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105138560A TWI587130B (en) 2016-11-24 2016-11-24 HDD LED Control System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105138560A TWI587130B (en) 2016-11-24 2016-11-24 HDD LED Control System

Publications (2)

Publication Number Publication Date
TWI587130B true TWI587130B (en) 2017-06-11
TW201820142A TW201820142A (en) 2018-06-01

Family

ID=59688277

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105138560A TWI587130B (en) 2016-11-24 2016-11-24 HDD LED Control System

Country Status (1)

Country Link
TW (1) TWI587130B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI685738B (en) * 2018-08-17 2020-02-21 神雲科技股份有限公司 Led control method for disk drive

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712892B (en) * 2019-09-09 2020-12-11 英業達股份有限公司 Complex programmable logic device and operation method thereof

Citations (4)

* 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
CN104516802A (en) * 2015-01-08 2015-04-15 浪潮(北京)电子信息产业有限公司 Method and system for indicating statuses of different types of hard disks
US9092453B2 (en) * 2012-07-30 2015-07-28 Fujitsu Limited Monitoring device, information processing apparatus, and monitoring method
CN105955898A (en) * 2016-05-25 2016-09-21 浪潮电子信息产业股份有限公司 SAS hard disk and NVMe hard disk compatible hard disk backplane

Patent Citations (4)

* 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
US9092453B2 (en) * 2012-07-30 2015-07-28 Fujitsu Limited Monitoring device, information processing apparatus, and monitoring method
CN104516802A (en) * 2015-01-08 2015-04-15 浪潮(北京)电子信息产业有限公司 Method and system for indicating statuses of different types of hard disks
CN105955898A (en) * 2016-05-25 2016-09-21 浪潮电子信息产业股份有限公司 SAS hard disk and NVMe hard disk compatible hard disk backplane

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI685738B (en) * 2018-08-17 2020-02-21 神雲科技股份有限公司 Led control method for disk drive

Also Published As

Publication number Publication date
TW201820142A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
TWI488045B (en) A device, a system and a method for detecting sgpio and i2c
TWI624758B (en) System for controlling indicator lights and method for controlling light-emitting diode
US10452576B2 (en) NVMe drive detection from a SAS/SATA connector
TW201222246A (en) Computer chassis system and hard disk status display method thereof
US8996775B2 (en) Backplane controller for managing serial interface configuration based on detected activity
US20130080697A1 (en) Drive mapping using a plurality of connected enclosure management controllers
US20190004901A1 (en) Baseboard management controllers for server chassis
TWI587134B (en) Management method and management system
CN104516802A (en) Method and system for indicating statuses of different types of hard disks
TW201624297A (en) Hot-pluggable computing system, computer-implemented method and system
TWI575903B (en) Controller coupled to visual indicator
US20140344484A1 (en) Detection system for hard disk drive
US20120151112A1 (en) System and Method for Mapping a Logical Drive Status to a Physical Drive Status for Multiple Storage Drives Having Different Storage Technologies within a Server
TWI449936B (en) Testing device for main board
US20160098336A1 (en) Methods and systems for dynamic retimer programming
TWI587130B (en) HDD LED Control System
JP2014154157A (en) Chained, scalable storage devices
CN108319540B (en) Hard disk lamp signal control system
TW202115573A (en) Hdd backplane management device
US20130132665A1 (en) Harddisk drive connector having indication device for indicating data transfer rate and computing device having the same
TWI564722B (en) Black plane and method for detecting serial general purpose input/output signal thereof
CN107765993B (en) Hard disk interface device
TWI576696B (en) System is applied to control indicator lights for non-volatile memory express solid state disk
CN110321263B (en) Hard disk monitoring system
TW201531851A (en) Light controlling system and electronic device having same