CN109344023B - System and method for testing stability of USB3.0 interface of server - Google Patents

System and method for testing stability of USB3.0 interface of server Download PDF

Info

Publication number
CN109344023B
CN109344023B CN201811298647.1A CN201811298647A CN109344023B CN 109344023 B CN109344023 B CN 109344023B CN 201811298647 A CN201811298647 A CN 201811298647A CN 109344023 B CN109344023 B CN 109344023B
Authority
CN
China
Prior art keywords
usb
usb equipment
server
level
concentrator
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.)
Active
Application number
CN201811298647.1A
Other languages
Chinese (zh)
Other versions
CN109344023A (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811298647.1A priority Critical patent/CN109344023B/en
Publication of CN109344023A publication Critical patent/CN109344023A/en
Application granted granted Critical
Publication of CN109344023B publication Critical patent/CN109344023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Abstract

The invention provides a system and a method for testing the stability of a USB3.0 interface of a server, wherein the system comprises the USB3.0 interface, the USB3.0 interface is connected with a cascaded USB3.0 concentrator, and the USB3.0 concentrator at each level is connected with USB equipment; identifying the USB equipment under the server operating system; performing pressure reading and writing test on the USB equipment; and restarting the server and judging whether the USB equipment is normal or not. The method comprises the following steps: the USB equipment is connected with the USB interface through a cascaded USB3.0 concentrator; identifying the USB equipment under the server operating system, and recording initial USB equipment information; and after the pressure read-write test is carried out on the USB equipment, the server is restarted to judge whether the USB equipment is the same as the initial USB equipment information or not. The invention realizes the stability test of the USB3.0 interface of the server and indirectly realizes the stability test of the server.

Description

System and method for testing stability of USB3.0 interface of server
Technical Field
The invention belongs to the field of server USB interface testing, and particularly relates to a system and a method for testing the stability of a server USB3.0 interface.
Background
In the hardware structure of the server, although the number of USB interfaces supported by the main board PCH is large, based on the characteristics of the server itself, the main board PCH is generally used as only four USB interfaces, including two USB interfaces at the front and two USB interfaces at the back. For a server manufacturer, it is important to ensure the stability of the USB interface under the condition that there are not many USB interfaces. Few of the server tests have been dedicated to cover the USB interface aspect. In normal test, the USB interface is only connected with one layer of equipment, and is not connected with the test of multiple layers of equipment, so that the function test of the USB interface is incomplete.
Therefore, it is necessary to provide a system and a method for testing the stability of the USB3.0 interface of the server to overcome the above-mentioned drawbacks in the prior art.
Disclosure of Invention
The invention aims to provide a system and a method for testing the stability of a server USB3.0 interface, aiming at the defect that in the server test, the USB interface test is less, and the USB interface in the normal test is only connected with one layer of equipment and is not connected with multiple layers of equipment, so that the function test of the USB interface is incomplete.
In order to achieve the purpose, the invention provides the following technical scheme:
a test system for the stability of a server USB3.0 interface comprises a USB3.0 interface, wherein the USB3.0 interface is connected with a cascaded USB3.0 concentrator, and each level of USB3.0 concentrator is connected with a USB device;
identifying the USB equipment under the server operating system;
performing pressure reading and writing test on the USB equipment;
and restarting the server and judging whether the USB equipment is normal or not.
Further, the USB device includes a USB3.0 USB disk, a USB3.0 HDD, a USB2.0 webcam, a USB3.0 optical drive, a USB mouse, and a USB keyboard. USB devices include, but are not limited to, the USB devices described above, and any USB device capable of being connected via a USB3.0 hub.
Further, the cascaded USB3.0 hubs include a first-level USB3.0 hub, a second-level USB3.0 hub, a third-level USB3.0 hub, and a fourth-level USB3.0 hub;
the first-stage USB3.0 concentrator is connected with the USB3.0 interface, and the first-stage USB3.0 concentrator is also connected with first-stage USB equipment;
the second-level USB3.0 concentrator is connected with the first-level USB3.0 concentrator, and the second-level USB3.0 concentrator is also connected with second-level USB equipment;
the third-level USB3.0 concentrator is connected with the second-level USB3.0 concentrator, and the third-level USB3.0 concentrator is also connected with third-level USB equipment;
the fourth level USB3.0 hub is connected with the third level USB3.0 hub. The four-level USB3.0 hub cascade connection realizes the comprehensive test of the USB3.0 interface function.
Further, the first-level USB equipment comprises a USB 3.0U disk and a USB3.0 HDD;
the second-stage USB equipment comprises a USB2.0 network camera and a USB3.0 optical drive;
the third-level USB equipment comprises a USB mouse and a USB keyboard.
The invention also provides the following technical scheme:
a method for testing the stability of a server USB3.0 interface comprises the following steps:
the USB equipment is connected with the USB interface through a cascaded USB3.0 concentrator;
identifying the USB equipment under the server operating system, and recording initial USB equipment information;
and after the pressure read-write test is carried out on the USB equipment, the server is restarted to judge whether the USB equipment is the same as the initial USB equipment information.
Further, the specific steps are as follows:
s1, a USB3.0 interface of a server is cascaded with a USB3.0 concentrator, and each level of USB3.0 concentrator is connected with USB equipment;
s2, identifying the USB equipment under the server operating system, recording the identified USB equipment information, and setting the USB equipment information as reference USB equipment information;
s3, performing pressure read-write test on the identified USB equipment;
s4, restarting the server when the pressure read-write test reaches the set time;
s5, detecting the USB equipment and checking the USB equipment with reference USB equipment information;
s6, checking and outputting error information of the USB equipment when the information of the USB equipment is different from that of the reference USB equipment; proceeding to step S8;
s7, judging whether the restarting times of the server reach the set times when the information of the USB equipment is the same as that of the standard USB equipment;
if not, returning to the step S3;
if yes, go to step S8;
and S8, ending. After the read-write pressure test of the USB equipment, if errors exist, the number of the USB equipment or the information of the USB equipment can be changed.
Further, the set time is 10 minutes; the set number of times is 500. The time is set to ensure that the read-write pressure test is fully performed, and the number of times is set to ensure that the number of times of restarting the server is fully performed.
Further, the step S3 specifically includes the following steps:
s31, acquiring all identified USB equipment;
and S32, sending a data packet file with a set size to each identified USB device, and/or reading the data packet file with the set size from each identified USB device. The reading and writing of data to the USB device may be performed simultaneously or separately.
Further, step s32, sequentially sending the data packet file with the set size to each USB device, and/or sequentially reading the data packet file with the set size from each identified USB device. Data can be read and written to the USB devices in sequence, and comprehensiveness of testing is guaranteed.
Further, step S32. simultaneously sending the set size data packet file to each USB device, and/or simultaneously reading the set size data packet file from each identified USB device. Data can be read and written to a plurality of USB devices at the same time, and the test comprehensiveness is guaranteed.
The invention has the beneficial effects that:
the invention realizes the stability test of the USB3.0 interface of the server and indirectly realizes the stability test of the server; the invention covers the identification capability test and the pressure read-write test of the USB equipment and the test of the cascade capability of the USB3.0 interface through the USB3.0 concentrator, and is beneficial to the improvement of the quality of the server and the coverage of the test function.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a schematic view of the system configuration of embodiment 1;
FIG. 2 is a flow chart of a method of the present invention;
wherein, 1-USB3.0 interface; 2-first level USB3.0 hub; 3-second level USB3.0 hub; 4-third level USB3.0 hub; 5-fourth level USB3.0 hub; 6-USB 3.0U disk; 7-USB3.0 HDD; 8-USB2.0 network camera; 9-USB3.0 optical drive; 10-USB mouse; 11-USB keyboard.
The specific implementation mode is as follows:
in order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example 1:
the invention provides a system for testing the stability of a USB3.0 interface of a server, which comprises a USB3.0 interface 1, wherein the USB3.0 interface 1 is connected with a cascaded USB3.0 concentrator, and each level of USB3.0 concentrator is connected with USB equipment;
as shown in fig. 1, the cascaded USB3.0 hubs include a primary USB3.0 hub 2, a secondary USB3.0 hub 3, a tertiary USB3.0 hub 4, and a quaternary USB3.0 hub 5;
the first-level USB3.0 hub 2 is connected with the USB3.0 interface 1, the first-level USB3.0 hub 2 is also connected with first-level USB equipment, and the first-level USB equipment comprises a USB 3.0U disk 6 and a USB3.0 HDD 7;
the second-level USB3.0 hub 3 is connected with the first-level USB3.0 hub 2, the second-level USB3.0 hub 3 is also connected with second-level USB equipment, and the second-level USB equipment comprises a USB2.0 network camera 8 and a USB3.0 optical drive 9;
the third-level USB3.0 hub 4 is connected with the second-level USB3.0 hub 3, the third-level USB3.0 hub 4 is also connected with third-level USB equipment, and the third-level USB equipment comprises a USB mouse 10 and a USB keyboard 11;
the fourth-level USB3.0 hub is connected with the 5 third-level USB3.0 hub 4;
identifying the USB equipment under the server operating system;
performing pressure reading and writing test on the USB equipment;
and restarting the server and judging whether the USB equipment is normal or not.
Example 2:
the invention provides a method for testing the stability of a USB3.0 interface of a server, which comprises the following steps:
the USB equipment is connected with the USB interface through a cascaded USB3.0 concentrator;
identifying the USB equipment under the server operating system, and recording initial USB equipment information;
after the pressure read-write test is carried out on the USB equipment, the server is restarted to judge whether the USB equipment is the same as the initial USB equipment information;
as shown in fig. 2, the method specifically includes the following steps:
s1, a USB3.0 interface of a server is cascaded with a USB3.0 concentrator, and each level of USB3.0 concentrator is connected with USB equipment;
s2, identifying the USB equipment under the server operating system, recording the identified USB equipment information, and setting the USB equipment information as reference USB equipment information;
s3, performing pressure read-write test on the identified USB equipment; the method comprises the following specific steps:
s31, acquiring all identified USB equipment;
s32, sending a data packet file with a set size to each identified USB device, or reading the data packet file with the set size from each identified USB device;
s4, restarting the server when the pressure read-write test reaches the set time; setting time for 10 minutes;
s5, detecting the USB equipment and checking the USB equipment with reference USB equipment information;
s6, checking and outputting error information of the USB equipment when the information of the USB equipment is different from that of the reference USB equipment; proceeding to step S8;
s7, judging whether the restarting times of the server reach the set times when the information of the USB equipment is the same as that of the standard USB equipment; setting the times to be 500 times;
if not, returning to the step S3;
if yes, go to step S8;
and S8, ending.
In step S32 of embodiment 2, the data can be read from and written to the USB device simultaneously, that is, the data can be read from and written to the USB device simultaneously
And S32, sending a data packet file with a set size to each identified USB device, and reading the data packet file with the set size from each identified USB device.
In step S32 of embodiment 2, reading and writing data to and from the plurality of USB devices may be performed sequentially or simultaneously.
The embodiments of the present invention are illustrative rather than restrictive, and the above-mentioned embodiments are only provided to help understanding of the present invention, so that the present invention is not limited to the embodiments described in the detailed description, and other embodiments derived from the technical solutions of the present invention by those skilled in the art also belong to the protection scope of the present invention.

Claims (7)

1. A test system for the stability of a server USB3.0 interface is characterized by comprising a USB3.0 interface, wherein the USB3.0 interface is connected with a cascaded USB3.0 concentrator, and each level of USB3.0 concentrator is connected with a USB device;
identifying the USB equipment under the server operating system;
performing pressure reading and writing test on the USB equipment;
restarting the server and judging whether the USB equipment is normal or not;
the cascaded USB3.0 hubs comprise a first-stage USB3.0 hub, a second-stage USB3.0 hub, a third-stage USB3.0 hub and a fourth-stage USB3.0 hub;
the first-stage USB3.0 concentrator is connected with the USB3.0 interface, and the first-stage USB3.0 concentrator is also connected with first-stage USB equipment;
the second-level USB3.0 concentrator is connected with the first-level USB3.0 concentrator, and the second-level USB3.0 concentrator is also connected with second-level USB equipment;
the third-level USB3.0 concentrator is connected with the second-level USB3.0 concentrator, and the third-level USB3.0 concentrator is also connected with third-level USB equipment;
the fourth-level USB3.0 hub is connected with the third-level USB3.0 hub;
the first-level USB equipment comprises a USB 3.0U disk and a USB3.0 HDD;
the second-stage USB equipment comprises a USB2.0 network camera and a USB3.0 optical drive;
the third-level USB equipment comprises a USB mouse and a USB keyboard.
2. The system as claimed in claim 1, wherein the USB device includes a USB3.0 USB disk, a USB3.0 HDD, a USB2.0 webcam, a USB3.0 optical drive, a USB mouse, and a USB keyboard.
3. A method for testing the stability of a server USB3.0 interface is characterized by comprising the following steps:
the USB equipment is connected with the USB interface through a cascaded USB3.0 concentrator;
identifying the USB equipment under the server operating system, and recording initial USB equipment information;
after the pressure read-write test is carried out on the USB equipment, the server is restarted to judge whether the USB equipment is the same as the initial USB equipment information;
the method comprises the following specific steps:
s1, a USB3.0 interface of a server is cascaded with a USB3.0 concentrator, and each level of USB3.0 concentrator is connected with USB equipment;
s2, identifying the USB equipment under the server operating system, recording the identified USB equipment information, and setting the USB equipment information as reference USB equipment information;
s3, performing pressure read-write test on the identified USB equipment;
s4, restarting the server when the pressure read-write test reaches the set time;
s5, detecting the USB equipment and checking the USB equipment with reference USB equipment information;
s6, checking and outputting error information of the USB equipment when the information of the USB equipment is different from that of the reference USB equipment; proceeding to step S8;
s7, judging whether the restarting times of the server reach the set times when the information of the USB equipment is the same as that of the standard USB equipment;
if not, returning to the step S3;
if yes, go to step S8;
and S8, ending.
4. The method according to claim 3, wherein the set time is 10 minutes; the set number of times is 500.
5. The method for testing the stability of the server USB3.0 interface according to claim 3, wherein the step S3 comprises the following steps:
s31, acquiring all identified USB equipment;
and S32, sending a data packet file with a set size to each identified USB device, and/or reading the data packet file with the set size from each identified USB device.
6. The method for testing the stability of the USB3.0 interface of the server according to claim 5, wherein step s32. sequentially sending the packet file with the set size to each USB device, and/or sequentially reading the packet file with the set size from each identified USB device.
7. The method for testing the stability of the USB3.0 interface of the server according to claim 5, wherein in step s32, the size-set packet file is sent to each USB device at the same time, and/or the size-set packet file is read from each identified USB device at the same time.
CN201811298647.1A 2018-11-02 2018-11-02 System and method for testing stability of USB3.0 interface of server Active CN109344023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811298647.1A CN109344023B (en) 2018-11-02 2018-11-02 System and method for testing stability of USB3.0 interface of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811298647.1A CN109344023B (en) 2018-11-02 2018-11-02 System and method for testing stability of USB3.0 interface of server

Publications (2)

Publication Number Publication Date
CN109344023A CN109344023A (en) 2019-02-15
CN109344023B true CN109344023B (en) 2022-05-13

Family

ID=65313631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811298647.1A Active CN109344023B (en) 2018-11-02 2018-11-02 System and method for testing stability of USB3.0 interface of server

Country Status (1)

Country Link
CN (1) CN109344023B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947583A (en) * 2019-03-04 2019-06-28 深圳市吉祥腾达科技有限公司 The test method of USB wireless network card driving installation reliability

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101208657B (en) * 2003-04-11 2017-11-14 富意科技 A kind of portable integrated circuit memory equipment and its operation method
TW200739336A (en) * 2006-04-14 2007-10-16 Inventec Corp USB host controller rapid testing system and the method thereof
CN102122260A (en) * 2010-01-08 2011-07-13 鸿富锦精密工业(深圳)有限公司 Test device and test method for universal serial bus (USB) port
CN102541711B (en) * 2011-12-31 2014-10-15 曙光信息产业股份有限公司 Method for testing X86 architecture server mainboards
CN102567171B (en) * 2011-12-31 2014-10-15 曙光信息产业股份有限公司 Method for testing blade server mainboard
CN103473207B (en) * 2013-09-25 2017-06-06 飞天诚信科技股份有限公司 A kind of usb hub device
US9742654B1 (en) * 2014-12-24 2017-08-22 Western Digital Technologies, Inc. Communication interface testing
US10234922B2 (en) * 2016-05-18 2019-03-19 Google Llc Power distribution for mobile devices
CN106528358A (en) * 2016-11-28 2017-03-22 上海斐讯数据通信技术有限公司 Test method and system for USB (Universal Serial Bus) storage stability of route
CN107133136A (en) * 2017-05-03 2017-09-05 郑州云海信息技术有限公司 A kind of method of testing of USB interface plug stability
CN107943634A (en) * 2017-11-29 2018-04-20 郑州云海信息技术有限公司 More USB Port Auto-Test Systems

Also Published As

Publication number Publication date
CN109344023A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN107391333B (en) OSD disk fault testing method and system
CN100395717C (en) Method and system for monitoring hard-disk damage
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN109542752A (en) A kind of system and method for server PCIe device failure logging
CN103473158A (en) Disk pressure testing method for Linux server
CN104503910A (en) Product test method by monitoring users' using behavior
CN112732477B (en) Method for fault isolation by out-of-band self-checking
CN109684141A (en) A kind of disk failure diagnostic method, device, terminal and readable storage medium storing program for executing
CN106681878A (en) Method for testing PCIE channel bandwidth
CN110277134A (en) A kind of system automating batch testing solid state hard disk
CN104572386A (en) Method for automatically testing HBA card bandwidth under Linux
CN105573676A (en) Method for verifying data consistency in storage system
CN109344023B (en) System and method for testing stability of USB3.0 interface of server
US20190272116A1 (en) Batch automatic test method for solid state disks and batch automatic test device for solid state disks
CN104123212A (en) System test method of USB chip
CN112233718B (en) Fault location analysis method and device for storage unit, storage medium and terminal
CN109147861A (en) A kind of hard disk is in level detecting apparatus and method
CN107807862A (en) Detect the method, apparatus and server of hard disk failure point
CN107562593A (en) A kind of automated testing method and system for verifying internal memory ECC functions
CN104063308A (en) Data verification method and device
CN111352783A (en) Method and system for automatically controlling hard disk identification and test
CN106886471A (en) A kind of read-write fault detection method and system based on disk in linux
US20230025081A1 (en) Model training method, failure determining method, electronic device, and program product
CN107480022A (en) A kind of method of testing of Storage RACK system disks automatically scanning detection
CN111209146B (en) RAID card aging test method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant