CN112527575A - Hard disk lighting test method, device and equipment and readable storage medium - Google Patents

Hard disk lighting test method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN112527575A
CN112527575A CN202011352371.8A CN202011352371A CN112527575A CN 112527575 A CN112527575 A CN 112527575A CN 202011352371 A CN202011352371 A CN 202011352371A CN 112527575 A CN112527575 A CN 112527575A
Authority
CN
China
Prior art keywords
hard disk
lighting test
display
indicator lamp
indicator
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
CN202011352371.8A
Other languages
Chinese (zh)
Other versions
CN112527575B (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202011352371.8A priority Critical patent/CN112527575B/en
Publication of CN112527575A publication Critical patent/CN112527575A/en
Application granted granted Critical
Publication of CN112527575B publication Critical patent/CN112527575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses a hard disk lighting test method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk; receiving an indicator lamp display instruction; controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by utilizing the corresponding relation and an indicator lamp display instruction to obtain the actual display state of the indicator lamp corresponding to the target hard disk; and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk. According to the technical scheme disclosed by the application, the hard disk lighting test can be realized only by means of the backboard where the hard disk is located, the physical addresses of the hardware such as the hard disk and the I2C interface of the CPU, so that the complexity of the hard disk lighting test can be reduced, and the convenience of the hard disk lighting test is improved.

Description

Hard disk lighting test method, device and equipment and readable storage medium
Technical Field
The present disclosure relates to the field of hard disk lighting technologies, and more particularly, to a hard disk lighting test method, apparatus, device, and computer readable storage medium.
Background
At present, the indication lamp corresponding to the hard disk is usually arranged in the server, the running state of the hard disk is distinguished and positioned by means of the display condition of the indication lamp, in addition, the indication of the indication lamp is convenient for workers to timely obtain the prompt of the abnormal hard disk, and therefore the hard disk can be correctly replaced. Before the hard disk condition is displayed by the indicator lamp, the indicator lamp display condition needs to be tested, so that the condition that the hard disk operation state is indicated by mistake due to the error of the lighting of the hard disk is avoided.
In the conventional method, when a hard disk lighting test is performed, a lighting test control program conforming to each system is generally developed in a server, for example, a ub packet is required to be used for a UOS system, an rpm packet is required to be used for reddat, an exe packet is required to be used for windows, and then the lighting test of the hard disk is realized in a corresponding operating system by the developed lighting test control program.
In summary, how to reduce the complexity of the hard disk lighting test is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a hard disk power-on test method, apparatus, device and computer readable storage medium for reducing the complexity of the hard disk power-on test.
In order to achieve the above purpose, the present application provides the following technical solutions:
a hard disk lighting test method is applied to a CPU and comprises the following steps:
presetting a corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk;
receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk;
controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by using the corresponding relation and the indicator lamp display instruction, so as to obtain an actual display state of the indicator lamp corresponding to the target hard disk;
and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
Preferably, the controlling, by using the correspondence and the indicator display instruction, the indicator corresponding to the target hard disk to display through the I2C interface of the CPU includes:
determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indicator light display instruction;
according to the I2C address of the backboard where the target hard disk is located, the indicator light display instruction is sent to the CPLD on the backboard where the target hard disk is located through the I2C interface of the CPU;
and controlling the indicator light corresponding to the target hard disk to display by using the CPLD according to the indicator light display instruction and the corresponding relation.
Preferably, after the CPLD is used to control the indicator corresponding to the target hard disk to display according to the indicator display instruction and the corresponding relationship, the method further includes:
judging whether a feedback instruction sent by the CPLD is received; the feedback instruction comprises the actual display state of an indicator lamp corresponding to the target hard disk;
if yes, obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk, and the method comprises the following steps:
and comparing the indicator lamp display instruction with a feedback instruction sent by the CPLD to obtain the lighting test result.
Preferably, if it is determined that the feedback instruction sent by the CPLD is not received, the method further includes:
detecting whether a link between the CPU and a back plate where the target hard disk is located is normal;
if not, sending out a prompt of a link error;
and if so, sending a feedback prompt to the CPLD through an I2C interface of the CPU.
Preferably, after sending the feedback hint to the CPLD through the I2C interface of the CPU, the method further includes:
and if the feedback instruction sent by the CPLD is not received within a preset time length, determining that the CPLD is abnormal and sending a prompt of the CPLD abnormality.
Preferably, the indication lamp display state corresponding to the hard disk comprises a full-off lamp, a red lamp and a blue lamp, wherein the full-off lamp indicates that the hard disk is not in place, the red lamp indicates that the hard disk fails, and the blue lamp indicates that the hard disk is in a working state.
A hard disk lighting test device is applied to a CPU and comprises:
the device comprises a setting module, a display module and a control module, wherein the setting module is used for presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and the display state of an indicator lamp corresponding to the hard disk;
the receiving module is used for receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk;
the control module is used for controlling the indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by using the corresponding relation and the indicator lamp display instruction, so as to obtain the actual display state of the indicator lamp corresponding to the target hard disk;
and the result obtaining module is used for obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
Preferably, the control module includes:
the determining unit is used for determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indicator light display instruction;
the sending unit is used for sending the indicator light display instruction to the CPLD on the backboard where the target hard disk is located through the I2C interface of the CPU by using the I2C address of the backboard where the target hard disk is located;
and the control unit is used for controlling the indicator lamp corresponding to the target hard disk to display by utilizing the CPLD according to the indicator lamp display instruction and the corresponding relation.
A hard disk drive lighting test apparatus, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the hard disk lighting test method in any one of the above items when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the hard disk lighting test method according to any one of the preceding claims.
The application provides a hard disk lighting test method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk; receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk; controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by utilizing the corresponding relation and an indicator lamp display instruction to obtain the actual display state of the indicator lamp corresponding to the target hard disk; and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
The technical scheme disclosed by the application is that the corresponding relation among the I2C address of the backboard where the hard disk is located, the hard disk address and the display state of the indicator lamp corresponding to the hard disk is preset, after the display instruction of the indicator lamp is received, the preset corresponding relation and the display instruction of the indicator lamp are utilized to control the indicator lamp corresponding to the target hard disk through the I2C interface of the CPU to display, then, the lighting test result is obtained according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk, compared with the prior art that the lighting test of the hard disk can be carried out only by developing and designing a specific control program from the operating system level, the lighting test of the hard disk can be realized only by the physical addresses of the backboard where the hard disk is located, the hard disk and the I2C interface of the CPU, and the realization is not dependent on the operating system level any more, therefore, the complexity of the lighting test of the, the convenience of the hard disk lighting test is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a hard disk lighting test method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a hard disk lighting test device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a hard disk lighting test device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the conventional hard disk lighting test, a lighting test control program corresponding to each operating system needs to be developed in a server to perform the lighting test on the hard disk by the control program, but because the number of operating systems compatible with the server is large, the complexity of the lighting test of the hard disk is increased because the lighting test control program corresponding to each operating system is developed and designed, and therefore, the application provides a hard disk lighting test method for reducing the complexity of the lighting test of the hard disk.
Specifically, referring to fig. 1, which shows a flowchart of a hard disk lighting test method provided in the embodiment of the present application, which is applied to a CPU, may include:
s11: the corresponding relation among the I2C address of the backboard where the hard disk is located, the address of the hard disk and the display state of the indicator lamp corresponding to the hard disk is preset.
In the present application, the corresponding relationship between the I2C address of the backplane where the hard disk is located, the address of the hard disk, and the display state of the indicator light corresponding to the hard disk may be set based on the relationship between the backplane where the hard disk is located, the hard board, and the display light corresponding to the hard disk.
It should be noted that, the hard disk mentioned in this application may specifically be an NVME (Non-Volatile Memory express) hard disk, and for this type of hard disk, each backplane specifically has two I2C interfaces, and accordingly, two I2C addresses need to be set for the backplane, the two I2C interfaces control four NVME hard disks in common, the two NVME hard disks share one IC2 address, and each NVME hard disk has its own specific address. For example: the Valid I2C address 0x24 may be used to represent a first I2C address on a certain backplane, the Valid I2C address 0x25 may be used to represent a second I2C address on the backplane, and the addresses of the hard disk may be set to 0x03 and 0x 04.
S12: receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of the target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk.
It should be noted that, in the present application, the CPU may directly connect the bootable device through the high-speed signal line, and the bootable device may send an indicator display instruction to the CPU in the shell environment, that is, when performing the lighting test on the hard disk, the CPU may receive the indicator display instruction sent by the bootable device through the high-speed signal line in the shell environment, where the indicator display instruction specifically includes an address of the target hard disk to be subjected to the lighting test and a theoretical display state of the indicator corresponding to the target hard disk, so as to perform the lighting test on the target hard disk according to the indicator display instruction.
S13: and controlling the indicator lamp corresponding to the target hard disk to display through the I2C interface of the CPU by utilizing the corresponding relation and the indicator lamp display instruction, so as to obtain the actual display state of the indicator lamp corresponding to the target hard disk.
After receiving the indicator light display instruction, the I2C address of the backplane on which the target hard disk is located may be obtained according to the preset correspondence in step S11 and the address of the target hard disk included in the indicator light display instruction, and then the indicator light display instruction may be correspondingly sent to the I2C address of the backplane on which the target hard disk is located through the I2C interface of the CPU, and the indicator light corresponding to the target hard disk is controlled to display according to the address of the target hard disk in the indicator light display instruction and the theoretical display state of the indicator light corresponding to the target hard disk, so as to obtain the actual display state of the indicator light corresponding to the target hard disk.
S14: and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
After the actual display state of the indicator light corresponding to the target hard disk is obtained, the actual display state of the indicator light corresponding to the target hard disk can be compared with the theoretical display state of the indicator light corresponding to the target hard disk, if the actual display state of the indicator light corresponding to the target hard disk is consistent with the theoretical display state of the indicator light corresponding to the target hard disk, the indicator light corresponding to the target hard disk is displayed correctly, and if the actual display state of the indicator light corresponding to the target hard disk is inconsistent with the theoretical display state of the indicator light corresponding to the target hard disk, at the moment, a prompt for displaying the error can be sent out, so that a worker can check the connection, setting and the like of the indicator light of the target hard disk, correct display can be achieved, and accuracy and.
According to the process, when the hard disk lighting test is realized, the hard disk lighting test can be realized only by means of the backboard where the hard disk is located, the physical addresses of the hardware, namely the hard disk, and the IC2 interface of the CPU, so that an instruction can be directly issued to the CPU in the shell environment, the hard disk lighting test can be realized by the CPU according to the set corresponding relation, the lighting test does not need to be carried out depending on the operating system level, the redundancy and waste of development software can be avoided, the complexity of the hard disk lighting test can be reduced, and the efficiency and convenience of the hard disk lighting test are improved.
The technical scheme disclosed by the application is that the corresponding relation among the I2C address of the backboard where the hard disk is located, the hard disk address and the display state of the indicator lamp corresponding to the hard disk is preset, after the display instruction of the indicator lamp is received, the preset corresponding relation and the display instruction of the indicator lamp are utilized to control the indicator lamp corresponding to the target hard disk through the I2C interface of the CPU to display, then, the lighting test result is obtained according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk, compared with the prior art that the lighting test of the hard disk can be carried out only by developing and designing a specific control program from the operating system level, the lighting test of the hard disk can be realized only by the physical addresses of the backboard where the hard disk is located, the hard disk and the I2C interface of the CPU, and the realization is not dependent on the operating system level any more, therefore, the complexity of the lighting test of the, the convenience of the hard disk lighting test is improved.
The hard disk lighting test method provided in the embodiment of the present application, which uses the correspondence and the indication lamp display instruction to control the indication lamp corresponding to the target hard disk through the I2C interface of the CPU for display, may include:
determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indication lamp display instruction;
according to the I2C address of the backboard where the target hard disk is located, an indicator light display instruction is sent to the CPLD on the backboard where the target hard disk is located through the I2C interface of the CPU;
and controlling the indicator lamp corresponding to the target hard disk to display by using the CPLD according to the indicator lamp display instruction and the corresponding relation.
In this application, the specific process of displaying by using the corresponding relationship and the indicator light display instruction and controlling the indicator light corresponding to the target hard disk through the I2C interface of the CPU is as follows:
firstly, the I2C address of the backplane where the target hard disk is located is determined according to the set corresponding relationship and the address of the target hard disk included in the indicator display instruction, then, the indicator display instruction is sent to a CPLD (Complex Programming logic device) on the backplane corresponding to the determined I2C address through an I2C interface of the CPU according to the I2C address of the backplane where the target hard disk is located, that is, to the CPLD on the backplane where the target hard disk is located, and then, the CPLD can be used to control the indicator corresponding to the target hard disk to display according to the indicator display instruction and the corresponding relationship.
Through the manner of sending the indication lamp display instruction to the CPLD of the backboard and controlling the display of the indication lamp corresponding to the target hard disk by the CPLD, the pressure of the CPU can be reduced, and the reliability of the display control of the indication lamp of the target hard disk is improved conveniently.
The hard disk lighting test method provided in the embodiment of the present application, after the CPLD is used to control the indicator corresponding to the target hard disk to display according to the indicator display instruction and the corresponding relationship, may further include:
judging whether a feedback instruction sent by the CPLD is received; the feedback instruction may include an actual display state of an indicator light corresponding to the target hard disk;
if yes, obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk, wherein the lighting test result can include:
and comparing the indicator lamp display instruction with a feedback instruction sent by the CPLD to obtain a lighting test result.
In the application, after the CPLD is used to control the indicator corresponding to the target hard disk to display according to the indicator display instruction and the corresponding relationship, the CPU may determine whether it receives the feedback instruction sent by the CPLD, where the feedback instruction may include an actual display state of the indicator corresponding to the target hard disk, and if it is determined that the feedback instruction sent by the CPLD is received, a process of obtaining a lighting test result is specifically: the theoretical display state of the indicator lamp corresponding to the target hard disk contained in the indicator lamp display instruction received by the CPU is compared with the actual display state of the indicator lamp corresponding to the target hard disk contained in the feedback instruction sent by the CPLD to obtain a lighting test result, so that the CPU does not need to specially combine the indicator lamp display instruction and the corresponding relation to inquire a backboard where the target hard disk is located and obtain the actual display state of the indicator lamp corresponding to the target hard disk, the workload of the CPU is reduced conveniently, and the obtaining efficiency of the lighting test result is improved.
According to the hard disk lighting test method provided by the embodiment of the application, if it is determined that the feedback instruction sent by the CPLD is not received, the method may further include:
detecting whether a link between a CPU and a back board where a target hard disk is located is normal;
if not, sending out a prompt of a link error;
and if so, sending a feedback prompt to the CPLD through an I2C interface of the CPU.
When judging whether a feedback instruction sent by the CPLD is received, if the feedback instruction sent by the CPLD is determined not to be received, whether a link between the CPU and the back plate where the target hard disk is located is normal can be detected, if the link between the CPU and the back plate where the target hard disk is located is determined to be abnormal, a prompt of link error is sent out, so that a worker can check and maintain the link in time, the link between the CPU and the back plate where the target hard disk is located can be recovered to be normal, the CPU can receive the feedback instruction sent by the CPLD through the normal link as much as possible, and if the link between the CPU and the back plate where the target hard disk is located is determined to be normal, the feedback prompt can be sent to the CPLD on the back plate where the target hard disk is located through an I2C interface of the CPU, so that the CPLD can send the feedback.
After sending the feedback prompt to the CPLD through the I2C interface of the CPU, the hard disk lighting test method provided in the embodiment of the present application may further include:
and if the feedback instruction sent by the CPLD is not received within the preset time length, determining that the CPLD is abnormal and sending a prompt of the CPLD abnormality.
After the feedback prompt is sent to the CPLD through the I2C interface of the CPU, if the feedback instruction sent by the CPLD is not received within the preset time period, it may be determined that the CPLD is abnormal and cannot normally send the feedback instruction, and at this time, the prompt of the abnormality of the CPLD may be sent out, so that a worker can maintain the CPLD on the backplane where the target hard disk is located according to the prompt as soon as possible, thereby avoiding the influence on the hard disk lighting test.
It should be noted that the preset time length mentioned above can be specifically set according to the hard disk lighting test requirement and the performance of the CPLD.
According to the lighting test method for the hard disk, the display states of the indicating lamps corresponding to the hard disk can comprise the full-off of the lamps, the red lamps and the blue lamps, wherein the lamps are completely off, the hard disk is not in place, the red lamps are in hard disk failure, and the blue lamps are in working states for the hard disk.
In this application, the indication light display status corresponding to the hard disk may specifically include three display statuses of full light off, red light and blue light, and the full light off may correspond to the hard disk not being in place, the red light may correspond to a hard disk fault (Error), the blue light may correspond to the hard disk being in a working state (Active), and the instruction corresponding to the full light off may specifically be 0x00, the instruction corresponding to the red light may specifically be 0x01, and the instruction corresponding to the blue light may specifically be 0x02, for example, the indication light corresponding to the hard disk, in which the address controlled by the first I2C address of the backplane is 0x03, may be displayed through an indication light display instruction of-I2C 0x 240 x 030 x 01.
It should be noted that the display state of the indicator light corresponding to the hard disk may be adjusted according to actual needs, and the display state of the indicator light corresponding to the hard disk is not limited in any way in the present application.
The embodiment of the present application further provides a hard disk lighting test device, which is applied to a CPU, and referring to fig. 2, a schematic structural diagram of the hard disk lighting test device provided in the embodiment of the present application is shown, and the hard disk lighting test device may include:
the setting module 21 is used for presetting the corresponding relation among the I2C address of the backboard where the hard disk is located, the address of the hard disk and the display state of the indicator lamp corresponding to the hard disk;
the receiving module 22 is used for receiving an indicator light display instruction; the instruction lamp display instruction can comprise an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk;
the control module 23 is configured to control the indicator light corresponding to the target hard disk to display through the I2C interface of the CPU by using the correspondence and the indicator light display instruction, so as to obtain an actual display state of the indicator light corresponding to the target hard disk;
and a result obtaining module 24, configured to obtain a lighting test result according to the actual display state and the theoretical display state of the indicator corresponding to the target hard disk.
In an embodiment of the present application, the control module 23 may include:
the determining unit is used for determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indication lamp display instruction;
the sending unit is used for sending the display instruction of the indicator lamp to the CPLD on the backboard of the target hard disk through the I2C interface of the CPU by using the I2C address of the backboard of the target hard disk;
and the control unit is used for controlling the indicator lamp corresponding to the target hard disk to display according to the indicator lamp display instruction and the corresponding relation by utilizing the CPLD.
In the hard disk lighting test device provided in the embodiment of the present application, the control module 23 may further include:
the judging unit is used for judging whether a feedback instruction sent by the CPLD is received or not after the CPLD is used for displaying according to the display instruction of the indicator lamp and the indicator lamp corresponding to the corresponding relation control target hard disk; the feedback instruction may include an actual display state of an indicator light corresponding to the target hard disk;
if it is determined that the feedback instruction sent by the CPLD is received, the obtaining a result module 24 may include:
and the comparison unit is used for comparing the indicator lamp display instruction with the feedback instruction sent by the CPLD to obtain a lighting test result.
In the hard disk lighting test device provided in the embodiment of the present application, the control module 23 may further include:
the detection unit is used for detecting whether a link between the back panel where the CPU and the target hard disk are located is normal or not if the feedback instruction sent by the CPLD is determined not to be received;
sending out a prompt for sending out a prompt of a link error if the link between the CPU and the back plate where the target hard disk is located is abnormal;
and the feedback sending prompting unit is used for sending a feedback prompt to the CPLD through an I2C interface of the CPU if a link between the back boards where the CPU and the target hard disk are located is normal.
In the hard disk lighting test device provided in the embodiment of the present application, the control module 23 may further include:
and the determining unit is used for determining that the CPLD is abnormal and sending out the abnormal prompt of the CPLD if a feedback instruction sent by the CPLD is not received within a preset time length after the feedback prompt is sent to the CPLD through the I2C interface of the CPU.
The embodiment of the application provides a hard disk test device of lighting a lamp, the pilot lamp that the hard disk corresponds shows the state and can include that the lamp goes out, red light and blue lamp entirely, and wherein, the lamp goes out entirely for the hard disk not on the throne, the red light is the hard disk trouble, the blue lamp is in operating condition for the hard disk.
An embodiment of the present application further provides a hard disk lighting test device, see fig. 3, which shows a schematic structural diagram of the hard disk lighting test device provided in the embodiment of the present application, and the hard disk lighting test device may include:
a memory 31 for storing a computer program;
the processor 32, when executing the computer program stored in the memory 31, may implement the following steps:
presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk; receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk; controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by utilizing the corresponding relation and an indicator lamp display instruction to obtain the actual display state of the indicator lamp corresponding to the target hard disk; and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following steps may be implemented:
presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk; receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk; controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by utilizing the corresponding relation and an indicator lamp display instruction to obtain the actual display state of the indicator lamp corresponding to the target hard disk; and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For a description of a relevant part in the hard disk lighting test device, the equipment and the computer readable storage medium provided in the embodiment of the present application, reference may be made to the detailed description of a corresponding part in the hard disk lighting test method provided in the embodiment of the present application, and details are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A hard disk lighting test method is applied to a CPU and comprises the following steps:
presetting a corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and an indicator light display state corresponding to the hard disk;
receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk;
controlling an indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by using the corresponding relation and the indicator lamp display instruction, so as to obtain an actual display state of the indicator lamp corresponding to the target hard disk;
and obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
2. The hard disk drive lighting test method according to claim 1, wherein controlling an indicator corresponding to the target hard disk drive to display through an I2C interface of the CPU by using the correspondence and the indicator display instruction includes:
determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indicator light display instruction;
according to the I2C address of the backboard where the target hard disk is located, the indicator light display instruction is sent to the CPLD on the backboard where the target hard disk is located through the I2C interface of the CPU;
and controlling the indicator light corresponding to the target hard disk to display by using the CPLD according to the indicator light display instruction and the corresponding relation.
3. The hard disk lighting test method according to claim 2, wherein after the CPLD is used to control the indicator corresponding to the target hard disk to display according to the indicator display instruction and the correspondence, the method further comprises:
judging whether a feedback instruction sent by the CPLD is received; the feedback instruction comprises the actual display state of an indicator lamp corresponding to the target hard disk;
if yes, obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk, and the method comprises the following steps:
and comparing the indicator lamp display instruction with a feedback instruction sent by the CPLD to obtain the lighting test result.
4. The hard disk drive lighting test method according to claim 3, wherein if it is determined that the feedback instruction sent by the CPLD is not received, the method further comprises:
detecting whether a link between the CPU and a back plate where the target hard disk is located is normal;
if not, sending out a prompt of a link error;
and if so, sending a feedback prompt to the CPLD through an I2C interface of the CPU.
5. The hard disk drive lighting test method according to claim 4, after sending a feedback prompt to the CPLD through the I2C interface of the CPU, further comprising:
and if the feedback instruction sent by the CPLD is not received within a preset time length, determining that the CPLD is abnormal and sending a prompt of the CPLD abnormality.
6. The hard disk lighting test method according to claim 1, wherein the indication lamp display status corresponding to the hard disk includes a lamp full-off state, a red lamp and a blue lamp, wherein the lamp full-off state indicates that the hard disk is not in place, the red lamp indicates that the hard disk fails, and the blue lamp indicates that the hard disk is in a working state.
7. A hard disk lighting test device is characterized in that the hard disk lighting test device is applied to a CPU and comprises:
the device comprises a setting module, a display module and a control module, wherein the setting module is used for presetting the corresponding relation among an I2C address of a backboard where a hard disk is located, the address of the hard disk and the display state of an indicator lamp corresponding to the hard disk;
the receiving module is used for receiving an indicator lamp display instruction; the instruction lamp display instruction comprises an address of a target hard disk and a theoretical display state of an indicator lamp corresponding to the target hard disk;
the control module is used for controlling the indicator lamp corresponding to the target hard disk to display through an I2C interface of the CPU by using the corresponding relation and the indicator lamp display instruction, so as to obtain the actual display state of the indicator lamp corresponding to the target hard disk;
and the result obtaining module is used for obtaining a lighting test result according to the actual display state and the theoretical display state of the indicator lamp corresponding to the target hard disk.
8. The hard disk drive lighting test device of claim 7 wherein the control module comprises:
the determining unit is used for determining the I2C address of the backboard where the target hard disk is located according to the corresponding relation and the indicator light display instruction;
the sending unit is used for sending the indicator light display instruction to the CPLD on the backboard where the target hard disk is located through the I2C interface of the CPU by using the I2C address of the backboard where the target hard disk is located;
and the control unit is used for controlling the indicator lamp corresponding to the target hard disk to display by utilizing the CPLD according to the indicator lamp display instruction and the corresponding relation.
9. A hard disk lighting test device is characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the hard disk drive lighting test method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the hard disk lighting test method according to any one of claims 1 to 6.
CN202011352371.8A 2020-11-26 2020-11-26 Hard disk lighting test method, device and equipment and readable storage medium Active CN112527575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011352371.8A CN112527575B (en) 2020-11-26 2020-11-26 Hard disk lighting test method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011352371.8A CN112527575B (en) 2020-11-26 2020-11-26 Hard disk lighting test method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112527575A true CN112527575A (en) 2021-03-19
CN112527575B CN112527575B (en) 2023-02-28

Family

ID=74993839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011352371.8A Active CN112527575B (en) 2020-11-26 2020-11-26 Hard disk lighting test method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112527575B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204475A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server
CN113608937A (en) * 2021-06-28 2021-11-05 苏州浪潮智能科技有限公司 Device and method for testing LED (light emitting diode) no hard disk of hard disk backboard
CN114443445A (en) * 2021-12-31 2022-05-06 苏州浪潮智能科技有限公司 Hard disk lighting method and device, electronic equipment and storage medium
CN114625213A (en) * 2022-01-24 2022-06-14 苏州浪潮智能科技有限公司 Storage equipment adapter card, storage equipment testing system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026526A1 (en) * 2013-07-16 2015-01-22 American Megatrends, Inc. Techniques for testing enclosure management controller using backplane initiator
US20170161137A1 (en) * 2015-12-02 2017-06-08 Inventec (Pudong) Technology Corporation System Is Applied to Control Indicator Lights for Non-Volatile Memory Express Solid State Disk
CN108680872A (en) * 2018-04-02 2018-10-19 郑州云海信息技术有限公司 A kind of test method suitable for NVME hard disk backboard status lamps
CN108959031A (en) * 2018-06-29 2018-12-07 郑州云海信息技术有限公司 A kind of NVME backboard lighting control method thereof, system, medium and equipment
CN109086192A (en) * 2018-09-18 2018-12-25 郑州云海信息技术有限公司 A kind of onboard SATA hard disc lighting system and method based on IPMI
CN110413487A (en) * 2018-04-28 2019-11-05 中国长城科技集团股份有限公司 A kind of indicator light management method, system and the baseboard management controller of server
CN110441713A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A method of passing through the automatic testing service device LED light stability of BMC
CN110543404A (en) * 2019-07-19 2019-12-06 广东浪潮大数据研究有限公司 Server, hard disk lighting method and system and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026526A1 (en) * 2013-07-16 2015-01-22 American Megatrends, Inc. Techniques for testing enclosure management controller using backplane initiator
US20170161137A1 (en) * 2015-12-02 2017-06-08 Inventec (Pudong) Technology Corporation System Is Applied to Control Indicator Lights for Non-Volatile Memory Express Solid State Disk
CN108680872A (en) * 2018-04-02 2018-10-19 郑州云海信息技术有限公司 A kind of test method suitable for NVME hard disk backboard status lamps
CN110413487A (en) * 2018-04-28 2019-11-05 中国长城科技集团股份有限公司 A kind of indicator light management method, system and the baseboard management controller of server
CN108959031A (en) * 2018-06-29 2018-12-07 郑州云海信息技术有限公司 A kind of NVME backboard lighting control method thereof, system, medium and equipment
CN109086192A (en) * 2018-09-18 2018-12-25 郑州云海信息技术有限公司 A kind of onboard SATA hard disc lighting system and method based on IPMI
CN110441713A (en) * 2019-07-12 2019-11-12 苏州浪潮智能科技有限公司 A method of passing through the automatic testing service device LED light stability of BMC
CN110543404A (en) * 2019-07-19 2019-12-06 广东浪潮大数据研究有限公司 Server, hard disk lighting method and system and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204475A (en) * 2021-05-08 2021-08-03 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server
CN113204475B (en) * 2021-05-08 2023-01-24 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server
CN113608937A (en) * 2021-06-28 2021-11-05 苏州浪潮智能科技有限公司 Device and method for testing LED (light emitting diode) no hard disk of hard disk backboard
CN113608937B (en) * 2021-06-28 2023-07-18 苏州浪潮智能科技有限公司 Hard disk backboard LED hard disk-free testing device and method
CN114443445A (en) * 2021-12-31 2022-05-06 苏州浪潮智能科技有限公司 Hard disk lighting method and device, electronic equipment and storage medium
CN114443445B (en) * 2021-12-31 2024-05-24 苏州浪潮智能科技有限公司 Hard disk lighting method and device, electronic equipment and storage medium
CN114625213A (en) * 2022-01-24 2022-06-14 苏州浪潮智能科技有限公司 Storage equipment adapter card, storage equipment testing system and method
CN114625213B (en) * 2022-01-24 2023-08-11 苏州浪潮智能科技有限公司 Storage device adapter card, storage device testing system and method

Also Published As

Publication number Publication date
CN112527575B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
CN112527575B (en) Hard disk lighting test method, device and equipment and readable storage medium
WO2022160756A1 (en) Server fault positioning method, apparatus and system, and computer-readable storage medium
US6502208B1 (en) Method and system for check stop error handling
US5951686A (en) Method and system for reboot recovery
US6807643B2 (en) Method and apparatus for providing diagnosis of a processor without an operating system boot
US6381694B1 (en) System for automatic recovery from software problems that cause computer failure
US20090100287A1 (en) Monitoring Apparatus and a Monitoring Method Thereof
US20070234132A1 (en) System and method for indicating errors of a motherboard
CN108292342B (en) Notification of intrusions into firmware
US20080126777A1 (en) External basic input/output system device
US10275330B2 (en) Computer readable non-transitory recording medium storing pseudo failure generation program, generation method, and generation apparatus
KR20100050380A (en) Automated firmware recovery
EP3709149A1 (en) Off-board flash memory
CN101331438B (en) Maintenance guidance display device, maintenance guidance display process
US8286093B2 (en) Replacement motherboard configuration
JPH0552981B2 (en)
CN1856772A (en) System and method to filter processors by health during early firmware for split recovery architecture
WO2017072904A1 (en) Computer system and failure detection method
CN103019790B (en) Computer system power-on Acceleration of starting method and apparatus
CN115168146A (en) Anomaly detection method and device
CN113835971A (en) Monitoring method for abnormal lighting of server backboard and related components
CN109614279B (en) Industrial personal computer self-checking system and control method thereof and related equipment
US6014758A (en) Method and apparatus for detecting and reporting failed processor reset
TWI715005B (en) Monitor method for demand of a bmc
US11620199B1 (en) Method and system for detection of post routine deviation for a network device

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