CN106960689A - Control the method and system of warning light - Google Patents
Control the method and system of warning light Download PDFInfo
- Publication number
- CN106960689A CN106960689A CN201710191918.2A CN201710191918A CN106960689A CN 106960689 A CN106960689 A CN 106960689A CN 201710191918 A CN201710191918 A CN 201710191918A CN 106960689 A CN106960689 A CN 106960689A
- Authority
- CN
- China
- Prior art keywords
- ssd
- error
- error message
- controller
- warning light
- 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
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/325—Display of status information by lamps or LED's
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Debugging And Monitoring (AREA)
Abstract
Present disclose provides a kind of method for controlling warning light, this method includes:The error message of solid magnetic disc SSD records is obtained, wherein, error message includes the one or more at least following information:There is link error between SSD and CPU, SSD current environmental temperature is more than default environment temperature, SSD use time and exceeds default lifetime limitation value, SSD storage medium mistake;According to the error message of acquisition, the corresponding type of errors of SSD are determined;And according to the type of error determined, warning light is controlled.The disclosure additionally provides a kind of system, a kind of processor and a kind of storage medium of control warning light.
Description
Technical field
This disclosure relates to a kind of method and system of control warning light.
Background technology
NVMe SSD (Non-Volatile Memory express Solid State Drives, referred to as solid-state magnetic
Disk) be based on flash-type storage medium design agreement solid magnetic disc (also as solid disk), it is used as a kind of new high-performance
SSD greatly improves the read or write speed of storage medium, while shortening CPU (Central Processing Unit, abbreviation
For central processing unit) access time between storage medium.Being brought for SSD U.2 when hot plug is provided makes
The convenience used, but the lighting mechanism for the Error lamps on backboard does not have effective lighting mechanism but, is still to continue to use
SATA (the Serial Advanced of PCH (pre-Compile Header, referred to as PCH) pattern
Technology Attachment, referred to as Serial Advanced Technology Attachment) mode, i.e., do not report an error.
The problem of not reporting an error is exactly that any letter is can't see from the front panel of server when being broken down on link
Breath, Consumer's Experience is poor.
The content of the invention
An aspect of this disclosure provides a kind of method for controlling warning light, including:Obtain solid magnetic disc SSD records
Error message, wherein, above-mentioned error message includes the one or more at least following information:There is link between SSD and CPU
Mistake, SSD current environmental temperature are more than default environment temperature, SSD use time and exceed default lifetime limitation value, SSD
Storage medium mistake;According to the error message of acquisition, the corresponding type of errors of above-mentioned SSD are determined;And according to the mistake determined
Type, is controlled to warning light by mistake.
Alternatively, obtaining the error message of solid magnetic disc SSD records includes:Baseboard controller performs reading to above-mentioned SSD
Operation, to read the error message of above-mentioned SSD records, and is transferred to backplane controller by the error message of reading, wherein, it is above-mentioned
Baseboard controller is the controller being arranged on computer substrate, and above-mentioned backplane controller is the control being arranged on computer back panel
Device processed;And/or above-mentioned backplane controller performs read operation to above-mentioned SSD, to read the error message of above-mentioned SSD records.
Alternatively, baseboard controller, which performs read operation to above-mentioned SSD, includes baseboard controller by SMBus to above-mentioned
SSD performs read operation;And above-mentioned backplane controller performs read operation to above-mentioned SSD and passed through including above-mentioned backplane controller
Reserved pin on above-mentioned SSD performs read operation to above-mentioned SSD.
Alternatively, before the error message of solid magnetic disc SSD records is obtained, the above method also includes:Above-mentioned SSD is performed
Debugging is operated, to find corresponding error message;And above-mentioned SSD records found error message, wherein, different mistakes
Information Store is in above-mentioned storage device in same or different storage region.
Alternatively, according to the type of error determined, before being controlled to warning light, the above method also includes:Wound
The mapping relations built between type of error and control instruction;And by the mapping relations storage of establishment in the mapping table, Yi Jigen
According to the type of error determined, warning light is controlled including:According to the type of error determined, above-mentioned mapping table is inquired about,
With the type of error for obtaining with determining corresponding target control instruction;And carried according to above-mentioned target control instruction control is above-mentioned
Show lamp.
Another aspect of the disclosure provides a kind of system for controlling warning light, including:Acquisition module, it is solid for obtaining
The error message of state disk SSD records, wherein, above-mentioned error message includes the one or more at least following information:SSD with
There is link error between CPU, SSD current environmental temperature is more than default environment temperature, SSD use time and exceeds the default longevity
Order limiting value, SSD storage medium mistake;Determining module, for the error message according to acquisition, determines that above-mentioned SSD is corresponding
Type of error;And control module, for according to the type of error determined, being controlled to warning light.
Alternatively, above-mentioned acquisition module includes:First read operation module, for make it that baseboard controller is held to above-mentioned SSD
Row read operation, to read the error message of above-mentioned SSD records, and is transferred to backplane controller by the error message of reading, its
In, aforesaid substrate controller is the controller being arranged on computer substrate, and above-mentioned backplane controller is carried on the back to be arranged on computer
Controller on plate;And/or the second read operation module, read operation is performed for causing above-mentioned backplane controller to above-mentioned SSD,
To read the error message of above-mentioned SSD records.
Alternatively, the first read operation module, is additionally operable to so that baseboard controller performs reading by SMBus to above-mentioned SSD
Operation;And the second read operation module, it is additionally operable to cause above-mentioned backplane controller by the reserved pin on above-mentioned SSD to above-mentioned
SSD performs read operation.
Alternatively, said system also includes:Enquiry module, for obtain solid magnetic disc SSD record error message it
Before, above-mentioned SSD performs debugging operation, to find corresponding error message;And logging modle, for make it that above-mentioned SSD is recorded
The error message found, wherein, different error messages is stored in same or different storage in above-mentioned storage device
In region.
Alternatively, said system also includes:Creation module, for according to the type of error determined, entering to warning light
Before row control, the mapping relations between type of error and control instruction are created;And memory module, for by the mapping of establishment
Relation is stored in the mapping table, and above-mentioned control module includes:Query unit, for according to the type of error determined, looking into
Above-mentioned mapping table is ask, is instructed with the corresponding target control of the type of error for obtaining with determining;And control unit, for basis
The above-mentioned warning light of above-mentioned target control instruction control.
Another aspect of the present disclosure provides a kind of non-volatile memory medium, and be stored with computer executable instructions, on
Stating instruction is used to realize method as described above when executed.
Another aspect of the present disclosure provides a kind of computer program, and above computer program includes the executable finger of computer
Order, above-mentioned instruction is used to realize method as described above when executed.
Brief description of the drawings
In order to be more fully understood from the disclosure and its advantage, referring now to the following description with reference to accompanying drawing, wherein:
Fig. 1 diagrammatically illustrates the application scenarios of the method and system of control warning light in accordance with an embodiment of the present disclosure;
Fig. 2 diagrammatically illustrates the flow chart of the method for control warning light in accordance with an embodiment of the present disclosure;
Fig. 3 A diagrammatically illustrate the Organization Chart of controller in accordance with an embodiment of the present disclosure, SSD and warning light;
Fig. 3 B diagrammatically illustrate the Organization Chart of the controller, SSD and warning light according to another embodiment of the disclosure;
Fig. 3 C diagrammatically illustrate the Organization Chart of the controller, SSD and warning light according to another embodiment of the disclosure;
Fig. 4 A diagrammatically illustrate the flow chart of the method for optional control warning light in accordance with an embodiment of the present disclosure;
Fig. 4 B diagrammatically illustrate the flow chart of the method for the optional control warning light according to another embodiment of the disclosure;
Fig. 5 A diagrammatically illustrate the flow chart that SSD in accordance with an embodiment of the present disclosure is misremembered;
Fig. 5 B diagrammatically illustrate the flow chart misremembered according to the SSD of another embodiment of the disclosure;
Fig. 6 diagrammatically illustrates the block diagram of the system of control warning light in accordance with an embodiment of the present disclosure;And
Fig. 7 diagrammatically illustrates the block diagram of the system of the control warning light according to another embodiment of the present disclosure.
Embodiment
Hereinafter, it will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are simply exemplary
, and it is not intended to limit the scope of the present disclosure.In addition, in the following description, the description to known features and technology is eliminated, with
Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.Used here as
Word " one ", " one (kind) " and "the" etc. should also include " multiple ", the meaning of " a variety of ", unless context clearly refers in addition
Go out.In addition, term " comprising " as used herein, "comprising" etc. indicate the presence of the feature, step, operation and/or part,
But it is not excluded that in the presence of or add one or more other features, step, operation or part.
What all terms (including technology and scientific terminology) as used herein were generally understood with those skilled in the art
Implication, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification
Implication, without that should be explained with idealization or excessively mechanical mode.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart
Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer,
The processor of special-purpose computer or other programmable data processing units, so that these instructions can be with when by the computing device
Create the device for realizing function/operation illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately
Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for the instruction that is stored with, should
Computer program product is available for instruction execution system use or combined command execution system to use.In the context of the disclosure
In, computer-readable medium can include, store, transmit, propagate or transmit the arbitrary medium of instruction.For example, calculating
Machine computer-readable recording medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium.
The specific example of computer-readable medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD
(CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
The application scenarios for the method and system that the disclosure is provided can be mobile terminal, terminal or similar
Arithmetic unit.So that application scenarios are terminal as an example, the control that Fig. 1 diagrammatically illustrates in accordance with an embodiment of the present disclosure is carried
Show the application scenarios of the method and system of lamp.Computer can include one or more processors, and (processor can be included but not
It is limited to the processing unit of Micro-processor MCV or PLD FPGA etc., Fig. 1 shows that processor includes the feelings of two
Programmable controller 106 (Psoc) in condition, respectively service management controller 104 (BMC) and piece), consolidating for data storage
State disk 102 (SSD) (such as NVMe SSD) and for indicating whether wrong warning light 108.Those of ordinary skill in the art
It is appreciated that the structure shown in Fig. 1 is only signal, it does not cause to limit to the structure of above-mentioned electronic installation.For example, computer
Terminal may also include than shown in Fig. 1 more either less components or with the configuration different from shown in Fig. 1.
Embodiment of the disclosure provides a kind of method for controlling warning light.
Fig. 2 diagrammatically illustrates the flow chart of the method for control warning light in accordance with an embodiment of the present disclosure.Such as Fig. 2 institutes
Show, this method can include following operation:
In operation S201, the error message of solid magnetic disc SSD records is obtained, wherein, error message includes at least following
One or more in information:There is link error between SSD and CPU, SSD current environmental temperature is more than default environment temperature
Degree, SSD use time exceed default lifetime limitation value, SSD storage medium mistake.
In operation S202, according to the error message of acquisition, the corresponding type of errors of SSD are determined.
In operation S203, according to the type of error determined, warning light is controlled.
During implementation, Psoc as shown in Figure 1 can be used to perform aforesaid operations S201~S203, and SSD can be set
Count into the storage medium with mistake investigation and writing function.Specifically, SSD can detect following state in real time:SSD and CPU
Between Link State, SSD environment temperature, SSD use time and SSD storage medium etc., if finding above-mentioned state
Error, then can be by corresponding error message record in SSD.So, Psoc can just obtain the error message recorded in SSD,
And the corresponding type of error of error message is analyzed, to control warning light based on type of error.
Further, Psoc obtain the approach of error message recorded in SSD can include it is a variety of, such as can be directly from SSD
It is middle to obtain, it can also be obtained indirectly from SSD, can also be using the acquisition from SSD by the way of being directly or indirectly combined.
In addition, in embodiment of the disclosure, pair between the type of error of error message and the bright light pattern of warning light
Should be related to flexibly to set according to the actual requirements, do not limit herein., can be according to shown in table 1 by taking NVMe SSD as an example
Corresponding relation controls warning light.
Table 1
In the related art, due to generally by upper strata (such as OS (Operating System, referred to as operating system) layer
Face) the problem of go to find on link, then reinform and be arranged on the PSoc on backboard to light warning light, thus respond it is relatively slow,
Respond ageing undesirable, and be related to multiple parts and the collaborative development of team, implement complexity higher.
Different from the resolving ideas of correlation technique from top to down, the disclosure uses resolving ideas from below to up, by SSD certainly
The Psoc that row finds and recorded on SSD relevant error, such backboard, which can just obtain error message of the record in SSD, to be come
Bright warning light, thus response is very fast, responds ageing more satisfactory, and need not be related to multiple parts and the collaborative development of team,
Implement complexity relatively low.
As a kind of optional embodiment, obtaining the error message of solid magnetic disc SSD records can include:Baseboard controller
Read operation is performed to SSD, to read the error message of SSD records, and the error message of reading backplane controller is transferred to,
Wherein, baseboard controller is the controller being arranged on computer substrate, and backplane controller is to be arranged on computer back panel
Controller;And/or backplane controller performs read operation to SSD, to read the error message of SSD records.
In other words, the error message of SSD records can be at least obtained by three kinds of modes:Mode one, baseboard controller is straight
The error message read and recorded in SSD is connect, then by the information transfer read to backplane controller;Mode two, backplane controller
Directly read the error message recorded in SSD;Mode three, baseboard controller directly reads the error message recorded in SSD, then will
The information transfer read is to backplane controller, and in baseboard controller poll other equipment, direct by backplane controller
Read the error message recorded in SSD.Wherein, baseboard controller is the controller being arranged on computer substrate, such as BMC.The back of the body
Plate controller is the controller being arranged on computer back panel, such as Psoc.
Below with reference to Fig. 3 A~Fig. 3 C, the method shown in Fig. 2 is described further in conjunction with specific embodiments.
Fig. 3 A diagrammatically illustrate the Organization Chart of controller in accordance with an embodiment of the present disclosure, SSD and warning light.Such as Fig. 3 A
It is shown, in terminal, service management controller 104 be connected on solid magnetic disc 102 and piece programmable controller 106 it
Between, warning light 108 is connected with programmable controller on piece 106.In this case, without changing the hardware knot of terminal
Structure, service management controller 104 is read after the error message in solid magnetic disc 102 in real time, is transmitted to programmable control on piece
Bright light pattern of the programmable controller 106 further according to the Type Control warning light 108 of error message on device 106 processed, piece.For example,
Assuming that the error message that programmable controller 106 is obtained on piece is that " have CRC (Cyclic on NVMe physical link
Redundancy Check, referred to as CRC) mistake or the problems such as loose contact ", then can control warning light
108 length are bright.
Obviously, the advantage of the program be in the case where not changing the original hardware configuration of terminal, can be timely
Effectively find SSD relevant error and control warning light to be alerted with corresponding ignition mode.
That is, by embodiment of the disclosure, reducing the complexity of control logic, control is directly realized by BMC
Logic, any modification need not be made to existing hardware design just can conveniently realize, and response is rapid.
Fig. 3 B diagrammatically illustrate the Organization Chart of controller in accordance with an embodiment of the present disclosure, SSD and warning light.Such as Fig. 3 B
Shown, in terminal, not only service management controller 104 is connected to solid magnetic disc 102 and programmable controller on piece
Between 106, warning light 108 is connected with programmable controller on piece 106, and needs to change the hardware configuration of terminal,
Programmable controller 106 is directly connected to some pin on solid magnetic disc 102 i.e. on piece.In this case, service management
The poll solid magnetic disc 102 of controller 104 is simultaneously read after error message therein, and the error message of reading, which is transferred on piece, to compile
On range controller 106, piece programmable controller 106 further according to the Type Control warning light 108 of error message bright light pattern,
Programmable controller 106 on the gap of the complete solid magnetic disc 102 of the poll of service management controller 104 then poll other equipment, piece
The error message recorded in solid magnetic disc 102 can be voluntarily read as supplement, and then according to the error message voluntarily read
The bright light pattern of Type Control warning light 108.For example, it is assumed that the error message that programmable controller 106 is obtained on piece is " NVMe
Physical link on have CRC (Cyclic Redundancy Check, referred to as CRC) mistakes or loose contact
The problems such as ", then warning light 108 can be controlled to grow bright.
Obviously, the program although need change the original hardware configuration of terminal, but it is advantageous that, can make up
Service management controller 104 can not obtain the defect that error message is have updated in SSD in time due to poll other equipment, so that
It can in time obtain and error message is have updated in SSD, and timely and effectively control warning light is alerted with corresponding ignition mode.
Also, the program directly realizes control logic in itself by NVMe SSD, it is only necessary to the hard of existing backboard
Part circuit makes local modification, it is possible to reduce the complexity of control logic, and response is rapid.
Fig. 3 C diagrammatically illustrate the Organization Chart of controller in accordance with an embodiment of the present disclosure, SSD and warning light.Such as Fig. 3 C
It is shown, it is necessary to change the hardware configuration of terminal in terminal so that programmable controller 106 is with consolidating on piece
Some pin on state disk 102 is directly connected to.In this case, programmable controller 106 directly can voluntarily be read on piece
Take the error message recorded in solid magnetic disc 102, and according to the bright of the Type Control warning light 108 of the error message voluntarily read
Lamp pattern.For example, it is assumed that the error message that programmable controller 106 is obtained on piece is that " have CRC on NVMe physical link
The problems such as (Cyclic Redundancy Check, referred to as CRC) mistake or loose contact ", then it can control
Warning light 108 processed is grown bright.
Obviously, the program although need change the original hardware configuration of terminal, but it is advantageous that, can be compiled on piece
Range controller 106 directly performs read operation to SSD, can in time obtain and error message is have updated in SSD, and then can have in time
Control warning light in effect ground is alerted with corresponding ignition mode.
As a kind of optional embodiment, baseboard controller performs read operation to SSD and passed through including baseboard controller
SMBus performs read operation to SSD;And backplane controller performs read operation to SSD and passed through including backplane controller on SSD
Reserved pin to SSD perform read operation.
By taking NVMe SSD as an example, it can realize the control logic of warning light with reference to BMC.Specifically, BMC passes through
SMBus (System Management Bus, referred to as System Management Bus) is directly connected with NVMe SSD.In such case
Under, BMC can obtain the error message recorded in NVMe SSD in real time, thus have in itself using SMBus and with reference to NVMe SSD
Having debugging and misremember control of the function to realize the logic that reports an error can be in order to system administration.
That is, such scheme directly reads NVMe SSD register space, NVMe SSD sheets using BMC by SMbus
The register space of body is can to have recorded whether link is normal, whether temperature is too high, whether service life reaches the limit values
Information.BMC is only needed to by way of Out-of-band (transport layer protocol uses out of band data), can just be obtained through SMbus
Relevant information is obtained, and the Psoc that control information is sent on backboard is lighted by corresponding, it is possible to the management and control of warning light is realized.
By taking NVMe SSD as an example, BMC can not also be combined, and is based entirely on NVMe SSD and realizes warning light in itself
Control logic.Specifically, it is possible to use reserved Pin pin on NVMe SSD realize the control of warning light.Because for NVMe
It is that can record its working condition in real time and whether peripheral environment is normal for SSD, inside it, if 4 class mistakes in table 1
It is that SSD is recorded in real time in itself, and reporting an error for usually requiring is also main several in this 4 class, so utilizing NVMe SSD itself
To control to be most direct and rapid mode.In addition, can be controlled for different mistakes using different combinations.Can
Selection of land, the control for warning light can use OR circuit.The program can realize NVMe SSD in itself with system while can
Control, thus do not interfere with lighting control.
By embodiment of the disclosure, Consumer's Experience is strengthened, increases the missing of system design.
The technical scheme described described in aforesaid way one is elaborated below in conjunction with Fig. 3 A and Fig. 4 A.During using the program
Hardware does not need any change, it is only necessary to easy customization NVMe SSD software.As shown in Figure 4 A, software realizes flow such as
Under:S401a, BMC poll NVMe SSD;S402a, BMC are wrong by NVMe SSD execution read operations, judging whether, if so,
S403a is performed, if it is not, performing S401a;S403a, Psoc perform different flash lamp modes according to different type of errors.Its
In, the flash lamp mode of different type of errors as shown in table 1, will not be repeated here.
As shown in Figure 4 A, the program relates only to BMC and NVMe SSD and the interaction between Psoc, passes through simple generation
Code can be realized as.
The technical scheme described described in aforesaid way three is elaborated below in conjunction with Fig. 3 C and Fig. 4 B.During using the program
The hardware circuit on simple modification backboard is needed, easy customization NVMe SSD software is further needed exist for.As shown in Figure 4 B, software
Realize that flow is as follows:S401b, NVMe SSD voluntarily debuggings, if wrong, misregistration information, if error-free, is ignored;
S402b, Psoc are wrong by NVMe SSD execution read operations, judging whether, if so, S403b is performed, if it is not, performing
S401b;S403b, Psoc perform different flash lamp modes according to different type of errors.Wherein, the flashing light of different type of errors
Pattern as shown in table 1, will not be repeated here.
As shown in Figure 4 B, the program pertains only to NVMe SSD software management, can be realized as by simple code.
It should be noted that in such scheme, the locus that different NVMe SSD deposit these information is to differ
Sample, it can safeguard a mapping table in itself by PSoc to realize in implementation, can also be by being required self-defined
These information unifications are stored on a position specified to realize by NVMe SSD.
As a kind of optional embodiment, before the error message of solid magnetic disc SSD records is obtained, the above method may be used also
With including:SSD performs debugging operation, to find corresponding error message;And SSD records found error message, wherein,
Different error messages is stored in storage device in same or different storage region.
The disclosure is elaborated below in conjunction with Fig. 5 A and 5B.
As shown in Figure 5A, following Row control warning light can be passed through:S501a, NVMe SSD perform debugging operation, judge
Whether following situation is occurred:Temperature is too high, error, SSD service life reach capacity on link, if so, then performing
S502a;S502a, NVMe SSD voluntarily update error message;S503a, by BMC polls come some warning lights.
As shown in Figure 5 B, following Row control warning light can also be passed through:S501b, NVMe SSD perform debugging operation, sentence
It is disconnected following situation whether occur:Temperature is too high, error on link, SSD service life reach capacity, media mistakes etc., if
It is then to perform S502b;S502b, NVMe SSD voluntarily update error message;S503b, by SSD polls come some warning lights.
As a kind of optional embodiment, the type of error determined in basis is above-mentioned before being controlled to warning light
Method can also include:Create the mapping relations between type of error and control instruction;And store the mapping relations of establishment
In the mapping table, and according to the type of error determined, warning light is controlled including:According to the wrong class determined
Type, inquires about mapping table, is instructed with the corresponding target control of the type of error for obtaining with determining;And instructed according to target control
Control warning light.
Specifically, above-mentioned mapping table can be stored in backplane controller, so, backplane controller is obtaining some mistake
False information and determine after corresponding type of error, can directly inquire about the mapping table, so as to quickly determine and foregoing mistake
Type has the control instruction of certain mapping relations, and then is lighted using the control instruction controller warning light.
Embodiment of the disclosure provides a kind of system of the control warning light for the method that can apply the control warning light.
Fig. 6 diagrammatically illustrates the block diagram of the system of control warning light in accordance with an embodiment of the present disclosure.As shown in fig. 6,
The system of the control warning light can include:Acquisition module 610, determining module 620 and control module 630.The system can be held
The method that row is described above with reference to Fig. 2~Fig. 5 B, to realize according to the SSD error message control prompting lamp on/offs voluntarily recorded
Purpose.The system can include:Acquisition module 610, the error message for obtaining solid magnetic disc SSD records, wherein, mistake letter
Breath includes the one or more at least following information:Exist between SSD and CPU link error, SSD current environmental temperature it is big
Exceed default lifetime limitation value, SSD storage medium mistake in default environment temperature, SSD use time;Determining module 620,
For the error message according to acquisition, the corresponding type of errors of SSD are determined;And control module 630, determined for basis
Type of error, is controlled to warning light.
Specifically, the function that acquisition module 610 is realized and the function that operation S201 is realized are same or like;Determining module
620 functions of realizing and the function that operation S202 is realized are same or like;The function that control module 630 is realized and operation S203 are real
Existing function is same or like, will not be repeated here.
In the related art, due to generally by upper strata (such as OS (Operating System, referred to as operating system) layer
Face) the problem of go to find on link, then reinform and be arranged on the PSoc on backboard to light warning light, thus respond it is relatively slow,
Respond ageing undesirable, and be related to multiple parts and the collaborative development of team, implement complexity higher.
Different from the resolving ideas of correlation technique from top to down, the disclosure uses resolving ideas from below to up, by SSD certainly
The Psoc that row finds and recorded on SSD relevant error, such backboard, which can just obtain error message of the record in SSD, to be come
Bright warning light, thus response is very fast, responds ageing more satisfactory, and need not be related to multiple parts and the collaborative development of team,
Implement complexity relatively low.
As a kind of optional embodiment, above-mentioned acquisition module can include:First read operation module, for causing substrate
Controller performs read operation to SSD, to read the error message of SSD records, and the error message of reading is transferred into backboard
Controller, wherein, baseboard controller is the controller being arranged on computer substrate, and backplane controller is carried on the back to be arranged on computer
Controller on plate;And/or the second read operation module, read operation is performed for causing backplane controller to SSD, to read
The error message of SSD records.
As a kind of optional embodiment, above-mentioned first read operation module can be also used for so that baseboard controller passes through
SMBus performs read operation to SSD;And above-mentioned second read operation module, it can be also used for so that backplane controller passes through SSD
On reserved pin to SSD perform read operation.
As a kind of optional embodiment, said system can also include:Enquiry module, for obtaining solid magnetic disc
Before the error message of SSD records, SSD performs debugging operation, to find corresponding error message;And logging modle, it is used for
So that SSD records found error message, wherein, different error messages is stored in identical or difference in storage device
Storage region in.
As a kind of optional embodiment, said system can also include:Creation module, for according to the mistake determined
Type, before being controlled to warning light, creates the mapping relations between type of error and control instruction by mistake;And storage mould
Block, for the mapping relations of establishment to be stored in the mapping table, and control module can include:Query unit, for basis
The type of error determined, inquires about mapping table, is instructed with the corresponding target control of the type of error for obtaining with determining;And control
Unit processed, for according to target control instruction control warning light.
It should be noted that functional module/unit and preceding method portion in components of system as directed embodiment in each embodiment
Operation/step in point embodiment in each embodiment is corresponding, technical problem that they are solved, the technique effect reached
And the function of being realized is same or like, will not be repeated here.
It is understood that acquisition module 610, determining module 620 and control module 630 may be incorporated in a module
Realize, or any one module therein can be split into multiple modules.Or, one or more of these modules mould
At least part function of block can be combined with least part function phase of other modules, and be realized in a module.According to this
At least one in disclosed embodiment, acquisition module 610, determining module 620 and control module 630 can be at least by partly
Be embodied as hardware circuit, for example field programmable gate array (FPGA), programmable logic array (PLA), on-chip system, on substrate
System, the system in encapsulation, application specific integrated circuit (ASIC), can with to circuit carry out it is integrated or encapsulation any other
The hardware such as rational method or firmware realize, or with software, hardware and with three kinds of implementations of part it is appropriately combined come it is real
It is existing.Or, at least one in acquisition module 610, determining module 620 and control module 630 can be at least at least partially implemented
For computer program module, when the program is run by computer, the function of corresponding module can be performed.
Another aspect of the present disclosure provides a kind of computer program, and above computer program includes the executable finger of computer
Order, above-mentioned instruction is used to realize method as described above when executed.
Another aspect of the present disclosure provides a kind of non-volatile memory medium, and be stored with computer executable instructions, on
Stating instruction is used to realize method as described above when executed.
Fig. 7 diagrammatically illustrates the block diagram of the system of the control warning light according to another embodiment of the present disclosure.
As shown in fig. 7, the system of control warning light includes processor 710, computer-readable recording medium 720.The control
The system of warning light can perform the method described above with reference to Fig. 2~Fig. 5 B, to realize the mistake letter voluntarily recorded according to SSD
The purpose of breath control prompting lamp on/off.
Specifically, processor 710 can for example include general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, application specific integrated circuit (ASIC)), etc..Processor 710 can also include being used to cache using
The onboard storage device on way.Processor 710 can be performed for reference to Fig. 2~Fig. 5 B describe in accordance with an embodiment of the present disclosure
Single treatment unit either multiple processing units of the different actions of method flow.
Computer-readable recording medium 720, for example, can be that can include, store, transmit, propagate or transmit appointing for instruction
Meaning medium.For example, readable storage medium storing program for executing can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device,
Device or propagation medium.The specific example of readable storage medium storing program for executing includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Optical storage
Device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication chain
Road.
Computer-readable recording medium 720 can include computer program 721, and the computer program 721 can include generation
Code/computer executable instructions, it by processor 710 when being performed so that processor 710 is performed for example above in conjunction with Fig. 2~figure
Method flow and its any deformation described by 5B.
Computer program 721 can be configured with such as computer program code including computer program module.Example
Such as, in this example, the code in computer program 721 can include one or more program modules, such as including 721A, module
721B、…….It should be noted that the dividing mode and number of module are not fixed, those skilled in the art can be according to reality
Border situation is combined using suitable program module or program module, when the combination of these program modules is performed by processor 710, is made
Obtaining processor 710 can perform for example above in conjunction with the method flow described by Fig. 2~Fig. 5 B and its any deformation.
In accordance with an embodiment of the present disclosure, at least one in acquisition module 610, determining module 620 and control module 630 can
To be embodied as the computer program module described with reference to Fig. 6, it by processor 710 when being performed, it is possible to achieve described above
Corresponding operating.
Although the disclosure, art technology has shown and described in the certain exemplary embodiments with reference to the disclosure
Personnel it should be understood that without departing substantially from appended claims and its equivalent restriction spirit and scope of the present disclosure in the case of,
A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment,
But not only should be determined by appended claims, also it is defined by the equivalent of appended claims.
Claims (10)
1. a kind of method for controlling warning light, including:
Obtain the error message of solid magnetic disc SSD record, wherein, the error message include one kind at least following information or
It is several:There is link error between SSD and CPU, SSD current environmental temperature is more than default environment temperature, SSD use time
Beyond default lifetime limitation value, SSD storage medium mistake;
According to the error message of acquisition, the corresponding type of errors of the SSD are determined;And
According to the type of error determined, warning light is controlled.
2. according to the method described in claim 1, wherein, obtaining the error message of solid magnetic disc SSD record includes:
Baseboard controller performs read operation to the SSD, to read the error message of SSD record, and by the mistake of reading
False information is transferred to backplane controller, wherein, the baseboard controller is the controller being arranged on computer substrate, the back of the body
Plate controller is the controller being arranged on computer back panel;And/or
The backplane controller performs read operation to the SSD, to read the error message of the SSD records.
3. method according to claim 2, wherein:
Baseboard controller, which performs read operation to the SSD, includes baseboard controller by SMBus to SSD execution reading behaviour
Make;And
The backplane controller performs read operation to the SSD and passes through reserving on the SSD including the backplane controller
Pin performs read operation to the SSD.
4. method according to claim 1 or 2, wherein, before the error message of solid magnetic disc SSD records is obtained, institute
Stating method also includes:
The SSD performs debugging operation, to find corresponding error message;And
The SSD records found error message, wherein, different error messages is stored in identical in the storage device
Or in different storage regions.
5. according to the method described in claim 1, wherein:
According to the type of error determined, before being controlled to warning light, methods described also includes:Create type of error with
Mapping relations between control instruction;And by the mapping relations storage of establishment in the mapping table, and
According to the type of error determined, warning light is controlled including:According to the type of error determined, reflected described in inquiry
Firing table, is instructed with the corresponding target control of the type of error for obtaining with determining;And control is instructed according to the target control
The warning light.
6. a kind of system for controlling warning light, including:
Acquisition module, the error message for obtaining solid magnetic disc SSD records, wherein, the error message includes at least following
One or more in information:There is link error between SSD and CPU, SSD current environmental temperature is more than default environment temperature
Degree, SSD use time exceed default lifetime limitation value, SSD storage medium mistake;
Determining module, for the error message according to acquisition, determines the corresponding type of errors of the SSD;And
Control module, for according to the type of error determined, being controlled to warning light.
7. system according to claim 6, wherein, the acquisition module includes:
First read operation module, performs read operation for causing baseboard controller to the SSD, is recorded with reading the SSD
Error message, and the error message of reading is transferred to backplane controller, wherein, the baseboard controller is is arranged on calculating
Controller on machine substrate, the backplane controller is the controller being arranged on computer back panel;And/or
Second read operation module, performs read operation, to read the SSD for causing the backplane controller to the SSD
The error message of record.
8. system according to claim 7, wherein:
First read operation module, is additionally operable to so that baseboard controller performs read operation by SMBus to the SSD;And
Second read operation module, is additionally operable to so that the backplane controller is held by the reserved pin on the SSD to the SSD
Row read operation.
9. the system according to claim 6 or 7, wherein, the system also includes:
Enquiry module, for before the error message of solid magnetic disc SSD records is obtained, the SSD to perform debugging operation, to look into
Go out corresponding error message;And
Logging modle, for make it that the SSD records found error message, wherein, different error messages is stored in institute
State in storage device in same or different storage region.
10. system according to claim 6, wherein:
The system also includes:Creation module, for the type of error determined in basis, before being controlled to warning light,
Create the mapping relations between type of error and control instruction;And memory module, for the mapping relations of establishment to be stored in
In mapping table, and
The control module includes:Query unit, for according to the type of error determined, the mapping table being inquired about, to obtain
Target control instruction corresponding with the type of error determined;And control unit, controlled for being instructed according to the target control
Make the warning light.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710191918.2A CN106960689B (en) | 2017-03-27 | 2017-03-27 | Method and system for controlling prompt lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710191918.2A CN106960689B (en) | 2017-03-27 | 2017-03-27 | Method and system for controlling prompt lamp |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106960689A true CN106960689A (en) | 2017-07-18 |
CN106960689B CN106960689B (en) | 2021-04-13 |
Family
ID=59471567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710191918.2A Active CN106960689B (en) | 2017-03-27 | 2017-03-27 | Method and system for controlling prompt lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106960689B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643965A (en) * | 2017-09-29 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of server diagnostic method, system, equipment and computer storage medium |
CN107656857A (en) * | 2017-10-12 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of NVMeSSD hard disks ignition method and device |
CN109408272A (en) * | 2018-11-06 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of storage fault handling method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411993A (en) * | 2011-11-24 | 2012-04-11 | 曙光信息产业股份有限公司 | Test method and device for solid state disk |
CN202887173U (en) * | 2012-11-01 | 2013-04-17 | 彭志文 | Solid state hard disk |
CN202976066U (en) * | 2012-10-30 | 2013-06-05 | 记忆科技(深圳)有限公司 | Failure indication structure of solid state disk |
CN105513640A (en) * | 2015-12-03 | 2016-04-20 | 深圳佰维存储科技有限公司 | Solid state disk data erasing method and system thereof |
CN105529045A (en) * | 2015-12-02 | 2016-04-27 | 英业达科技有限公司 | Lamp signal control system for nonvolatile memory solid state disk |
CN106201801A (en) * | 2016-07-18 | 2016-12-07 | 联想(北京)有限公司 | A kind of electronic equipment and error-reporting method |
-
2017
- 2017-03-27 CN CN201710191918.2A patent/CN106960689B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411993A (en) * | 2011-11-24 | 2012-04-11 | 曙光信息产业股份有限公司 | Test method and device for solid state disk |
CN202976066U (en) * | 2012-10-30 | 2013-06-05 | 记忆科技(深圳)有限公司 | Failure indication structure of solid state disk |
CN202887173U (en) * | 2012-11-01 | 2013-04-17 | 彭志文 | Solid state hard disk |
CN105529045A (en) * | 2015-12-02 | 2016-04-27 | 英业达科技有限公司 | Lamp signal control system for nonvolatile memory solid state disk |
CN105513640A (en) * | 2015-12-03 | 2016-04-20 | 深圳佰维存储科技有限公司 | Solid state disk data erasing method and system thereof |
CN106201801A (en) * | 2016-07-18 | 2016-12-07 | 联想(北京)有限公司 | A kind of electronic equipment and error-reporting method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643965A (en) * | 2017-09-29 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of server diagnostic method, system, equipment and computer storage medium |
CN107656857A (en) * | 2017-10-12 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of NVMeSSD hard disks ignition method and device |
CN109408272A (en) * | 2018-11-06 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of storage fault handling method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106960689B (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI869593B (en) | Device, system and method for providing storage resource | |
CN110427308B (en) | Hard disk positioning method and device, electronic equipment and storage medium | |
US9619311B2 (en) | Error identification and handling in storage area networks | |
US7558988B2 (en) | Storage system and control method thereof | |
US9766965B2 (en) | System and method for monitoring and detecting faulty storage devices | |
US8959374B2 (en) | Power management for devices in a data storage fabric | |
TW202046161A (en) | System and method for determining location and navigating a datacenter using augmented reality and available sensor data | |
US9898195B2 (en) | Hardware interconnect based communication between solid state drive controllers | |
US20130332770A1 (en) | Active/passive database management across clusters | |
CN104079613A (en) | Method and system for multiple tenants to share application program objects | |
CN106960689A (en) | Control the method and system of warning light | |
CN111966540B (en) | Storage medium management method and device and readable storage medium | |
JP2015505623A (en) | Computer-implemented process, computer program product, and apparatus for managing a staging area | |
US20200285743A1 (en) | System and method for performing an antivirus scan using file level deduplication | |
US11663021B2 (en) | System and method for providing granular processor performance control | |
CN116501343A (en) | Program upgrading method, power supply and computing device | |
CN103593275B (en) | Disk information display method and device | |
CN101681238B (en) | Systems and methods for storage expansion units for network attached storage devices | |
EP4097594B1 (en) | Selective endpoint isolation for self-healing in a cache and memory coherent system | |
CN118606118A (en) | Server hard disk fault identification system, method, device, server and medium | |
CN112052040B (en) | Processing method, device, computer equipment and storage medium | |
US12248694B2 (en) | Device and method for data replication in disaggregated distributed storage system | |
US10592133B1 (en) | Managing raw device mapping during disaster recovery | |
CN111630489A (en) | RAID device | |
CN107025133A (en) | Multi-core processor system and management method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |