CN104794030A - SAS cable testing system and method - Google Patents

SAS cable testing system and method Download PDF

Info

Publication number
CN104794030A
CN104794030A CN201410028522.2A CN201410028522A CN104794030A CN 104794030 A CN104794030 A CN 104794030A CN 201410028522 A CN201410028522 A CN 201410028522A CN 104794030 A CN104794030 A CN 104794030A
Authority
CN
China
Prior art keywords
wide port
sas cable
phy interface
transmission rate
rate value
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.)
Pending
Application number
CN201410028522.2A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201410028522.2A priority Critical patent/CN104794030A/en
Publication of CN104794030A publication Critical patent/CN104794030A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an SAS cable testing system, and an SAS cable connects a first wide port of a fan-out expander with a second wide port of an edge expander. The system comprises a setting module, a sending module, a judgment module and a prompt module, wherein the setting module is used for setting transmission rate values of the first wide port and controlling the edge expander to set the same transmission rate values for the second wide port, the sending module is used for sending a preset data package to the second wide port from the first wide port through the SAS cable, the judgment module is used for judging whether the SAS cable can transmit data at the set transmission rate values according to whether the edge expander can receive the preset data package through the second wide port in preset time, and the prompt module is used for prompting a user that the SAS cable passes the testing when the SAS cable passes all the testing of the transmission rate values. The invention further provides an SAS cable testing method, and the SAS cable testing method can conduct testing on the SAS cable.

Description

