Hard disk interface device
Technical field
The present invention relates to a kind of hard disk interface device, particularly relate to a kind of hard disk interface device that whether connects between Port of detecting.
Background technology
In the society of electronics technology now, many electronic products have been dispersed throughout in our daily life, no matter at food, clothing, live, row, educate with happy aspect, electronic product is used in the capital, in addition, along with electronics technology is constantly progressive, more complicated and more humane electronic product is more weeded out the old and bring forth the new.The appearance of computer then significantly changes human lifestyle and life style, and common people contact and ratio of using computer in life and work raise gradually, so computer has become indispensable important tool gradually.
Generally speaking, topmost data access unit is a hard disk in the computer.And servomechanism is in order to provide more service or with data backup, to tend to dispose more than ten hard disk, so computer system need connect more than ten hard disk by hard disk interface device.Is example at this hard disk interface device with the disk array card, and general disk array jig has a plurality of data transmission channels, and each passage is connected with hard disk through a Port, so that hard disk is connected with computer system.And each passage can be connected with Port on expanding backboard via pairing Port, so that each passage can be connected to a plurality of hard disks respectively, and does not disturb mutually, and the attachable hard disk number of extendible by this disk array card.
Yet when the Port on expanding backboard produced fault, passage can be lost via expanding a plurality of hard disks that backboard connected originally, caused computer system to carry out access and to cause computer to produce mistake when the reading of data these hard disks.When computer produces mistake, must check total system, to determine the wrong reason that takes place and to repair.And the action of this inspection and reparation may spend the more time, causes stopping and increasing extra cost of computer system.
Summary of the invention
The object of the present invention is to provide a kind of hard disk interface device, can detect between Port and whether to connect really, and still normal operation when part Port fault.
To achieve these goals, the present invention proposes a kind of hard disk interface device, and it comprises disk array controller, expander and circuit for detecting.Disk array controller has first Port and second Port.Expander has the 3rd Port and the 4th Port, corresponding first Port of the 3rd Port wherein, corresponding second Port of the 4th Port.Circuit for detecting is electrically connected between first Port and the 3rd Port, whether electrically connects first Port to detect the 3rd Port, and produces detection signal in view of the above to disk array controller.
In one embodiment of this invention, this circuit for detecting comprises resistance and electric capacity.First end of resistance electrically connects a system voltage, and its second end electrically connects first pin of first Port.Electric capacity is electrically connected between second end and ground voltage of first resistance.Wherein, second pin of corresponding the 3rd Port of first pin, and second pin electrically connects ground voltage.
In one embodiment of this invention, this expander has a plurality of the 5th Ports and a plurality of the 6th Port.These the 5th Ports electrically connect a plurality of first hard disks respectively, and these the 6th Ports electrically connect a plurality of second hard disks respectively.And when the 3rd Port received the first hard disk reading command, expander read these first hard disks by these the 5th Ports, and read the result by the output of the 3rd Port.When the 4th Port received the second hard disk reading command, expander read these second hard disks by these the 6th Ports, and read the result by the output of the 4th Port.
In one embodiment of this invention, this disk array controller electrically connects the 3rd Port at first Port, and in the time of can't reading these first hard disks, disk array controller transmits the first hard disk reading command to the, four Ports, and when expander receives the first hard disk reading command at the 4th Port, these first hard disks are read, and read the result by the output of the 4th Port.
In one embodiment of this invention, when the 3rd Port is non-when being electrically connected to first Port, disk array controller produces prompt facility according to detection signal.And this prompt facility is perhaps play a prompt sound effect or a suggestion voice for showing a prompt text.
In one embodiment of this invention, this first Port, second Port, the 3rd Port and the 4th Port are that sequence connects the SCSI Port.
Comprehensive the above, hard disk interface device of the present invention, whether be electrically connected to the Port of expander by the Port of circuit for detecting detecting disk array controller, and when the non-Port that is electrically connected to expander of disk array controller, produce prompt facility.Thus, can detect between Port and whether to connect really, and when not connecting really the prompting user.In addition, when first Port electrically connects the 3rd Port, and when disk array controller can't read these first hard disks, disk array controller control expander is when the 4th Port receives the hard disk reading command, these first hard disks and these second hard disks are read, and read the result by the output of the 4th Port.By this, can when disk array controller or expander upper part Port fault, still can all hard disks be read.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, below elaborates with preferred embodiment of the present invention and conjunction with figs..
Description of drawings
Fig. 1 is the system architecture synoptic diagram of the hard disk interface device of one embodiment of the invention.
Fig. 2 is the circuit diagram of circuit for detecting among Fig. 1.
Description of reference numerals:
The 100-hard disk interface device; 110-disk array card;
The 111-disk array controller;
112,113,122,123,124_1-124_n, 125_1-125_n-Port;
120-expands backboard; The 121-expander;
126_1-126_n, 127_1-127_n-hard disk;
121A, 121B-data transmission unit; 112A, 122A-pin;
The 128-transmission channel; 130,140-circuit for detecting;
R1-resistance; C1-electric capacity;
The Vcc-system voltage.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, the feature and the effect thereof of the hard disk interface device that foundation the present invention is proposed are described in further detail.
Fig. 1 is the system architecture synoptic diagram of the hard disk interface device of one embodiment of the invention.With reference to Fig. 1, in the present embodiment, hard disk interface device 100 comprises disk array card 110, expands backboard 120, circuit for detecting 130 and 140.Dispose disk array controller 111 on the disk array card 110, and disk array card 110 can be an interface card, on the slot that is installed on mainboard, allow disk array controller 111 carry out communication by this, to receive the control of said chip with the chip (for example South Bridge chip or basic input/output system) on the mainboard.Disk array controller 111 has first Port 112 and second Port 113, and be disposed at the expander 121 that expands on the backboard 120 and have the 3rd Port 122 and the 4th Port 123, wherein Port 111,112,121 and 122 can connect the SCSI Port for sequence.And, expander 121 has a plurality of the 5th Port 124_1~124_n and a plurality of the 6th Port 125_1~125_n, Port 124_1~124_n is in order to electrically connect a plurality of first hard disk 126_1~126_n respectively, and Port 125_1~125_n is in order to electrically connect a plurality of second hard disk 127_1~127_n respectively.
Generally speaking, the Port 112 of disk array controller 111 must be electrically connected to the Port 122 on the expander 121, could read by 121 couples of hard disk 126_1~126_n of expander.Similarly, the Port 113 of disk array controller 111 must be electrically connected to the Port 123 on the expander 121, could read by 121 couples of hard disk 127_1~127_n of expander.At this moment, whether be electrically connected to Port 122 in order to detect Port 112, and whether detecting Port 113 is electrically connected to Port 123, so configuration circuit for detecting 130 between Port 112 and Port 122, and between Port 113 and Port 123, dispose circuit for detecting 140.Whether be electrically connected to Port 122 and 123 respectively by circuit for detecting 130 and 140 detecting Ports 112 and 113, and produce detection signal to disk array controller 111.
With a Port, can have a plurality of pins usually.In these a plurality of pins, except pin, also have extra control signal pin and chip functions and set pin, and the control signal pin can be sideband (sideband) pin with transfer function.Whether circuit for detecting (as 130,140) can be electrically connected between the sideband pin of two Ports, can not have influence on transfer function by this and can detect two Ports to electrically connect.Fig. 2 is the circuit diagram of circuit for detecting among Fig. 1.With reference to Fig. 2, be example at this with circuit for detecting 130, circuit for detecting 130 comprises resistance R 1 and capacitor C 1.Resistance R 1 is electrically connected between the first pin 112A of system voltage Vcc and Port 112, and capacitor C 1 is electrically connected between pin 112A and the ground voltage.And the second pin 122A and the ground voltage of hypothesis Port 122 electrically connect earlier at this.
When Port 112 and 122 does not electrically connect (that is the annexation of dotted line 201 does not exist), pin 112A can receive system voltage Vcc (being considered as the accurate position of logic high voltage at this) by resistance R 1.When Port 112 and 122 electrically connects (that is the annexation of dotted line 201 exists), pin 112A can receive ground voltage (being considered as the accurate position of logic low-voltage at this).Therefore, when Port 112 and 122 non-electric connections, circuit for detecting 130 can transmit the detection signal of the accurate position of logic high voltage to pin 112A.When Port 112 and 122 electrically connected, circuit for detecting 130 can transmit the detection signal of the accurate position of logic low-voltage to pin 112A.By this, when detection signal is the accurate position of logic high voltage, represent the Port 112 non-Ports 122 that are electrically connected to.At this moment, disk array controller 112 can be notified the basic input/output system on the mainboard, with display reminding literal on display, or sees through loudspeaker plays prompt sound effect or suggestion voice, notifies user's Port 112 to electrically connect with 122 by this.
And the circuit of circuit for detecting 140 and function mode can be with reference to circuit for detecting 130, so do not repeat them here.When Port 113 and 123 non-electric connections, circuit for detecting 140 can transmit the detection signal of the accurate position of logic high voltage equally.When Port 113 and 123 electrically connected, circuit for detecting 140 can transmit the detection signal of the accurate position of logic low-voltage.By this, when Port 112 and 113 is non-respectively when being electrically connected to Port 122 and 123, disk array controller 111 can be pointed out the user by the display or the loudspeaker of computer, does not cause computer system running mistake really to avoid connecting.And foregoing circuit only is used for the usefulness of explanation, if circuit can be according to whether electrically connecting the detection signal that produces the Different Logic voltage quasi position between two Ports, and whether disk array controller 111 can differentiate according to this detection signal and electrically connect between two Ports, then can be considered an embodiment of circuit for detecting of the present invention.
On the other hand, be electrically connected to Port 122 and respectively at 123 o'clock at Port 112 and 113, disk array controller 111 just can read by 121 couples of hard disk 126_1~126_n of expander and 127_1~127_n.When hard disk 126_1~126_n was read, disk array controller 111 can transmit the first hard disk reading command to Port 122.At this moment, data transmission unit 121A in the expander 121 can be according to the first hard disk reading command, by Port 124_1~124_n to one of them of hard disk 126_1~126_n or all carry out reading of data.And after reading end, data transmission unit 121A can read the result by Port 122 outputs.And disk array controller 111 can will read the result and is sent to chip on the mainboard, be shown on the display or the interpretation of power supply brain system to move relevant operation.And disk array controller 111 is when reading hard disk 127_1~127_n, its running is to read hard disk 126_1~126_n similar, and it is different from and can transmits the second hard disk reading command to Port 123 and data transmission unit 121B when reading hard disk 127_1~127_n and can read hard disk 127_1~127_n by Port 125_1~125_n.
In addition, there is transmission channel 128 between data transmission unit 121A and 121B.When disk array controller 111 transmits the first hard disk reading command to Port 122, and in the default reaction time, do not receive when reading as a result, represent disk array controller 111 to read by 121 couples of hard disk 126_1~126_n of expander, wherein should preset the reaction time can be different with circuit structure or those skilled in the art's demand.At this moment, disk array controller 111 can judge that Port 122 is a fault, and disk array controller 111 can be sent to Port 123 with the first hard disk reading command.Data transmission unit 121B is after understanding the hard disk reading command, one of them of hard disk non-hand disk 127_1~127_n that the meeting discovery will be read is so data transmission unit 121B can be sent to data transmission unit 121A via transmission by 128 with the first hard disk reading command.Data transmission unit 121A can read hard disk 126_1~126_n according to the first hard disk reading command.And when output is read as a result, because the first hard disk reading command transmits via transmission channel 128, can export by transmission channel 128 equally so read the result.And data transmission unit 121B receive read the result after, then read the result to disk array controller 111 by Port 122 output.And when Port 123 faults, the function mode of disk array controller 111 and expander 121 can not repeat them here with reference to above-mentioned explanation.By this, when Port 122 or 123 one of them fault, disk array controller still can read by 121 couples of hard disk 126_1~126_n of expander or 127_1~127_n.
In sum, the hard disk interface device of the embodiment of the invention, whether the Port of detecting disk array controller by circuit for detecting is electrically connected to the Port of expander, and when the non-Port that is electrically connected to expander of disk array controller, produces prompt facility.By this, can detect between Port and whether to connect really, and when not connecting really the prompting user.In addition, when first Port electrically connects the 3rd Port, and when disk array controller can't read these first hard disks, disk array controller control expander is when the 4th Port receives the hard disk reading command, these first hard disks or these second hard disks are read, and read the result by the output of the 4th Port.By this, can when disk array controller or expander upper part Port fault, still can all hard disks be read.
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention, any those skilled in the art, in not breaking away from the technical solution of the present invention scope, when the structure that can utilize above-mentioned announcement and technology contents are made a little change or be modified to the equivalent embodiment of equivalent variations, but every content that does not break away from technical solution of the present invention, according to technical spirit of the present invention to any simple modification that above embodiment did, equivalent variations and modification all still belong in the scope of technical solution of the present invention.