CN109344023A - A kind of test macro and method of server USB3.0 interface stability - Google Patents

A kind of test macro and method of server USB3.0 interface stability Download PDF

Info

Publication number
CN109344023A
CN109344023A CN201811298647.1A CN201811298647A CN109344023A CN 109344023 A CN109344023 A CN 109344023A CN 201811298647 A CN201811298647 A CN 201811298647A CN 109344023 A CN109344023 A CN 109344023A
Authority
CN
China
Prior art keywords
usb device
hub
usb
server
level
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.)
Granted
Application number
CN201811298647.1A
Other languages
Chinese (zh)
Other versions
CN109344023B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides the test macro and method of a kind of server USB3.0 interface stability, and system includes USB3.0 interface, and USB3.0 interface is connected with cascade USB3.0 hub, and the USB3.0 hub of every level-one is connected with USB device;USB device is identified under server operating system;Pressure readwrite tests is carried out to USB device;Restart server, judges whether USB device is normal.Method includes the following steps: that USB device connects USB interface by cascade USB3.0 hub;USB device is identified under server operating system, and records initial USB device information;After carrying out pressure readwrite tests to USB device, restarts server and judge whether USB device is identical as initial USB device information.The present invention realizes server USB3.0 interface stability test, realizes server stability test indirectly.

Description

A kind of test macro and method of server USB3.0 interface stability
Technical field
The invention belongs to server USB interface testing fields, and in particular to a kind of server USB3.0 interface stability Test macro and method.
Background technique
In server hardware structure, although mainboard PCH supports that there are many USB interface quantity, it is based on server itself Characteristic, generally only do four USB interfaces and use, include preposition two, postposition two.For manufacturer server, in USB interface In the case where few, it is particularly important how to guarantee that USB interface is stablized.In the numerous tests of server, few special tests are covered In terms of lid USB interface.USB interface only connects one layer of equipment in proper testing, does not connect the test of multi-layer device, causes The functional test of USB interface is not comprehensive.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, provides a kind of server USB3.0 The test macro and method of interface stability, are necessary.
Summary of the invention
It is an object of the present invention to which USB interface test is few, and USB connects in proper testing in the test of above-mentioned server Mouth only connects one layer of equipment, does not connect the test of multi-layer device, leads to the incomplete defect of the functional test of USB interface, The test macro and method of a kind of server USB3.0 interface stability are provided, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of test macro of server USB3.0 interface stability, including USB3.0 interface, USB3.0 interface are connected with cascade USB3.0 hub, the USB3.0 hub of every level-one is connected with USB device;
USB device is identified under server operating system;
Pressure readwrite tests is carried out to USB device;
Restart server, judges whether USB device is normal.
Further, USB device includes USB3.0 USB flash disk, USB3.0 HDD, USB2.0 web camera, USB3.0 light Drive, USB mouse and USB keyboard.USB device includes but is not limited to above-mentioned USB device, can be connected by USB3.0 hub USB device.
Further, cascade USB3.0 hub include first order USB3.0 hub, second level USB3.0 hub, Third level USB3.0 hub and fourth stage USB3.0 hub;
First order USB3.0 hub is connect with USB3.0 interface, and first order USB3.0 hub is also connected with first order USB and sets It is standby;
Second level USB3.0 hub is connect with first order USB3.0 hub, and second level USB3.0 hub is also connected with second Grade USB device;
Third level USB3.0 hub is connect with second level USB3.0 hub, and third level USB3.0 hub is also connected with third Grade USB device;
Fourth stage USB3.0 hub is connect with third level USB3.0 hub.USB3.0 is realized in the cascade of level Four USB3.0 hub Comprehensive test of interface function.
Further, the first order USB device includes USB3.0 USB flash disk and USB3.0 HDD;
Second level USB device includes USB2.0 web camera and USB3.0 CD-ROM drive;
Third level USB device includes USB mouse and USB keyboard.
The present invention gives following technical solution:
A kind of test method of server USB3.0 interface stability, includes the following steps:
USB device connects USB interface by cascade USB3.0 hub;
USB device is identified under server operating system, and records initial USB device information;
To USB device carry out pressure readwrite tests after, restart server judge USB device whether with initial USB device Information is identical.
Further, the specific steps are as follows:
S1. the USB3.0 interface of server cascades USB3.0 hub, and every level-one USB3.0 hub connects USB device;
S2. USB device is identified under server operating system, records the USB device information recognized, and on the basis of setting USB device information;
S3. pressure readwrite tests is carried out to the USB device recognized;
S4. pressure readwrite tests reaches setting time, Server Restart;
S5. USB device detect and check with benchmark USB device information;
When S6.USB equipment and benchmark USB device information difference, checks and export USB device error message;Enter step S8;
When S7.USB equipment is identical as benchmark USB device information, judge whether Server Restart number reaches setting number;
If it is not, return step S3;
If so, entering step S8;
S8. terminate.After USB device reads and writes pressure test, if wrong, it may appear that the variation of USB device quantity or USB are set The variation of standby information.
Further, the setting time uses 10 minutes;The setting number uses 500 times.Setting time guarantees to read It writes pressure test sufficiently to carry out, setting number guarantees that Server Restart number sufficiently carries out.
Further, specific step is as follows by step S3:
S31. all USB devices recognized are obtained;
S32. the data APMB package being sized is sent to each USB device recognized, and/or, from each USB recognized Equipment reads the data APMB package being sized.It can be carried out simultaneously to USB device read-write data, can also separate and carry out.
Further, step S32. successively sends the data APMB package being sized to each USB device, and/or, successively The data APMB package being sized is read from each USB device recognized.To multiple USB devices read-write data can successively into Row, ensure that the comprehensive of test.
Further, step S32. is sized data APMB package to the transmission of each USB device simultaneously, and/or, while from The each USB device recognized reads the data APMB package being sized.It can be carried out simultaneously to multiple USB devices read-write data, It ensure that the comprehensive of test.
The beneficial effects of the present invention are:
The present invention realizes server USB3.0 interface stability test, realizes server stability test indirectly;The present invention It covers the test of USB device recognition capability, pressure readwrite tests and USB3.0 interface and ability is cascaded by USB3.0 hub Test, is conducive to the promotion of quality of server and the covering of test function.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is the system structure diagram of embodiment 1;
Fig. 2 is flow chart of the method for the present invention;
Wherein, 1-USB3.0 interface;2- first order USB3.0 hub;The second level 3- USB3.0 hub;The 4- third level USB3.0 hub;5- fourth stage USB3.0 hub;6-USB3.0 USB flash disk;7-USB3.0 HDD;8-USB2.0 network shooting Machine;9-USB3.0 CD-ROM drive;10-USB mouse;11-USB keyboard.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, it is embodied below in conjunction with the present invention Attached drawing in example, is clearly and completely described the technical solution in the present invention.
Embodiment 1:
The present invention provides a kind of test macro of server USB3.0 interface stability, including USB3.0 interface 1, USB3.0 interface 1 is connected with cascade USB3.0 hub, and the USB3.0 hub of every level-one is connected with USB device;
As shown in Figure 1, cascade USB3.0 hub include first order USB3.0 hub 2, second level USB3.0 hub 3, Third level USB3.0 hub 4 and fourth stage USB3.0 hub 5;
First order USB3.0 hub 2 is connect with USB3.0 interface 1, and first order USB3.0 hub 2 is also connected with first order USB Equipment, first order USB device include USB3.0 USB flash disk 6 and USB3.0 HDD 7;
Second level USB3.0 hub 3 is connect with first order USB3.0 hub 2, and second level USB3.0 hub 3 is also connected with Second level USB device, second level USB device include USB2.0 web camera 8 and USB3.0 CD-ROM drive 9;
Third level USB3.0 hub 4 is connect with second level USB3.0 hub 3, and third level USB3.0 hub 4 is also connected with Third level USB device, third level USB device include USB mouse 10 and USB keyboard 11;
Fourth stage USB3.0 hub is connect with 5 third level USB3.0 hubs 4;
USB device is identified under server operating system;
Pressure readwrite tests is carried out to USB device;
Restart server, judges whether USB device is normal.
Embodiment 2:
The present invention provides a kind of test method of server USB3.0 interface stability, includes the following steps:
USB device connects USB interface by cascade USB3.0 hub;
USB device is identified under server operating system, and records initial USB device information;
To USB device carry out pressure readwrite tests after, restart server judge USB device whether with initial USB device Information is identical;
As shown in Fig. 2, specifically comprising the following steps:
S1. the USB3.0 interface of server cascades USB3.0 hub, and every level-one USB3.0 hub connects USB device;
S2. USB device is identified under server operating system, records the USB device information recognized, and on the basis of setting USB device information;
S3. pressure readwrite tests is carried out to the USB device recognized;Specific step is as follows:
S31. all USB devices recognized are obtained;
S32. the data APMB package being sized is sent to each USB device recognized, or, setting from each USB recognized It is standby to read the data APMB package being sized;
S4. pressure readwrite tests reaches setting time, Server Restart;Setting time uses 10 minutes;
S5. USB device detect and check with benchmark USB device information;
When S6.USB equipment and benchmark USB device information difference, checks and export USB device error message;Enter step S8;
When S7.USB equipment is identical as benchmark USB device information, judge whether Server Restart number reaches setting number;Setting Number uses 500 times;
If it is not, return step S3;
If so, entering step S8;
S8. terminate.
In the step S32 of above-described embodiment 2, it can also be carried out simultaneously to USB device read-write data, i.e.,
S32. the data APMB package being sized is sent to each USB device for recognizing, and from each USB device recognized Read the data APMB package being sized.
In the step S32 of above-described embodiment 2, it can successively carry out, can also be carried out simultaneously to multiple USB devices read-write data.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.

Claims (10)

1. a kind of test macro of server USB3.0 interface stability, which is characterized in that including USB3.0 interface, USB3.0 is connect Mouth is connected with cascade USB3.0 hub, and the USB3.0 hub of every level-one is connected with USB device;
USB device is identified under server operating system;
Pressure readwrite tests is carried out to USB device;
Restart server, judges whether USB device is normal.
2. a kind of test macro of server USB3.0 interface stability as described in claim 1, which is characterized in that USB is set Standby includes USB3.0 USB flash disk, USB3.0 HDD, USB2.0 web camera, USB3.0 CD-ROM drive, USB mouse and USB keyboard.
3. a kind of test macro of server USB3.0 interface stability as described in claim 1, which is characterized in that cascade USB3.0 hub include first order USB3.0 hub, second level USB3.0 hub, third level USB3.0 hub and Fourth stage USB3.0 hub;
First order USB3.0 hub is connect with USB3.0 interface, and first order USB3.0 hub is also connected with first order USB and sets It is standby;
Second level USB3.0 hub is connect with first order USB3.0 hub, and second level USB3.0 hub is also connected with second Grade USB device;
Third level USB3.0 hub is connect with second level USB3.0 hub, and third level USB3.0 hub is also connected with third Grade USB device;
Fourth stage USB3.0 hub is connect with third level USB3.0 hub.
4. a kind of test macro of server USB3.0 interface stability as described in claim 1, which is characterized in that described First order USB device includes USB3.0 USB flash disk and USB3.0 HDD;
Second level USB device includes USB2.0 web camera and USB3.0 CD-ROM drive;
Third level USB device includes USB mouse and USB keyboard.
5. a kind of test method of server USB3.0 interface stability, which comprises the steps of:
USB device connects USB interface by cascade USB3.0 hub;
USB device is identified under server operating system, and records initial USB device information;
To USB device carry out pressure readwrite tests after, restart server judge USB device whether with initial USB device Information is identical.
6. a kind of test method of server USB3.0 interface stability as claimed in claim 5, which is characterized in that specific step It is rapid as follows:
S1. the USB3.0 interface of server cascades USB3.0 hub, and every level-one USB3.0 hub connects USB device;
S2. USB device is identified under server operating system, records the USB device information recognized, and on the basis of setting USB device information;
S3. pressure readwrite tests is carried out to the USB device recognized;
S4. pressure readwrite tests reaches setting time, Server Restart;
S5. USB device detect and check with benchmark USB device information;
When S6.USB equipment and benchmark USB device information difference, checks and export USB device error message;Enter step S8;
When S7.USB equipment is identical as benchmark USB device information, judge whether Server Restart number reaches setting number;
If it is not, return step S3;
If so, entering step S8;
S8. terminate.
7. a kind of test method of server USB3.0 interface stability as claimed in claim 6, which is characterized in that described to set It fixes time using 10 minutes;The setting number uses 500 times.
8. a kind of test method of server USB3.0 interface stability as claimed in claim 6, which is characterized in that step S3 Specific step is as follows:
S31. all USB devices recognized are obtained;
S32. the data APMB package being sized is sent to each USB device recognized, and/or, from each USB recognized Equipment reads the data APMB package being sized.
9. a kind of test method of server USB3.0 interface stability as claimed in claim 8, which is characterized in that step S32. the data APMB package being sized successively is sent to each USB device, and/or, successively from each USB device recognized Read the data APMB package being sized.
10. a kind of test method of server USB3.0 interface stability as claimed in claim 8, which is characterized in that step S32. it is sized data APMB package to the transmission of each USB device simultaneously, and/or, while being read from each USB device recognized Take the data APMB package being sized.
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 true CN109344023A (en) 2019-02-15
CN109344023B 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)

Cited By (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

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI318736B (en) * 2006-04-14 2009-12-21 Inventec Corp
US20110173502A1 (en) * 2010-01-08 2011-07-14 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Universal serial bus system and method
CN102541711A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Method for testing X86 architecture server mainboards
CN102567171A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Method for testing blade server mainboard
CN103473207A (en) * 2013-09-25 2013-12-25 飞天诚信科技股份有限公司 USB (universal serial bus) concentrator device
CN106528358A (en) * 2016-11-28 2017-03-22 上海斐讯数据通信技术有限公司 Test method and system for USB (Universal Serial Bus) storage stability of route
US9742654B1 (en) * 2014-12-24 2017-08-22 Western Digital Technologies, Inc. Communication interface testing
CN107133136A (en) * 2017-05-03 2017-09-05 郑州云海信息技术有限公司 A kind of method of testing of USB interface plug stability
US20170336846A1 (en) * 2016-05-18 2017-11-23 Google Inc. Power distribution for mobile devices
CN107832241A (en) * 2003-04-11 2018-03-23 富意科技 The automatic running of integrated circuit memory component
CN107943634A (en) * 2017-11-29 2018-04-20 郑州云海信息技术有限公司 More USB Port Auto-Test Systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832241A (en) * 2003-04-11 2018-03-23 富意科技 The automatic running of integrated circuit memory component
TWI318736B (en) * 2006-04-14 2009-12-21 Inventec Corp
US20110173502A1 (en) * 2010-01-08 2011-07-14 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd Universal serial bus system and method
CN102541711A (en) * 2011-12-31 2012-07-04 曙光信息产业股份有限公司 Method for testing X86 architecture server mainboards
CN102567171A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Method for testing blade server mainboard
CN103473207A (en) * 2013-09-25 2013-12-25 飞天诚信科技股份有限公司 USB (universal serial bus) concentrator device
US9742654B1 (en) * 2014-12-24 2017-08-22 Western Digital Technologies, Inc. Communication interface testing
US20170336846A1 (en) * 2016-05-18 2017-11-23 Google Inc. 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A667785226: "测试指导类-USB接口指标测试指导书", 《百度文库网址:HTTPS://WENKU.BAIDU.COM/VIEW/04A42D8F65CE050877321310.HTML》 *

Cited By (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

Also Published As

Publication number Publication date
CN109344023B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN105589776B (en) A kind of Fault Locating Method and server
CN102722429B (en) The treatment process of a kind of hard disk maintenance equipment
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN109542752A (en) A kind of system and method for server PCIe device failure logging
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
CN107608880A (en) A kind of automated testing method for being used for virtual platform based on data-driven
CN101093462A (en) Automatization method for testing schooling pressure on database application
CN107193871B (en) Database recovering method and device
CN104572386B (en) Automatically the wide method of HBA cassette tapes is tested under a kind of Linux
CN104503910A (en) Product test method by monitoring users' using behavior
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN109344071A (en) The method for automatically generating LoadRunner performance test script
CN110825569A (en) Hard disk stability test method and test system
CN109344023A (en) A kind of test macro and method of server USB3.0 interface stability
CN109446101B (en) Automatic testing method and device for restarting BMC based on ipmi instruction
CN116913350B (en) Test method and test platform based on modern standby of solid state disk
CN107273251A (en) A kind of method of testing of the racks of Rack in a production environment JBOD storages
CN106326041A (en) Second-level recovery method for database
CN106649011A (en) Detection method and detection device for server equipment
CN107818045A (en) A kind of method for testing software of safe city
CN111176964A (en) Virtualization platform hardware compatibility testing method
CN103853633B (en) The pouring-in backup method of application program found based on the application of virtual machine operation information
CN112486716B (en) Early warning method, device, equipment and medium for computer IO HUNG event
CN113064867B (en) Method and system capable of distinguishing silk-screen information of storage equipment on switch equipment
CN108304292A (en) A kind of method and system of nodal test hard disk disk sequence

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