Movatterモバイル変換


[0]ホーム

URL:


CN102929766A - Method, device and storage system for turning on state indicator lamps of hard disks - Google Patents

Method, device and storage system for turning on state indicator lamps of hard disks
Download PDF

Info

Publication number
CN102929766A
CN102929766ACN2012104120253ACN201210412025ACN102929766ACN 102929766 ACN102929766 ACN 102929766ACN 2012104120253 ACN2012104120253 ACN 2012104120253ACN 201210412025 ACN201210412025 ACN 201210412025ACN 102929766 ACN102929766 ACN 102929766A
Authority
CN
China
Prior art keywords
hard disk
signal
ready
led signal
ready led
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2012104120253A
Other languages
Chinese (zh)
Other versions
CN102929766B (en
Inventor
黄金海
梁红伟
许勇
陈清海
陈莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
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 Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN201210412025.3ApriorityCriticalpatent/CN102929766B/en
Publication of CN102929766ApublicationCriticalpatent/CN102929766A/en
Application grantedgrantedCritical
Publication of CN102929766BpublicationCriticalpatent/CN102929766B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供一种实现硬盘状态点灯的方法、装置及存储系统,属于计算机领域。所述方法应用于具有多个硬盘的存储系统中,所述方法包括:获取硬盘的类型信息;当硬盘的类型为SAS硬盘时,将该硬盘对应的READY LED含义位置位;获取硬盘的READY LED信号;当硬盘的READY LED信号为固定低电平或者高低交替电平时,根据所述READY LED信号生成预定频率、高低交替电平的第一驱动信号,以驱动硬盘指示灯按照预定频率闪烁。根据本发明,能够使得在包括多个硬盘的存储系统中,处于相同状态的硬盘对应的硬盘指示灯的指示状态相同。

Figure 201210412025

The invention provides a method, a device and a storage system for realizing lighting of a hard disk state, belonging to the field of computers. The method is applied in a storage system with multiple hard disks, and the method includes: obtaining type information of the hard disk; when the type of the hard disk is a SAS hard disk, setting the READY LED meaning position corresponding to the hard disk; obtaining the READY LED of the hard disk Signal; when the READY LED signal of the hard disk is a fixed low level or a high and low alternating level, generate a predetermined frequency and a high and low alternating level first drive signal according to the READY LED signal to drive the hard disk indicator light to flash according to a predetermined frequency. According to the present invention, in a storage system including multiple hard disks, the indication states of the hard disk indicator lights corresponding to the hard disks in the same state can be the same.

Figure 201210412025

Description

Translated fromChinese
一种实现硬盘状态点灯的方法、装置及存储系统A method, device and storage system for realizing hard disk status lighting

技术领域technical field

本发明涉及计算机领域,尤其涉及一种实现硬盘状态点灯的方法、装置及存储系统。The invention relates to the field of computers, in particular to a method, device and storage system for realizing hard disk status lighting.

背景技术Background technique

存储系统中使用大量的硬盘,每个硬盘都要求有对应的硬盘指示灯来指示硬盘的各种状态。一般而言,当硬盘的链路没有连接(LINK)时指示灯灭,当硬盘链路LINK时指示灯长亮,当硬盘正在进行数据传输时指示灯快速闪烁。A large number of hard disks are used in the storage system, and each hard disk requires a corresponding hard disk indicator to indicate various states of the hard disk. Generally speaking, when the link of the hard disk is not connected (LINK), the indicator light is off, when the hard disk link is LINK, the indicator light is always on, and when the hard disk is transmitting data, the indicator light flashes rapidly.

目前常用的实现硬盘状态点灯的方案有如下两种:At present, there are two commonly used solutions to realize hard disk status lighting:

方式一,通过串行连接小型计算机系统界面(Serial Attached SCSI,SAS)控制器,或者串行高级技术附件(Serial Advanced Technology Attachment,SATA)控制器产生。该方案实现的前提是硬盘控制器提供了相关指示灯信号。一般存储系统中都会用背板来连接硬盘,这样在硬盘较多的情况,需要较多的走线,主背板间连接器也需要较多的引脚,从而样会增加成本及设计复杂度。The first way is to generate it through a serial connection to a Small Computer System Interface (Serial Attached SCSI, SAS) controller, or a Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, SATA) controller. The premise of this solution is that the hard disk controller provides the relevant indicator signal. Generally, the backplane is used to connect the hard disks in the storage system. In the case of many hard disks, more wiring is required, and the connectors between the main backplanes also need more pins, which will increase the cost and design complexity. .

方式二,通过硬盘的READY LED信号来驱动硬盘指示灯。与硬盘连接的硬盘驱动器会根据硬盘的数据传输状态提供该READY LED信号,该READY LED信号为高低电平信号,通过将该高低电平信号输出到硬盘指示灯,能够控制硬盘指示灯的开启或关闭。该方案不需要从硬盘控制器上连接大量的走线,可简化设计。另外,即使在控制器不方便将点灯信号引出的情况下,也能采用该方案。The second way is to drive the hard disk indicator light through the READY LED signal of the hard disk. The hard disk drive connected to the hard disk will provide the READY LED signal according to the data transmission status of the hard disk. The READY LED signal is a high-low level signal. By outputting the high-low level signal to the hard disk indicator light, it can control the hard disk indicator light on or off. closure. This solution does not need to connect a large number of traces from the hard disk controller, which can simplify the design. In addition, even if it is inconvenient for the controller to lead out the lighting signal, this solution can also be adopted.

根据硬盘类型的不同,与该硬盘连接的硬盘驱动器输出的READY LED信号的状态可能不相同。例如,SATA规范定义该信号为设备活动(Activity)输出,即有数据传输时输出。根据不同的厂家的实现,有数据传输时输出的可能为低电平信号(硬盘指示灯亮),也可能高低交替电平信号(硬盘指示灯闪烁);没有数据传输时为高电平信号(硬盘指示灯灭)。Depending on the type of hard disk, the status of the READY LED signal output by the hard disk drive connected to the hard disk may be different. For example, the SATA specification defines this signal as the device activity (Activity) output, that is, output when there is data transmission. According to the implementation of different manufacturers, when there is data transmission, the output may be a low-level signal (the hard disk indicator is on), or a high-low level signal (the hard disk indicator is flashing); when there is no data transmission, it is a high-level signal (the hard disk light off).

SAS规范定义该信号为设备准备好(Ready)输出或者设备Activity输出,根据READY LED含义位(READY LED MEANING bit)的设置不同,分别定义如下:The SAS specification defines this signal as the device ready (Ready) output or device Activity output. According to the different settings of the READY LED meaning bit (READY LED MEANING bit), they are defined as follows:

READY LED MEANING bit为0:设备准备好后信号为低电平(硬盘指示灯亮),有数据传输时为高低交替电平信号(硬盘指示灯闪烁),设备没有准备好时为高电平(硬盘指示灯灭)。READY LED MEANING bit is 0: the signal is low level when the device is ready (the hard disk indicator light is on), it is a high and low level signal alternately when there is data transmission (the hard disk indicator light is flashing), and it is high level when the device is not ready (the hard disk indicator light is on). light off).

READY LED MEANING bit为1:只有在有数据传输时为高低交替电平信号(硬盘指示灯闪烁),没有数据传输时为高电平(硬盘指示灯灭)。READY LED MEANING bit is 1: only when there is data transmission, it is a high and low level signal (the hard disk indicator flashes), and it is high level when there is no data transmission (the hard disk indicator is off).

由于存储系统中一般会使用大量的硬盘,而硬盘的类型有可能不相同,这样,就有可能造成对于同样的硬盘状态,硬盘指示灯的指示状态不相同,给用户的使用造成困惑。例如,对于SATA硬盘,在进行数据传输时,其指示灯可能长亮,而对于SAS硬盘,当READY LED MEANING bit为0时,设备准备好但没有进行数据传输,其指示灯也是长亮。而且,即使使用的是相同类型的硬盘,例如使用的都是SATA硬盘,也有可能存在由于生产厂家的不同,造成对于同样的硬盘状态,硬盘指示灯的指示状态也不相同,例如,硬盘在进行数据传输时,硬盘指示灯有可能为长亮或者闪烁,而且指示灯的闪烁频率也可能不一致,甚至可能因为闪烁太快而看上去是长亮的。Because generally can use a large amount of hard disks in the storage system, and the type of hard disk may be different, like this, just may cause for the same hard disk status, the indicating state of hard disk indicator light is not the same, causes confusion to the user. For example, for a SATA hard disk, its indicator light may be on constantly during data transmission, and for a SAS hard disk, when the READY LED MEANING bit is 0, the device is ready but not in data transmission, and its indicator light is also long on. Moreover, even if the hard disks of the same type are used, for example, all SATA hard disks are used, there may be differences in the status of the hard disk due to different manufacturers, resulting in different indication states of the hard disk indicators. For example, the hard disk is running During data transmission, the hard disk indicator light may be on or blinking, and the blinking frequency of the indicator light may also be inconsistent, and may even appear to be constantly on because the blinking is too fast.

发明内容Contents of the invention

有鉴于此,本发明的目的是提供一种实现硬盘状态点灯的方法、装置及存储系统,使得在包括多个硬盘的存储系统中,处于相同状态的硬盘对应的硬盘指示灯的指示状态相同。In view of this, the purpose of the present invention is to provide a method, device and storage system for realizing hard disk status lighting, so that in a storage system including multiple hard disks, the indication states of the hard disk indicators corresponding to the hard disks in the same state are the same.

为实现上述目的,本发明提供技术方案如下:To achieve the above object, the present invention provides technical solutions as follows:

一种实现硬盘状态点灯的方法,应用于具有多个硬盘的存储系统中,所述方法包括:A method for realizing hard disk state lighting, applied to a storage system with multiple hard disks, the method comprising:

获取硬盘的类型信息;Obtain the type information of the hard disk;

当硬盘的类型为SAS硬盘时,将该硬盘对应的READY LED含义位置位;When the type of the hard disk is a SAS hard disk, set the meaning position of the READY LED corresponding to the hard disk;

获取硬盘的READY LED信号;Obtain the READY LED signal of the hard disk;

当硬盘的READY LED信号为固定低电平或者高低交替电平时,根据所述READY LED信号生成预定频率、高低交替电平的第一驱动信号,以驱动硬盘指示灯按照预定频率闪烁。When the READY LED signal of the hard disk is a fixed low level or a high-low alternating level, a first drive signal with a predetermined frequency and a high-low alternating level is generated according to the READY LED signal, so as to drive the hard disk indicator light to flash according to a predetermined frequency.

一种实现硬盘状态点灯的装置,应用于具有多个硬盘的存储系统中,所述装置包括:A device for realizing hard disk status lighting, which is applied to a storage system with multiple hard disks, and the device includes:

第一获取模块,用于获取硬盘的类型信息;The first obtaining module is used to obtain the type information of the hard disk;

置位模块,用于当硬盘的类型为SAS硬盘时,将该硬盘对应的READYLED含义位置位;The bit setting module is used to set the READYLED meaning position corresponding to the hard disk when the type of the hard disk is a SAS hard disk;

第二获取模块,用于获取硬盘的READY LED信号;The second obtaining module is used to obtain the READY LED signal of the hard disk;

驱动模块,用于当硬盘的READY LED信号为固定低电平或者高低交替电平时,根据所述READY LED信号生成预定频率、高低交替电平的第一驱动信号,以驱动硬盘指示灯按照预定频率闪烁。The drive module is used to generate a first drive signal with a predetermined frequency and high and low alternating levels according to the READY LED signal when the READY LED signal of the hard disk is at a fixed low level or high and low alternating levels, so as to drive the hard disk indicator light according to the predetermined frequency. flashing.

与现有技术相比,本发明通过将存储系统中不同类型硬盘的READYLED信号所表示的含义调整为一致,并对READY LED信号进行转换得到驱动信号,由所述驱动信号来驱动硬盘指示灯,如此,能够使得在包括多个硬盘的存储系统中,处于相同状态的硬盘对应的硬盘指示灯的指示状态相同,从而方便用户的使用。Compared with the prior art, the present invention adjusts the meanings represented by the READY LED signals of different types of hard disks in the storage system to be consistent, and converts the READY LED signals to obtain a driving signal, which drives the hard disk indicator light, In this way, in a storage system including multiple hard disks, the indication states of the hard disk indicator lights corresponding to the hard disks in the same state can be the same, thereby facilitating the use of the user.

附图说明Description of drawings

图1是本发明实施例的实现硬盘状态点灯的方法流程图;FIG. 1 is a flowchart of a method for realizing hard disk status lighting according to an embodiment of the present invention;

图2是READY LED信号为固定高电平时的硬盘指示灯输出示意图;Figure 2 is a schematic diagram of the output of the hard disk indicator light when the READY LED signal is at a fixed high level;

图3是READY LED信号为固定低电平时的硬盘指示灯输出示意图;Figure 3 is a schematic diagram of the output of the hard disk indicator light when the READY LED signal is at a fixed low level;

图4是READY LED信号为高低交替电平时的硬盘指示灯输出示意图。Figure 4 is a schematic diagram of the output of the hard disk indicator light when the READY LED signal is at high and low levels alternately.

图5是本发明实施例的实现硬盘状态点灯的装置结构图。FIG. 5 is a structural diagram of a device for realizing hard disk status lighting according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明进行详细描述。The present invention will be described in detail below in conjunction with the accompanying drawings.

针对现有技术中存在的处于相同状态的硬盘,但硬盘指示灯的指示状态可能不相同的问题,本发明实施例提供一种实现硬盘状态点灯的方法、装置及存储系统,通过将存储系统中不同类型硬盘的READY LED信号所表示的含义调整为一致,并对READY LED信号进行转换得到驱动信号,由所述驱动信号来驱动硬盘指示灯,如此,能够使得在包括多个硬盘的存储系统中,处于相同状态的硬盘对应的硬盘指示灯的指示状态相同。Aiming at the problem in the prior art that hard disks in the same state may have different indication states, the embodiment of the present invention provides a method, device and storage system for realizing hard disk state lighting. The meanings expressed by the READY LED signals of different types of hard disks are adjusted to be consistent, and the READY LED signals are converted to obtain a driving signal, and the hard disk indicator is driven by the driving signal, so that in a storage system including multiple hard disks , the indication states of the hard disk indicators corresponding to the hard disks in the same state are the same.

图1是本发明实施例的实现硬盘状态点灯的方法流程图。参照图1,所述方法可以包括如下步骤:FIG. 1 is a flowchart of a method for realizing hard disk status lighting according to an embodiment of the present invention. Referring to Figure 1, the method may include the following steps:

步骤101,获取硬盘的类型信息;Step 101, obtaining the type information of the hard disk;

本发明实施例的方法可以应用于具有多个硬盘的存储系统中。所述多个硬盘中包括SAS硬盘和SATA硬盘。在本步骤中,所述类型信息的获取方式为,从硬盘中读取该硬盘的硬件描述信息,根据该硬件描述信息确定硬盘的类型信息。The method in the embodiment of the present invention can be applied to a storage system with multiple hard disks. The multiple hard disks include SAS hard disks and SATA hard disks. In this step, the type information is obtained by reading the hardware description information of the hard disk from the hard disk, and determining the type information of the hard disk according to the hardware description information.

步骤102,当硬盘的类型为SAS硬盘时,将该硬盘对应的READY LED含义位置位;Step 102, when the type of the hard disk is a SAS hard disk, set the meaning position of the READY LED corresponding to the hard disk;

如前所述,SATA规范定义READY LED信号为设备Activity输出,即有数据传输时输出;而SAS规范定义READY LED信号为设备Ready输出或者设备Activity输出,具体地,当READY LED MEANING bit为0时表示设备Ready输出,当READY LED MEANING bit为1(即置位)时表示设备Activity输出。As mentioned earlier, the SATA specification defines the READY LED signal as the device Activity output, that is, output when there is data transmission; while the SAS specification defines the READY LED signal as the device Ready output or the device Activity output, specifically, when the READY LED MEANING bit is 0 Indicates the output of the device Ready, when the READY LED MEANING bit is 1 (that is, set), it indicates the output of the device Activity.

因此,本步骤中,在获取到硬盘的类型信息后,当确定该硬盘为SAS硬盘时,将该硬盘对应的READY LED MEANING bit进行置位,当确定该硬盘为SATA硬盘时,则不处理。这样,就将SAS硬盘和SATA硬盘的READYLED信号所表示的含义调整为一致,即不论是SAS硬盘还是SATA硬盘,READY LED信号均为设备Activity输出。这样,就能够避免将SATA硬盘的数据传输状态与READY LED MEANING bit为0的SAS硬盘的设备准备好状态相混淆。Therefore, in this step, after obtaining the type information of the hard disk, when it is determined that the hard disk is a SAS hard disk, the READY LED MEANING bit corresponding to the hard disk is set, and when it is determined that the hard disk is a SATA hard disk, it is not processed. In this way, the meanings of the READY LED signals of the SAS hard disk and SATA hard disk are adjusted to be consistent, that is, whether it is a SAS hard disk or a SATA hard disk, the READY LED signal is output by the device Activity. In this way, it is possible to avoid confusing the data transmission status of the SATA hard disk with the device ready status of the SAS hard disk whose READY LED MEANING bit is 0.

步骤103,获取硬盘的READY LED信号;Step 103, obtaining the READY LED signal of the hard disk;

可以从与该硬盘连接的硬盘驱动器中获取该硬盘对应的READY LED信号,并将该READY LED信号输出到逻辑可编程器件或者其他可编程器件中。The READY LED signal corresponding to the hard disk can be obtained from the hard disk drive connected to the hard disk, and the READY LED signal is output to logic programmable devices or other programmable devices.

步骤104,当硬盘的READY LED信号为固定低电平或者高低交替电平时,根据所述READY LED信号生成预定频率、高低交替电平的第一驱动信号,以驱动硬盘指示灯按照预定频率闪烁。Step 104, when the READY LED signal of the hard disk is at a fixed low level or high and low alternating levels, generate a first drive signal with a predetermined frequency and high and low alternating levels according to the READY LED signal, so as to drive the hard disk indicator light to flash at a predetermined frequency.

根据硬盘传输状态的不同,硬盘驱动器输出的READY LED信号可能有三种情况:固定低电平、固定高电平和高低交替电平。固定低电平是指在预定时长内READY LED信号保持为低电平,固定高电平是指在预定时长内READY LED信号保持为低电平,高低交替电平是指READY LED信号按照一定频率在高电平和低电平之间转换。According to the different transmission status of the hard disk, the READY LED signal output by the hard disk drive may have three situations: fixed low level, fixed high level and high and low alternating level. Fixed low level means that the READY LED signal remains at low level within a predetermined time period, fixed high level means that the READY LED signal remains at low level within a predetermined time period, and high and low alternating levels mean that the READY LED signal keeps at a certain frequency Toggle between high and low.

如前所述,对于SAS硬盘,将该硬盘对应的READY LED MEANING bit进行置位后,当硬盘在进行数据传输时,READY LED信号为高低交替电平,没有进行数据传输时,READY LED信号为固定高电平。对于SATA硬盘,当硬盘在进行数据传输时,READY LED信号可能为高低交替电平,也可能为固定低电平,没有进行数据传输时,READY LED信号为固定高电平。As mentioned above, for a SAS hard disk, after setting the READY LED MEANING bit corresponding to the hard disk, when the hard disk is transmitting data, the READY LED signal is at high and low levels alternately, and when not transmitting data, the READY LED signal is Fixed high level. For SATA hard drives, when the hard drive is transmitting data, the READY LED signal may be at a high or low level alternately, or may be at a fixed low level. When no data is being transmitted, the READY LED signal is at a fixed high level.

与现有技术直接用READY LED信号驱动硬盘指示灯不同,本发明实施例将READY LED信号进行转换,根据转换得到的驱动信号来驱动硬盘指示灯。在本步骤中,不论硬盘的READY LED信号为固定低电平还是高低交替电平时,都根据所述READY LED信号生成第一驱动信号,通过所述第一驱动信号来驱动硬盘指示灯按照预定频率闪烁。这样,对于不同厂家的硬盘,可以使得其在进行数据传输时,硬盘指示灯的闪烁相同。Different from the prior art that directly uses the READY LED signal to drive the hard disk indicator, the embodiment of the present invention converts the READY LED signal, and drives the hard disk indicator according to the converted drive signal. In this step, regardless of whether the READY LED signal of the hard disk is a fixed low level or a high-low alternating level, the first drive signal is generated according to the READY LED signal, and the hard disk indicator light is driven by the first drive signal at a predetermined frequency. flashing. In this way, for hard disks from different manufacturers, the flashing of the hard disk indicator lights can be the same when data transmission is performed.

可以通过软件处理来生成所述第一驱动信号,也可以通过硬件,例如,通过逻辑可编程器件或者其他可编程器件来生成所述第一驱动信号。不论是软件实现还是硬件实现,都可以采用如下实现方式:The first driving signal may be generated through software processing, or may be generated through hardware, for example, through a logic programmable device or other programmable devices. Whether it is software implementation or hardware implementation, the following implementation methods can be used:

启动一个2比特的计数器;Start a 2-bit counter;

当所述READY LED信号由高电平跳变为低电平时,将所述计数器清0,并按照所述预定频率将所述计数器的计数值增加1;When the READY LED signal changes from a high level to a low level, the counter is cleared to 0, and the count value of the counter is increased by 1 according to the predetermined frequency;

将所述第一驱动信号的逻辑幅值设置为所述计数器的高位计数值,例如,当计数器的高位计数值为1时,将所述第一驱动信号的逻辑幅值设置为1,即该第一驱动信号当前为高电平;当计数器的高位计数值为0时,将所述第一驱动信号的逻辑幅值设置为0,即该第一驱动信号当前为低电平。这样,不论READY LED信号是固定低电平还是高低交替电平,都将其转换为预定频率的高低电平。需要说明的是,该预定频率可以和高低交替电平的READYLED信号的频率相同,也可以不同,也就是说,不管READY LED信号的频率是多少,都可以统一转换为预定频率。Set the logic amplitude of the first drive signal as the high count value of the counter, for example, when the high count value of the counter is 1, set the logic amplitude of the first drive signal to 1, that is, the The first driving signal is currently at a high level; when the count value of the high bit of the counter is 0, the logic amplitude of the first driving signal is set to 0, that is, the first driving signal is currently at a low level. In this way, no matter whether the READY LED signal is a fixed low level or a high and low alternating level, it will be converted into a high and low level with a predetermined frequency. It should be noted that the predetermined frequency can be the same as or different from the frequency of the READY LED signal with alternating high and low levels, that is to say, no matter what the frequency of the READY LED signal is, it can be uniformly converted to the predetermined frequency.

这里,由于第一驱动信号为高低电平信号,其具体的信号值是0和1二者中的一个,为便于描述,在本文中将其定义为第一驱动信号的逻辑幅值,即第一驱动信号的逻辑幅值要么是1,要么是0。Here, since the first driving signal is a high-low level signal, its specific signal value is one of 0 and 1. For the convenience of description, it is defined as the logic amplitude of the first driving signal in this paper, that is, the first The logical magnitude of a drive signal is either 1 or 0.

当然,本领域技术人员也可以采用其他方式来生成所述第一驱动信号。Certainly, those skilled in the art may also use other manners to generate the first driving signal.

其中,所述预定频率可以根据需要进行选择,例如可以为10Hz~20Hz。Wherein, the predetermined frequency can be selected according to needs, for example, it can be 10 Hz-20 Hz.

根据步骤102,SAS硬盘和SATA硬盘的READY LED信号均为设备Activity输出,即硬盘处于非数据传输状态时,READY LED信号为固定高电平,因此,上述方法还可以包括:当硬盘的READY LED信号为固定高电平时,根据所述READY LED信号生成低电平的第二驱动信号,以点亮硬盘指示灯。According to step 102, the READY LED signal of the SAS hard disk and the SATA hard disk are all device Activity outputs, that is, when the hard disk is in the non-data transmission state, the READY LED signal is a fixed high level, therefore, the above method can also include: when the READY LED of the hard disk When the signal is at a fixed high level, a low-level second driving signal is generated according to the READY LED signal to light up the hard disk indicator light.

可以根据仿真波形来体现上述方法的实施效果,具体请参照图2~图4。图中,HDD_LED_IN为硬盘的READY LED信号,LED_G_N为硬盘指示灯输出,高电平有效,CLK为复杂可编程逻辑器件(CPLD)工作时钟,PULSE_16HZ为低频采样时钟。图中LED_G_N是快速脉冲,由于人眼的余辉效应,实际看到的是一个稳定的状态。The implementation effect of the above method can be reflected according to the simulated waveform, please refer to FIG. 2 to FIG. 4 for details. In the figure, HDD_LED_IN is the READY LED signal of the hard disk, LED_G_N is the hard disk indicator output, active high, CLK is the complex programmable logic device (CPLD) working clock, and PULSE_16HZ is the low-frequency sampling clock. The LED_G_N in the figure is a fast pulse. Due to the afterglow effect of the human eye, what is actually seen is a stable state.

对应于上述方法,本发明实施例还提供一种实现硬盘状态点灯的装置,所述装置应用于具有多个硬盘的存储系统中。参照图5,所述装置可以包括:Corresponding to the above method, an embodiment of the present invention further provides a device for realizing hard disk status lighting, and the device is applied to a storage system with multiple hard disks. Referring to Figure 5, the device may include:

第一获取模块10,用于获取硬盘的类型信息;The first obtainingmodule 10 is used to obtain the type information of the hard disk;

置位模块20,用于当硬盘的类型为SAS硬盘时,将该硬盘对应的READYLED含义位置位;Thebit setting module 20 is used to set the READYLED meaning position corresponding to the hard disk when the type of the hard disk is a SAS hard disk;

第二获取模块30,用于获取硬盘的READY LED信号;The second obtainingmodule 30 is used to obtain the READY LED signal of the hard disk;

驱动模块40,用于当硬盘的READY LED信号为固定低电平或者高低交替电平时,根据所述READY LED信号生成预定频率、高低交替电平的第一驱动信号,以驱动硬盘指示灯按照预定频率闪烁。Thedrive module 40 is used to generate a first drive signal with a predetermined frequency and a high and low level according to the READY LED signal when the READY LED signal of the hard disk is at a fixed low level or an alternate high and low level, so as to drive the hard disk indicator light according to a predetermined level. The frequency blinks.

可选地,所述驱动模块40还可以用于:当硬盘的READY LED信号为固定高电平时,根据所述READY LED信号生成低电平的第二驱动信号,以点亮硬盘指示灯。Optionally, thedrive module 40 can also be used for: when the READY LED signal of the hard disk is at a fixed high level, generate a low-level second drive signal according to the READY LED signal to light up the hard disk indicator.

可选地,所述驱动模块40中包括第一驱动子模块(图未示),用于:Optionally, thedrive module 40 includes a first drive sub-module (not shown in the figure), which is used for:

启动一个2比特的计数器;Start a 2-bit counter;

当所述READY LED信号跳变为低电平时,将所述计数器清0,并按照所述预定频率将所述计数器的计数值增加1;When the READY LED signal jumps to a low level, the counter is cleared to 0, and the count value of the counter is increased by 1 according to the predetermined frequency;

将所述第一驱动信号的逻辑幅值设置为所述计数器的高位计数值。and setting the logic amplitude of the first driving signal as the high-order count value of the counter.

其中,所述预定频率可以根据需要进行选择,例如可以为10Hz~20Hz。Wherein, the predetermined frequency can be selected according to needs, for example, it can be 10 Hz-20 Hz.

另外,本发明实施例还提供一种存储系统,所述存储系统包括上述的实现硬盘状态点灯的装置。In addition, an embodiment of the present invention also provides a storage system, the storage system including the above-mentioned device for realizing hard disk status lighting.

综上所述,本发明通过将存储系统中不同类型硬盘的READY LED信号所表示的含义调整为一致,并对READY LED信号进行转换得到驱动信号,由所述驱动信号来驱动硬盘指示灯,如此,能够使得在包括多个硬盘的存储系统中,处于相同状态的硬盘对应的硬盘指示灯的指示状态相同,从而方便用户的使用。To sum up, the present invention adjusts the meanings expressed by the READY LED signals of different types of hard disks in the storage system to be consistent, and converts the READY LED signals to obtain a driving signal, and the hard disk indicator is driven by the driving signal, so In a storage system including multiple hard disks, the indication states of the hard disk indicator lights corresponding to the hard disks in the same state can be made to be the same, thereby facilitating the use of the user.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (9)

CN201210412025.3A2012-10-242012-10-24A kind of method, device and storage system realizing disk state lightingActiveCN102929766B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210412025.3ACN102929766B (en)2012-10-242012-10-24A kind of method, device and storage system realizing disk state lighting

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210412025.3ACN102929766B (en)2012-10-242012-10-24A kind of method, device and storage system realizing disk state lighting

Publications (2)

Publication NumberPublication Date
CN102929766Atrue CN102929766A (en)2013-02-13
CN102929766B CN102929766B (en)2016-03-23

Family

ID=47644570

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210412025.3AActiveCN102929766B (en)2012-10-242012-10-24A kind of method, device and storage system realizing disk state lighting

Country Status (1)

CountryLink
CN (1)CN102929766B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104679641A (en)*2013-11-272015-06-03英业达科技有限公司Server system and control method of read-write indicator lamp thereof
CN106033383A (en)*2015-03-202016-10-19昆达电脑科技(昆山)有限公司Hard disk lamp signal control circuit
CN107908520A (en)*2017-11-092018-04-13安徽皖通邮电股份有限公司A kind of method of logic lighting monitoring LOCALBUS access frequencys
CN109062773A (en)*2018-08-032018-12-21联想(北京)有限公司A kind of information processing method and electronic equipment
CN109933498A (en)*2019-03-212019-06-25浪潮商用机器有限公司 A hybrid lighting system, control device and server for a hard disk
TWI685738B (en)*2018-08-172020-02-21神雲科技股份有限公司Led control method for disk drive
CN113727485A (en)*2021-08-312021-11-30云尖信息技术有限公司Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060061369A1 (en)*2004-09-202006-03-23Marks Kevin TInformation handling system integrated cable tester
CN101202079A (en)*2006-12-152008-06-18英业达股份有限公司Hard disk state indicating system
CN201153336Y (en)*2007-10-312008-11-19佛山市顺德区顺达电脑厂有限公司Control circuit of hard disk drive operating status indicating lamp

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060061369A1 (en)*2004-09-202006-03-23Marks Kevin TInformation handling system integrated cable tester
CN101202079A (en)*2006-12-152008-06-18英业达股份有限公司Hard disk state indicating system
CN201153336Y (en)*2007-10-312008-11-19佛山市顺德区顺达电脑厂有限公司Control circuit of hard disk drive operating status indicating lamp

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104679641A (en)*2013-11-272015-06-03英业达科技有限公司Server system and control method of read-write indicator lamp thereof
CN106033383A (en)*2015-03-202016-10-19昆达电脑科技(昆山)有限公司Hard disk lamp signal control circuit
CN106033383B (en)*2015-03-202018-12-11昆达电脑科技(昆山)有限公司The control circuit of hard disk cresset
CN107908520A (en)*2017-11-092018-04-13安徽皖通邮电股份有限公司A kind of method of logic lighting monitoring LOCALBUS access frequencys
CN109062773A (en)*2018-08-032018-12-21联想(北京)有限公司A kind of information processing method and electronic equipment
TWI685738B (en)*2018-08-172020-02-21神雲科技股份有限公司Led control method for disk drive
CN109933498A (en)*2019-03-212019-06-25浪潮商用机器有限公司 A hybrid lighting system, control device and server for a hard disk
CN113727485A (en)*2021-08-312021-11-30云尖信息技术有限公司Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp

Also Published As

Publication numberPublication date
CN102929766B (en)2016-03-23

Similar Documents

PublicationPublication DateTitle
CN102929766B (en)A kind of method, device and storage system realizing disk state lighting
CN104516802A (en)Method and system for indicating statuses of different types of hard disks
CN106776196A (en)A kind of server hard disc method for monitoring state and system
US8830611B1 (en)Working states of hard disks indicating apparatus
US8996775B2 (en)Backplane controller for managing serial interface configuration based on detected activity
CN107491148A (en)A kind of server hard disc attachment structure
CN107577569A (en)A kind of server hard disc attachment structure and its application process
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
CN105487959A (en)Management method of intel NVMe hard disk
TWI615774B (en)Server system with bmc having hard disk drive monitoring function
CN104484264A (en)Hard disk state indication method and hard disk state indication device
CN205621448U (en)Lamp controlgear is instructed to hard disk
CN104794043A (en)Control method for achieving light-up indication of server hard disk state
CN108563549A (en)A kind of interface hard disk state instruction control system and method based on CPLD-FPGA
CN102376338B (en)Hard disk module
US9619359B2 (en)Server and device for analyzing a signal thereof
CN207301862U (en)A kind of hard disk Active instructions driving lamp in place
CN107765993B (en)Hard disk interface device
TWI564722B (en)Black plane and method for detecting serial general purpose input/output signal thereof
CN107992400A (en)A kind of method for detecting hard disk indication lamp state in storage system
US20200210367A1 (en)External serial at attachment device
CN108874635A (en)A kind of double indicator light parameter module control methods of more hard disks based on CPLD/FPGA
TWI685738B (en)Led control method for disk drive
CN105740116B (en)The detection method of hard disk backboard and its serial universal input output signal
CN107229553A (en)A kind of hard disk based on programmable module in place with Operations Control System and method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp