CN107229553B - Hard disk on-site and activity control system and method based on programmable module - Google Patents

Hard disk on-site and activity control system and method based on programmable module Download PDF

Info

Publication number
CN107229553B
CN107229553B CN201710488464.5A CN201710488464A CN107229553B CN 107229553 B CN107229553 B CN 107229553B CN 201710488464 A CN201710488464 A CN 201710488464A CN 107229553 B CN107229553 B CN 107229553B
Authority
CN
China
Prior art keywords
hard disk
activity
programmable module
module
indicator lamp
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.)
Active
Application number
CN201710488464.5A
Other languages
Chinese (zh)
Other versions
CN107229553A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710488464.5A priority Critical patent/CN107229553B/en
Publication of CN107229553A publication Critical patent/CN107229553A/en
Application granted granted Critical
Publication of CN107229553B publication Critical patent/CN107229553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • G06F11/326Display of status information by lamps or LED's for error or online/offline status
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a hard disk on-site and activity control system and method based on a programmable module, wherein the system comprises a hard disk, the programmable module, a first resistor and a hard disk activity indicator lamp; the hard disk is connected with the programmable module through a hard disk in-place detection signal IfDet# line and a hard disk active signal line; the programmable module is connected with one end of a first resistor through a hard disk activity indicator control signal LED_ACT# line, the other end of the first resistor is connected with the cathode of the hard disk activity indicator, and the anode of the hard disk activity indicator is connected with a power supply VCC. The method comprises the following steps: 1. judging whether the hard disk is in place or not; if yes, 2 is entered; if not, go to 5;2. judging whether the hard disk is in a read-write active state or not; if yes, entering 3; if not, enter 4;3, flashing the LED movable indicator lamp; returning to 1;4, the LED movable indicator lamp is always on; returning to 1;5, the LED movable indicator lamp is not lighted; returning to 1.

Description

Hard disk on-site and activity control system and method based on programmable module
Technical Field
The invention belongs to the technical field of server hard disk back plates, and particularly relates to a hard disk on-site and activity control system and method based on a programmable module.
Background
In the field of server storage control, multi-hard disk mounting is a great development direction nowadays. The indicating lamp of the hard disk mainly comprises an Error indicating lamp, a Locate indicating lamp and an Active indicating lamp, wherein the Active indicating lamp is always on to indicate that the current hard disk is in an in-place state, namely the hard disk is inserted, and the Active indicating lamp flashes to indicate that the current hard disk is in a read-write Active state.
When the hard disk is only inserted but not subjected to reading or writing activities, the Active indicator lamp of the hard disk is in a normally-on state at the moment, and indicates that the hard disk is inserted. In the current design of the hard disk backboard, the hard disk is judged in place: the ACTIVITY signal is directly obtained by hard disk drive or by upper SGPIO analysis, but because the hard disks of different types directly output or the ACTIVITY level of SGPIO analysis is different when the hard disks are in place, a lighting circuit aiming at high and low levels needs to be designed respectively when a hardware circuit is designed, the periods of ACTIVITY square wave signals output by the different hard disks are different, and the flicker frequencies of Active indicator lamps of the hard disks are inconsistent.
When the hard disk is subjected to reading or writing activities, the Active indicator lamp is in a flashing state at the moment, and indicates that the hard disk is in an Active state. In the existing hard disk backboard design, the hard disk activity is judged: in the first scheme, an ACTIVITY signal is directly output by a hard disk; the second scheme is that the ACTIVITY signal is analyzed through SGPIO, and then a CPLD_FPGA outputs a control signal serving as a hard disk Active indicator lamp; and thirdly, directly analyzing the ACTIVITY output by the hard disk by the CPLD_FPGA and outputting a control signal of the Active indicator lamp of the hard disk. In a hardware circuit, in order to avoid alternate flickering of the Active indicator lights of the hard disk aiming at high and low levels, a low-frequency filter circuit needs to be added on the way, so that the low-frequency square wave cannot enable the Active indicator lights of the hard disk to flicker. For the first scheme and the second scheme, different hard disks have the problems of diversity and inconsistency of square wave frequencies of ACTIVITY signals, and the problems that the frequencies exceed the human eye identification range, the human eyes can not identify the signals too fast to flash and the flicker rate is inconsistent; for the third scheme, square waves with fixed frequency can be output, but the ACTIVITY square wave signals output by different hard disks are different, and the actual test shows that the period of the ACTIVITY square wave signal output by the hard disk is different from 4ms to 100ms, so that the internal detection clock of the CPLD_FPGA is relatively fast, the edge change of the ACTIVITY signal cannot be detected in the continuous internal clock period, and the problem of misjudgment exists.
This is a disadvantage of the prior art, and therefore, it is necessary to provide a hard disk on-site and activity control system and method based on a programmable module, aiming at the above-mentioned drawbacks of the prior art.
Disclosure of Invention
The invention aims to provide a hard disk on-site and activity control system and method based on a programmable module for solving the technical problems of inconsistent flash frequency and complex hardware circuit of the hard disk activity indicator lamp.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a hard disk on-site and activity control system based on a programmable module comprises
The device comprises a hard disk, a programmable module, a first resistor and a hard disk Active indicator lamp;
the hard disk is connected with the programmable module through a hard disk in-place detection signal IfDet# line and a hard disk ACTIVITY signal ACTIVITY line;
the programmable module is connected with one end of a first resistor through a control signal LED_ACT# line of the hard disk Active indicator lamp, the other end of the first resistor is connected with a cathode of the hard disk Active indicator lamp, and an anode of the hard disk Active indicator lamp is connected with a power supply VCC.
Further, the programmable module comprises a hard disk in-place judging module, a hard disk read-write judging module and an output control module;
the hard disk in-place judging module is connected with the hard disk through a hard disk in-place detecting signal IfDet# line;
the hard disk read-write judging module is connected with the hard disk through a hard disk ACTIVITY signal ACTIVITY line;
the hard disk in-place judging module and the hard disk read-write judging module are connected with the output control module;
the output control module is connected with the first resistor;
the hard disk read-write judging module comprises a hard disk ACTIVITY edge detecting unit and a stopping judging unit.
Further, the programmable module adopts an FPGA programmable module or a CPLD programmable module.
Further, the state of the hard disk bit detection signal ifdet# includes a floating state or a low state.
Further, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk through a general purpose input/output port GPIO.
Further, the system also comprises a second resistor and a switch, wherein the control signal LED_ACT# line of the Active indicator lamp of the hard disk is connected with the switch, the other end of the switch is connected with the second resistor, and the other end of the second resistor is connected with the power supply VCC.
Further, the Active indicator light of the hard disk comprises an unlit state, a normally-bright state or a flashing state.
Further, the hard disk ACTIVITY edge detection unit includes an internal clock, and the stop judgment unit includes a counter.
The invention also provides the following technical scheme:
a hard disk on-site and activity control method based on a programmable module comprises the following steps:
step 1, a programmable module judges whether a hard disk is in place or not;
if yes, entering a step 2;
if not, go to step 5;
step 2, the programmable module judges whether the hard disk is in a reading and writing active state or not;
if yes, entering a step 3;
if not, entering a step 4;
step 3, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a flickering state; returning to the step 1;
step 4, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a normally-on state; returning to the step 1;
step 5, the programmable module outputs a control signal LED_ACT# pull-up process of the Active indicator lamp of the hard disk, and controls the Active indicator lamp of the hard disk to be in an unlit state; returning to the step 1.
Further, in step 1, the programmable module determines whether the hard disk is in place by detecting the hard disk in-place detection signal ifdet# outputted from the hard disk,
if the hard disk in-place detection signal IfDet# is in a low level state, judging that the hard disk is in place;
if the hard disk in-place detection signal IfDet# is in a suspended state, judging that the hard disk is out of place.
Further, in step 2, the programmable module determines whether the hard disk is in a read-write active state by detecting a hard disk ACTIVITY signal ACTIVITY output by the hard disk, and specifically includes the following steps:
step 2-1, a hard disk ACTIVITY edge detection unit of the programmable module detects the edge of a hard disk ACTIVITY signal ACTIVITY through an internal clock;
if the programmable module detects the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the programmable module cannot detect the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, the step 2-2 is entered;
step 2-2, setting a clock cycle accumulated count maximum value, and detecting the edge of a hard disk ACTIVITY signal ACTIVITY in the clock cycle accumulated count maximum value by a stop judging unit of the programmable module through a counter;
if the edge of the hard disk ACTIVITY signal ACTIVITY is detected, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the edge of the hard disk ACTIVITY signal ACTIVITY is not detected, judging that the hard disk is not in a read-write ACTIVITY state, and entering step 4.
The invention has the beneficial effects that:
the invention unifies the states of the hard disk movable indicator lamps in the on-site and movable states of the hard disk into the existing programmable modules for control, the control scheme is simpler and clearer, the control effect is more ideal, meanwhile, on the hardware, the unique output level is determined when the hard disk is on-site, the hardware circuit is simplified, the two-way lighting circuit is simplified into one-way lighting circuit, the design of a low-frequency filter circuit is removed, and the complexity and the production cost of the hardware circuit design are reduced.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
FIG. 1 is a schematic diagram of a circuit connection of the present invention;
FIG. 2 is a flow chart of the method of the present invention, FIG. 1;
FIG. 3 is a flow chart of the method of the present invention;
FIG. 4 is a simulation diagram of the system of the present invention;
wherein, 11-hard disk; 12-a programmable module; 12.1-a hard disk in-place judging module; 12.2-a hard disk read-write judging module; 12.2.1-a hard disk ACTIVITY edge detection unit; 12.2.2-stop judging unit; 13-a first resistor; 14-Active indicator lights of hard disk; 15-power VCC; 16-hard disk bit detection signal ifdet# line; 17-a hard disk ACTIVITY signal ACTIVITY line; 18-hard disk Active indicator control signal led_act# line.
The specific embodiment is as follows:
in order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the specific embodiments of the present invention.
As shown in FIG. 1, the invention provides a hard disk on-site and activity control system based on a programmable module, which comprises a hard disk 11, a programmable module 12, a first resistor 13 and a hard disk Active indicator lamp 14; the programmable module 12 adopts an FPGA programmable module or a CPLD programmable module;
the hard disk 11 is connected with the programmable module 12 through a hard disk in-place detection signal IfDet# line 16 and a hard disk ACTIVITY signal ACTIVITY line 17;
the programmable module 12 is connected with one end of a first resistor 13 through a hard disk Active indicator lamp control signal LED_ACT# line 18, the other end of the first resistor 13 is connected with the cathode of a hard disk Active indicator lamp 14, and the anode of the hard disk Active indicator lamp 14 is connected with a power supply VCC 15; the hard disk Active indicator lamp 14 comprises an unlit state, a normally-bright state or a flashing state;
the programmable module 12 comprises a hard disk in-place judging module 12.1, a hard disk read-write judging module 12.2 and an output control module 12.3;
the hard disk in-place judging module 12.1 is connected with the hard disk 11 through a hard disk in-place detecting signal IfDet# line 16; the state of the hard disk bit detection signal IfDet# comprises a floating state or a low level state;
the hard disk read-write judging module 12.2 is connected with the hard disk 11 through a hard disk ACTIVITY signal ACTIVITY line 17;
the hard disk in-place judging module 12.1 and the hard disk read-write judging module 12.2 are connected with the output control module 12.3;
the output control module 12.3 is connected with the first resistor 13;
the hard disk read-write judging module 12.2 comprises a hard disk ACTIVITY edge detecting unit 12.2.1 and a stopping judging unit 12.2.2; the hard disk ACTIVITY edge detection unit 12.2.1 includes an internal clock, and the stop determination unit 12.2.2 includes a counter;
the programmable module 12 outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk through a general purpose input/output port GPIO;
the system also comprises a second resistor and a switch, wherein the control signal LED_ACT# line of the Active indicator lamp of the hard disk is connected with the switch, the other end of the switch is connected with the second resistor, and the other end of the second resistor is connected with a power supply VCC; when no hard disk is inserted, the control signal LED_ACT# of the hard disk Active indicator lamp is output in an uncertain level, at the moment, a switch is closed, the control signal LED_ACT# of the hard disk Active indicator lamp is pulled up, and the fact that the hard disk Active indicator lamp is not on at the moment is ensured.
As shown in fig. 2 and fig. 3, the present invention further provides a hard disk on-site and active control method based on a programmable module, which includes the following steps:
step 1, a programmable module judges whether a hard disk is in place or not;
the programmable module judges whether the hard disk is in place or not by detecting a hard disk in-place detection signal IfDet# output by the hard disk,
if the hard disk in-place detection signal IfDet# is in a low level state, judging that the hard disk is in place;
if the hard disk in-place detection signal IfDet# is in a suspended state, judging that the hard disk is out of place;
if yes, entering a step 2;
if not, go to step 5;
step 2, the programmable module judges whether the hard disk is in a reading and writing active state or not;
the programmable module judges whether the hard disk is in a read-write active state or not by detecting a hard disk ACTIVITY signal ACTIVITY output by the hard disk, and the specific steps are as follows:
step 2-1, a hard disk ACTIVITY edge detection unit of the programmable module detects the edge of a hard disk ACTIVITY signal ACTIVITY through an internal clock;
if the programmable module detects the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the programmable module cannot detect the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, the step 2-2 is entered;
step 2-2, setting a clock cycle accumulated count maximum value, and detecting the edge of a hard disk ACTIVITY signal ACTIVITY in the clock cycle accumulated count maximum value by a stop judging unit of the programmable module through a counter;
if the edge of the hard disk ACTIVITY signal ACTIVITY is detected, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the edge of the hard disk ACTIVITY signal ACTIVITY is not detected, judging that the hard disk is not in a read-write ACTIVITY state, and entering a step 4;
step 3, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a flickering state; returning to the step 1;
step 4, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a normally-on state; returning to the step 1;
step 5, the programmable module outputs a control signal LED_ACT# pull-up process of the Active indicator lamp of the hard disk, and controls the Active indicator lamp of the hard disk to be in an unlit state; returning to the step 1.
The hard disk on-site judging module judges on-site of the hard disk: taking a hard disk in-place detection signal IfDet# output by a hard disk as an input signal of a programmable module, wherein the hard disk in-place detection signal IfDet# output by the hard disk is low level when the hard disk is in place, otherwise, the hard disk in-place detection signal IfDet# is in a suspended state, and detecting that the hard disk is in place through the pin; and then the programmable module outputs a low level to drive the Active indicator lamp of the hard disk to light.
The hard disk read-write judging module judges the activity of the hard disk: taking a hard disk ACTIVITY signal ACTIVITY output by a hard disk as an input signal of a programmable module, and detecting the edge of the hard disk ACTIVITY signal ACTIVITY through a system clock of the high-frequency programmable module so as to determine whether hard disk read-write actions exist. When the edge of the hard disk ACTIVITY signal ACTIVITY is detected, the hard disk is considered to be active, and a square wave with fixed frequency is immediately output; when the edge of the hard disk ACTIVITY signal ACTIVITY is not detected, a counter is adopted to carry out accumulated judgment on the edge of the hard disk ACTIVITY signal ACTIVITY in order to prevent misjudgment.
The hard disk ACTIVITY edge detection unit of the hard disk read-write judgment module is used for detecting the edge of a hard disk ACTIVITY signal ACTIVITY input by a hard disk, and the internal clock of the programmable module is used for detecting the edge of the hard disk ACTIVITY signal ACTIVITY. When the hard disk is inserted and has read-write actions, the programmable module can set the control signal LED_ACT# of the Active indicator lamp of the hard disk high, output the control signal LED_ACT# of the Active indicator lamp of the hard disk, and output the control signal LED_ACT# of the Active indicator lamp of the hard disk as an interface for use of an upper layer; when the hard disk is inserted to stop the read-write operation, and the stop judging unit confirms that the read-write operation is actually stopped, the programmable module sets the control signal LED_ACT# of the Active indicator lamp of the hard disk to be low, and stops outputting the control signal LED_ACT#, which is the control signal of the Active indicator lamp of the hard disk.
The stop judging unit of the hard disk read-write judging module is a mechanism adopted for preventing the false judgment of edge detection, and is realized by accumulating and judging the hard disk ACTIVITY signal ACTIVITY through a counter. The hard disk ACTIVITY signal ACTIVITY square wave signals output by different hard disks are different, some periods may be long, actual tests show that the periods of the hard disk ACTIVITY signal ACTIVITY square wave signals output by the hard disks are different from 4ms to 100ms, and the internal detection clock of the programmable module is relatively fast, so that the change of the hard disk ACTIVITY signal ACTIVITY edge cannot be detected in continuous internal clock periods, and therefore a stop judging module unit needs to be added. Meanwhile, the detection time is convenient to adjust aiming at different hard disks and different internal detection clocks of the programmable modules, and a parameterized design is adopted for the maximum value of the accumulated count.
The hard disk on-site judging module and the hard disk read-write judging module affect the on-off or flashing state of the hard disk Active indicator lamp together, namely the hard disk on-site detection signal IfDet# of the hard disk input programmable module and the hard disk Active signal ACTIVITY affect the level of the control signal LED_ACT# of the hard disk Active indicator lamp together, and the output control module controls the output of the combined action of the hard disk on-site judging module and the hard disk read-write judging module.
The ModelSim simulates a hard disk in-place and activity control system, the simulation result is shown in fig. 4, 1 and 7 show the condition that no hard disk is inserted, at the moment, a hard disk in-place detection signal IfDet# is in a suspended state, namely in a high-resistance state, and a hard disk Active indicator lamp control signal LED_ACT# is output in an uncertain level; 2. 4 and 6 represent the situation when the hard disk is inserted into the hard disk without read-write operation, at this time, the hard disk in-place detection signal ifdet# is in a low level state, and the hard disk Active indicator lamp control signal led_act# is output in a low level; 3 and 5 represent the situation when the hard disk is inserted with read-write operation, wherein the period of the ACTIVITY signal output by the hard disk in 3 is 4ms, the period of the ACTIVITY signal output by the hard disk in 5 is 100ms, at this time, the hard disk in-place detection signal ifdet# is in a low level state, the hard disk Active indicator lamp control signal led_act# is output in a 4HZ fixed frequency square wave, and simulation results can show that the hard disk in-place and Active control system based on the programmable module accords with the requirements of the on-off and flicker control of the hard disk Active indicator lamp of the hard disk backboard.
The present embodiments are intended to be illustrative, and not restrictive, of the invention, and the invention is not to be limited to the specific embodiments disclosed herein, but is intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. A hard disk on-site and activity control system based on a programmable module is characterized by comprising
The device comprises a hard disk, a programmable module, a first resistor and a hard disk Active indicator lamp;
the hard disk is connected with the programmable module through a hard disk in-place detection signal IfDet# line and a hard disk ACTIVITY signal ACTIVITY line;
the programmable module is connected with one end of a first resistor through a control signal LED_ACT# line of the hard disk Active indicator lamp, the other end of the first resistor is connected with a cathode of the hard disk Active indicator lamp, and an anode of the hard disk Active indicator lamp is connected with a power supply VCC;
the programmable module comprises a hard disk in-place judging module, a hard disk read-write judging module and an output control module;
the hard disk in-place judging module is connected with the hard disk through a hard disk in-place detecting signal IfDet# line;
the hard disk read-write judging module is connected with the hard disk through a hard disk ACTIVITY signal ACTIVITY line;
the hard disk in-place judging module and the hard disk read-write judging module are connected with the output control module;
the output control module is connected with the first resistor;
the hard disk read-write judging module comprises a hard disk ACTIVITY edge detecting unit and a stopping judging unit;
the Active indicator lamp of the hard disk comprises an unlit state, a normally-bright state or a flashing state;
the hard disk ACTIVITY edge detection unit includes an internal clock, and the stop judgment unit includes a counter.
2. The hard disk on-site and activity control system based on a programmable module as claimed in claim 1, wherein the programmable module is an FPGA programmable module or a CPLD programmable module.
3. The hard disk on-site and activity control system based on a programmable module as claimed in claim 1, wherein the programmable module outputs a hard disk Active indicator control signal led_act# through a general purpose input output port GPIO.
4. The hard disk on-site and Active control system based on programmable module as recited in claim 1, wherein the system further comprises a second resistor and a switch, wherein the Active indicator lamp control signal led_act# line of the hard disk is connected to the switch, the other end of the switch is connected to the second resistor, and the other end of the second resistor is connected to the power supply VCC.
5. A hard disk on-site and activity control method based on a programmable module is characterized by comprising the following steps:
step 1, a programmable module judges whether a hard disk is in place or not;
if yes, entering a step 2;
if not, go to step 5;
step 2, the programmable module judges whether the hard disk is in a reading and writing active state or not;
if yes, entering a step 3;
if not, entering a step 4;
step 3, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a flickering state; returning to the step 1;
step 4, the programmable module outputs a control signal LED_ACT# of the Active indicator lamp of the hard disk to control the Active indicator lamp of the hard disk to be in a normally-on state; returning to the step 1;
step 5, the programmable module outputs a control signal LED_ACT# pull-up process of the Active indicator lamp of the hard disk, and controls the Active indicator lamp of the hard disk to be in an unlit state; returning to the step 1;
in the step 2, the programmable module judges whether the hard disk is in a read-write active state by detecting a hard disk ACTIVITY signal ACTIVITY output by the hard disk, and the specific steps are as follows:
step 2-1, a hard disk ACTIVITY edge detection unit of the programmable module detects the edge of a hard disk ACTIVITY signal ACTIVITY through an internal clock;
if the programmable module detects the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the programmable module cannot detect the edge of the hard disk ACTIVITY signal ACTIVITY in the clock period, the step 2-2 is entered;
step 2-2, setting a clock cycle accumulated count maximum value, and detecting the edge of a hard disk ACTIVITY signal ACTIVITY in the clock cycle accumulated count maximum value by a stop judging unit of the programmable module through a counter;
if the edge of the hard disk ACTIVITY signal ACTIVITY is detected, judging that the hard disk is in a read-write ACTIVITY state, and entering a step 3;
if the edge of the hard disk ACTIVITY signal ACTIVITY is not detected, judging that the hard disk is not in a read-write ACTIVITY state, and entering step 4.
6. The method of claim 5, wherein in step 1, the programmable module determines whether the hard disk is in place by detecting a hard disk in-place detection signal ifdet# outputted from the hard disk,
if the hard disk in-place detection signal IfDet# is in a low level state, judging that the hard disk is in place;
if the hard disk in-place detection signal IfDet# is in a suspended state, judging that the hard disk is out of place.
CN201710488464.5A 2017-06-23 2017-06-23 Hard disk on-site and activity control system and method based on programmable module Active CN107229553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710488464.5A CN107229553B (en) 2017-06-23 2017-06-23 Hard disk on-site and activity control system and method based on programmable module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710488464.5A CN107229553B (en) 2017-06-23 2017-06-23 Hard disk on-site and activity control system and method based on programmable module

Publications (2)

Publication Number Publication Date
CN107229553A CN107229553A (en) 2017-10-03
CN107229553B true CN107229553B (en) 2023-08-29

Family

ID=59935467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710488464.5A Active CN107229553B (en) 2017-06-23 2017-06-23 Hard disk on-site and activity control system and method based on programmable module

Country Status (1)

Country Link
CN (1) CN107229553B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669828B (en) * 2018-12-21 2021-11-26 郑州云海信息技术有限公司 Hard disk detection method and device
CN110895502B (en) * 2018-12-24 2024-02-20 深圳市亿万克数据设备科技有限公司 Control method and device for hard disk state indicating device, electronic equipment and storage medium
CN109739734A (en) * 2019-01-10 2019-05-10 郑州云海信息技术有限公司 A kind of hard disk Active lamp lighting optimization system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5483649A (en) * 1994-07-01 1996-01-09 Ybm Technologies, Inc. Personal computer security system
CN106294084A (en) * 2016-09-12 2017-01-04 恒为科技(上海)股份有限公司 A kind of monitoring hard-disk status system
CN206849002U (en) * 2017-06-23 2018-01-05 郑州云海信息技术有限公司 A kind of hard disk based on programmable module is in place and Operations Control System

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5483649A (en) * 1994-07-01 1996-01-09 Ybm Technologies, Inc. Personal computer security system
CN106294084A (en) * 2016-09-12 2017-01-04 恒为科技(上海)股份有限公司 A kind of monitoring hard-disk status system
CN206849002U (en) * 2017-06-23 2018-01-05 郑州云海信息技术有限公司 A kind of hard disk based on programmable module is in place and Operations Control System

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林倩 ; .现场可编程的数控调速音乐彩灯控制系统设计.电声技术.2014,(12),全文. *

