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 PDFInfo
- Publication number
- CN102929766A CN102929766A CN2012104120253A CN201210412025A CN102929766A CN 102929766 A CN102929766 A CN 102929766A CN 2012104120253 A CN2012104120253 A CN 2012104120253A CN 201210412025 A CN201210412025 A CN 201210412025A CN 102929766 A CN102929766 A CN 102929766A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- signal
- ready
- led signal
- level
- 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
Links
Images
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method, a device and a storage system for turning on state indicator lamps of hard disks, and belongs to the field of computers. The method is applied to the storage system provided with a plurality of hard disks, and comprises the following steps of: acquiring type information of the hard disks; when the hard disks are serial attached SCSI (SAS) hard disks, setting a meaning bit of a READY LED (light-emitting diode) corresponding to each hard disk; acquiring READY LED signals of the hard disks; and when the READY LED signals of the hard disks are at fixed low level or high-low alternate level, generating a preset frequency and a first driving signal of the high-low alternate level according to the READY LED signals so as to drive indicator lamps of the hard disks to flash according to the preset frequency. According to the method, in the storage system comprising the plurality of hard disks, the hard disk indicator lamps corresponding to the hard disks in the same state have the same indicating states.
Description
Technical field
The present invention relates to computer realm, relate in particular to a kind of method, device and storage system that realizes that disk state is lit a lamp.
Background technology
Use a large amount of hard disks in the storage system, each hard disk requires corresponding hard disk indication lamp to indicate the various states of hard disk.Generally speaking, pilot lamp does not go out when the link of hard disk connects (LINK), and pilot lamp is long bright when hard disk link LINK, pilot lamp fast blink when hard disk carries out data transmission.
The scheme that the realization disk state of commonly using is at present lit a lamp has following two kinds:
Mode one, by serial connecting small computer system interface (Serial Attached SCSI, SAS) controller, perhaps Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, SATA) controller produces.The prerequisite that this scheme realizes is that hard disk controller provides relevant pilot lamp signal.All can connect hard disk with backboard in the general storage system, like this in the more situation of hard disk, need more cabling, connector also needs more pin between eutergum, thereby sample can increase cost and design complexities.
Mode two, the READY LED signal by hard disk drives hard disk indication lamp.The hard disk drive that is connected with hard disk can provide according to the data transmission state of hard disk this READY LED signal, this READY LED signal is the high-low level signal, by this high-low level signal is outputed to hard disk indication lamp, can control the unlatching of hard disk indication lamp or close.This scheme does not need to connect a large amount of cablings from hard disk controller, but simplified design.In addition, even will put in the situation that modulating signal draws in the controller inconvenience, also can adopt this scheme.
According to the difference of hard disk type, the state of the READY LED signal of the hard disk drive output that connects with this hard disk may be not identical.For example, this signal of SATA normalized definition is device activity (Activity) output, exports when namely data transmission being arranged.According to the realization of different producers, that exports when data transmission is arranged may be low level signal (hard disk indication lamp is bright), also may just replace level signal (hard disk indication lamp flicker); It is high level signal (hard disk indication lamp goes out) when not having data transmission.
This signal of SAS normalized definition is that equipment is ready to (Ready) output or device A ctivity output, and the difference that arranges according to READY LED implication position (READY LED MEANING bit) is defined as follows respectively:
READY LED MEANING bit is 0: it is low level (hard disk indication lamp is bright) that equipment is ready to rear signal, for height replaces level signal (hard disk indication lamp flicker), is high level (hard disk indication lamp goes out) when equipment is not ready for when data transmission is arranged.
READY LED MEANING bit is 1: only being alternately level signal (hard disk indication lamp flicker) of height when data transmission is arranged, is high level (hard disk indication lamp goes out) when not having data transmission.
Because generally can use a large amount of hard disks in the storage system, and the type of hard disk might be not identical, like this, just might cause for same disk state, the indicating status of hard disk indication lamp is not identical, cause puzzlement for user's use.For example, for the SATA hard disk, when carrying out data transmission, its pilot lamp may be grown bright, and for the SAS hard disk, when READY LED MEANING bit was 0, equipment was ready to but does not carry out data transmission, and its pilot lamp also is long bright.And, even what use is the hard disk of same type, what for example use all is the SATA hard disk, also might exist because the difference of manufacturer causes for same disk state, the indicating status of hard disk indication lamp is not identical yet, for example, hard disk is when carrying out data transmission, and hard disk indication lamp might be long bright or flicker, and the flicker frequency of pilot lamp also may be inconsistent, even may look it is long bright because flicker is too fast.
Summary of the invention
In view of this, the purpose of this invention is to provide a kind of method, device and storage system that realizes that disk state is lit a lamp, so that in comprising the storage system of a plurality of hard disks, the indicating status that is in hard disk indication lamp corresponding to the hard disk of equal state is identical.
For achieving the above object, it is as follows to the invention provides technical scheme:
A kind of method that realizes that disk state is lit a lamp is applied to have in the storage system of a plurality of hard disks, and described method comprises:
Obtain the type information of hard disk;
When the type of hard disk is the SAS hard disk, the position, READY LED implication position that this hard disk is corresponding;
Obtain the READY LED signal of hard disk;
When the READY of hard disk LED signal is fixing low level or height alternately during level, according to described READY LED signal generate preset frequency, height alternately level first drive signal, glimmer according to preset frequency with the driving hard disk indication lamp.
A kind of device of realizing that disk state is lit a lamp is applied to have in the storage system of a plurality of hard disks, and described device comprises:
The first acquisition module is for the type information that obtains hard disk;
The set module is used for when the type of hard disk is the SAS hard disk position, READYLED implication position that this hard disk is corresponding;
The second acquisition module is for the READY LED signal that obtains hard disk;
Driver module, be used for when the READY of hard disk LED signal for fixing low level or when just replacing level, generate alternately the first driving signal of level of preset frequency, height according to described READY LED signal, glimmer according to preset frequency to drive hard disk indication lamp.
Compared with prior art, the present invention is adjusted into unanimously by the implication that the READYLED signal of dissimilar hard disks in the storage system is represented, and READY LED signal is converted to the driving signal, drive hard disk indication lamp by described driving signal, so, can be so that in comprising the storage system of a plurality of hard disks, the indicating status that is in hard disk indication lamp corresponding to the hard disk of equal state is identical, thereby user-friendly.
Description of drawings
Fig. 1 is the method flow diagram that the realization disk state of the embodiment of the invention is lit a lamp;
Hard disk indication lamp when Fig. 2 is READY LED signal for fixing high level is exported synoptic diagram;
Hard disk indication lamp when Fig. 3 is READY LED signal for fixing low level is exported synoptic diagram;
Fig. 4 is that READY LED signal is the hard disk indication lamp output synoptic diagram when just replacing level.
Fig. 5 is the structure drawing of device that the realization disk state of the embodiment of the invention is lit a lamp.
Embodiment
Describe the present invention below in conjunction with accompanying drawing.
For the hard disk that is in equal state that exists in the prior art, but the indicating status of hard disk indication lamp may not identical problem, the embodiment of the invention provides a kind of method that realizes that disk state is lit a lamp, device and storage system, be adjusted into unanimously by the represented implication of READY LED signal with dissimilar hard disks in the storage system, and READY LED signal is converted to the driving signal, drive hard disk indication lamp by described driving signal, so, can be so that in comprising the storage system of a plurality of hard disks, the indicating status that is in hard disk indication lamp corresponding to the hard disk of equal state is identical.
Fig. 1 is the method flow diagram that the realization disk state of the embodiment of the invention is lit a lamp.With reference to Fig. 1, described method can comprise the steps:
The method of the embodiment of the invention can be applied to have in the storage system of a plurality of hard disks.Comprise SAS hard disk and SATA hard disk in described a plurality of hard disk.In this step, the obtain manner of described type information is, reads the hardware description information of this hard disk from hard disk, determines the type information of hard disk according to this hardware description information.
As previously mentioned, SATA normalized definition READY LED signal is device A ctivity output, exports when namely data transmission being arranged; And SAS normalized definition READY LED signal is equipment Ready output or device A ctivity output, particularly, indication equipment Ready output when READY LED MEANING bit is 0 is when READY LED MEANING bit is that 1(is set) time indication equipment Activity output.
Therefore, in this step, after getting access to the type information of hard disk, when definite this hard disk was the SAS hard disk, the READY LED MEANING bit that this hard disk is corresponding carried out set, when definite this hard disk is the SATA hard disk, does not then process.Like this, just SAS hard disk and the represented implication of the READYLED signal of SATA hard disk are adjusted into unanimously, no matter namely be SAS hard disk or SATA hard disk, READY LED signal is device A ctivity output.Like this, just can avoid the data transmission state of SATA hard disk and READY LED MEANING bit is that the device ready of 0 SAS hard disk is obscured mutually.
Can from hard disk drive that this hard disk connects obtain READY LED signal corresponding to this hard disk, and this READY LED signal is outputed in programable logic device or other programming devices.
According to the difference of hard disk transmission state, the READY LED signal of hard disk drive output may have three kinds of situations: fixedly low level, fixing high level and just replace level.Fixedly low level refers to that READY LED signal remains low level in scheduled duration, fixedly high level refers to that READY LED signal remains low level in scheduled duration, and height alternately level refers to that READY LED signal changes between high level and low level according to certain frequency.
As previously mentioned, for the SAS hard disk, after the READY LED MEANING bit that this hard disk is corresponding carries out set, when hard disk when carrying out data transmission, READY LED signal is alternately level of height, and when not carrying out data transmission, READY LED signal is fixing high level.For the SATA hard disk, when hard disk when carrying out data transmission, READY LED signal may be height level alternately, also may be fixing low level, when not carrying out data transmission, READY LED signal is fixing high level.
Directly use READY LED signal driver hard disk indication lamp different from prior art, the embodiment of the invention is changed READY LED signal, drives hard disk indication lamp according to the driving signal that is converted to.In this step, no matter the READY LED signal of hard disk is fixing low level or height alternately during level, all generate the first driving signal according to described READY LED signal, drive hard disk indication lamp by described the first driving signal and glimmer according to preset frequency.Like this, for the hard disk of different manufacturers, can be so that it be when carrying out data transmission, the shimmery picture of hard disk indication lamp is together.
Can process to generate described first by software and drive signal, also can pass through hardware, for example, generate described first by programable logic device or other programming devices and drive signal.No matter be that software is realized or hardware is realized, can adopt following implementation:
Start the counter of 2 bits;
When described READY LED signal is low level by the high level saltus step, described counter is clear 0, and according to described preset frequency the count value of described counter is increased by 1;
The described first logic amplitude that drives signal is set to the high-order count value of described counter, and for example, when the high-order count value of counter was 1, the described first logic amplitude that drives signal was set to 1, and namely this first driving signal is current is high level; When the high-order count value of counter was 0, the described first logic amplitude that drives signal was set to 0, and namely this first driving signal is current is low level.Like this, no matter READY LED signal is fixing low level or height level alternately, all be converted into the high-low level of preset frequency.Need to prove that this preset frequency can be identical with the frequency of the READYLED signal that just replaces level, also can be different, that is to say, no matter how many frequencies of READY LED signal is, can unify to be converted to preset frequency.
Here, because first to drive signal be the high-low level signal, its concrete signal value is 0 and 1 in the two one, for ease of describing, in this article it is defined as the first logic amplitude that drives signal, namely first drives the logic amplitude of signal or be 1, or be 0.
Certainly, those skilled in the art also can adopt other modes to generate described first and drive signal.
Wherein, described preset frequency can be selected as required, for example can be 10Hz ~ 20Hz.
According to step 102, the READY LED signal of SAS hard disk and SATA hard disk is device A ctivity output, be that hard disk is when being in non-data transmission state, READY LED signal is fixing high level, therefore, said method can also comprise: when the READY of hard disk LED signal during for fixing high level, generate low level the second driving signal according to described READY LED signal, to light hard disk indication lamp.
Can embody according to simulation waveform the implementation result of said method, specifically please refer to Fig. 2~Fig. 4.Among the figure, HDD_LED_IN is the READY LED signal of hard disk, and LED_G_N is hard disk indication lamp output, and high level is effective, and CLK is CPLD (CPLD) work clock, and PULSE_16HZ is the low-frequency sampling clock.LED_G_N is fast-pulse among the figure, because the afterglow effect of human eye, actual what see is a stable state.
Corresponding to said method, the embodiment of the invention also provides a kind of device of realizing that disk state is lit a lamp, and described application of installation is in the storage system with a plurality of hard disks.With reference to Fig. 5, described device can comprise:
The first acquisition module 10 is for the type information that obtains hard disk;
The second acquisition module 30 is for the READY LED signal that obtains hard disk;
Alternatively, described driver module 40 can also be used for: when the READY of hard disk LED signal during for fixing high level, generate low level the second driving signal according to described READY LED signal, to light hard disk indication lamp.
Alternatively, comprise the first driven element module (not shown) in the described driver module 40, be used for:
Start the counter of 2 bits;
When the saltus step of described READY LED signal is low level, described counter is clear 0, and according to described preset frequency the count value of described counter is increased by 1;
The described first logic amplitude that drives signal is set to the high-order count value of described counter.
Wherein, described preset frequency can be selected as required, for example can be 10Hz ~ 20Hz.
In addition, the embodiment of the invention also provides a kind of storage system, and described storage system comprises the device that above-mentioned realization disk state is lit a lamp.
In sum, the present invention is adjusted into unanimously by the represented implication of READY LED signal with dissimilar hard disks in the storage system, and READY LED signal is converted to the driving signal, drive hard disk indication lamp by described driving signal, so, can be so that in comprising the storage system of a plurality of hard disks, the indicating status that is in hard disk indication lamp corresponding to the hard disk of equal state is identical, thereby user-friendly.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.
Claims (9)
1. a method that realizes that disk state is lit a lamp is applied to have in the storage system of a plurality of hard disks, it is characterized in that described method comprises:
Obtain the type information of hard disk;
When the type of hard disk is the SAS hard disk, the position, READY LED implication position that this hard disk is corresponding;
Obtain the READY LED signal of hard disk;
When the READY of hard disk LED signal is fixing low level or height alternately during level, according to described READY LED signal generate preset frequency, height alternately level first drive signal, glimmer according to preset frequency with the driving hard disk indication lamp.
2. the method for claim 1 is characterized in that, also comprises:
When the READY of hard disk LED signal during for fixing high level, generate low level the second driving signal according to described READY LED signal, to light hard disk indication lamp.
3. method as claimed in claim 1 or 2 is characterized in that, describedly is fixing low level or height alternately during level when the READYLED of hard disk signal, generates the first driving signal according to described READY LED signal, specifically comprises:
Start the counter of 2 bits;
When the saltus step of described READY LED signal is low level, described counter is clear 0, and according to described preset frequency the count value of described counter is increased by 1;
The described first logic amplitude that drives signal is set to the high-order count value of described counter.
4. method as claimed in claim 3 is characterized in that:
Described preset frequency is 10Hz ~ 20Hz.
5. a device of realizing that disk state is lit a lamp is applied to have in the storage system of a plurality of hard disks, it is characterized in that described device comprises:
The first acquisition module is for the type information that obtains hard disk;
The set module is used for when the type of hard disk is the SAS hard disk position, READYLED implication position that this hard disk is corresponding;
The second acquisition module is for the READY LED signal that obtains hard disk;
Driver module, be used for when the READY of hard disk LED signal for fixing low level or when just replacing level, generate alternately the first driving signal of level of preset frequency, height according to described READY LED signal, glimmer according to preset frequency to drive hard disk indication lamp.
6. device as claimed in claim 5 is characterized in that, described driver module also is used for:
When the READY of hard disk LED signal during for fixing high level, generate low level the second driving signal according to described READY LED signal, to light hard disk indication lamp.
7. such as claim 4 or 5 described devices, it is characterized in that, comprise the first driven element module in the described driver module, be used for:
Start the counter of 2 bits;
When the saltus step of described READY LED signal is low level, described counter is clear 0, and according to described preset frequency the count value of described counter is increased by 1;
The described first logic amplitude that drives signal is set to the high-order count value of described counter.
8. device as claimed in claim 7 is characterized in that:
Described preset frequency is 10Hz ~ 20Hz.
9. a storage system is characterized in that, comprises the device of lighting a lamp such as each described realization disk state among the claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210412025.3A CN102929766B (en) | 2012-10-24 | 2012-10-24 | A kind of method, device and storage system realizing disk state lighting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210412025.3A CN102929766B (en) | 2012-10-24 | 2012-10-24 | A kind of method, device and storage system realizing disk state lighting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102929766A true CN102929766A (en) | 2013-02-13 |
CN102929766B CN102929766B (en) | 2016-03-23 |
Family
ID=47644570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210412025.3A Active CN102929766B (en) | 2012-10-24 | 2012-10-24 | A kind of method, device and storage system realizing disk state lighting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102929766B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679641A (en) * | 2013-11-27 | 2015-06-03 | 英业达科技有限公司 | Server system and control method of read-write indicator lamp thereof |
CN106033383A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Hard disk lamp signal control circuit |
CN107908520A (en) * | 2017-11-09 | 2018-04-13 | 安徽皖通邮电股份有限公司 | A kind of method of logic lighting monitoring LOCALBUS access frequencys |
CN109062773A (en) * | 2018-08-03 | 2018-12-21 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN109933498A (en) * | 2019-03-21 | 2019-06-25 | 浪潮商用机器有限公司 | A kind of mixing lighting system, control device and the server of hard disk |
TWI685738B (en) * | 2018-08-17 | 2020-02-21 | 神雲科技股份有限公司 | Led control method for disk drive |
CN113727485A (en) * | 2021-08-31 | 2021-11-30 | 云尖信息技术有限公司 | Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060061369A1 (en) * | 2004-09-20 | 2006-03-23 | Marks Kevin T | Information handling system integrated cable tester |
CN101202079A (en) * | 2006-12-15 | 2008-06-18 | 英业达股份有限公司 | Hard disk status indicating system |
CN201153336Y (en) * | 2007-10-31 | 2008-11-19 | 佛山市顺德区顺达电脑厂有限公司 | Control circuit of hard disk drive operating status indicating lamp |
-
2012
- 2012-10-24 CN CN201210412025.3A patent/CN102929766B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060061369A1 (en) * | 2004-09-20 | 2006-03-23 | Marks Kevin T | Information handling system integrated cable tester |
CN101202079A (en) * | 2006-12-15 | 2008-06-18 | 英业达股份有限公司 | Hard disk status indicating system |
CN201153336Y (en) * | 2007-10-31 | 2008-11-19 | 佛山市顺德区顺达电脑厂有限公司 | Control circuit of hard disk drive operating status indicating lamp |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679641A (en) * | 2013-11-27 | 2015-06-03 | 英业达科技有限公司 | Server system and control method of read-write indicator lamp thereof |
CN106033383A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Hard disk lamp signal control circuit |
CN106033383B (en) * | 2015-03-20 | 2018-12-11 | 昆达电脑科技(昆山)有限公司 | The control circuit of hard disk cresset |
CN107908520A (en) * | 2017-11-09 | 2018-04-13 | 安徽皖通邮电股份有限公司 | A kind of method of logic lighting monitoring LOCALBUS access frequencys |
CN109062773A (en) * | 2018-08-03 | 2018-12-21 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
TWI685738B (en) * | 2018-08-17 | 2020-02-21 | 神雲科技股份有限公司 | Led control method for disk drive |
CN109933498A (en) * | 2019-03-21 | 2019-06-25 | 浪潮商用机器有限公司 | A kind of mixing lighting system, control device and the server of hard disk |
CN113727485A (en) * | 2021-08-31 | 2021-11-30 | 云尖信息技术有限公司 | Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp |
Also Published As
Publication number | Publication date |
---|---|
CN102929766B (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102929766B (en) | A kind of method, device and storage system realizing disk state lighting | |
US8830611B1 (en) | Working states of hard disks indicating apparatus | |
US8183789B2 (en) | Lighting system for avionics applications and control method thereof | |
CN104516802A (en) | Method and system for indicating statuses of different types of hard disks | |
CN105679366B (en) | Portable multifunctional off-line recorder | |
CN105573895B (en) | A kind of hard disk indication lamp design method based on dual control storage | |
CN103810962A (en) | Display device and method for driving the same | |
CN205621448U (en) | Lamp controlgear is instructed to hard disk | |
CN102376338B (en) | Hard disk module | |
CN107765993B (en) | Hard disk interface device | |
CN104090833B (en) | Server and signal resolver thereof | |
CN102841838B (en) | Device, system and method for automatically detecting inter-integrated circuit (I2C) and SGPIO (serious general-purpose input/output) | |
US8225023B2 (en) | Indicator control apparatus | |
US20200210367A1 (en) | External serial at attachment device | |
CN106033383A (en) | Hard disk lamp signal control circuit | |
CN209928235U (en) | External equipment and system for refrigerator | |
CN208509331U (en) | Wireless light emitting module | |
CN110955623A (en) | Display with USB Type C interface | |
CN101769984B (en) | Test method of light emitting diode of storage device and test tool thereof | |
CN201331732Y (en) | Hard disk carriage capable of mounting different kinds of hard disks | |
US8719558B2 (en) | Distinguishing circuit | |
CN201491321U (en) | DMX decoder address setting system | |
CN101964171B (en) | Data transmission method | |
CN110895502B (en) | Control method and device for hard disk state indicating device, electronic equipment and storage medium | |
CN114895612A (en) | Simulation system and simulation control method for DSP chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |