CN103870368A - SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method - Google Patents

SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method Download PDF

Info

Publication number
CN103870368A
CN103870368A CN201210548241.0A CN201210548241A CN103870368A CN 103870368 A CN103870368 A CN 103870368A CN 201210548241 A CN201210548241 A CN 201210548241A CN 103870368 A CN103870368 A CN 103870368A
Authority
CN
China
Prior art keywords
expansion card
sas expansion
main
serial
sas
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
CN201210548241.0A
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 CN201210548241.0A priority Critical patent/CN103870368A/en
Publication of CN103870368A publication Critical patent/CN103870368A/en
Pending legal-status Critical Current

Links

Images

Abstract

Disclosed is an SAS expander testing system and method, and the system is installed in and runs on a host. The host is connected with a master SAS expender through a first serial port, the master SAS expender is sequentially connected with a plurality of slave SAS expenders through a second serial port. The system sends a test instruction through the first serial port to the master SAS expander so as to test the master SAS expender; test information of the master SAS expender is obtained through a first serial port; the master SAS expender is controlled to sequentially send the test instruction to every slave SAS expender through the second serial port for testing; test information of every slave SAS expender is obtained through the second serial port; all the test information is displayed on a display device of the host. By means of the SAS expander testing system and method, testing can be simultaneously performed on the master SAS expender and the plurality of slave SAS expenders, all the testing information can be obtained at one time, then integrated analysis is performed on the testing information, and accordingly the faulted SAS expender can be found out.

Description

SAS expansion card test macro and method
Technical field
The present invention relates to a kind of storage device testing system and method, particularly about a kind of SAS expansion card test macro and method.
Background technology
The high in the clouds memory device that has now a lot of enterprises is all number of connection a lot of (for example, more than 10 s') hard disk.Because the hard disk quantity that high in the clouds memory device connects is a lot of, therefore all can use multiple SAS expansion cards (SAS Expander), but the test instruction of some SAS expansion cards (command) can only return detecting information between SAS expansion card out of the ordinary, and then cannot obtain the detecting information of two or more SAS expansion cards.Therefore, when multi-disc SAS expansion card goes wrong, the serial ports (Serial port) that often can only repeat to switch main frame for each SAS expansion card is looked for the problem of generation, test each time all needs to record the dependence test result of SAS expansion card, and recycling is manually done test result integration testing analysis.But this manual testing's way will be spent a lot of time, and cannot disposablely obtain the test result of all SAS expansion cards.
Summary of the invention
In view of above content, be necessary to provide a kind of SAS expansion card test macro and method, can test for two or more SAS expansion cards simultaneously, and once obtain the detecting information of all SAS expansion card passbacks, and then find out the SAS expansion card breaking down.
Described SAS expansion card test macro is installed and is run in main frame.This system comprises: communication connection module, and for main frame and main SAS expansion card are established a communications link by first serial, and by main SAS expansion card and multiplely establish a communications link by second serial successively from SAS expansion card; Main card test module, also this test instruction being sent to main SAS expansion card by first serial for generation of a test instruction tests for main SAS expansion card, obtain the detecting information of main SAS expansion card by first serial, and the detecting information of main SAS expansion card is temporarily stored in the memory ram of main SAS expansion card; From card test module, being used for controlling main SAS expansion card sends to each to test from SAS expansion card by second serial test instruction successively, obtain each detecting information from SAS expansion card by second serial, and each is increased to the memory ram of main SAS expansion card from the detecting information of SAS expansion card; Information display module, for read respectively detecting information and each detecting information from SAS expansion card of main SAS expansion card from the memory ram of main SAS expansion card by first serial, is presented at all detecting informations on the display device of main frame.
Described SAS expansion card method of testing is applied in main frame, and the method comprising the steps of: main frame and main SAS expansion card are established a communications link by first serial; By main SAS expansion card and multiplely establish a communications link by second serial successively from SAS expansion card; Produce a test instruction, and this test instruction is sent to main SAS expansion card by first serial tests for main SAS expansion card; Obtain the detecting information of main SAS expansion card by first serial, and the detecting information of main SAS expansion card is temporarily stored in the memory ram of main SAS expansion card; Controlling main SAS expansion card sends to each to test from SAS expansion card by second serial test instruction successively; Obtain each detecting information from SAS expansion card by second serial, and each is increased to the memory ram of main SAS expansion card from the detecting information of SAS expansion card; From the memory ram of main SAS expansion card, read respectively detecting information and each detecting information from SAS expansion card of main SAS expansion card by first serial, and all detecting informations are presented on the display device of main frame.
Compared to prior art, SAS expansion card test macro of the present invention and method can be tested for two or more SAS expansion cards simultaneously, and can once obtain the detecting information of all SAS expansion card passbacks, do confluence analysis for the detecting information of passback separately again, and then find out the SAS expansion card breaking down.
Accompanying drawing explanation
Fig. 1 is the Organization Chart of SAS expansion card test macro of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of SAS expansion card test macro of the present invention.
Fig. 3 is the process flow diagram of SAS expansion card method of testing of the present invention preferred embodiment.
Fig. 4 is the schematic diagram of the data storage area of memory ram in a kind of SAS expansion card.
Main element symbol description
Main frame 1
SAS expansion card test macro 10
Communication connection module 101
Main card test module 102
From card test module 103
Information display module 104
Processor 11
Memory device 12
Display device 13
Main SAS expansion card 2
Memory ram 20
First serial 21
Second serial 22
From SAS expansion card 3
Embodiment
As shown in Figure 1, be the Organization Chart of SAS expansion card test macro of the present invention 10 preferred embodiments.In the present embodiment, described SAS expansion card test macro 10 is installed and is run in main frame (Host Computer) 1, and this main frame 1 is connected with main SAS expansion card (SAS Expander) 2 by first serial (Serial port) 21.This main SAS expansion card 2 is connected from SAS expansion card 3 with multiple successively by second serial 22.In the present embodiment, always total N (for example 5) interconnect by N second serial 22 successively from SAS expansion card 3.Described main frame 1 can be a kind of PC computing machine, server or is a kind of computer installation with data operation and processing capacity.Described main SAS expansion card 2 all can be connected multiple for storing the hard disk (HDD) of data with each from SAS expansion card 3.
In the present embodiment, described SAS expansion card test macro 10 can for example, be tested for two or more SAS expansion cards (main SAS expansion card 2 and multiple from SAS expansion card 3) simultaneously, and can once obtain the detecting information of all SAS expansion card passbacks, do confluence analysis for the detecting information of passback separately again, and then find out the SAS expansion card breaking down.
Described main SAS expansion card 2 comprises memory ram 20, for detecting information and each detecting information returning from SAS expansion card 3 of the main SAS expansion card 2 of temporary transient storage.Shown in figure 4, it is a kind of schematic diagram of data storage area of memory ram 20.The memory capacity of this memory ram 20 is 256K, be divided into multiple data storage areas, for example, the first memory block (for example 0-16K) for example, for storing the detecting information of main SAS expansion card 2, the detecting information that the second memory block (16K-32K) for example, returns from SAS expansion card 3 for storing the next one for storing a detecting information returning from SAS expansion card 3 and the 3rd memory block (32K-48K).
In the present embodiment, described first serial 21 and second serial 22 mean the expansion interface of communicating by letter of general serial communication mode in a kind of computer installation, for example RS232 serial ports.This first serial 21 and second serial 22 include data sending terminal (TX) and the data receiving end (RX) for bidirectional data communication, and its topmost parameters comprises baud rate (for example 1024bit/s), data bit (for example 8), position of rest (for example 2) and parity check code.
As shown in Figure 2, be the functional block diagram of SAS expansion card test macro 10 in main frame 1.In the present embodiment, described main frame 1 also include but not limited to, processor 11, memory device 12 and display device 13.Described SAS expansion card test macro 10 comprises communication connection module 101, main card test module 102, from card test module 103 and information display module 104.The alleged functional module of the present invention refers to a kind of can be by processor 11 performed and can complete the sequence of program instructions section of fixed function, and it is stored in memory device 12.
Described communication connection module 101 is for establishing a communications link main frame 1 and main SAS expansion card 2 by first serial 21, and main SAS expansion card 2 is established a communications link by second serial 22 from SAS expansion card 3 successively with multiple, and then main frame 1 can be communicated by first serial 21 and main SAS expansion card 2, and main SAS expansion card 2 is communicated successively from SAS expansion card 3 with each by second serial 22.
Described main card test module 102 is also sent to main SAS expansion card 2 by this test instruction by first serial 21 for generation of a test instruction and tests for main SAS expansion card 2, obtain the detecting information of main SAS expansion card 2 by first serial 21, and the detecting information of main SAS expansion card 2 is temporarily stored in the memory ram 20 of main SAS expansion card 2.In the present embodiment, described test instruction refers to the customized test instruction of a kind of user, it comprises, but be not limited only to, for testing main SAS expansion card 2 and each version test instruction (Rev_Command) from SAS expansion card 3, state verification instruction (Status_Command) and register testing instruction (Reg_Command).As shown in Figure 4, main card test module 102 is stored in the detecting information of main SAS expansion card 2 for example, in first memory block (0-16K) of memory ram 20.
Described sends to each to test from SAS expansion card 3 by second serial 22 test instruction from card test module 103 for controlling main SAS expansion card 2 successively, obtain each detecting information from SAS expansion card 3 by second serial 22, and each is increased to the memory ram 20 of main SAS expansion card 2 from the detecting information of SAS expansion card 3.As shown in Figure 4, from card test module 103, one of them is for example stored in, second memory block (16K-32K) of memory ram 20 from the detecting information of SAS expansion card 3, the next one is for example stored in, the 3rd memory block (32K-48K) of memory ram 20 from the detecting information of SAS expansion card 3.
Described information display module 104 is for reading respectively detecting information and each detecting information from SAS expansion card 3 of main SAS expansion card 2 from the memory ram 20 of main SAS expansion card 2 by first serial 21, and all detecting informations that read are presented on display device 13, so that tester does confluence analysis to main SAS expansion card 2 and each from SAS expansion card 3 detecting information separately, and then finds out the SAS expansion card breaking down.
Shown in figure 3, it is the process flow diagram of SAS expansion card method of testing of the present invention preferred embodiment.In the present embodiment, described method can for example, be tested for two or more SAS expansion cards (main SAS expansion card 2 and multiple from SAS expansion card 3) simultaneously, and can once obtain the detecting information of all SAS expansion card passbacks, do confluence analysis for the detecting information of passback separately again, and then find out the SAS expansion card breaking down.
Step S31, communication connection module 101 establishes a communications link main frame 1 and main SAS expansion card 2 by first serial 21, and main SAS expansion card 2 is established a communications link by second serial 22 from SAS expansion card 3 successively with multiple.
Step S32, main card test module 102 produces a test instruction, and this test instruction is sent to main SAS expansion card 2 by first serial 21 tests for main SAS expansion card 2.
Step S33, main card test module 102 obtains the detecting information of main SAS expansion card 2 by first serial 21, and the detecting information of main SAS expansion card 2 is temporarily stored in the memory ram 20 of main SAS expansion card 2.Shown in figure 4, main card test module 102 is stored in the detecting information of main SAS expansion card 2 for example, in first memory block (0-16K) of memory ram 20.
Step S34, controls main SAS expansion card 2 from card test module 103 and sends to successively each to test from SAS expansion card 3 by second serial 22 test instruction.
Step S35, obtains each detecting information from SAS expansion card 3 from card test module 103 by second serial 22, and each is increased to the memory ram 20 of main SAS expansion card 2 from the detecting information of SAS expansion card 3.Shown in figure 4, the detecting information one of them being returned from SAS expansion card 3 from card test module 103 is for example stored in, second memory block (16K-32K) of memory ram 20, and the detecting information that the next one is returned from SAS expansion card 3 is for example stored in, the 3rd memory block (32K-48K) of memory ram 20.
Step S36, information display module 104 reads respectively detecting information and each detecting information from SAS expansion card 3 of described main SAS expansion card 2 from the memory ram 20 of main SAS expansion card 2 by first serial 21, and all detecting informations that read are presented on display device 13, so that tester does confluence analysis to main SAS expansion card 2 and each from SAS expansion card 3 detecting information separately, and then finds out the SAS expansion card breaking down.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to above preferred embodiment, those of ordinary skill in the art should be appreciated that and can modify or be equal to the spirit and scope that replacement should not depart from technical solution of the present invention technical scheme of the present invention.

Claims (10)

1. a SAS expansion card test macro, installs and runs in main frame, it is characterized in that, this SAS expansion card test macro comprises:
Communication connection module, for main frame and main SAS expansion card are established a communications link by first serial, and by main SAS expansion card and multiplely establish a communications link by second serial successively from SAS expansion card;
Main card test module, also this test instruction being sent to main SAS expansion card by first serial for generation of a test instruction tests for main SAS expansion card, obtain the detecting information of main SAS expansion card by first serial, and the detecting information of main SAS expansion card is temporarily stored in the memory ram of main SAS expansion card;
From card test module, being used for controlling main SAS expansion card sends to each to test from SAS expansion card by second serial test instruction successively, obtain each detecting information from SAS expansion card by second serial, and each is increased to the memory ram of main SAS expansion card from the detecting information of SAS expansion card;
Information display module, for read respectively detecting information and each detecting information from SAS expansion card of main SAS expansion card from the memory ram of main SAS expansion card by first serial, and is presented at all detecting informations on the display device of main frame.
2. SAS expansion card test macro as claimed in claim 1, it is characterized in that, described first serial is the expansion interface of communicating by letter of general serial communication mode in a kind of computer installation with second serial, and it comprises for the data sending terminal of bidirectional data communication and data receiver.
3. SAS expansion card test macro as claimed in claim 1, is characterized in that, the parameter of described first serial and second serial setting comprises baud rate, data bit, position of rest and parity check code.
4. SAS expansion card test macro as claimed in claim 1, it is characterized in that, described memory ram is divided into multiple data storage areas, and the first memory block is for storing the detecting information of main SAS expansion card, and all the other memory blocks are for storing each detecting information from SAS expansion card.
5. SAS expansion card test macro as claimed in claim 1, it is characterized in that, described test instruction means the customized test instruction of a kind of user, comprises for testing main SAS expansion card and each version test instruction from SAS expansion card, state verification instruction and related register test instruction.
6. a SAS expansion card method of testing, is applied in main frame, it is characterized in that, the method comprising the steps of:
Main frame and main SAS expansion card are established a communications link by first serial;
By main SAS expansion card and multiplely establish a communications link by second serial successively from SAS expansion card;
Produce a test instruction, and this test instruction is sent to main SAS expansion card by first serial tests for main SAS expansion card;
Obtain the detecting information of main SAS expansion card by first serial, and the detecting information of main SAS expansion card is temporarily stored in the memory ram of main SAS expansion card;
Controlling main SAS expansion card sends to each to test from SAS expansion card by second serial test instruction successively;
Obtain each detecting information from SAS expansion card by second serial, and each is increased to the memory ram of main SAS expansion card from the detecting information of SAS expansion card;
From the memory ram of main SAS expansion card, read respectively detecting information and each detecting information from SAS expansion card of main SAS expansion card by first serial, and all detecting informations are presented on the display device of main frame.
7. SAS expansion card method of testing as claimed in claim 6, it is characterized in that, described first serial is the expansion interface of communicating by letter of general serial communication mode in a kind of computer installation with second serial, and it comprises for the data sending terminal of bidirectional data communication and data receiver.
8. SAS expansion card method of testing as claimed in claim 6, is characterized in that, the parameter of described first serial and second serial setting comprises baud rate, data bit, position of rest and parity check code.
9. SAS expansion card method of testing as claimed in claim 6, it is characterized in that, described memory ram is divided into multiple data storage areas, and the first memory block is for storing the detecting information of main SAS expansion card, and all the other memory blocks are for storing each detecting information from SAS expansion card.
10. SAS expansion card method of testing as claimed in claim 6, it is characterized in that, described test instruction means the customized test instruction of a kind of user, comprises for testing main SAS expansion card and each version test instruction from SAS expansion card, state verification instruction and related register test instruction.
CN201210548241.0A 2012-12-17 2012-12-17 SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method Pending CN103870368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210548241.0A CN103870368A (en) 2012-12-17 2012-12-17 SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210548241.0A CN103870368A (en) 2012-12-17 2012-12-17 SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method

Publications (1)

Publication Number Publication Date
CN103870368A true CN103870368A (en) 2014-06-18

Family

ID=50908926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210548241.0A Pending CN103870368A (en) 2012-12-17 2012-12-17 SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method

Country Status (1)

Country Link
CN (1) CN103870368A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202036A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Detection processing method and apparatus
CN108073480A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 storage module detecting system
WO2022143477A1 (en) * 2020-12-28 2022-07-07 国家电网有限公司 Data acquisition apparatus and data acquisition method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202036A1 (en) * 2015-06-19 2016-12-22 中兴通讯股份有限公司 Detection processing method and apparatus
CN108073480A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 storage module detecting system
CN108073480B (en) * 2016-11-16 2020-08-11 佛山市顺德区顺达电脑厂有限公司 Storage module detection system
WO2022143477A1 (en) * 2020-12-28 2022-07-07 国家电网有限公司 Data acquisition apparatus and data acquisition method

Similar Documents

Publication Publication Date Title
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
CN109558282A (en) A kind of PCIE chain circuit detecting method, system and electronic equipment and storage medium
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN103631688A (en) Method and system for testing interface signal
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN106681878A (en) Method for testing PCIE channel bandwidth
KR20080052341A (en) Automatic-testing system and method for embedded system software and test scenario composing method
CN106842152A (en) Airborne fire control radar online system failure diagnosis
CN112269120A (en) Interface signal loop test method and device, computer equipment and storage medium
US20140164845A1 (en) Host computer and method for testing sas expanders
CN204904449U (en) A half automatic checkout device for detecting bimodulus takes accuse electric energy meter expense accuse function
CN109407655B (en) Method and device for debugging chip
CN103870368A (en) SAS (Serial Attached SCSI (small computer system interface)) expander testing system and method
CN104239174A (en) BMC (baseboard management controller) remote debugging system and method
CN102455965A (en) Electronic device test system and method
CN109656769A (en) A kind of Android communicating terminal test method for hardware, test technology and system test process
US9158609B2 (en) Universal serial bus testing device
CN110297735B (en) Universal re-judging test system based on solid state disk
CN110597685A (en) Tool and method for collecting Log files of server system
CN103995765B (en) A kind of LED control card Auto-Test System and method
CN110209605A (en) The register reading/writing method and calculating equipment of PCIE Cardbus NIC Cardbus
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN111008113B (en) SAS-Expander test method and tool
CN105376117A (en) FC switch chip data monitoring test method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140618