Patent ID: 6910083

Claim:
A method for detecting channels of a channel to which hard disk controllers belong, said method detecting the corresponding relations between a plurality of channels of a host and a plurality of enclosure-controllers connected with hard disks, said method comprising the steps of: A. said host sending an idle command to all of said hard disks to let them idle; B. said host performing read/write actions to said hard disk connected to channel 1 to let said hard disk generate a current variation; C. transforming the current variation into a voltage signal sent to said enclosure-controller, which compares variation of the voltage signal when said hard disk idles and operates to obtain a flag; D. said host reading said flag in said enclosure-controllers and building the corresponding relation between said channel 1 and one of said enclosure-controllers according to said flag; and E. said host performing read/write actions to said hard disk connected to channel 2 , repeating said Steps C and D until the corresponding relations between all of said channels of said host and said enclosure-controllers are built.