Also Published As

Publication number Publication date
CN107229553A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107229553B (en) Hard disk on-site and activity control system and method based on programmable module
CN101079549B (en) Apparatus and method for producing signal conveying circuit status information
CN103795459B (en) Optical module-based fault processing method, device and optical module
CN204632030U (en) A kind of infrared microwave dual technology detector
CN102937361A (en) Automatic induction lighting system for refrigerator or wine cabinet and control method thereof
CN108107401B (en) Cover opening detection method based on smart meter and smart meter
CN204066312U (en) Based on the automatic fire alarm system of 51 single-chip microcomputers
CN105807645A (en) Power supply control method and electronic equipment
CN206849002U (en) A kind of hard disk based on programmable module is in place and Operations Control System
CN204202646U (en) A kind of indoor air quality monitor
CN107102933A (en) A kind of Active lamps of hard disk determine frequency flashing control system and control method
CN104998324A (en) Differential type photoelectric transfusion alarm device and alarm method thereof
CN105223880A (en) A kind of programmed control box net synchronization capability detection method and device
CN203376826U (en) Library seat monitoring device
CN204044968U (en) Flame detecting Rouser
CN109210415A (en) Desk lamp and its control method
CN202085179U (en) Switch port detector
CN209297467U (en) A kind of combustion gas closing alarm set
CN108549042A (en) A kind of NVME LED detecting systems and detection method
CN210745405U (en) Port detector
CN204679651U (en) Remote monitoring pigging tracker
CN202632005U (en) Multifunctional controller for air dryer
CN205645206U (en) A device for detecting display screen current overload
CN204855763U (en) Durable testing arrangement of light source
CN203149689U (en) Intelligent population flow detection door

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