CN110895502A - Hard disk state indicating device control method and device, electronic equipment and storage medium - Google Patents
Hard disk state indicating device control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110895502A CN110895502A CN201811581125.2A CN201811581125A CN110895502A CN 110895502 A CN110895502 A CN 110895502A CN 201811581125 A CN201811581125 A CN 201811581125A CN 110895502 A CN110895502 A CN 110895502A
- Authority
- CN
- China
- Prior art keywords
- signal
- hard disk
- disk state
- state indicating
- controlled
- 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
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000000694 effects Effects 0.000 claims abstract description 18
- 238000012360 testing method Methods 0.000 claims description 61
- 238000001514 detection method Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000008054 signal transmission Effects 0.000 description 3
- 238000003466 welding Methods 0.000 description 3
- 102100026620 E3 ubiquitin ligase TRAF3IP2 Human genes 0.000 description 2
- 101710140859 E3 ubiquitin ligase TRAF3IP2 Proteins 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001143 conditioned effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to a control method and device of a hard disk state indicating device, electronic equipment and a storage medium, wherein an SGPIO signal is received, and the SGPIO signal comprises an SClock signal, an SLoad signal and an SDataOut signal; when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal. The technical scheme can be completed by the ARM processor, and the problem that the ARM processor cannot analyze data and simultaneously control the state of the hard disk is solved, so that the cost and the power consumption are reduced on the premise of realizing a good control effect by the ARM processor.
Description
Technical Field
The present application relates to the field of hard disk management technologies, and in particular, to a method and an apparatus for controlling a hard disk status indicator, an electronic device, and a storage medium.
Background
With the high-speed development of the computer level, the storage performance requirements of the server are continuously improved, and the number and the capacity of the hard disks of the server are greatly increased at present, so that the finding and the replacement of the damaged hard disks become complicated and tedious, and therefore, the management of the hard disk state indicating device on the hard disks is very important.
The running state of each hard disk can be directly checked by naked eyes through the state of the hard disk state indicating Device, at present, a hard disk backboard designed by a Complex Programmable Logic Device (CPLD) is adopted in the market, and a Serial General Purpose Input/Output (SGPIO) signal is analyzed to control the hard disk state indicating Device to indicate the functions of reading, writing, selecting, error indication and the like of the hard disk, so that a server is more intelligent and is easy to maintain.
However, CPLDs are relatively high in cost and power consumption, and their applications are not widespread enough.
Disclosure of Invention
In view of the above, it is necessary to provide a hard disk state indicating device control method, device, electronic apparatus and storage medium for solving the problems of relatively high cost and power consumption of CPLDs.
A hard disk state indicating device control method comprises the following steps:
receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal;
when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal;
analyzing the SDataOut signal to obtain a hard disk state signal;
and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
In one embodiment, the hard disk state signal includes a Locate signal, an Activity signal and an Error signal, and the outputting the hard disk state indication signal to the hard disk state indication device to be controlled according to the hard disk state signal includes:
outputting a first hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Locate signal, wherein the first hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a selected state;
outputting a second hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk is in a read-write state;
and outputting a third hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
In one embodiment, the method further comprises the following steps:
receiving a hard disk detection signal and a hard disk read-write signal;
and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled through GPIO (General Purpose Input/Output).
In one embodiment, the hard disk state indication signal output by the GPIO includes a first indication signal and a second indication signal, and outputting the hard disk state indication signal to the hard disk state indication device to be controlled by the GPIO in response to the hard disk detection signal and the hard disk read/write signal includes:
when the hard disk detection signal is detected to be in a low level, outputting a first indication signal to the hard disk state indicating device to be controlled through the GPIO, wherein the first indication signal is used for controlling the hard disk in-place indicating unit to be controlled to indicate that the corresponding hard disk is in place;
when the hard disk read-write signal is detected to be in a low level, a second indicating signal is output to the hard disk state indicating device to be controlled through the GPIO, and the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
In one embodiment, the method further comprises the following steps:
when the test device enters the automatic test mode, the GPIO outputs the hard disk state indicating signal combination to the hard disk state indicating device to be controlled, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indicating device to feed back a test result.
In one embodiment, the hard disk State indication signal combination output by the GPIO includes an LED _ Active signal, an LED _ Error signal, an LED _ State signal, and an LED _ location signal, and when entering the automatic test mode, outputting the hard disk State indication signal combination to the hard disk State indication device to be controlled by the GPIO includes:
when the device enters an automatic test mode, outputting a first hard disk state indicating signal combination to a hard disk state indicating device to be controlled through a GPIO (general purpose input/output), wherein the first hard disk state indicating signal combination comprises a high-level LED _ Active signal and a low-level LED _ Error signal;
when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal;
when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal;
when the automatic test mode is entered, a fourth hard disk State indicating signal combination is output to the hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
A hard disk state indicating device control apparatus includes:
the receiving module is used for receiving the SGPIO signals, and the SGPIO signals comprise SClock signals, SLoad signals and SDataOut signals;
the data acquisition module is used for acquiring an SDataOut signal when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level;
the analysis module is used for analyzing the SDataOut signal to acquire a hard disk state signal;
and the control module is used for outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
In one embodiment, the apparatus further comprises:
and the automatic test module is used for outputting the hard disk state indication signal combination to the hard disk state indication device to be controlled through the GPIO when entering an automatic test mode, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indication device to feed back a test result.
An electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal;
when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal;
analyzing the SDataOut signal to obtain a hard disk state signal;
and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal;
when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal;
analyzing the SDataOut signal to obtain a hard disk state signal;
and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
The control method, the control device, the electronic equipment and the storage medium of the hard disk state indicating device receive an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, an SLoad signal and an SDataOut signal; when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal. The technical scheme can be completed by the ARM processor, and the problem that the ARM processor cannot analyze data and simultaneously control the state of the hard disk is solved, so that the cost and the power consumption are reduced on the premise of realizing a good control effect by the ARM processor.
Drawings
FIG. 1 is a diagram of an application environment of a control method of a hard disk status indicating device;
FIG. 2 is a flowchart illustrating a method for controlling a hard disk status indicator according to an embodiment;
FIG. 3 is a schematic diagram of an SGPIO bus;
FIG. 4 is a detailed flowchart of a method for controlling a hard disk status indicator according to an embodiment;
fig. 5 is a schematic structural diagram of a control device of a hard disk state indicating device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for controlling a hard disk status indication device provided by the present application can be applied to the application environment shown in fig. 1, and includes a RAID controller 102, a microcontroller 104, and a hard disk status indication device 106, where the RAID (Redundant Arrays of independent Drives, disk array) controller 102 is a hardware device or a software program for managing a hard disk drive or a solid state disk in a computer or a storage array, and the microcontroller 104 is a single-chip microcomputer integrating the main portion of the microcomputer on one chip. The RAID controller 102 serves as a master device, and sends an SGPIO signal carrying hard disk information to the microcontroller 104 through an SGPIO protocol, where the SGPIO signal includes an SClock signal, a SLoad signal, and an SDataOut signal; when the microcontroller 104 detects that the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device 106 to be controlled according to the hard disk state signal. The microcontroller 104 may include an ARM (Advanced RISCMachine) microcontroller, a CPLD microcontroller, an FPGA (Field programmable gate Array) microcontroller, and the like, and the hard disk status indicator 106 is a device capable of reflecting the operation status of the hard disk, and may include an LED (Light Emitting Diode) lamp, an LED display, a voice player, and the like. For the sake of better clarity of explanation, the RAID controller 102 will be described with a RAID card chip, the microcontroller 104 is an ARM microcontroller, and the hard disk status indication device 106 is described with an LED lamp.
In one embodiment, as shown in fig. 2, a method for controlling a hard disk status indicator is provided, which is described by taking an example of applying the method to an ARM microcontroller, and includes the following steps:
step S200, receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, an SLoad signal and an SDataOut signal.
The RAID controller is used for indicating the state of the hard disk in three ways, namely, GPIO, SGPIO and I2C, the SGPIO is the most common way of the three, an SGPIO signal is a signal output by the RAID card chip through an SGPIO bus, as shown in fig. 3, the SGPIO bus is divided into four pieces, namely, SClock, SLoad, SDataOut and SDataIn, and corresponding output signals thereof are four signals, namely, an SClock signal, an SLoad signal, an SDataOut signal and an SDataIn, where the SClock signal is a clock signal output by the RAID card chip; the SLoad signal is a clock mark signal at the last of the bit stream string, and a clock immediately following the SLoad signal is the start of a new round of bit stream string signals; the SDataOut signal is a serial data output bit stream signal; the SDataIn signal is a serial data input bit stream signal. In this embodiment, the ARM microcontroller is explained by using a microcontroller M051 series M054, NuMicroTMM051 series isM0 is a 32-bit microcontroller with a kernel, which is used in industrial control and in fields requiring rich communication interfaces. NuMicroTMThe M051 series including M052xBN/xDN/xDE, M054xBN/xDN/xDE, M058xBN/xDN/xDE and M0516xBN/xDN/xDE SGPIO (Serial Universal input output) is a method of serializing a general IO signal. SGPIO defines a boot device (e.g. aHost bus adapter) and a target device (e.g., a backplane that plugs into a hard drive). The target device converts the output signal to a plurality of parallel hard disk state signals and provides an input signal to the universal input signal line. The initiator and target devices may be comprised of one or more chips. If multiple chips are used, the signals driving the bus should be conditioned to meet this standard. Specifically, the microcontroller M054 passively receives an SGPIO signal sent by the RAID card chip through the SGPIO protocol.
In step S400, when the SClock signal falls to trigger an interrupt and the SLoad signal is at a low level, an SDataOut signal is collected.
In this embodiment, in the digital clock circuit, the instant at which the digital level changes from the high level (digital "1") to the low level (digital "0") is called a falling edge. The interruption means that when some unexpected situations occur in the running process of the computer and the host needs to intervene, the machine can automatically stop the running program and transfer to the program for processing the new situation, and after the processing is finished, the original suspended program is returned to continue running. The falling edge interrupt is generated when the target signal changes from high level to low level. In this embodiment, after receiving the SGPIO signal, the microcontroller M054 initializes four signals, namely, an SClock signal, a SLoad signal, an SDataOut signal, and an SDataIn signal, in the SGPIO signal, initializes the SClock signal and the SLoad signal as a falling edge interrupt, initializes a timer period of 64ms, configures a flash frequency of the hard disk state indicating device, and acquires the SDataOut signal in response to the interrupt when the SClock signal triggers the interrupt for the falling edge. Specifically, the start of the SGPIO signal transmission is not the start of each frame signal, but the SGPIO signal transmission is started. When the SGPIO signal does not work, the level of the SClock signal is pulled low (falling edge interruption), which indicates that the SGPIO signal starts to transmit, the level of the SLoad signal is pulled low synchronously, and the level of the SDataOut signal changes at the time of rising edge, so that the SDataOut signal is at high level, and the SDataOut level signal sampled at the falling edge (interruption) of the next SClock signal is the first frame data. The end of the SGPIO signal transmission, which is not the end of each frame signal, but the SGPIO signal ends the transmission. During the process of transmitting the SGPIO signal, when the SClock signal is detected to have no change in level (continuously at a high level) within 64ms, the SGPIO signal is considered to be transmitted to be finished, and all hard disk state indicating devices are turned off. The end and start of each frame of the SGPIO signal, after the SGPIO signal starts to transmit, data is transmitted in a frame-by-frame manner, and according to the SGPIO protocol, there are at least 5 low levels and then high levels consecutively on the SLoad line, indicating the end of the frame data and the start of the data of the next frame (the SDataOut signal detected at the next SClock falling edge is another frame data). It is understood that, in the present embodiment, the time period may be set to different values according to specific situations.
Step S600, the SDataOut signal is analyzed, and a hard disk state signal is obtained.
The SDataOut signal line carries the hard disk running state information, and the microcontroller M054 parses the information according to the falling edge interrupt. Each frame of the SDataOut signal is provided with a plurality of drivers, each driver is provided with three bits, bit0 indicates that an Activity signal panel has data interaction, bit1 indicates a State signal (hard disk insertion), and bit2 indicates that an Error signal panel has errors. One driver manages one hard disk and a group of SGPIOs manages 4 hard disks, so the first 4 drivers on the SDataOut signal (driver0-driver3) are used. The corresponding relationship is as follows:
activity signals | State signal | Error signal | |
Hard disk 0 | Driver0.bit0 | Driver0.bit1 | Driver0.bit2 |
Hard disk 1 | Driver1.bit0 | Driver1.bit1 | Driver1.bit2 |
Hard disk 2 | Driver2.bit0 | Driver2.bit1 | Driver2.bit2 |
Hard disk 3 | Driver3.bit0 | Driver3.bit1 | Driver3.bit2 |
After the microcontroller M054 acquires the SDataOut signal, the SDataOut signal is analyzed according to the falling edge interrupt, and the bit information carried by the SDataOut signal is read to acquire the hard disk state signal.
Step S800, according to the hard disk state signal, outputting a hard disk state indicating signal to a hard disk state indicating device to be controlled.
The hard disk state indicating signal is used for controlling the hard disk state indicating device to be controlled to display the hard disk state.
In the control method of the hard disk state indicating device, an SGPIO signal is received, wherein the SGPIO signal comprises an SClock signal, an SLoad signal and an SDataOut signal; when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal. The technical scheme can be completed by the ARM processor, and the problem that the ARM processor cannot analyze data and simultaneously control the state of the hard disk is solved, so that the cost and the power consumption are reduced on the premise of realizing a good control effect by the ARM processor.
As shown in fig. 4, in one embodiment, the hard disk state signal includes a Locate signal, an Activity signal, and an Error signal, and outputting the hard disk state indication signal to the hard disk state indication device to be controlled according to the hard disk state signal includes: s820, outputting a first hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Locate signal, wherein the first hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a selected state; s840, outputting a second hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk is in a read-write state; and S860, outputting a third hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
Specifically, when the microcontroller M054 analyzes the hard disk state signal sent by the RAID card chip, different hard disk state indication signals are output to the hard disk indicator lamp to be controlled according to different hard disk state signals. The hard disk state indication signal may include a hard disk on-site indication signal, a hard disk read-write indication signal, and a hard disk fault indication signal. The hard disk indicating lamps can be one or multiple, and in the embodiment, a plurality of hard disk indicating lamps are adopted, including a hard disk on-site indicating lamp, a hard disk reading and writing indicating lamp and a hard disk fault indicating lamp. When the hard disk state signal is a Locate signal, outputting a hard disk in-place indicating signal to a hard disk in-place indicating lamp to be controlled, and when the hard disk in-place indicating lamp receives the hard disk in-place indicating signal, executing red flashing, wherein people can judge that the hard disk is in a selected state according to the flashing state of the red lamp; when the hard disk state signal is an Activity signal, a hard disk reading and writing indicating signal is output to a hard disk reading and writing indicating lamp to be controlled, green flashing is executed when the hard disk reading and writing indicating lamp receives the hard disk reading and writing indicating signal, and people can judge that data interaction of the hard disk is in a reading and writing state according to the green flashing state of the hard disk reading and writing indicating lamp; when the hard disk state signal is an Error signal, a hard disk fault indicating signal is output to a hard disk fault indicating lamp to be controlled, when the hard disk fault indicating lamp receives the hard disk fault indicating signal, red flashing is executed, and people can judge that the hard disk has a fault according to the red flashing state of the hard disk fault indicating lamp. Therefore, the running state of the hard disk does not need to be manually detected, the state of the hard disk indicator light is controlled through the hard disk state information fed back by the RAID card chip, a user can judge the corresponding current running state of the hard disk through the state of the hard disk indicator light, and time and labor cost are saved.
In one embodiment, the method further comprises receiving a hard disk detection signal and a hard disk read-write signal; and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled through the GPIO.
The application also has the compatible function of providing the on-site indicator light and the read-write indicator light for only SAS/SATA hard disks when the pointer is not provided with the RAID controller. In this embodiment, the hard disk status indicator is an LED lamp, and the device connected to the ARM microcontroller may be a SAS or SATA interface device, and may be directly connected to 8 to 12 hard disks at most; the equipment and the ARM microcontroller are directly connected with the ARM microcontroller through the SAS1_ STATE and the LED _ SAS1_ ACT1, STATE information of the equipment can be directly fed back to the ARM microcontroller, the ARM microcontroller and the LED lamp are connected with the ARM microcontroller through GPIO, the number of the ARM microcontroller and the LED lamp is 8, and each group of the ARM microcontroller comprises LED _ State and LED _ Active signals. The ARM controller can control the LED through the GPIO according to the information fed back by the Device, and feeds back corresponding information to a user. Specifically, the SAS1_ STATE is a hard disk detection signal, the LED _ SAS1_ ACT1 is a hard disk read-write signal, when a hard disk is inserted, the hard disk detection signal of the ARM microcontroller is in a low level STATE, and when the hard disk has read-write activity, the hard disk read-write signal of the ARM microcontroller is in the low level STATE. After the ARM controller receives the signals and is logically judged, the hard disk state indicating signals are output to the LED lamp to be controlled through the GPIO to achieve the function of indicating the state of the hard disk. In this embodiment, when there is no RAID controller, the functions of the in-place indicator light and the read-write indicator light are provided for only the SAS/SATA hard disk, so that the function diversification of the ARM microcontroller is realized.
In one embodiment, the hard disk state indication signal output by the GPIO includes a first indication signal and a second indication signal, and outputting the hard disk state indication signal to the hard disk state indication device to be controlled by the GPIO in response to the hard disk detection signal and the hard disk read/write signal includes: when the hard disk detection signal is detected to be in a low level, outputting a first indication signal to the hard disk state indicating device to be controlled through the GPIO, wherein the first indication signal is used for controlling the hard disk in-place indicating unit to be controlled to indicate that the corresponding hard disk is in place; when the hard disk read-write signal is detected to be in a low level, a second indicating signal is output to the hard disk state indicating device to be controlled through the GPIO, and the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
Specifically, a signal output by the GPIO is set to be high-level effective, a hard disk State indicating signal comprises an LED _ State signal and an LED _ Active signal, when the ARM microcontroller detects that a received hard disk detection signal is low, the ARM microcontroller responds to the signal to acquire a State _ Flag signal sent by equipment of the SAS or SATA interface, when the State _ Flag signal is high, the GPIO outputs the high-level LED _ State signal, when the LED lamp receives the high-level LED _ State signal, the hard disk in-place indicating lamp is controlled to be in a normally-on State, and people can know that a hard disk is inserted by means of the normally-on State of the hard disk in-place indicating lamp; when the State _ Flag signal is at a low level, the low-level LED _ State signal is output through the GPIO, the LED lamp controls the hard disk in-place indicating lamp to be in an off State when receiving the low-level LED _ State signal, and people can know that no hard disk is inserted by means of the off State of the hard disk in-place indicating lamp. When the ARM microcontroller detects that the received hard disk read-write signal is at a low level, the HDD _ Active signal of the equipment with the SAS or SATA interface is obtained in response to the signal, when the HDD _ Active signal is at a high level, the high-level LED _ Active signal is output through the GPIO, and when the LED lamp receives the high-level LED _ Active signal, the hard disk read-write indicator lamp is controlled to be in a normally-on state, and people can know that the hard disk is in a read-write state by virtue of the normally-on state of the hard disk in-place indicator lamp; when the HDD _ Active signal is at a low level, the low-level LED _ Active signal is output through the GPIO, and when the LED lamp receives the low-level LED _ Active signal, the hard disk read-write indicating lamp is controlled to be in an off state, so that people can know that the hard disk has no read-write activity by virtue of the off state of the hard disk read-write indicating lamp. In the implementation, the ARM microcontroller outputs the hard disk state indicating signal through the GPIO after logic judgment by responding to the hard disk detection signal and the hard disk read-write signal, so that the LED lamp is driven to achieve the effect of indicating the hard disk state, and the detection process is simplified.
In one embodiment, the method further comprises the following steps: when the test device enters the automatic test mode, the GPIO outputs the hard disk state indicating signal combination to the hard disk state indicating device to be controlled, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indicating device to feed back a test result.
The automatic test mode is a working mode of changing a system in a jumper wire mode, and an automatic detection mode is executed. And combining the hard disk state indicating signals output by the GPIO to the hard disk state indicating device to be controlled to control the hard disk state indicating device to be controlled to feed back the test result. Therefore, the condition that whether the materials and the welding of the back plate are intact or not is measured manually, and labor and time are saved.
In one embodiment, the hard disk State indication signal combination output by the GPIO includes an LED _ Active signal, an LED _ Error signal, an LED _ State signal, and an LED _ location signal, and when entering the automatic test mode, outputting the hard disk State indication signal combination to the hard disk State indication device to be controlled by the GPIO includes: when the device enters an automatic test mode, outputting a first hard disk state indicating signal combination to a hard disk state indicating device to be controlled through a GPIO (general purpose input/output), wherein the first hard disk state indicating signal combination comprises a high-level LED _ Active signal and a low-level LED _ Error signal; when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal; when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal; when the automatic test mode is entered, a fourth hard disk State indicating signal combination is output to the hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
The ARM microcontroller enters a test mode in a jumper wire mode, the jumper wire is used for adjusting the on-off relation of different electric signals on the equipment and adjusting the working state of the equipment, in the embodiment, the jumper wire is connected in advance, and the ARM microcontroller can be informed of entering the automatic test mode through the jumper wire. The hard disk indicating device can be a double-color LED lamp, and the LED lamp can be 8-12 groups of double-color LEDs for directly feeding back a test result. Then, the flashing frequency of the single LED lamp is controlled to be 10Hz by a timer, namely the time for flashing the lamp once is 0.1 second. When the ARM microcontroller enters a test mode, the LED can be directly driven by changing the high-low level state of the hard disk state indicating signal output by the GPIO, the flash frequency is set at 10Hz, and the hard disk state indicating signal is an analog signal. When the ARM microcontroller outputs high-level LED _ Active signals and high-level and low-level signals of low-level LED _ Error signals through the GPIO, the LED lamp flickers in a red light mode; when the ARM microcontroller outputs a low-level LED _ Active signal and a high-level and low-level signal combination of a high-level LED _ Error signal through the GPIO, the LED lamp flickers in a green state; when the ARM microcontroller outputs the high-level and low-level combination of the high-level LED _ State signal and the low-level LED _ Locate signal through the GPIO, the LED lamp flickers in a red light mode; when the ARM microcontroller outputs the high-low level combination of the low-level LED _ State signal and the high-level LED _ Locate signal through the GPIO, the LED lamp flickers in a green State; people can judge that the materials and the welding of the hard disk back plate are unqualified by means of the red light flashing of the LED, and judge that the materials and the welding of the hard disk back plate are qualified by means of the green light flashing of the LED. In the embodiment, the automatic test function is added, the simulation hard disk state signal directly drives the LED lamp through the GPIO output signal, the test result of the hard disk backboard is directly fed back, and the test mode is simple, low in cost and more intelligent.
It should be understood that although the steps in the flowcharts of fig. 2 and 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 4 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a hard disk state indicating apparatus control apparatus including: a receiving module 510, a data collecting module 520, a parsing module 530 and a control module 540, wherein:
the receiving module 510 is configured to receive an SGPIO signal, where the SGPIO signal includes an SClock signal, a SLoad signal, and an SDataOut signal.
And a data acquisition module 520, configured to acquire the SDataOut signal when the SClock signal falls to trigger an interrupt and the SLoad signal is at a low level.
And the analyzing module 530 is configured to analyze the SDataOut signal to obtain a hard disk state signal.
And the control module 540 is configured to output a hard disk state indication signal to the hard disk state indication device to be controlled according to the hard disk state signal.
In an embodiment, the control module 540 is further configured to output a first hard disk state indication signal to the hard disk state indication device to be controlled according to the Locate signal, where the first hard disk state indication signal is used to control the hard disk state indication device to indicate that the corresponding hard disk is in the selected state; outputting a second hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk is in a read-write state; and outputting a third hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
In one embodiment, the control module 540 is further configured to receive a hard disk detection signal and a hard disk read/write signal; and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled through the GPIO.
In one embodiment, the control module 540 is further configured to output a first indication signal to the hard disk state indication device to be controlled through the GPIO when the hard disk detection signal is detected to be at a low level, where the first indication signal is used to control the hard disk in-place indication unit to be controlled to indicate that the corresponding hard disk is in place; when the hard disk read-write signal is detected to be in a low level, a second indicating signal is output to the hard disk state indicating device to be controlled through the GPIO, and the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
In an embodiment, the hard disk state indicating device control apparatus further includes an automatic test module 550, configured to output a hard disk state indicating signal combination to the hard disk state indicating device to be controlled through the GPIO when entering the automatic test mode, where the hard disk state signal combination is an analog signal combination and is used to control the hard disk state indicating device to feed back a test result.
In one embodiment, the automatic test module 550 is further configured to output, when entering the automatic test mode, a first hard disk state indication signal combination to the hard disk state indication device to be controlled through the GPIO, where the first hard disk state indication signal combination includes a high-level LED _ Active signal and a low-level LED _ Error signal; when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal; when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal; when the automatic test mode is entered, a fourth hard disk State indicating signal combination is output to the hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
For specific limitations of the hard disk status indication device control device, reference may be made to the above limitations of the hard disk status indication device control method, which are not described herein again. All or part of each module in the hard disk state indicating device control device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which includes a memory and a processor, and the processor of the electronic device may be a single chip or a highly integrated chip for controlling a hard disk status indication apparatus. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium.
In one embodiment, an electronic device comprises a memory having a computer program stored therein and a processor that when executed implements the steps of: receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal; when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: outputting a first hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Locate signal, wherein the first hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a selected state; outputting a second hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk is in a read-write state; and outputting a third hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a hard disk detection signal and a hard disk read-write signal; and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled through the GPIO.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the hard disk detection signal is detected to be in a low level, outputting a first indication signal to the hard disk state indicating device to be controlled through the GPIO, wherein the first indication signal is used for controlling the hard disk in-place indicating unit to be controlled to indicate that the corresponding hard disk is in place; when the hard disk read-write signal is detected to be in a low level, a second indicating signal is output to the hard disk state indicating device to be controlled through the GPIO, and the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the test device enters the automatic test mode, the GPIO outputs the hard disk state indicating signal combination to the hard disk state indicating device to be controlled, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indicating device to feed back a test result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the device enters an automatic test mode, outputting a first hard disk state indicating signal combination to a hard disk state indicating device to be controlled through a GPIO (general purpose input/output), wherein the first hard disk state indicating signal combination comprises a high-level LED _ Active signal and a low-level LED _ Error signal; when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal; when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal; when the automatic test mode is entered, a fourth hard disk State indicating signal combination is output to the hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal; when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring an SDataOut signal; analyzing the SDataOut signal to obtain a hard disk state signal; and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: outputting a first hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Locate signal, wherein the first hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a selected state; outputting a second hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk is in a read-write state; and outputting a third hard disk state indicating signal to the hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a hard disk detection signal and a hard disk read-write signal; and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled through the GPIO.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the hard disk detection signal is detected to be in a low level, outputting a first indication signal to the hard disk state indicating device to be controlled through the GPIO, wherein the first indication signal is used for controlling the hard disk in-place indicating unit to be controlled to indicate that the corresponding hard disk is in place; when the hard disk read-write signal is detected to be in a low level, a second indicating signal is output to the hard disk state indicating device to be controlled through the GPIO, and the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the test device enters the automatic test mode, the GPIO outputs the hard disk state indicating signal combination to the hard disk state indicating device to be controlled, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indicating device to feed back a test result.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the device enters an automatic test mode, outputting a first hard disk state indicating signal combination to a hard disk state indicating device to be controlled through a GPIO (general purpose input/output), wherein the first hard disk state indicating signal combination comprises a high-level LED _ Active signal and a low-level LED _ Error signal; when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal; when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal; when the automatic test mode is entered, a fourth hard disk State indicating signal combination is output to the hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A control method of a hard disk state indicating device is characterized by comprising the following steps:
receiving an SGPIO signal, wherein the SGPIO signal comprises an SClock signal, a SLoad signal and an SDataOut signal;
when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level, acquiring the SDataOut signal;
analyzing the SDataOut signal to obtain a hard disk state signal;
and outputting a hard disk state indicating signal to a hard disk state indicating device to be controlled according to the hard disk state signal.
2. The method according to claim 1, wherein the hard disk state signal comprises a Locate signal, an Activity signal and an Error signal, and outputting the hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal comprises:
outputting a first hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Locate signal, wherein the first hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a selected state;
outputting a second hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Activity signal, wherein the second hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that a corresponding hard disk is in a read-write state;
and outputting a third hard disk state indicating signal to a hard disk state indicating device to be controlled according to the Error signal, wherein the third hard disk state indicating signal is used for controlling the hard disk state indicating device to indicate that the corresponding hard disk has a fault.
3. The method of claim 1, further comprising:
receiving a hard disk detection signal and a hard disk read-write signal;
and responding to the hard disk detection signal and the hard disk read-write signal, and outputting a hard disk state indicating signal to a hard disk state indicating device to be controlled through a GPIO (general purpose input/output).
4. The method according to claim 3, wherein the hard disk state indication signal outputted by the GPIO comprises a first indication signal and a second indication signal, and the step of outputting the hard disk state indication signal to the hard disk state indication device to be controlled through the GPIO in response to the hard disk detection signal and the hard disk read-write signal comprises:
when the hard disk detection signal is detected to be in a low level, outputting a first indication signal to a hard disk state indication device to be controlled through the GPIO, wherein the first indication signal is used for controlling an in-place indication unit of the hard disk to be controlled to indicate that the corresponding hard disk is in place;
and when the hard disk read-write signal is detected to be in a low level, outputting a second indicating signal to the hard disk state indicating device to be controlled through the GPIO, wherein the second indicating signal is used for controlling the hard disk state indicating device to be controlled to indicate that the corresponding hard disk is in a read-write state.
5. The method of claim 3, further comprising:
when the test device enters an automatic test mode, the GPIO outputs a hard disk state indicating signal combination to the hard disk state indicating device to be controlled, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indicating device to feed back a test result.
6. The method as claimed in claim 5, wherein the combination of hard disk status indication signals outputted by GPIO includes LED _ Active signal, LED _ Error signal, LED _ State signal and LED _ Locate signal, and when entering the automatic test mode, the outputting of the combination of hard disk status indication signals to the hard disk status indication device to be controlled by GPIO includes:
when the device enters an automatic test mode, outputting a first hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the first hard disk state indicating signal combination comprises a high-level LED _ Active signal and a low-level LED _ Error signal;
when the device enters an automatic test mode, outputting a second hard disk state indicating signal combination to a hard disk state indicating device to be controlled through the GPIO, wherein the second hard disk state indicating signal combination comprises a low-level LED _ Active signal and a high-level LED _ Error signal;
when the device enters an automatic test mode, outputting a third hard disk State indicating signal combination to a hard disk State indicating device to be controlled through the GPIO, wherein the third hard disk State indicating signal combination comprises a high-level LED _ State signal and a low-level LED _ Locate signal;
when the device enters an automatic test mode, a fourth hard disk State indicating signal combination is output to a hard disk State indicating device to be controlled through the GPIO, and the fourth hard disk State indicating signal combination comprises a low-level LED _ State signal and a high-level LED _ Locate signal.
7. A hard disk status indication device control apparatus, the apparatus comprising:
the device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an SGPIO signal, and the SGPIO signal comprises an SClock signal, an SLoad signal and an SDataOut signal;
the data acquisition module is used for acquiring the SDataOut signal when the SClock signal falling edge triggers interruption and the SLoad signal is at a low level;
the analysis module is used for analyzing the SDataOut signal to acquire a hard disk state signal;
and the control module is used for outputting a hard disk state indicating signal to the hard disk state indicating device to be controlled according to the hard disk state signal.
8. The hard disk status indication device control device of claim 7, wherein said device further comprises:
and the automatic test module is used for outputting a hard disk state indication signal combination to the hard disk state indication device to be controlled through the GPIO when entering an automatic test mode, and the hard disk state signal combination is an analog signal combination and is used for controlling the hard disk state indication device to feed back a test result.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811581125.2A CN110895502B (en) | 2018-12-24 | 2018-12-24 | Control method and device for hard disk state indicating device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811581125.2A CN110895502B (en) | 2018-12-24 | 2018-12-24 | Control method and device for hard disk state indicating device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110895502A true CN110895502A (en) | 2020-03-20 |
CN110895502B CN110895502B (en) | 2024-02-20 |
Family
ID=69785549
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811581125.2A Active CN110895502B (en) | 2018-12-24 | 2018-12-24 | Control method and device for hard disk state indicating device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110895502B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113868085A (en) * | 2021-09-27 | 2021-12-31 | 中国长城科技集团股份有限公司 | Hard disk monitoring method, device and system |
CN113900708A (en) * | 2021-09-30 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Signal management device and method for server and server |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
CN102831086A (en) * | 2012-07-25 | 2012-12-19 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing hard disk system |
CN102841838A (en) * | 2011-06-21 | 2012-12-26 | 英业达股份有限公司 | Device, system and method for automatically detecting inter-integrated circuit (I2C) and SGPIO (serious general-purpose input/output) |
CN104516802A (en) * | 2015-01-08 | 2015-04-15 | 浪潮(北京)电子信息产业有限公司 | Method and system for indicating statuses of different types of hard disks |
CN104572358A (en) * | 2015-01-29 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for realizing online simulation of hard disk dropping |
CN106649048A (en) * | 2015-11-03 | 2017-05-10 | 广达电脑股份有限公司 | Indicator light control system and light-emitting diode control method |
CN106776196A (en) * | 2017-02-27 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of server hard disc method for monitoring state and system |
CN107229553A (en) * | 2017-06-23 | 2017-10-03 | 郑州云海信息技术有限公司 | A kind of hard disk based on programmable module in place with Operations Control System and method |
-
2018
- 2018-12-24 CN CN201811581125.2A patent/CN110895502B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
CN102841838A (en) * | 2011-06-21 | 2012-12-26 | 英业达股份有限公司 | Device, system and method for automatically detecting inter-integrated circuit (I2C) and SGPIO (serious general-purpose input/output) |
CN102831086A (en) * | 2012-07-25 | 2012-12-19 | 浪潮(北京)电子信息产业有限公司 | Method and device for managing hard disk system |
CN104516802A (en) * | 2015-01-08 | 2015-04-15 | 浪潮(北京)电子信息产业有限公司 | Method and system for indicating statuses of different types of hard disks |
CN104572358A (en) * | 2015-01-29 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for realizing online simulation of hard disk dropping |
CN106649048A (en) * | 2015-11-03 | 2017-05-10 | 广达电脑股份有限公司 | Indicator light control system and light-emitting diode control method |
CN106776196A (en) * | 2017-02-27 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of server hard disc method for monitoring state and system |
CN107229553A (en) * | 2017-06-23 | 2017-10-03 | 郑州云海信息技术有限公司 | A kind of hard disk based on programmable module in place with Operations Control System and method |
Non-Patent Citations (1)
Title |
---|
SFF 委员会: "SFF-8485 串行GPIO(SGPIO)总线规范", pages 1 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113868085A (en) * | 2021-09-27 | 2021-12-31 | 中国长城科技集团股份有限公司 | Hard disk monitoring method, device and system |
CN113900708A (en) * | 2021-09-30 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Signal management device and method for server and server |
CN113900708B (en) * | 2021-09-30 | 2024-02-23 | 苏州浪潮智能科技有限公司 | Signal management device and method for server and server |
Also Published As
Publication number | Publication date |
---|---|
CN110895502B (en) | 2024-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8443238B2 (en) | System and method for testing hard disk ports | |
CN102662608B (en) | Method and the device of time delay are read in a kind of reduction | |
CN106571166B (en) | MT29F series NAND FLASH test aging system with customizable flow | |
CN105389248A (en) | Lamp number control system of non-volatile memory solid-state hard disk | |
CN105517676A (en) | Whole-machine testing method and device of smart bracelets, and mobile terminal | |
US9442834B2 (en) | Data management method, memory controller and memory storage device | |
KR20210155228A (en) | Memory device and method for operating the same | |
KR101240633B1 (en) | Solid state drive tester | |
CN112530513B (en) | High-precision flash erasing and writing time acquisition device based on FPGA | |
CN106154072B (en) | A kind of electronic equipment test macro and method | |
CN110895502A (en) | Hard disk state indicating device control method and device, electronic equipment and storage medium | |
US20140337598A1 (en) | Modulation of flash programming based on host activity | |
CN101770404B (en) | Watchdog circuit capable of keeping status and method for keeping restart status thereof | |
CN105550097A (en) | Lamp signal control system for non-volatile memory express solid state disk | |
CN109656756B (en) | Multi-core CPU board debugging method and device and mobile storage medium | |
CN110619914A (en) | Mass production method for solid state disk with PCIe interface mass production device | |
US20130032633A1 (en) | Chip test system | |
CN103092725B (en) | A kind of method and device realizing data backup in storer | |
US20230342084A1 (en) | Generating command snapshots in memory devices | |
CN112445670B (en) | eMMC test method and device | |
US9152348B2 (en) | Data transmitting method, memory controller and data transmitting system | |
CN101769984B (en) | Test method of light emitting diode of storage device and test tool thereof | |
CN116486886A (en) | Self-burn-in test system and method for data storage device | |
US10922023B2 (en) | Method for accessing code SRAM and electronic device | |
CN112582015A (en) | Method and system for NOR Flash reliability test |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230731 Address after: 522, 5th Floor, Block A, Haina Baichuan Headquarters Building, No.6 Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen City, Guangdong Province, 518101 Applicant after: Shenzhen yiyike data equipment Technology Co.,Ltd. Address before: 518107 5th floor, No.1, Yanxiang Zhigu chuangxiangdi, No.11, Gaoxin Road, Guangming New District, Shenzhen City, Guangdong Province Applicant before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |