TWI438624B - System and method for testing serial attached scsi - Google Patents
System and method for testing serial attached scsi Download PDFInfo
- Publication number
- TWI438624B TWI438624B TW98109084A TW98109084A TWI438624B TW I438624 B TWI438624 B TW I438624B TW 98109084 A TW98109084 A TW 98109084A TW 98109084 A TW98109084 A TW 98109084A TW I438624 B TWI438624 B TW I438624B
- Authority
- TW
- Taiwan
- Prior art keywords
- computer system
- system interface
- small computer
- serial connection
- data packet
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Description
本發明涉及一種測試系統及方法,尤其涉及一種關於串列連接小型電腦系統介面的測試系統及方法。The present invention relates to a test system and method, and more particularly to a test system and method for serially connecting a small computer system interface.
SAS(Serial Attached SCSI,串列連接小型電腦系統介面)是新一代的SCSI技術,和現在流行的Serial ATA(SATA)硬碟相同,都是採用串列技術以獲得更高的傳輸速度,並透過縮短連結線改善內部空間等。SAS是並行SCSI介面之後開發出的全新介面。此介面的設計是為了改善儲存系統的效能、可用性和擴充性,並且提供與SATA硬碟的相容性。SAS (Serial Attached SCSI) is a new generation of SCSI technology. It is the same as the popular Serial ATA (SATA) hard disk. It uses serial technology to achieve higher transmission speed. Shorten the connecting line to improve the internal space and so on. SAS is a new interface developed after the parallel SCSI interface. This interface is designed to improve the performance, usability and expandability of the storage system and to provide compatibility with SATA hard drives.
SAS的測試成為了應用這項技術的首要課題,目前SAS的測試架構採用的是如圖1所示的硬體架構,SAS控制器需要連接至少一個SAS裝置來回應SAS控制器所發出的測試命令,該SAS裝置可以為SAS擴展器等設備,由於SAS擴展器等設備的費用較高,將需要耗費大量的硬體成本來完成SAS的測試。SAS testing has become the primary issue in the application of this technology. Currently, the SAS test architecture uses the hardware architecture shown in Figure 1. The SAS controller needs to connect at least one SAS device to respond to the test commands issued by the SAS controller. The SAS device can be a device such as a SAS expander. Due to the high cost of the SAS expander and the like, a large amount of hardware cost is required to complete the SAS test.
鑒於以上內容,有必要提供一種串列連接小型電腦系統介面測試系統及方法,可以降低成本且有效對串列連接小型電腦系統介面進行測試。In view of the above, it is necessary to provide a serial connection small computer system interface test system and method, which can reduce the cost and effectively test the serial connection small computer system interface.
一種串列連接小型電腦系統介面測試系統,所述需要測試的串列連接小型電腦系統介面連接於環回軟體狗,該測試系統包括:生成模組,用於在所需要測試的串列連接小型電腦系統介面生成一個虛擬記憶體,該虛擬記憶體用於儲存資料包;獲取模組,用於獲取該串列連接小型電腦系統介面的屬性;發送模組,用於透過所述串列連接小型電腦系統介面的發送引腳發送資料包至所述環回軟體狗,該資料包包括測試資料、該串列連接小型電腦系統介面的屬性及傳輸協定;接收模組,用於透過所述串列連接小型電腦系統介面的接收引腳接收所述環回軟體狗所回發的資料包;儲存模組,用於將所接收的資料包儲存至所生成的虛擬記憶體中;及檢查模組,用於檢查所述接收到的資料包所包含的資訊是否與所發送的資料包中包含的資訊相同,若相同,該檢查模組提示該串列連接小型電腦系統介面正常,若不相同,則該檢查模組提示該串列連接小型電腦系統介面不正常。A serial connection small computer system interface test system, wherein the serial connection small computer system interface to be tested is connected to a loopback software dog, the test system comprises: a generation module, which is used for connecting small series in the series of tests required The computer system interface generates a virtual memory, the virtual memory is used to store the data package, the acquisition module is configured to acquire the attribute of the serial connection to the small computer system interface, and the sending module is configured to connect the small through the serial connection. The sending pin of the computer system interface sends a data packet to the loopback software dog, the data packet includes test data, attributes and transmission protocols of the serial connection to the small computer system interface, and a receiving module for transmitting the serial port a receiving pin connected to the small computer system interface receives the data packet sent back by the loopback software dog; a storage module for storing the received data packet into the generated virtual memory; and checking the module, For checking whether the information contained in the received data package is the same as the information contained in the sent data package, if the same, the inspection module The shown serial attached small computer system interface properly, if not the same, suggesting that this module checks the serial attached small computer system interface is not normal.
一種串列連接小型電腦系統介面測試方法,該方法包括如下步驟:在所需要測試的串列連接小型電腦系統介面生成一個虛擬記憶體,該虛擬記憶體用於儲存資料包;獲取該串列連接小型電腦系統介面的屬性;透過所述串列連接小型電腦系統介面的發送引腳發送資料包至與該串列連接小型電腦系統介面相連的環回軟體狗,該資料包包括測試資料、該串列連接小型電腦系統介面的屬性及傳輸協定;透過所述串列連接小型電腦系統介面的接收引腳接收所述環回軟體狗所回發的資料包;將所接收的資料包儲存至所生成的虛擬記憶體中;檢查所述接收到的資料包所包含的資訊是否與所發送的資料包中包含的資訊相同;若相同,提示該串列連接小型電腦系統介面正常;及若不相同,則提示該串列連接小型電腦系統介面不正常。A serial connection small computer system interface testing method, the method comprising the steps of: generating a virtual memory in a serial connection small computer system interface to be tested, the virtual memory is used for storing a data packet; and the serial connection is obtained; The properties of the small computer system interface; sending a data packet to the loopback software dog connected to the serial connection small computer system interface through the serial connection of the small computer system interface, the data package includes test data, the string Queue the properties and transmission protocol of the small computer system interface; receive the data packet sent back by the loopback software dog through the receiving pin of the serial connection small computer system interface; store the received data packet to generate In the virtual memory; checking whether the information contained in the received data packet is the same as the information contained in the sent data packet; if the same, prompting the serial connection to the small computer system interface is normal; and if not, It indicates that the serial connection to the small computer system interface is abnormal.
相較於習知技術,所述串列連接小型電腦系統介面測試測試系統及方法,利用軟體來取代硬體設備,減少成本,有效對SAS介面進行測試。Compared with the prior art, the serial connection small computer system interface test test system and method use software to replace the hardware device, reduce the cost, and effectively test the SAS interface.
修改圖2中的“測試系統”的字體;修改圖4中的“埠”為“介面”。Modify the font of "Test System" in Figure 2; modify "埠" in Figure 4 to "Interface".
如圖2所示,係本發明串列連接小型電腦系統介面測試系統較佳實施例之運行環境圖。該測試系統100運行於SAS控制器1上,該SAS控制器1包括多個SAS介面2,該SAS控制器1中儲存有所述SAS介面2的屬性。每個SAS介面2上包括發送弓1腳200和接收引腳201,所述發送引腳200及接收引腳201連接於一個環回軟體狗(loopback dongle)3。該環回軟體狗3用於接收與該環回軟體狗3連接的所述發送引腳200所發送的資料包,並將該資料包回發給連接該環回軟體狗3的接收引腳201。As shown in FIG. 2, it is an operating environment diagram of a preferred embodiment of the serial connection small computer system interface test system of the present invention. The test system 100 runs on a SAS controller 1, which includes a plurality of SAS interfaces 2 in which the attributes of the SAS interface 2 are stored. Each SAS interface 2 includes a transmit bow 1 pin 200 and a receive pin 201 connected to a loopback dongle 3. The loopback software dog 3 is configured to receive a data packet sent by the sending pin 200 connected to the loopback software dog 3, and send the data packet back to the receiving pin 201 connected to the loopback software dog 3. .
如圖3所示,係本發明圖1中測試系統100之功能模組圖。所述模組是具有特定功能的軟體程式段,該軟體儲存於電腦可讀儲存介質或其他儲存設備,可被電腦或其他包含處理器的計算裝置執行,從而完成對串列連接小型電腦系統介面測試的系列流程。所述測試系統100包括:生成模組10、獲取模組12、發送模組14、接收模組16、儲存模組18及檢查模組20。As shown in FIG. 3, it is a functional module diagram of the test system 100 of FIG. 1 of the present invention. The module is a software program segment with a specific function, and the software is stored in a computer readable storage medium or other storage device, and can be executed by a computer or other computing device including a processor, thereby completing a serial connection to a small computer system interface. The series of processes for testing. The test system 100 includes a generation module 10, an acquisition module 12, a transmission module 14, a receiving module 16, a storage module 18, and an inspection module 20.
生成模組10用於在所需要測試的SAS介面2生成一個虛擬記憶體,該虛擬記憶體用於儲存資料包。The generating module 10 is configured to generate a virtual memory for storing the data package in the SAS interface 2 to be tested.
獲取模組12用於獲取該SAS介面2的屬性,該SAS介面2的屬性包括該SAS介面2的識別字(identification,ID)。The obtaining module 12 is configured to obtain the attribute of the SAS interface 2, and the attribute of the SAS interface 2 includes an identification (ID) of the SAS interface 2.
發送模組14用於透過所述SAS介面2的發送引腳200發送資料包至環回軟體狗3。該資料包包括測試資料,該SAS介面2的屬性及傳輸協定等資訊。The sending module 14 is configured to send a data packet to the loopback software dog 3 through the sending pin 200 of the SAS interface 2. The data package includes test data, attributes of the SAS interface 2 and information such as transmission protocols.
接收模組16用於透過所述SAS介面2的接收引腳201接收從3所回發的資料包。The receiving module 16 is configured to receive the data packet sent back from the third receiving terminal 201 of the SAS interface 2.
儲存模組18用於將所接收的資料包儲存至所生成的虛擬記憶體中。The storage module 18 is configured to store the received data package into the generated virtual memory.
檢查模組20用於檢查所述接收到的資料包所包含的資訊是否與所發送的資料包中包含的資訊相同。若相同,表示該資料包即為所發送的資料包,該檢查模組20提示該SAS介面2正常。若不相同,則該檢查模組20提示該SAS介面2不正常。The checking module 20 is configured to check whether the information contained in the received data package is the same as the information contained in the sent data package. If it is the same, it indicates that the data package is the sent data package, and the inspection module 20 prompts that the SAS interface 2 is normal. If not the same, the inspection module 20 indicates that the SAS interface 2 is abnormal.
如圖4所示,係本發明串列連接小型電腦系統介面測試方法較佳實施例之方法流程圖。As shown in FIG. 4, it is a flowchart of a method for a preferred embodiment of the serial connection small computer system interface testing method of the present invention.
步驟S40,生成模組10在需要測試的SAS介面2生成一個虛擬記憶體,該虛擬記憶體用於儲存資料包。In step S40, the generating module 10 generates a virtual memory for the SAS interface 2 to be tested, and the virtual memory is used for storing the data package.
步驟S41,獲取模組12獲取該SAS介面2的屬性,該SAS介面2的屬性包括該SAS介面2的ID。In step S41, the obtaining module 12 acquires the attribute of the SAS interface 2, and the attribute of the SAS interface 2 includes the ID of the SAS interface 2.
步驟S42,發送模組14透過所述SAS介面2的發送引腳200發送資料包至環回軟體狗3。該資料包包括測試資料、該SAS介面2的屬性及傳輸協定等資訊。In step S42, the sending module 14 sends a data packet to the loopback software dog 3 through the sending pin 200 of the SAS interface 2. The data package includes test data, attributes of the SAS interface 2, and transmission protocols.
步驟S43,接收模組16透過所述SAS介面2的接收引腳201接收從環回軟體狗3所回發的資料包。In step S43, the receiving module 16 receives the data packet sent back from the loopback software dog 3 through the receiving pin 201 of the SAS interface 2.
步驟S44,儲存模組18將所接收的資料包儲存至所生成的虛擬記憶體中。In step S44, the storage module 18 stores the received data package into the generated virtual memory.
步驟S45,檢查模組20用於檢查所述接收到的資料包所包含的資訊是否與所發送的資料包中包含的資訊相同。若相同,進入步驟S46。若不相同,則進入步驟S47。In step S45, the checking module 20 is configured to check whether the information included in the received data package is the same as the information contained in the sent data package. If they are the same, the process proceeds to step S46. If not, the process proceeds to step S47.
步驟S46,檢查模組20提示該SAS介面2正常。In step S46, the inspection module 20 prompts that the SAS interface 2 is normal.
步驟S47,檢查模組20提示該SAS介面2不正常。In step S47, the inspection module 20 indicates that the SAS interface 2 is abnormal.
最後所應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments thereof The technical solutions are modified or equivalently substituted without departing from the spirit and scope of the technical solutions of the present invention.
1...SAS控制器1. . . SAS controller
100...測試系統100. . . Test system
2...SAS介面2. . . SAS interface
200...發送引腳200. . . Transmit pin
201...接收引腳201. . . Receive pin
3...Loopback dongle3. . . Loopback dongle
10...生成模組10. . . Generation module
12...獲取模組12. . . Get module
14...發送模組14. . . Sending module
16...接收模組16. . . Receiving module
18...儲存模組18. . . Storage module
20...檢查模組20. . . Inspection module
圖1係現有技術中串列連接小型電腦系統介面測試之硬體架構圖。FIG. 1 is a hardware architecture diagram of a prior art serial connection small computer system interface test.
圖2係本發明串列連接小型電腦系統介面測試系統較佳實施例之運行環境圖。2 is a diagram showing the operating environment of a preferred embodiment of the serial connection small computer system interface test system of the present invention.
圖3係本發明圖1中測試系統之功能模組圖。3 is a functional block diagram of the test system of FIG. 1 of the present invention.
圖4係本發明串列連接小型電腦系統介面測試方法較佳實施例之流程圖。4 is a flow chart of a preferred embodiment of the method for testing the serial connection small computer system interface of the present invention.
1...SAS控制器1. . . SAS controller
100...測試系統100. . . Test system
2...SAS介面2. . . SAS interface
200...發送引腳200. . . Transmit pin
201...接收引腳201. . . Receive pin
3...Loopback dongle3. . . Loopback dongle
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98109084A TWI438624B (en) | 2009-03-20 | 2009-03-20 | System and method for testing serial attached scsi |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98109084A TWI438624B (en) | 2009-03-20 | 2009-03-20 | System and method for testing serial attached scsi |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201035749A TW201035749A (en) | 2010-10-01 |
TWI438624B true TWI438624B (en) | 2014-05-21 |
Family
ID=44855971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98109084A TWI438624B (en) | 2009-03-20 | 2009-03-20 | System and method for testing serial attached scsi |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI438624B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750215A (en) * | 2011-04-22 | 2012-10-24 | 鸿富锦精密工业(深圳)有限公司 | Detection device of output signals of SAS (Serial Attached Small Computer System Interface) |
-
2009
- 2009-03-20 TW TW98109084A patent/TWI438624B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW201035749A (en) | 2010-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9378846B2 (en) | Non-mounted storage test device based on FPGA | |
KR101561854B1 (en) | Non-mounted storage test device based on fpga | |
US9613718B2 (en) | Detection system for detecting fail block using logic block address and data buffer address in a storage tester | |
TWI436204B (en) | Testing system and method for usb hub | |
US9239684B2 (en) | Electronic device and method for testing redundant array of independent disks level | |
CN101819550A (en) | Interface testing system for serial connecting small computer system | |
US9626241B2 (en) | Watchdogable register-based I/O | |
US20140164845A1 (en) | Host computer and method for testing sas expanders | |
US8566689B2 (en) | Data integrity units in nonvolatile memory | |
US20140325285A1 (en) | Serial attached scsi expander and method for debugging faults thereof | |
US20110004817A1 (en) | Crc management method performed in sata interface and data storage device using crc management method | |
TWI438624B (en) | System and method for testing serial attached scsi | |
US9153345B2 (en) | Error generating apparatus for solid state drive tester | |
WO2016101177A1 (en) | Random access memory detection method of computer device and computer device | |
US8516311B2 (en) | System and method for testing peripheral component interconnect express switch | |
US7168029B2 (en) | Method for testing a universal serial bus host controller | |
CN116089124A (en) | Communication method, device and medium of simulation system | |
US20110224939A1 (en) | Integrated tool for persisting development environment test scenario information | |
KR101300443B1 (en) | Flash memory device capable of verifying reliability using bypass path, and system and method of verifying reliability using that device | |
TW201118558A (en) | Virtual hard disk drive | |
US20160077942A1 (en) | Storage system and test method for testing pci express interface | |
JP2007011659A (en) | Interface device, disk drive, and interface control method | |
TWI794997B (en) | Method and apparatus and computer program product for debugging solid state disk devices | |
TWI670721B (en) | Unusual power-off test method and device for storage device | |
US8413164B1 (en) | Presenting an interface to a computer system for use in conducting diagnostic tests |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |