1. Technical Field
The present disclosure relates to a control circuit for hard disks used in a server.
2. Description of Related Art
Using a plurality of hard disks in a server for providing a large amount of storage space is well known. However, when one of the hard disks malfunctions (e.g., is damaged or infected by viruses), the server needs to be turned off to replace or maintain the malfunctioned hard disk, which is inconvenient and causes interruption of other services of the server.
Therefore, what is needed is a means to overcome the above described shortcoming.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of at least one embodiment. In the drawings, like reference numerals designate corresponding parts throughout the various views.
Reference will be made to the drawings to describe various embodiments in detail.
The control circuit 100 includes a controller U1, a key unit 110, a display 120, a state indication unit 130, a plurality of power control units 140, and a plurality of data control units 150. Each hard disk 20 corresponds to one of the power control units 140 and one of the data control units 150. The power control unit 140 is connected between the motherboard power interface 310 and the hard disk power interface 210. The data control unit 150 is electrically connected between the data interface 320 and the hard disk data interface 220. The key unit 110 includes a plurality of input keys. The key unit 110 is configured to select one of the hard disks 20 as an operation object and control the power and data transmission of the selected hard disk 20. The controller U1 controls the operation object to enter an enable state or a disable state. The enable state enables ability of the hard disk 20 to save data, and the disable state disables ability of the hard disk 20 to save data. The display 120 displays a label of the selected hard disk 20. The state indication unit 130 indicates a working state of the operation object, such as the enable state, a selection state, or the disable state, a normal working state, a selection state, or an operation state. The power control unit 140 controls power transmission to a corresponding hard disk 20, and the data control unit 150 controls data transmission of a corresponding hard disk 20.
The I/O pins P0.0-P0.6, P2.0-P2.6 form a matrix control circuit having 49 terminals. In detail, the I/O pins P0.0 and P2.0 form a first control terminal group N1, the I/O pins P0.0 and P2.1 form a second control terminal group N2, the I/O pins P0.0 and P2.2 form a third control terminal group N3, the I/O pins P0.0 and P2.3 form a fourth control terminal group N4, and so on. The I/O pins P0.5 and P2.0 form an eighth control terminal group N8, and the I/O pins P0.4 and P2.0 form a fifteenth control terminal group N15, and so on. The other terminals are formed in a similar sequential manner. The data control unit 150 is electrically connected between the I/O pins P0.0 and P2.0 via the first control terminal group N1. The power control unit 140 is electrically connected between the I/O pins P0.0 and P2.1 via the second control terminal group N2.
The I/O pins P1.1-P1.7 are electrically connected to the display 120. The display 120 includes a first digital tube D1 and a second digital tube D2. The first digital tube D1 and the second digital tube D2 each include seven I/O pins (not labeled). The I/O pins of both the first digital tube D1 and the second digital tube D2 are electrically connected to the I/O pins P1.1-P1.7, one-to-one. The display 120 further includes a first transistor Q1 and a second transistor Q2. The first transistor Q1 and the second transistor Q2 amplify a driving current of the first and second digital tubes D1 and D2, respectively. A base of the first transistor Q1 is electrically connected to the I/O pins P1.0 and P3.7 via a second resistor R2. A base of the second transistor Q2 is electrically connected to the I/O pins P1.0 and P3.7 via a third resistor R3. An emitter of the first transistor Q1 and an emitter of the second transistor Q2 are electrically connected to the first power source via a fourth resistor R4. A collector of the first transistor Q1 is electrically connected to the first digital tube D1, and a collector of the second transistor Q2 is electrically connected to the second digital tube D2. In the embodiment, the first digital tube and the second digital tube are seven-segment displays.
In the embodiment, the first and second transistors Q1 and Q2 are pnp-type bipolar junction transistors (pnp-BJT).
The key unit 110 includes six keys S1-S6. The key S1 is electrically connected between the I/O pins P3.2 and P3.6. The key S2 is electrically connected between the I/O pins P3.3 and P3.6. The key S3 is electrically connected between the I/O pins P3.4 and P3.6. The key S4 is electrically connected between the I/O pins P3.2 and P3.5. The key S5 is electrically connected between the I/O pins P3.3 and P3.5. The key S6 is electrically connected between the I/O pins P3.4 and P3.5.
The key S1 is a function key for manually selecting one of the hard disks 20 as the operation object. The key S2 is a function key for selecting a next hard disk 20. The key S3 is a function key for selecting a previous hard disk 20. The key S4 is a confirmation key. The key S5 is a function key for controlling the hard disk 20 to enter the enable state. The key S6 is a function key for controlling the hard disk 20 to enter the disable state. Once the hard disk 20 is in the disable state, a user can eject the hard disk 20. After the hard disk 20 is inserted, the hard disk 20 enters the enable state.
The state indication unit 130 includes a first LED L1, a second LED L2, and a fifth resistor R5. One end of the fifth resistor R5 is electrically connected to the first power source, and the other end of the fifth resistor R5 is electrically connected to the I/O pins P0.7 and P2.7 via the first LED L1 and the second LED L2. In the embodiment, the first LED L1 emits green light, and the second LED L2 emits red light.
The power control unit 140 includes a first control circuit 141 to control power transmission from the first power source to one hard disk 20, and a second control circuit 143 to control power transmission from a second power source (e.g. +12V) to one hard disk 20. The first control circuit 141 includes a third transistor Q3, a fourth transistor Q4, a sixth resistor R6, and a first optocoupler T1. The first power source is electrically connected to the hard disk power interface 210 of the first hard disk 20 via a collector and an emitter of the third transistor Q3. The first power source is further electrically connected to an emitter of the fourth transistor Q4. A base of the fourth transistor Q4 is electrically connected to the hard disk power interface 210 via the sixth resistor R6 and the first optocoupler T1. The optocoupler T1 includes a diode (not labeled). An anode of the diode of the first optocoupler T1 is electrically connected to the input and output pin P0.0 of the second control terminal group N2 via a seventh transistor Q7 and an eighth resistor R8. A cathode of the diode of the first optocoupler T1 is electrically connected to the input and output pin P2.1 of the second control terminal group N2.
The second control circuit 143 includes a fifth transistor Q5, a sixth transistor Q6, a seventh resistor R7, and a second optocoupler T2. The second power source is electrically connected to the hard disk power interface 210 via a collector and an emitter of the fifth transistor Q5. The second power source is further electrically connected to an emitter of the sixth transistor Q6. A collector of the sixth transistor Q6 is electrically connected to a base of the fifth transistor Q5. A base of the sixth electrode Q6 is electrically connected to the hard disk power interface 20 via the seventh resistor R7 and the second optocoupler T2. The second optocoupler T2 includes a diode (not labeled). An anode of the diode of the second optocoupler T2 is electrically connected to the I/O pin P0.0 of the second control terminal group N2. A cathode of the diode of the second optocoupler T2 is electrically connected to the I/O pin P2.1. A collector of the seventh transistor Q7 is electrically connected to the first power source.
In the embodiment, the third transistor Q3, the fifth transistor Q5, and the seventh transistor Q7 are npn-type bipolar junction transistors (npn-BJT). The fourth transistor Q4 and the sixth transistor Q6 are pnp-BJTs.
In the embodiment, the hard disk data interface 220 is a serial advanced technology attachment (SATA) interface. The SATA interface includes seven conductive wires, in which three conductive wires are ground wires to prevent electromagnetic interference (EMI), and the other four wires are data wires. The data control unit 150 includes four dry-reed relays J1-J4 corresponding to the four data wires of the SATA interface. Each dry-reed relay includes a switch K and an inductor L. In the embodiment, the switch K is normally closed. When the inductor L is powered on, the switch K is turned on.
One end of each inductor L is electrically connected to an emitter of an eighth transistor Q8, and another end of each inductor L is electrically connected to an emitter of a ninth transistor Q9. A base of the eighth transistor Q8 is electrically connected to the I/O pin P0.0 of the first control terminal group N1. A base of the ninth transistor Q9 is electrically connected to the I/O pin P2.0 of the first control terminal group N1. A collector of the eighth transistor Q8 is electrically connected to the first power source. A collector of the ninth transistor Q9 is grounded.
In the embodiment, the eighth transistor Q8 is an npn-BJT, and the ninth transistor Q9 is a pnp-BJT.
When one hard disk malfunctions, the key S1 can be pressed to start a selection process for selecting the malfunctioned hard disk as the operation object.
During the selection process, the key S2 or the key S3 is pressed to select the hard disk 20. In the embodiment, the first hard disk 20 is the operation object. Then, both the first LED L1 and the second LED L2 are turned on to indicate which hard disk 20 is selected. The display 120 displays a label of the selected hard disk 20 using the first and second digital tubes D1 and D2. When the key S6 is pressed, the I/O pin P2.0 outputs the logic low signal (e.g. logic 0), and the logic high signal of the I/O pin P0.0 is transmitted to the I/O pin P2.0 through the eighth transistor Q8, the inductor L of the dry-reed relays J1-J4, and the I/O pin P2.0. The switches K of the dry-reed relays J1-J4 are switched off to cut off data transmission of the four data wires. Then, the I/O pin P2.1 outputs the logic high signal to turn off the first and second optocouplers T1 and T2, the third transistor Q3, the fourth transistor Q4, the fifth transistor Q5, and the sixth transistor Q6, to cut off power transmission to the operation object. Finally, the first hard disk 20 is in the disable state.
When the key S5 is pressed, the control circuit 100 first restores the power transmission of the first hard disk 20, and then restores the data transmission of the first hard disk 20. The second LED L2 is turned on simultaneously to indicate that the first hard disk 20 is returned to the normal operation state.
When the key S6 is pressed, the first LED L1 is turned on again to indicate that the first hard disk 20 is in the enable state.
In summary, when one hard disk is damaged or infected by viruses, the damaged or infected hard disk can be selected as an operation object via the control circuit, and the control circuit controls power and data transmission of the operation object. Thus, the damaged or infected hard disk can be replaced during operation of the server. Therefore, maintenance of the server is improved.
It is to be understood that even though numerous characteristics and advantages of the present embodiments have been set forth in the foregoing description, with details of the structures and functions of the embodiments, the disclosure is illustrative only, and that changes may be in detail, especially in the matters of arrangement of parts within the principles of the embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
2012104231699 | Oct 2012 | CN | national |