SAS cable detection system and method
Technical field
The present invention relates to a kind of SAS cable detection system and method.
Background technology
JBOD(Just a Bunch Of Disks, hard disk bunch) be many hard disks are gathered the memory device being integrated into a super large hard disk and using in simple terms.It is concatenated into the wide port of an output expander (Fan-out Expander) to the whole memory capacity that increases by by the wide port (Wide port) of one or more border extended device (Edge Expander) via SAS cable.Each wide port is generally combined by four phy interfaces.
In addition, each extender also comprises the phy interface for being connected with hard disk, and a phy interface can connect a hard disk, if there are 24 phy interfaces for being connected with hard disk, then can connect 24 hard disks.So, included by extender for the phy interface quantity that is connected with hard disk the more, just more can connect more hard disk.But the phy interface number be connected with hard disk had due to extender is limited, therefore, to increase the memory capacity of JBOD, usually overall storage capacity can only be strengthened by the mode that SAS cable is constantly connected in series border extended device.
Along with border extended device quantity increases, the quantity of required SAS cable also can and then increase, add the assembling of whole JBOD and be not easy, more higher probability is had in manufacturing process, because artificial or other factors cause SAS cable not connect (such as broken string or SAS cable and wide port loose contact) with wide port, cause JBOD all or partly can not operate thus, harddisk access efficiency reduces.
Summary of the invention
In view of above content, be necessary to provide a kind of SAS cable detection system and method, can be used for detecting SAS cable.
In described SAS cable detection system, first wide port of output expander is connected with the second wide port of border extended device by described SAS cable, this system comprises: arrange module, for arranging the transmission rate value of described first wide port, and controlling described border extended device, to arrange described second wide port be identical transmission rate value; Sending module, for being sent to described second wide port through described SAS cable from described first wide port by a preset data bag; Can judge module, for receive described preset data bag through described second wide port in the given time according to described border extended device, judge that described SAS cable could carry out data transmission with set transmission rate value; And reminding module, for when described SAS cable have passed the test of all transmission rate value, described in prompting user, SAS cable is by test.
In described SAS cable detection method, first wide port of output expander is connected with the second wide port of border extended device by described SAS cable, the method comprises: setting steps, the transmission rate value of described first wide port is set, and controlling described border extended device, to arrange described second wide port be identical transmission rate value; Forwarding step, is sent to described second wide port through described SAS cable from described first wide port by a preset data bag; Can determining step, receive described preset data bag through described second wide port in the given time according to described border extended device, judges that described SAS cable could carry out data transmission with set transmission rate value; And prompting step, when described SAS cable have passed the test of all transmission rate value, described in prompting user, SAS cable is by test.
Compared to prior art, SAS cable detection system of the present invention and method, can could carry out data transmission with different transfer rates according to described SAS cable and detect this SAS cable.
Accompanying drawing explanation
Fig. 1 is the running environment figure of SAS cable detection system of the present invention.
Fig. 2 is the functional block diagram of SAS cable detection system of the present invention.
Fig. 3 is the process flow diagram of the preferred embodiment of SAS cable detection method of the present invention.
Main element symbol description
Hard disk bunch 1
Output expander 10
Border extended device 20
First wide port 11
Second wide port 21
One I2C interface 12
2nd I2C interface 22
First phy interface 111
Second phy interface 211
SAS cable 30
I2C bus 40
First register 101
Detection system 102
Storer 103
Processor 104
Second register 201
Detection module 1021
Reminding module 1022
Module is set 1023
Sending module 1024
Judge module 1025
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure of SAS cable detection system (hereinafter referred to as detection system) of the present invention.Hard disk bunch (Just a Bunch Of Disks, hereinafter referred to as a JBOD) 1 comprises output expander 10(Fan-out Expander).For clearly demonstrating the present invention, the present embodiment connects two border extended devices (Edge Expander) 20 for this output expander 10.In other embodiments, described output expander 10 also can be connected with multiple border extended device 20.
Described output expander 10 comprises the first wide port (Wide Port) 11 and an I2C(Inter-Integrated Circuit) interface 12.Described first wide port 11 by multiple first phy interface 111 form (shown in figure four).Described border extended device 20 comprises the second wide port 21 and the 2nd I2C interface 22.Described second wide port 21 by multiple second phy interface 211 form (shown in figure four).
It should be noted that, only illustrate described output expander 10 in Fig. 1 of the present embodiment and comprise two the first wide ports 11 and two I2C interfaces 12, each border extended device 20 comprises second wide port 21 and a 2nd I2C interface 22.In other embodiments, described output expander 10 and border extended device 20 all can comprise multiple wide port and multiple I2C interface.
Particularly, when connecting described output expander 10 and border extended device 20, as shown in Figure 1, SAS cable (such as model is the cable of SFF-8087) 30 need be utilized to be connected with second wide port 21 of described border extended device 20 by first wide port 11 of described output expander 10, and utilize I2C bus 40 to be connected with a 2nd I2C interface 22 of described border extended device 20 by described output expander 10 I2C interface 12, make can carry out data transmission between described output expander 10 and border extended device 20.
Described output expander 10 also comprises the first register 101 further, and described border extended device 20 also comprises the second register 201 further.Described first register 101 is for there occurs the first phy interface 111 entity mistake meeting extender supplier definition during when described output expander 10, record for described output expander 10 number of times that entity mistake occurs this first phy interface 111 added up.Described second register 201 is for there occurs the second phy interface 211 entity mistake meeting extender supplier definition during when described border extended device 20, record for described border extended device 20 number of times that entity mistake occurs this second phy interface 211 added up.
It should be noted that, specifically judge that the mode of phy interface entity mistake oneself defined by extender supplier.In general, the number of times of phy interface entity mistake comprises such as Invalid DWORD Count(invalid double word number of times), Loss of DWORDSynchronization Count(double word synchronously loses number of times), Running Disparity ErrorsCount(performs inconsistent errors number), PHY Reset Errors Count(PHY resets errors number).
SAS cable detection system 102 runs in described output expander 10, for detecting the SAS cable 30 connecting described first wide port 11 and the second wide port 21.In the present embodiment, whether can described SAS cable detection system 102 carry out data transmission with the different pieces of information transmission rate value preset by detecting this SAS cable 30, detect this SAS cable 30 and be connected with described first wide port 11 and the second wide port 21 in good condition.
In general, SAS cable 30 is supported to carry out transmission data with the transfer rate of such as 1.5Gb, 3Gb, 6Gb or 12Gb per second, so described SAS cable detection system 102 by detect this SAS cable 30 can with described different pieces of information transmission rate value (i.e. 1.5Gb, 3Gb, 6Gb or 12Gb per second) carry out data transmission detect this SAS cable 30.
In the present embodiment, described SAS cable detection system 102 comprises one or more module.Such as consult shown in Fig. 2, described SAS cable detection system 102 comprise detection module 1021, reminding module 1022, arrange module 1023, sending module 1024 and judge module 1025.Described module 1021 ~ 1025 is stored in the storer 103 of described output expander 10, and performed to realize function of the present invention by the processor 104 of this output expander 10, module alleged by the present invention has been the program segment of a specific function, and composition graphs 3 illustrates by the function about modules.
As shown in Figure 3, be the process flow diagram of preferred embodiment of detection method.
Step S1, first phy interface 111 included by the first wide port 11 of detection module 1021 pairs of output expanders 10 detects.
Particularly, by the record reading the first phy interface 111 entity mistake stored in the first register 101, described detection module 1021 can judge that whether this first phy interface 111 is normal.
If the record of described first phy interface 111 entity mistake can be read out from described first register 101, described detection module 1021 judges that exception appears in this first phy interface 111, now perform step S7, reminding module 1022 points out this first phy interface 111 of user to occur exception.
If there is not the record of described first phy interface 111 entity mistake in described first register 101, described detection module 1021 judges that this first phy interface 111 is normal, now performs step S2.
Step S2, second phy interface 211 included by the second wide port 21 of the further edge extender 20 of described detection module 1021 detects.
Particularly, described detection module 1021 is by being connected to the I2C bus 40 between an I2C interface 12 and the 2nd I2C interface 22, send I2C order and control the record that border extended device 20 reads the second phy interface 211 entity mistake stored in the second register 201, judge that whether described second phy interface 211 is normal.
If the record of described second phy interface 211 entity mistake can be read out from described first register 101, then described detection module 1021 judges that exception appears in this second phy interface 211, now perform step S7, reminding module 1022 points out this second phy interface 211 of user to occur exception.
If there is not the record of this second phy interface 211 entity mistake in described second register 201, then described detection module 1021 judges that this second phy interface 211 is normal, now performs step S3.
Step S3, module 1023 is set the transfer rate of the first wide port 11 of described output expander 10 is set to a first rate value, and control described border extended device 20 transfer rate of the second wide port 21 of this border extended device 20 is also set to described first rate value.
Such as the transmission rate value of described first wide port 11 and the second wide port 21 is all set to 1.5Gb per second.
Usually can support to carry out transmission data instance with the transfer rate of 1.5Gb, 3Gb, 6Gb or 12Gb per second with the SAS cable 30 connecting described first wide port 11 and the second wide port 21, describedly module 1023 is set in advance the first rate value of described first wide port 11 and the second wide port 21 can be set to 1.5Gb according to the ascending relation of transmission rate value per second.In other embodiments, describedly module 1023 is set also in advance the first rate value of described first wide port 11 and the second wide port 21 can be set to 12Gb according to the descending relation of transmission rate value per second.Or the first rate value of described first wide port 11 and the second wide port 21 is set to one of them rate value at random such as 6Gb is per second.
In the present embodiment, the described module 1023 that arranges is by described I2C bus 40, and transmission I2C order controls described border extended device 20 and the transfer rate of described second wide port 21 is set to described first rate value.
Step S4, a preset data bag is sent to described second wide port 21 through described SAS cable 30 from described first wide port 11 by sending module 1024.
Step S5, judge module 1025 judges whether described SAS cable 30 can transmit described packet with set first rate value.
Particularly, can described judge module 1025 can detect described border extended device 20 by described I2C bus 40 receive described preset data bag through described second wide port 21 in the given time, judges that described SAS cable 30 could carry out data transmission with set first rate value.
If described border extended device 20 exceedes the schedule time and just receives described preset data bag, then judge that described SAS cable 30 can not carry out data transmission with set first rate value, now perform step S7, reminding module 1022 points out described SAS cable 30 can not carry out data transmission with set first rate value.
Otherwise, if described border extended device 20 receives described preset data bag in the given time, now perform step S6.
Step S6, described judge module 1025 judges whether the test also needing described SAS cable 30 to be made to other data transmission rate value further.If described SAS cable 30 not yet completes the test of other data transmission rate value, now get back to step S3, being set to the second rate value (such as 3Gb is per second) by arranging the transmission rate value of module 1023 by described first wide port 11 and the second wide port 21, whether can carrying out data transmission with described second rate value to test described SAS cable 30 further.
If described SAS cable 30 has completed the test of all data transmission rate value, such as, described SAS cable 30 has completed the transfer rate test that transmission rate value is 1.5Gb, 3Gb, 6Gb and 12Gb per second, then perform step S7, and reminding module 1022 points out SAS cable 30 described in user by test.
Finally it should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a SAS cable detection system, the first wide port of output expander is connected with the second wide port of border extended device by described SAS cable, it is characterized in that, this system comprises:
Arrange module, for arranging the transmission rate value of described first wide port, and controlling described border extended device, to arrange described second wide port be identical transmission rate value;
Sending module, for being sent to described second wide port through described SAS cable from described first wide port by a preset data bag;
Can judge module, for receive described preset data bag through described second wide port in the given time according to described border extended device, judge that described SAS cable could carry out data transmission with set transmission rate value; And
Reminding module, for when described SAS cable have passed the test of all transmission rate value, described in prompting user, SAS cable is by test.
2. SAS cable detection system as claimed in claim 1, it is characterized in that, described first wide port comprises the first phy interface, and described second wide port comprises the second phy interface.
3. SAS cable detection system as claimed in claim 2, it is characterized in that, this system also comprises:
Detection module, for described first wide port is set transmission rate value before, described first phy interface is detected; And
Described detection module, also for when described first phy interface is normal, detects described second phy interface.
4. SAS cable detection system as claimed in claim 3, is characterized in that, described detection module, by reading the first phy interface entity error logging stored in the first register of described output expander, judges that whether this first phy interface is normal; And by reading the second phy interface entity error logging stored in the second register of described border extended device, judge that whether this second phy interface is normal.
5. SAS cable detection system as claimed in claim 1, it is characterized in that, the described module that arranges, by being connected to the I2C bus between an I2C interface of described output expander and the 2nd I2C interface of described border extended device, sending I2C order and controls the transmission rate value that this border extended device arranges described second wide port.
6. a SAS cable detection method, the first wide port of output expander is connected with the second wide port of border extended device by described SAS cable, and it is characterized in that, the method comprises:
Setting steps, arranges the transmission rate value of described first wide port, and controlling described border extended device, to arrange described second wide port be identical transmission rate value;
Forwarding step, is sent to described second wide port through described SAS cable from described first wide port by a preset data bag;
Can determining step, receive described preset data bag through described second wide port in the given time according to described border extended device, judges that described SAS cable could carry out data transmission with set transmission rate value; And
Prompting step, when described SAS cable have passed the test of all transmission rate value, described in prompting user, SAS cable is by test.
7. SAS cable detection method as claimed in claim 6, it is characterized in that, described first wide port comprises the first phy interface, and described second wide port comprises the second phy interface.
8. SAS cable detection method as claimed in claim 7, it is characterized in that, the method also comprises:
First detecting step, before the transmission rate value arranging described first wide port, detects described first phy interface; And
Second detecting step, when described first phy interface is normal, detects described second phy interface.
9. SAS cable detection method as claimed in claim 8, it is characterized in that, in described first detecting step, by reading the first phy interface entity error logging stored in the first register of described output expander, judge that whether this first phy interface is normal; And in described second detecting step, by reading the second phy interface entity error logging stored in the second register of described border extended device, judge that whether this second phy interface is normal.
10. SAS cable detection method as claimed in claim 6, it is characterized in that, in described setting steps, by being connected to the I2C bus between an I2C interface of described output expander and the 2nd I2C interface of described border extended device, sending I2C order and controlling the transmission rate value that this border extended device arranges described second wide port.
CN201410028522.2A 2014-01-21 2014-01-21 SAS cable testing system and method Pending CN104794030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410028522.2A CN104794030A (en) 2014-01-21 2014-01-21 SAS cable testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410028522.2A CN104794030A (en) 2014-01-21 2014-01-21 SAS cable testing system and method

Publications (1)

Publication Number Publication Date
CN104794030A true CN104794030A (en) 2015-07-22

Family

ID=53558840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410028522.2A Pending CN104794030A (en) 2014-01-21 2014-01-21 SAS cable testing system and method

Country Status (1)

Country Link
CN (1) CN104794030A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790035A (en) * 2016-12-15 2017-05-31 郑州云海信息技术有限公司 A kind of protocol analysis device, method and system
CN109753396A (en) * 2019-01-16 2019-05-14 浪潮商用机器有限公司 A kind of cable self checking method, system and the server of storage system
CN111223516A (en) * 2019-12-26 2020-06-02 曙光信息产业(北京)有限公司 RAID card detection method and device
CN112653591A (en) * 2020-11-24 2021-04-13 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for balancing speed of line concentration cable

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359307A (en) * 2007-08-03 2009-02-04 英业达股份有限公司 Test device of SAS channel and test method thereof
CN101385276A (en) * 2006-03-29 2009-03-11 国际商业机器公司 Apparatus, system and method for error assessment over a communication link
US20090276645A1 (en) * 2008-04-30 2009-11-05 Fujitsu Limited Relay device
CN101645030A (en) * 2009-09-04 2010-02-10 浪潮电子信息产业股份有限公司 Method for measuring signal integrality based on SAS storage system
CN101930393A (en) * 2009-06-26 2010-12-29 英业达股份有限公司 Testing device for SAS (Serial Attached SCSI) back plate
CN202102419U (en) * 2011-03-14 2012-01-04 浪潮(北京)电子信息产业有限公司 Serial connection small-sized computer system interface equipment detection system
US20120169349A1 (en) * 2010-12-29 2012-07-05 Hon Hai Precision Industry Co., Ltd. Current test system for hard disk drive and adapter board thereof
CN102955729A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Testing system and testing fixture for high-speed signal ports
US20130339552A1 (en) * 2012-06-19 2013-12-19 Ming-Jen Wang Active cable management

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385276A (en) * 2006-03-29 2009-03-11 国际商业机器公司 Apparatus, system and method for error assessment over a communication link
CN101359307A (en) * 2007-08-03 2009-02-04 英业达股份有限公司 Test device of SAS channel and test method thereof
US20090276645A1 (en) * 2008-04-30 2009-11-05 Fujitsu Limited Relay device
CN101930393A (en) * 2009-06-26 2010-12-29 英业达股份有限公司 Testing device for SAS (Serial Attached SCSI) back plate
CN101645030A (en) * 2009-09-04 2010-02-10 浪潮电子信息产业股份有限公司 Method for measuring signal integrality based on SAS storage system
US20120169349A1 (en) * 2010-12-29 2012-07-05 Hon Hai Precision Industry Co., Ltd. Current test system for hard disk drive and adapter board thereof
CN202102419U (en) * 2011-03-14 2012-01-04 浪潮(北京)电子信息产业有限公司 Serial connection small-sized computer system interface equipment detection system
CN102955729A (en) * 2011-08-18 2013-03-06 鸿富锦精密工业(深圳)有限公司 Testing system and testing fixture for high-speed signal ports
US20130339552A1 (en) * 2012-06-19 2013-12-19 Ming-Jen Wang Active cable management

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790035A (en) * 2016-12-15 2017-05-31 郑州云海信息技术有限公司 A kind of protocol analysis device, method and system
CN109753396A (en) * 2019-01-16 2019-05-14 浪潮商用机器有限公司 A kind of cable self checking method, system and the server of storage system
CN111223516A (en) * 2019-12-26 2020-06-02 曙光信息产业(北京)有限公司 RAID card detection method and device
CN111223516B (en) * 2019-12-26 2021-09-07 曙光信息产业(北京)有限公司 RAID card detection method and device
CN112653591A (en) * 2020-11-24 2021-04-13 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for balancing speed of line concentration cable
CN112653591B (en) * 2020-11-24 2022-05-27 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for balancing speed of line concentration cable

Similar Documents

Publication Publication Date Title
US9411700B2 (en) Storage tester capable of individual control for a plurality of storage
US11748218B2 (en) Methods, electronic devices, storage systems, and computer program products for error detection
CN107688376A (en) A kind of hard disk backboard for supporting adaptive hard-disk interface
US10936387B2 (en) Method and apparatus for failure detection in storage system
CN108153622B (en) Fault processing method, device and equipment
CN101477480B (en) Memory control method, apparatus and memory read-write system
CN107203448A (en) A kind of method and system of test PCIe switch chip violence warm connection functions
CN107688516A (en) Storage device, test system and method for testing the storage device
CN104794030A (en) SAS cable testing system and method
CN106294065A (en) Hard disk failure monitoring method, Apparatus and system
CN106936616A (en) Backup communication method and apparatus
CN104166611A (en) Hard disk temperature information acquisition device and method
CN108388490A (en) A kind of method and system of test high-end server memory
US20140164845A1 (en) Host computer and method for testing sas expanders
KR20130142865A (en) Active cable management
CN106997318A (en) A kind of PECI bus verification method and system for supporting many slaves
US20160110246A1 (en) Disk data management
CN102609221A (en) Architecture and data processing method for hardware RAID 5/6 memory system
CN106161132A (en) For the apparatus and method that storage network is tested
WO2013100748A1 (en) Watchdogable register-based i/o
CN109542503B (en) Method and system for optimizing compatibility of storage link
CN103257905B (en) A kind of embedded computer system internal storage data checking circuit and method
CN104123246A (en) Interface expansion device and serial attached SCSI expander
CN205050007U (en) Storage expansion card based on fuse framework in blade server
CN106708445A (en) Link selection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150722

WD01 Invention patent application deemed withdrawn after publication