TWI450089B - System and method for testing hard disk ports of a motherboard - Google Patents

System and method for testing hard disk ports of a motherboard Download PDF

Info

Publication number
TWI450089B
TWI450089B TW099119861A TW99119861A TWI450089B TW I450089 B TWI450089 B TW I450089B TW 099119861 A TW099119861 A TW 099119861A TW 99119861 A TW99119861 A TW 99119861A TW I450089 B TWI450089 B TW I450089B
Authority
TW
Taiwan
Prior art keywords
tested
motherboard
storage device
hard disk
mux chip
Prior art date
Application number
TW099119861A
Other languages
Chinese (zh)
Other versions
TW201201012A (en
Inventor
ming-xiang Hu
Yang Ming Shiu Ou
jun-min Chen
Ge-Xin Zeng
Shuang Peng
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW099119861A priority Critical patent/TWI450089B/en
Publication of TW201201012A publication Critical patent/TW201201012A/en
Application granted granted Critical
Publication of TWI450089B publication Critical patent/TWI450089B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

主機板多硬碟埠測試系統及方法Motherboard multi-hard disk test system and method

本發明涉及一種主機板多硬碟埠測試系統及方法。The invention relates to a motherboard multi-hard disk test system and method.

主機板在裝配完成後,需經過全面的功能測試,其中包括對主機板上各種埠的測試。目前主機板上一般都有多個SATA/SAS(SATA:Serial Advanced Technology Attachment,串列高級技術附件,SAS:Serial Attached SCSI,串列連接SCSI介面)硬碟埠,經過PCI-E(PCI Express)擴展卡擴展後更是達數十個埠,而網路儲存裝置的硬碟埠更多。測試這些埠的一般做法是測試人員將所有硬碟埠都接上硬碟進行功能測試。如果每個硬碟埠都用硬碟作為測試設備的話,一是由於硬碟的價格一般較高,二是硬碟作為測試設備體積大不便於維護,三是損耗大,四是硬碟容易受到震動而影響測試效果。同時,測試人員如果對埠進行逐個測試,則需每測試完一個埠後又重新插拔硬碟,並且還要重新啟動測試程式,在大規模生產應用時會造成成本和時間的浪費。After the motherboard is assembled, it undergoes a full functional test, including testing of various defects on the motherboard. At present, there are usually multiple SATA/SAS (SATA: Serial Advanced Technology Attachment, SAS: Serial Attached SCSI, Serial Attached SCSI Interface) hard disk drives on the motherboard, after PCI-E (PCI Express). After the expansion card is expanded, it is dozens of flaws, and the network storage device has more hard drives. The general practice of testing these flaws is that the tester attaches all hard drives to the hard drive for functional testing. If each hard disk drive uses a hard disk as the test device, one is because the price of the hard disk is generally higher, and the second is that the hard disk is too large for the test device to be inconvenient to maintain, the third is the loss, and the fourth is that the hard disk is vulnerable. Vibration affects the test results. At the same time, if the testers test each other one by one, they need to re-plug the hard disk after each test, and restart the test program, which will cause cost and time waste in mass production applications.

鑒於上述內容,有必要提供一種主機板多硬碟埠測試系統及方法。In view of the above, it is necessary to provide a motherboard multi-hard disk test system and method.

所述主機板多硬碟埠測試系統,該系統用於測試待測主機板的多個硬碟埠,所述待測主機板的多個硬碟埠與一個測試裝置的多個硬碟埠相連接,該測試裝置還包括MUX(Multiplexer,多工器)晶片、儲存設備及指示裝置,該系統包括:切換通道模組,用於將待測主機板的待測埠號翻譯成MUX晶片對應的通道號,以切換MUX晶片中與該通道號相對應的通道與儲存設備相連,形成一條從待測主機板至儲存設備的資料傳輸路徑;寫校驗資料模組,當儲存設備與MUX晶片連接好後,通過上述資料傳輸路徑,將校驗資料寫入儲存設備;讀校驗資料模組,用於從儲存設備中經由上述資料傳輸路徑,將所述寫入的校驗資料讀出至待測主機板;驗證模組,用於驗證上述寫入及讀出的的校驗資料是否一致;發送模組,用於當寫入和讀出的校驗資料不一致時,通過I/O埠向MUX晶片發送待測埠異常的資訊,該MUX晶片根據該資訊驅動指示裝置顯示待測埠異常的資訊;該發送模組還用於當寫入和讀出的校驗資料一致時,通過I/O埠向MUX晶片發送待測埠正常的資訊,該MUX晶片根據該資訊驅動指示裝置顯示待測埠正常的資訊;擦除資料模組,當所寫入及讀出的校驗資料一致時,擦除儲存設備中寫入的校驗資料。The motherboard multi-hard disk test system for testing a plurality of hard disks of the motherboard to be tested, the plurality of hard disks of the motherboard to be tested and the plurality of hard disks of one test device The test device further includes a MUX (Multiplexer) chip, a storage device, and a pointing device. The system includes: a switching channel module, configured to translate the to-be-tested nickname of the motherboard to be tested into a corresponding MUX chip. The channel number is connected to the storage device by switching the channel corresponding to the channel number in the MUX chip to form a data transmission path from the motherboard to be tested to the storage device; and writing the verification data module, when the storage device is connected to the MUX chip After the data transmission path is used, the verification data is written into the storage device; and the verification data module is used to read the written verification data from the storage device via the data transmission path. The test board is used to verify whether the check data read and read is consistent; the sending module is used to pass the I/O when the check data written and read are inconsistent MUX chip The MUX chip displays the information of the abnormality to be tested according to the information driving indication device according to the information; the transmitting module is further configured to pass the I/O direction when the verification data written and read is consistent The MUX chip sends the normal information to be tested, and the MUX chip drives the pointing device to display the normal information to be tested according to the information; the data module is erased, and when the verified data written and read is consistent, the data is erased and stored. The verification data written in the device.

一種主機板多硬碟埠測試方法,包括以下步驟:(a)從待測主機板的多硬碟埠中選擇一個待測埠,並將其埠號翻譯成測試裝置中MUX晶片對應的通道號;(b)MUX晶片切換與該通道號對應的通道與測試裝置的儲存設備相連,形成一條從待測主機板至儲存設備的資料傳輸路徑;(c)當儲存設備與MUX晶片連接好後,MUX晶片驅動指示裝置顯示該待測埠的埠號;(d)待測主機板經由上述資料傳輸路徑向儲存設備寫入校驗資料並儲存;(e)待測主機板經由上述資料傳輸路徑從儲存設備中讀出校驗資料;(f)當寫入與讀出的校驗資料不一致時,結束測試;(g)當寫入與讀出的校驗資料一致時,擦除寫入儲存設備的校驗資料;(h)當待測主機板還有未測試的硬碟埠時,返回步驟(a),當該待測主機板的所有硬碟埠測試完畢時,通過指示裝置顯示待測主機板測試成功的資訊。A motherboard multi-hard disk test method includes the following steps: (a) selecting a test target from a plurality of hard disks of the motherboard to be tested, and translating the nickname into a channel number corresponding to the MUX chip in the test device (b) MUX chip switching and the channel corresponding to the channel number are connected to the storage device of the test device to form a data transmission path from the motherboard to be tested to the storage device; (c) when the storage device is connected to the MUX chip, The MUX chip drive indicating device displays the nickname of the to-be-tested device; (d) the motherboard to be tested writes the verification data to the storage device via the data transmission path and stores it; (e) the motherboard to be tested passes through the data transmission path The verification data is read from the storage device; (f) when the verification data written and read is inconsistent, the test is ended; (g) when the verification data written and read is identical, the write storage device is erased. (h) when the motherboard to be tested has an untested hard disk, return to step (a), when all the hard disks of the motherboard to be tested are tested, the indicating device is displayed to be tested. Motherboard test IT success.

相較於習知技術,本發明可一次自動測試主機板所有的SATA/SAS硬碟埠,不會因硬碟在測試中受到震動而影響測試效果,節約測試的成本和時間。Compared with the prior art, the present invention can automatically test all the SATA/SAS hard disks of the motherboard at one time, and does not affect the test effect due to the vibration of the hard disk during the test, thereby saving the cost and time of the test.

如圖1所示,係本發明主機板多硬碟埠測試系統較佳實施例的架構圖。該主機板多硬碟埠測試系統10運行於主機1上,主機1中待測主機板11與測試裝置2相連接。所述測試裝置2包括一MUX晶片21、一儲存設備22、一I/O埠25、一I/O埠轉換模組24、一指示裝置23及至少含有一個SATA/SAS埠的SATA/SAS埠組20。所述指示裝置23由MUX晶片21驅動。其中,SATA/SAS埠組20中的每個埠都按排列順序有相應的編號,在圖中以6個埠為例;MUX晶片21的通道數可根據實際需要測試的埠數而定制,且晶片通道按排列順序也有相應的編號。FIG. 1 is an architectural diagram of a preferred embodiment of a multi-hard disk test system for a motherboard of the present invention. The motherboard multi-hard disk test system 10 runs on the host 1, and the host board 11 to be tested in the host 1 is connected to the test device 2. The test device 2 includes a MUX chip 21, a storage device 22, an I/O port 25, an I/O port conversion module 24, a pointing device 23, and a SATA/SAS port containing at least one SATA/SAS port. Group 20. The pointing device 23 is driven by the MUX wafer 21. Wherein, each of the SATA/SAS group 20 has a corresponding number in the order of arrangement, and six 埠 are taken as an example in the figure; the number of channels of the MUX chip 21 can be customized according to the number of turns actually required to be tested, and The wafer channels are also numbered in the order in which they are arranged.

如圖2所示,係待測主機板與測試裝置硬碟埠的連接方式示意圖。待測主機板11的SATA/SAS埠組12中的所有埠(埠也按順序有相應的編號,圖中以6個埠為例)與該測試裝置2的SATA/SAS埠組20中的埠相連,連接方式為埠號一一對應,例如,待測主機板11的埠A1與測試裝置2的埠B1相連,待測主機板11的埠A2與測試裝置2的埠B2相連,依此類推。所述測試裝置2的SATA/SAS埠組20中的埠與所述MUX晶片21的通道(圖中以6條通道為例)相連,連接方式為埠號與通道號一一對應,如測試裝置2的埠C1與MUX晶片21的通道D1相連,測試裝置2的埠C2與MUX晶片21的通道D2相連,依此類推。MUX晶片21連接至所述儲存設備22。As shown in FIG. 2, it is a schematic diagram of the connection mode between the motherboard to be tested and the hard disk of the test device. All the SATA in the SATA/SAS 埠 group 12 of the motherboard 11 to be tested (the 埠 also has a corresponding number in the order, 6 埠 in the figure as an example) and the SATA in the SATA/SAS 埠 group 20 of the test device 2 Connected, the connection mode is a one-to-one correspondence, for example, the 埠A1 of the motherboard 11 to be tested is connected to the 埠B1 of the test device 2, the 埠A2 of the motherboard 11 to be tested is connected to the 埠B2 of the test device 2, and so on. . The SATA in the SATA/SAS group 20 of the testing device 2 is connected to the channel of the MUX chip 21 (the six channels in the figure are taken as an example), and the connection mode is that the apostrophe corresponds to the channel number one by one, such as a test device. The 埠C1 of 2 is connected to the channel D1 of the MUX wafer 21, the 埠C2 of the test device 2 is connected to the channel D2 of the MUX wafer 21, and so on. The MUX wafer 21 is connected to the storage device 22.

如圖1和圖2所示,主機板多硬碟埠測試系統10從SATA/SAS埠組12中選擇待測試的埠號,並將該埠號翻譯成MUX晶片21對應的通道號,再將該通道號經待測主機板11的I/O埠13和所述測試裝置2的I/O埠25傳送到I/O埠轉換模組24,該I/O埠轉換模組24將所接收到的通道號轉換成所述MUX晶片21的控制信號,如I2C(Inter-Integrated Circuit,兩線式串列匯流排)或SPI(Serial Peripheral Interface,串列外設介面)信號,以切換MUX晶片21的通道與儲存設備22相連接,形成一條從待測主機板11傳送資料到儲存設備22的資料傳輸路徑。As shown in FIG. 1 and FIG. 2, the motherboard multi-hard disk test system 10 selects the nickname to be tested from the SATA/SAS group 12, and translates the nickname into the channel number corresponding to the MUX chip 21, and then The channel number is transmitted to the I/O埠 conversion module 24 via the I/O port 13 of the motherboard 11 to be tested and the I/O port 25 of the test device 2, and the I/O埠 conversion module 24 receives the channel. The channel number obtained is converted into a control signal of the MUX chip 21, such as an I2C (Inter-Integrated Circuit) or an SPI (Serial Peripheral Interface) signal to switch the MUX chip. The channel of 21 is connected to the storage device 22 to form a data transmission path for transferring data from the motherboard 11 to be tested to the storage device 22.

主機板多硬碟埠測試系統10將校驗資料經上述所選擇的埠號及MUX晶片21的通道儲存在儲存設備22中。該儲存設備22相當於一個硬碟用於儲存校驗資料,其可以是SSD(Solid,固態硬碟)或HDD(Hard Disk Drive,硬碟驅動器)。The motherboard multi-drive test system 10 stores the verification data in the storage device 22 via the selected nickname and the channel of the MUX wafer 21. The storage device 22 is equivalent to a hard disk for storing verification data, which may be an SSD (Solid, Solid State Drive) or an HDD (Hard Disk Drive).

MUX晶片21的控制信號在切換通道成功後,控制所述的指示裝置23指示當前正在測試的埠號,並根據主機板多硬碟埠測試系統10對校驗資料的驗證結果指示當前正在測試的埠是否正常,還可以控制指示裝置23顯示全部埠都測試完畢的資訊。在本實施例中,該指示裝置23可以是七段LED(Light Emitting Diode,發光二極體)數位管,通過顯示的數值指示正在測試的埠號,例如,顯示數值閃爍則指示當前正在測試的埠異常,顯示數值穩定指示埠正常,再如顯示“∟”或其它非數值記號表示全部埠已測試完畢。After the switching channel succeeds, the control signal of the MUX chip 21 controls the indicating device 23 to indicate the nickname currently being tested, and indicates the currently being tested according to the verification result of the verification data by the motherboard multi-hard disk testing system 10. If the 埠 is normal, it is also possible to control the pointing device 23 to display the information that all the cockroaches have been tested. In this embodiment, the indicating device 23 can be a seven-segment LED (Light Emitting Diode) digital tube, and the displayed value indicates the nickname being tested. For example, the display value flashes to indicate that the current test is being performed.埠 Abnormal, the value stability indicator is displayed as normal, and then “∟” or other non-numeric marks indicate that all 埠 has been tested.

如圖3所示,是本發明主機板多硬碟埠測試系統的功能模組圖。所述主機板多硬碟埠測試系統10包括:切換通道模組101、檢測通道模組102、寫校驗資料模組103、讀校驗資料模組104、驗證模組105、發送模組106、擦除資料模組107。As shown in FIG. 3, it is a functional module diagram of the multi-hard disk test system of the motherboard of the present invention. The motherboard multi-hard disk test system 10 includes: a switch channel module 101, a detection channel module 102, a write verification data module 103, a read verification data module 104, a verification module 105, and a transmission module 106. And erasing the data module 107.

切換通道模組101用於切換與待測埠相連的MUX晶片21的相應通道與儲存設備22連接。在本實施例中,該切換通道模組101將從SATA/SAS埠組12中所選擇的待測埠號翻譯成MUX晶片21對應的通道號,經由待測主機板11的I/O埠13及測試裝置2的I/O埠25將該通道號傳送到所述I/O埠轉換模組24,該I/O埠轉換模組24將該通道號轉換成所述MUX晶片21的控制信號,如I2C或SPI控制信號,以控制MUX晶片21切換該通道與儲存設備22連接。從而形成一條從待測主機板11到儲存設備22的資料傳輸路徑。The switching channel module 101 is configured to switch the corresponding channel of the MUX chip 21 connected to the device to be tested to be connected to the storage device 22. In this embodiment, the switching channel module 101 translates the to-be-measured nickname selected from the SATA/SAS group 12 into the channel number corresponding to the MUX chip 21, and passes the I/O 埠 13 of the motherboard 11 to be tested. And the I/O port 25 of the test device 2 transmits the channel number to the I/O埠 conversion module 24, and the I/O埠 conversion module 24 converts the channel number into a control signal of the MUX chip 21. For example, an I2C or SPI control signal is used to control the MUX chip 21 to switch the channel to the storage device 22. Thereby, a data transmission path from the motherboard 11 to be tested to the storage device 22 is formed.

檢測通道模組102用於檢測測試裝置2的儲存設備22是否連接好,在本較佳實施例中,若已連接好則主機1會指示多一個可移動磁片,繼續測試;若未連接好,則主機1無任何指示,測試失敗。在其它實施例中,可用其它方式表示該儲存設備22是否與MUX晶片21連接好。當儲存設備22與MUX晶片21連接好後,該MUX晶片21驅動指示裝置23顯示該當前正在測試的埠號。The detection channel module 102 is configured to detect whether the storage device 22 of the test device 2 is connected. In the preferred embodiment, if the connection is good, the host 1 will indicate one more removable disk and continue testing; if not connected , then host 1 has no indication and the test fails. In other embodiments, it may be otherwise indicated whether the storage device 22 is connected to the MUX wafer 21. When the storage device 22 is connected to the MUX wafer 21, the MUX wafer 21 drives the pointing device 23 to display the nickname currently being tested.

寫校驗資料模組103用於向儲存設備22發送一寫入命令,所述寫入命令通過上述形成的資料傳輸路徑,也即從SATA/SAS埠組12所選擇的一個待測埠以及對應的測試裝置2的SATA/SAS埠,再經由MUX晶片21切換後的通道,將校驗資料傳送至所述儲存設備22並儲存。The write verification data module 103 is configured to send a write command to the storage device 22, and the write command passes through the formed data transmission path, that is, one to be tested and corresponding to the selected one from the SATA/SAS group 12. The SATA/SAS port of the test device 2 is transferred to the storage device 22 via the channel switched by the MUX chip 21 and stored.

讀校驗資料模組104用於向儲存設備22發送一讀出命令以讀出剛剛寫入儲存設備22的校驗資料,該讀出命令通過上述資料傳輸路徑將校驗資料從儲存設備22中讀出。The read check data module 104 is configured to send a read command to the storage device 22 to read the check data just written into the storage device 22, and the read command passes the check data from the storage device 22 through the data transfer path. read out.

驗證模組105通過比對從儲存設備22中讀出的校驗資料與寫入儲存設備22的校驗資料是否一致來驗證待測埠是否正常。The verification module 105 verifies whether the defect to be tested is normal by comparing whether the verification data read from the storage device 22 and the verification data written to the storage device 22 are identical.

發送模組106用於向MUX晶片21發送當前正在測試的埠正常或異常的資訊。在本實施例中,當驗證模組105驗證寫入與讀出的校驗資料一致時,該發送模組106通過I/O埠13和I/O埠25,傳送當前測試埠正常的資訊至I/O埠轉換模組24,該I/O埠轉換模組24將資訊轉換成所述MUX晶片21的控制信號以控制MUX晶片21驅動指示裝置23將當前正在測試的埠號穩定顯示來指示當前測試埠正常。反之,當驗證模組105驗證寫入與讀出的校驗資料不一致時,該發送模組106傳送該當前測試埠異常的資訊至I/O埠轉換模組24,該I/O埠轉換模組24將該資訊轉換成所述MUX晶片21的控制信號,以驅動指示裝置23將當前正在測試的埠號閃爍顯示來指示當前測試埠異常。當切換通道模組101已切換過所有的MUX晶片21的通道後,發送模組106通過上述待測主機板11的I/O埠13和測試裝置2的I/O埠25,發送一個結束信號至I/O埠轉換模組24,該I/O埠轉換模組24將該結束信號轉換成所述MUX晶片21的控制信號,控制MUX晶片21驅動指示裝置23顯示一個非數值記號如“∟”符號表示全部埠已測試完畢。The transmitting module 106 is configured to send the MUX chip 21 the normal or abnormal information currently being tested. In this embodiment, when the verification module 105 verifies that the written and read verification data are consistent, the sending module 106 transmits the current test normal information to the I/O埠13 and the I/O埠25 to An I/O conversion module 24, the I/O conversion module 24 converts information into a control signal of the MUX chip 21 to control the MUX chip 21 to drive the indication device 23 to stably display the nickname currently being tested. The current test is normal. On the other hand, when the verification module 105 verifies that the written data is inconsistent with the read verification data, the sending module 106 transmits the current test abnormal information to the I/O conversion module 24, and the I/O conversion mode. The group 24 converts the information into control signals of the MUX wafer 21 to drive the pointing device 23 to flash the nickname currently being tested to indicate the current test 埠 anomaly. After the switching channel module 101 has switched all the channels of the MUX chip 21, the transmitting module 106 sends an end signal through the I/O port 13 of the motherboard 11 to be tested and the I/O port 25 of the testing device 2. And to the I/O conversion module 24, the I/O conversion module 24 converts the end signal into a control signal of the MUX chip 21, and controls the MUX chip 21 to drive the indication device 23 to display a non-value symbol such as "∟" The symbol indicates that all 埠 has been tested.

擦除資料模組107用於擦除儲存設備22中的校驗資料。當驗證模組105驗證寫入與讀出的校驗資料一致時,即當前測試埠功能正常後,擦除資料模組107發送一刪除命令,擦除儲存設備22中寫入及儲存的校驗資料。The erasure data module 107 is used to erase the verification data in the storage device 22. When the verification module 105 verifies that the written and read verification data are consistent, that is, after the current test function is normal, the erase data module 107 sends a delete command to erase the write and store verification in the storage device 22. data.

如圖4所示,係本發明主機板多硬碟埠測試方法較佳實施例的流程圖。As shown in FIG. 4, it is a flowchart of a preferred embodiment of the multi-hard disk test method for the motherboard of the present invention.

步驟S201,切換通道模組101從待測主機板11的SATA/SAS埠組12中選擇一個待測試埠,該切換通道模組101將該待測試埠號翻譯成MUX晶片21對應的通道號,再經由待測主機板11的I/O埠13及測試裝置2的I/O埠25將該通道號傳送到所述I/O埠轉換模組24,該I/O埠轉換模組24將該通道號轉換成所述MUX晶片21的控制信號,如I2C或SPI控制信號,以切換該MUX晶片21的通道與儲存設備22連接,形成一條從待測主機板11到儲存設備22傳輸資料的路徑。In step S201, the switching channel module 101 selects a to-be-tested one from the SATA/SAS group 12 of the motherboard 11 to be tested, and the switching channel module 101 translates the to-be-tested nickname into a channel number corresponding to the MUX chip 21. The channel number is transmitted to the I/O埠 conversion module 24 via the I/O port 13 of the motherboard 11 to be tested and the I/O port 25 of the test device 2, and the I/O埠 conversion module 24 will The channel number is converted into a control signal of the MUX chip 21, such as an I2C or SPI control signal, to switch the channel of the MUX chip 21 to the storage device 22 to form a data transmission from the motherboard 11 to the storage device 22 to be tested. path.

步驟S202,檢測通道模組102檢測儲存設備22與MUX晶片21是否連接好。在本實施例中,若已連接好則主機指示多一個可移動磁片,進入步驟S203;若未連接好,則主機無任何指示,進入步驟S208,測試失敗。In step S202, the detection channel module 102 detects whether the storage device 22 and the MUX wafer 21 are connected. In this embodiment, if it is connected, the host indicates one more removable magnetic disk, and proceeds to step S203; if not, the host does not have any indication, and proceeds to step S208, and the test fails.

步驟S203,MUX晶片21驅動指示裝置23顯示該待測埠的埠號。In step S203, the MUX chip 21 drives the pointing device 23 to display the nickname of the test to be tested.

步驟S204,寫校驗資料模組103向儲存設備22發送一寫入命令,所述寫入命令通過步驟S201形成的資料傳輸路徑向儲存設備22寫入校驗資料並儲存。In step S204, the write verification data module 103 sends a write command to the storage device 22, and the write command writes the verification data to the storage device 22 through the data transmission path formed in step S201 and stores it.

步驟S205,讀校驗資料模組104向儲存設備22發送一讀出命令,所述讀出命令,經由步驟S201形成的傳輸資料的路徑,將剛剛寫入儲存設備22的校驗資料再從該儲存設備22讀出到待測主機板11。Step S205, the read verification data module 104 sends a read command to the storage device 22, and the read command re-sends the verification data just written into the storage device 22 from the path of the transmission data formed in step S201. The storage device 22 is read out to the motherboard 11 to be tested.

步驟S206,驗證模組105通過比對從儲存設備22中讀出的校驗資料與寫入儲存設備22的校驗資料是否一致來驗證該待測埠是否正常。當驗證模組105驗證寫入與讀出的校驗資料不一致,進入步驟S207;如一致,即當前所測試的埠功能正常後,進入步驟S209。In step S206, the verification module 105 verifies whether the test target is normal by comparing whether the check data read from the storage device 22 and the check data written to the storage device 22 are consistent. When the verification module 105 verifies that the written and read verification data is inconsistent, the process goes to step S207; if it is consistent, that is, the currently tested function is normal, the process goes to step S209.

步驟S207,發送模組106將當前測試埠異常的資訊通過I/O埠13、I/O埠25,發送到I/O埠轉換模組24,I/O埠轉換模組24將該資訊轉換成所述MUX晶片21的控制信號,以驅動指示裝置23將當前正在測試的埠號閃爍顯示來指示當前測試埠異常,並進入步驟S208,表明測試失敗,結束測試。In step S207, the sending module 106 sends the current test 埠 abnormal information to the I/O 埠 conversion module 24 through the I/O 埠 13, I/O 埠 25, and the I/O 埠 conversion module 24 converts the information. The control signal of the MUX chip 21 is used to drive the pointing device 23 to flash the nickname currently being tested to indicate the current test 埠 abnormality, and proceeds to step S208 to indicate that the test has failed and ends the test.

步驟S209,發送模組106將當前測試埠正常的資訊通過I/O埠13、I/O埠25,發送到I/O埠轉換模組24,I/O埠轉換模組24將該資訊轉換成所述MUX晶片21的控制信號,以驅動指示裝置23將當前正在測試的埠號穩定顯示來指示當前測試埠正常。Step S209, the sending module 106 sends the current test normal information to the I/O埠 conversion module 24 through the I/O埠13, I/O埠25, and the I/O埠 conversion module 24 converts the information. The control signal of the MUX chip 21 is used to drive the pointing device 23 to stably display the nickname currently being tested to indicate that the current test is normal.

步驟S210,擦除資料模組107發送一刪除命令,擦除儲存設備22中寫入及儲存的校驗資料。In step S210, the erasure data module 107 sends a delete command to erase the verification data written and stored in the storage device 22.

步驟S211,若SATA/SAS埠組12中還有未測試的埠,則返回步驟S201,若SATA/SAS埠組12中所有的埠均測試完畢時,進入步驟S212,測試成功,發送模組106將測試完畢的資訊通過I/O埠13和I/O埠25,發送到I/O埠轉換模組24,該I/O埠轉換模組24將該資訊轉換成所述MUX晶片21的控制信號,以驅動指示裝置23指示全部埠已測試完畢的資訊。In step S211, if there are untested defects in the SATA/SAS group 12, the process returns to step S201. If all the ports in the SATA/SAS group 12 are tested, the process proceeds to step S212, and the test is successful, and the transmission module 106 is sent. The tested information is sent to the I/O埠 conversion module 24 through the I/O埠13 and the I/O埠25, and the I/O埠 conversion module 24 converts the information into the control of the MUX chip 21. The signal is used to drive the pointing device 23 to indicate all the information that has been tested.

在步驟S204中,當不能寫入校驗資料時,退出測試系統,測試失敗。In step S204, when the verification data cannot be written, the test system is exited and the test fails.

在步驟S205中,當不能讀出校驗資料時,退出測試系統,測試失敗。In step S205, when the verification data cannot be read, the test system is exited and the test fails.

在步驟S210中,當不能擦除校驗資料時,退出測試系統,測試失敗。In step S210, when the verification data cannot be erased, the test system is exited and the test fails.

最後應說明的是,以上實施方式僅用以說明本發明的技術方案而非限制,儘管參照較佳實施方式對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and the present invention is not limited thereto. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that Modifications or equivalents are made without departing from the spirit and scope of the invention.

1...主機1. . . Host

11...待測主機板11. . . Host board to be tested

12,20...SATA/SAS埠組12,20. . . SATA/SAS group

13,25...I/O埠13,25. . . I/O埠

2...測試裝置2. . . Test device

21...MUX晶片twenty one. . . MUX chip

22...儲存設備twenty two. . . Storage device

23...指示裝置twenty three. . . Indicator device

24...I/O埠轉換模組twenty four. . . I/O埠 conversion module

10...主機板多硬碟埠測試系統10. . . Motherboard multi-hard disk test system

101...切換通道模組101. . . Switching channel module

102...檢測通道模組102. . . Detection channel module

103...寫校驗資料模組103. . . Write verification data module

104...讀校驗資料模組104. . . Read verification data module

105...驗證模組105. . . Verification module

106...發送模組106. . . Sending module

107...擦除資料模組107. . . Erase data module

圖1係為本發明主機板多硬碟埠測試系統較佳實施例的架構圖。1 is a block diagram of a preferred embodiment of a multi-hard disk test system for a motherboard of the present invention.

圖2係為待測主機板與測試裝置硬碟埠的連接方式示意圖。FIG. 2 is a schematic diagram showing the connection manner between the motherboard to be tested and the hard disk of the test device.

圖3係為本發明主機板多硬碟埠測試系統的功能模組圖。FIG. 3 is a functional block diagram of a multi-hard disk test system for a motherboard of the present invention.

圖4係為本發明主機板多硬碟埠測試方法較佳實施例的流程圖。4 is a flow chart of a preferred embodiment of a multi-hard disk test method for a motherboard of the present invention.

10...主機板多硬碟埠測試系統10. . . Motherboard multi-hard disk test system

101...切換通道模組101. . . Switching channel module

102...檢測通道模組102. . . Detection channel module

103...寫校驗資料模組103. . . Write verification data module

104...讀校驗資料模組104. . . Read verification data module

105...驗證模組105. . . Verification module

106...發送模組106. . . Sending module

107...擦除資料模組107. . . Erase data module

Claims (10)

一種主機板多硬碟埠測試系統,用於測試待測主機板的多個硬碟埠,所述待測主機板的多個硬碟埠與一個測試裝置的多個硬碟埠相連接,該測試裝置還包括MUX晶片、儲存設備及指示裝置,該系統包括:
切換通道模組,用於將待測主機板的待測埠號翻譯成MUX晶片對應的通道號,以切換MUX晶片中與該通道號相對應的通道與儲存設備相連,形成一條從待測主機板至儲存設備的資料傳輸路徑;
寫校驗資料模組,當儲存設備與MUX晶片連接好後,通過上述資料傳輸路徑,將校驗資料寫入儲存設備;
讀校驗資料模組,用於從儲存設備中經由上述資料傳輸路徑,將所述寫入的校驗資料讀出至待測主機板;
驗證模組,用於驗證上述寫入及讀出的的校驗資料是否一致;
發送模組,用於當寫入和讀出的校驗資料不一致時,通過I/O埠向MUX晶片發送待測埠異常的資訊,該MUX晶片根據該資訊驅動指示裝置顯示待測埠異常的資訊;
該發送模組還用於當寫入和讀出的校驗資料一致時,通過I/O埠向MUX晶片發送待測埠正常的資訊,該MUX晶片根據該資訊驅動指示裝置顯示待測埠正常的資訊;及
擦除資料模組,當所寫入及讀出的校驗資料一致時,擦除儲存設備中寫入的校驗資料。
A motherboard multi-hard disk test system for testing a plurality of hard disks of a motherboard to be tested, wherein a plurality of hard disks of the motherboard to be tested are connected to a plurality of hard disks of a test device, The testing device also includes a MUX chip, a storage device, and a pointing device, the system comprising:
The switching channel module is configured to translate the to-be-tested nickname of the motherboard to be tested into a channel number corresponding to the MUX chip, and switch the channel corresponding to the channel number in the MUX chip to be connected with the storage device to form a host from the host to be tested. The data transfer path from the board to the storage device;
Writing a verification data module, after the storage device is connected to the MUX chip, the verification data is written into the storage device through the above data transmission path;
The check data module is configured to read the written verification data from the storage device to the motherboard to be tested via the data transmission path;
a verification module for verifying whether the verification data written and read by the above is consistent;
a sending module, configured to send, by the I/O, the information of the abnormality to be tested to the MUX chip when the verification data written and read is inconsistent, and the MUX chip displays the abnormality to be tested according to the information driving indication device. News;
The transmitting module is further configured to send normal information to be tested to the MUX chip through the I/O when the verification data written and read is consistent, and the MUX chip displays the normal to be tested according to the information driving indication device. And the erasing data module, when the verification data written and read is consistent, the verification data written in the storage device is erased.
如申請專利範圍第1項所述的主機板多硬碟埠測試系統,所述MUX晶片在與儲存設備連接好後,該MUX晶片驅動提示裝置顯示當前的待測埠號。The motherboard multi-hard disk test system according to claim 1, wherein the MUX chip drive prompting device displays the current test nickname after being connected to the storage device. 如申請專利範圍第1項所述的主機板多硬碟埠測試系統,所述測試裝置還包括一個I/O埠轉換模組,該I/O埠轉換模組從待測主機板的I/O埠接收翻譯的通道號,並將該通道號轉換成所述MUX晶片的控制信號,MUX晶片根據該控制信號切換通道。The motherboard multi-hard disk test system according to claim 1, wherein the test device further comprises an I/O埠 conversion module, and the I/O埠 conversion module is I/ from the motherboard to be tested. O埠 receives the translated channel number and converts the channel number into a control signal of the MUX chip, and the MUX chip switches the channel according to the control signal. 如申請專利範圍第3項所述的主機板多硬碟埠測試系統,所述發送模組還用於,當該待測主機板的硬碟埠均測試完畢時,通過I/O埠向MUX晶片發送測試完畢的資訊,所述I/O埠轉換模組將該資訊轉換成MUX晶片的控制信號,MUX晶片根據該控制信號驅動指示裝置顯示測試完畢的資訊。The motherboard multi-hard disk test system according to claim 3, wherein the sending module is further configured to: when the hard disk of the motherboard to be tested is tested, pass the I/O to the MUX. The chip transmits the test completed information, and the I/O conversion module converts the information into a control signal of the MUX chip, and the MUX chip drives the indication device to display the tested information according to the control signal. 如申請專利範圍第1項所述的主機板多硬碟埠測試系統,所述儲存設備是一個固態硬碟或是一個硬碟驅動器。The motherboard multi-hard disk test system according to claim 1, wherein the storage device is a solid state hard disk or a hard disk drive. 一種主機板多硬碟埠測試方法,該方法包括以下步驟:
(a)從待測主機板的多硬碟埠中選擇一個待測埠,並將其埠號翻譯成測試裝置中MUX晶片對應的通道號;
(b)MUX晶片切換該通道號對應的通道與測試裝置的儲存設備相連,形成一條從待測主機板至儲存設備的資料傳輸路徑;
(c)當儲存設備與MUX晶片連接好後,MUX晶片驅動指示裝置顯示該待測埠的埠號;
(d)待測主機板經由上述資料傳輸路徑向儲存設備寫入校驗資料並儲存;
(e)待測主機板經由上述資料傳輸路徑從儲存設備中讀出校驗資料;
(f)當寫入與讀出的校驗資料不一致時,結束測試;或者
(g)當寫入與讀出的校驗資料一致時,擦除寫入儲存設備的校驗資料;
(h)當待測主機板還有未測試的硬碟埠時,返回步驟(a),或者,當該待測主機板的所有硬碟埠測試完畢時,通過指示裝置顯示待測主機板測試成功的資訊。
A method for testing a hard disk of a motherboard, the method comprising the following steps:
(a) selecting one to be tested from the plurality of hard disks of the motherboard to be tested, and translating the apostrophe into a channel number corresponding to the MUX chip in the test device;
(b) MUX chip switching the channel corresponding to the channel number is connected with the storage device of the testing device to form a data transmission path from the motherboard to be tested to the storage device;
(c) after the storage device is connected to the MUX chip, the MUX wafer drive indicating device displays the nickname of the to-be-tested device;
(d) the motherboard to be tested writes the verification data to the storage device via the above data transmission path and stores it;
(e) the motherboard to be tested reads the verification data from the storage device via the above data transmission path;
(f) when the written and read verification data are inconsistent, the test is ended; or (g) when the verification data is written and read, the verification data written to the storage device is erased;
(h) When the motherboard to be tested has an untested hard disk, return to step (a), or when the hard disk of the motherboard to be tested is tested, display the test board to be tested by the indicating device. Successful information.
如申請專利範圍第6項所述的主機板多硬碟埠測試方法,該方法在步驟(a)之前還包括:
將待測主機板的多個硬碟埠與測試裝置的多個硬碟埠一一連接。
The method for testing a multi-hard disk of a motherboard according to claim 6 of the patent application, the method further comprising: before step (a):
The plurality of hard disks of the motherboard to be tested are connected to the plurality of hard disks of the test device one by one.
如申請專利範圍第6項所述的主機板多硬碟埠測試方法,所述步驟(b)包括:
測試裝置的I/O埠轉換模組從待測主機板的I/O埠接收該翻譯的通道號;
該I/O埠轉換模組將該通道號轉換成所述MUX晶片的控制信號;
該MUX晶片根據該控制信號切換該通道號與儲存設備相連。
The method for testing a hard disk of a motherboard according to item 6 of the patent application, wherein the step (b) comprises:
The I/O埠 conversion module of the test device receives the translated channel number from the I/O埠 of the motherboard to be tested;
The I/O埠 conversion module converts the channel number into a control signal of the MUX chip;
The MUX chip switches the channel number to be connected to the storage device according to the control signal.
如申請專利範圍第8項所述的主機板多硬碟埠測試方法,步驟(f)還包括:
待測主機板發送該待測埠異常的資訊至該I/O埠轉換模組;
該I/O埠轉換模組將該資訊轉換成MUX晶片的控制信號;
該MUX晶片根據該控制信號驅動指示裝置顯示異常的待測埠號。
The method for testing a multi-hard disk of a motherboard according to item 8 of the patent application, the step (f) further includes:
The motherboard to be tested sends the information of the abnormality to be tested to the I/O埠 conversion module;
The I/O埠 conversion module converts the information into a control signal of the MUX chip;
The MUX chip drives the pointing device to display an abnormal nickname to be tested according to the control signal.
如申請專利範圍第8項所述的主機板多硬碟埠測試方法,所述步驟(g)還包括:
待測主機板發送待測埠正常的資訊至該I/O埠轉換模組;
該I/O埠轉換模組將接收的資訊轉換成對MUX晶片的控制信號;
MUX晶片根據控制信號驅動指示裝置顯示正常的待測埠號。
The method for testing a multi-hard disk of a motherboard according to claim 8 of the patent application, wherein the step (g) further comprises:
The motherboard to be tested sends the normal information to be tested to the I/O conversion module;
The I/O埠 conversion module converts the received information into a control signal for the MUX chip;
The MUX chip drives the pointing device to display a normal nickname to be tested according to the control signal.
TW099119861A 2010-06-18 2010-06-18 System and method for testing hard disk ports of a motherboard TWI450089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099119861A TWI450089B (en) 2010-06-18 2010-06-18 System and method for testing hard disk ports of a motherboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099119861A TWI450089B (en) 2010-06-18 2010-06-18 System and method for testing hard disk ports of a motherboard

Publications (2)

Publication Number Publication Date
TW201201012A TW201201012A (en) 2012-01-01
TWI450089B true TWI450089B (en) 2014-08-21

Family

ID=46755625

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099119861A TWI450089B (en) 2010-06-18 2010-06-18 System and method for testing hard disk ports of a motherboard

Country Status (1)

Country Link
TW (1) TWI450089B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI445974B (en) * 2012-07-31 2014-07-21 Quanta Comp Inc Test system and method for ports with multi functions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4348761A (en) * 1980-09-08 1982-09-07 Pioneer Research, Inc. Portable field test unit for computer data and program storage disc drive
TWI230856B (en) * 2002-10-04 2005-04-11 Hon Hai Prec Ind Co Ltd An apparatus for IDE channel testing
US20070094558A1 (en) * 2005-10-24 2007-04-26 Hon Hai Precision Industry Co., Ltd. Apparatus and method for testing an IEEE1394 port
TW200817890A (en) * 2006-10-11 2008-04-16 Hon Hai Prec Ind Co Ltd System for detecting hard disks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4348761A (en) * 1980-09-08 1982-09-07 Pioneer Research, Inc. Portable field test unit for computer data and program storage disc drive
TWI230856B (en) * 2002-10-04 2005-04-11 Hon Hai Prec Ind Co Ltd An apparatus for IDE channel testing
US20070094558A1 (en) * 2005-10-24 2007-04-26 Hon Hai Precision Industry Co., Ltd. Apparatus and method for testing an IEEE1394 port
TW200817890A (en) * 2006-10-11 2008-04-16 Hon Hai Prec Ind Co Ltd System for detecting hard disks

Also Published As

Publication number Publication date
TW201201012A (en) 2012-01-01

Similar Documents

Publication Publication Date Title
US8443238B2 (en) System and method for testing hard disk ports
TWI309779B (en) Testing system and testing method for link control card
US9171643B2 (en) Solid state drive tester
US9411700B2 (en) Storage tester capable of individual control for a plurality of storage
US9159454B2 (en) Failure detection apparatus for solid state drive tester
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
US10204702B2 (en) Testing a storage network
KR20150037001A (en) System for detecting fail block using logic block address and data buffer address in storage test device
TW201342041A (en) Testing system and method
JP2007323467A (en) Dma circuit and data transfer method
US20130111268A1 (en) Testing device capable of simulating plugging and unplugging operations and method thereof
JP2007102653A (en) Method and apparatus for testing function of data storage apparatus
US9459302B2 (en) Device under test tester using redriver
TWI450089B (en) System and method for testing hard disk ports of a motherboard
TWI670722B (en) Batch automatic test method for solid state disk and batch automatic test device for solid state disk
US9153345B2 (en) Error generating apparatus for solid state drive tester
CN105022682B (en) Processing target memory
JP5516296B2 (en) Nonvolatile memory unit
TW201504650A (en) SAS expander, system and method for controlling maintenance of SAS expander
US20120131290A1 (en) Backup Memory Administration
KR101365430B1 (en) Apparatus for state detecting of flash memory in solid state drive tester
JP4791496B2 (en) Interface board test apparatus and interface board test method
TW201106155A (en) Examining method of switching firmwares and computer program product thereof
US9990382B1 (en) Secure erasure and repair of non-mechanical storage media
JP2011008650A (en) Method, system and program for error verification

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees