CN110659168A - Method for remotely testing hot plug of server peripheral and USB control device - Google Patents

Method for remotely testing hot plug of server peripheral and USB control device Download PDF

Info

Publication number
CN110659168A
CN110659168A CN201910865332.9A CN201910865332A CN110659168A CN 110659168 A CN110659168 A CN 110659168A CN 201910865332 A CN201910865332 A CN 201910865332A CN 110659168 A CN110659168 A CN 110659168A
Authority
CN
China
Prior art keywords
usb
test
hot plug
instruction
interface
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.)
Withdrawn
Application number
CN201910865332.9A
Other languages
Chinese (zh)
Inventor
刘汉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910865332.9A priority Critical patent/CN110659168A/en
Publication of CN110659168A publication Critical patent/CN110659168A/en
Withdrawn legal-status Critical Current

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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • 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/2273Test methods
    • 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/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Abstract

The embodiment of the invention discloses a method for remotely testing the hot plug of a server peripheral and a USB control device, wherein the method comprises the following steps: acquiring USB information A of the USB equipment under the tested server system before testing; receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface; and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached. According to the embodiment of the invention, the time test can be accurately controlled and the test working efficiency is greatly improved by remotely controlling the hot plug of the USB port of the server.

Description

Method for remotely testing hot plug of server peripheral and USB control device
Technical Field
The invention relates to a network remote control technology, in particular to a method for remotely testing the hot plug of a server peripheral and a USB control device.
Background
With the rapid development of various industries, the demand for servers is getting larger and larger, and more clients adopt a large number of servers as core applications. The number of corresponding peripheral devices is increasing, such as keyboards, mice, modems, printers, scanners, digital cameras, usb disks, and the like; a Universal Serial Bus (USB) is one of the most important interfaces of peripheral devices, and plays a vital role; the USB realizes the plug-and-play function, and when the computer needs to be connected with a peripheral, the computer is not required to be restarted and can be used by directly inserting the USB; the existing servers run continuously for 24 hours without special conditions; therefore, the stability of the USB interface of the server becomes one of the important criteria for measuring the stability of the server.
In the prior art, the hot plug of a USB interface of a test server generally adopts a manual plugging mode; the hot plug of the USB interface is generally tested for hundreds of times, and the efficiency is very low; and the USB test is plugged and pulled manually, so that poor contact is easy to occur, and a wrong test result is caused.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method for remotely testing a hot plug of a server peripheral and a USB control device, which can remotely control the USB control device to achieve a USB hot plug effect through a connection network, and have high working efficiency.
In order to achieve the object of the present invention, in one aspect, an embodiment of the present invention provides a method for remotely testing a hot plug of a USB port of a server, including:
acquiring USB information A of the USB equipment under the tested server system before testing;
receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface;
and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached.
Further, the receiving the instruction for controlling the USB device interface, which is issued by the testing computer client through the IP network, includes:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
Further, the receiving the instruction for controlling the USB device interface, which is issued by the testing computer client through the IP network, includes:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
Further, the method further comprises:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
Further, the method further comprises:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
On the other hand, an embodiment of the present invention further provides a USB control device for remote testing of a server peripheral for hot plug, including:
the information acquisition module is used for acquiring USB information A of the USB equipment under the tested server system before testing;
the receiving module is used for receiving an instruction which is issued by the testing computer client through the IP network and controls the USB equipment interface;
and the control module controls the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, performs the hot plug test on the USB equipment interface, and finishes the test when the preset total power-off times are reached.
Further, the receiving module is configured to:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
Further, the receiving module is configured to:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
Further, the USB control device is further configured to:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
Further, the USB control device is further configured to:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
The embodiment of the invention obtains the USB information A of the USB equipment under the tested server system before testing; receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface; and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached. According to the embodiment of the invention, the time test can be accurately controlled and the test working efficiency is greatly improved by remotely controlling the hot plug of the USB port of the server.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart illustrating a method for remotely testing hot plug of a USB port of a server according to an embodiment of the present invention;
FIG. 2 is a block diagram of a method for hot plugging a USB port of a remote test server according to an embodiment of the present invention;
FIG. 3 is a USB interface definition diagram in the method for hot plugging a USB port of a remote test server according to the embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an implementation process of a method for remotely testing hot plug of a USB port of a server according to an embodiment of the present invention;
fig. 5 is a structural diagram of a USB control device for hot plugging a remote test server peripheral according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for remotely testing hot plug of a USB port of a server according to an embodiment of the present invention, and fig. 2 is a block diagram of an overall framework of the method for remotely testing hot plug of a USB port of a server according to an embodiment of the present invention, as shown in fig. 1, the method according to an embodiment of the present invention includes the following steps:
step 101: acquiring USB information A of the USB equipment under the tested server system before testing;
specifically, the embodiment of the invention is a method for remotely testing the hot plug of a USB port of a server for an information center, which utilizes a specially designed USB control device, wherein the USB control device is connected with a network through a network interface; the tester remotely controls the USB control device through a network so as to achieve the effect of USB hot plugging.
As shown in fig. 2, the tested server may be installed with linux operating system, and its service data network port is connected to the IP network. The server is connected with the power control terminal through a USB cable, and the power control terminal is connected with the USB related equipment through the USB cable. The client computer communicates with the server under test via an IP network.
The USB control device can acquire USB information under the server system through the network interface.
Step 102: receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface;
for example, the instruction may be an instruction for controlling the on/off of the USB interface.
Step 103: and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached.
Specifically, through remote control server USB mouth hot plug, save to the on-the-spot manual plugging time of equipment, eliminate the influence of manual plugging contact failure.
Further, the receiving the instruction for controlling the USB device interface, which is issued by the testing computer client through the IP network, includes:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
Further, the receiving the instruction for controlling the USB device interface, which is issued by the testing computer client through the IP network, includes:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
Further, the method further comprises:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
For example, if the voltage of the USB output interface 5V does not exist, a warning reminder is sent out.
Further, the method further comprises:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
For example, if the USB information A is inconsistent with the USB information B, a warning reminder is issued.
And after manual confirmation, judging whether to continue testing.
And finally, judging whether the specified total times of power failure is reached, and if the specified total times of power failure is not reached, continuously and circularly receiving the instruction for testing. And when the preset total times of power failure are reached, ending the test.
Fig. 3 is a USB interface definition diagram in the method for remotely testing hot plug of a USB port of a server according to the embodiment of the present invention, and as shown in fig. 3, the definition of the USB interface pin standard in the method for remotely testing hot plug of a USB port of a server according to the embodiment of the present invention is as follows:
pin1 is a +5V power supply; pin2 is the negative pole of the data line; pin3 is the positive level of the data line; pin4 is GND ground;
the power supply state of the USB equipment is controlled by controlling the on-off of the power supply ports Pin1 and Pin 4; the effect of hot plug of the USB equipment can be realized;
the embodiment of the invention utilizes a specially designed USB control device, a tested server USB interface is accessed to the USB control device, and the USB control device is accessed to an IP network through an RJ45 network port; the tester controls the client to communicate with the USB control device by utilizing the TCP/IP protocol of the IP network through the computer, realizes the remote control of the on-off of the output end of the USB control device and achieves the effect of USB hot plugging.
Wherein, TCP is Transmission Control Protocol (Transmission Control Protocol); IP is a Protocol (Internet Protocol) for interconnection between networks.
The USB control device is provided with 1-6USB input interfaces and 1-6USB output interfaces, and the USB output interfaces and the USB input interfaces are in one-to-one correspondence. The USB input interface is a USB male port and is a USB interface used for connecting the server; the USB output interface is a USB female port and is used for connecting related USB equipment. In addition, a 5V power supply detection device is arranged in the USB control device and is used for detecting whether 5V voltage exists at the USB output end; and the RJ45 network interface is used for connecting an IP network, and computer control clients of testers communicate with each other through the IP network.
It should be noted that, the number of the input interfaces and the USB output interfaces of the USB control device may be set arbitrarily, and is not limited.
The implementation process schematic diagram of the method for remotely testing the hot plug of the USB port of the server in the embodiment of the invention is shown in the attached figure 4. The specific implementation process is as follows:
the scheme mainly comprises the following steps:
the USB control devices 1-6 are connected with the USB interface of the tested server through the USB input interface, wherein the specific number depends on the USB interface to be tested of the tested server; the corresponding USB control device 1-6USB output interface is connected with related common USB equipment, such as a keyboard, a mouse, a USB flash disk and the like;
the RJ45 network interface of the USB control device is accessed into the IP network;
after receiving related on-off instructions sent by a testing computer client through an IP network, controlling the on-off of the corresponding USB output port to realize the hot plug of the tested server USB port;
the 5V power supply detection function of the USB control device is responsible for detecting whether 5V voltage exists at the output end so as to judge the working state of the USB equipment;
a service data network port of a tested server provided with a linux operating system is connected to an IP network; a testing computer client logs in a linux background through a Secure Shell (SSH), and displays all USB equipment lists under a system and USB detailed information including equipment reading speed, manufacturer, equipment description and the like through a built-in linux command lsUSB-v; therefore, whether the USB related equipment of the server exists or not and whether the USB related equipment is abnormal or not can be detected;
the testing computer client installs specially developed client software, and adds the IP address of the USB controller, the IP of the tested server, the user and the password; after the relevant configuration, the on-off operation of the USB port can be issued in real time or at regular time through the client; the testing computer client can set and record the total on-off times; buffering time; when the USB equipment is judged to be abnormal, the USB equipment stops issuing the on-off instruction and gives an alarm to remind a tester.
According to the technical scheme of the embodiment of the invention, the USB port of the server is remotely controlled to be hot-plugged, the manual plugging time to the equipment site is saved, the influence of the manual plugging contact is eliminated, the time test is accurately controlled, and the working efficiency of testers is greatly improved.
The embodiment of the invention relates to a design scheme overall framework for a server USB port hot plug remote test.
Fig. 5 is a structural diagram of a USB control device for remote testing of external hot plug of a server according to an embodiment of the present invention, and as shown in fig. 5, another aspect of the present invention provides a USB control device for remote testing of external hot plug of a server, including:
an information obtaining module 501, configured to obtain USB information a of the USB device under the tested server system before testing;
a receiving module 502, configured to receive an instruction for controlling the USB device interface, where the instruction is issued by a test computer client through an IP network;
and the control module 503 controls the on-off of the USB output interface corresponding to the USB device interface according to the instruction, performs a hot plug test on the USB device interface, and ends the test when a preset total power-off frequency is reached.
Further, the receiving module 502 is configured to:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
Further, the receiving module 502 is configured to:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
Further, the USB control device is further configured to:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
Further, the USB control device is further configured to:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
In summary, in the embodiments of the present invention, the USB information a of the USB device under the tested server system before the test is obtained; receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface; and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached. According to the embodiment of the invention, the time test can be accurately controlled and the test working efficiency is greatly improved by remotely controlling the hot plug of the USB port of the server.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for remotely testing the hot plug of a USB port of a server is characterized by comprising the following steps:
acquiring USB information A of the USB equipment under the tested server system before testing;
receiving an instruction which is issued by a test computer client through an IP network and controls the USB equipment interface;
and controlling the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, carrying out hot plug test on the USB equipment interface, and finishing the test when the preset total power-off times are reached.
2. The method for hot plug of a USB port of a remote test server as claimed in claim 1, wherein said receiving an instruction for controlling the USB device interface issued by a test computer client over an IP network comprises:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
3. The method for hot plug of a USB port of a remote test server as claimed in claim 2, wherein said receiving an instruction for controlling the USB device interface issued by a test computer client over an IP network comprises:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
4. The method for hot plug of the USB port of the remote test server according to claim 3, further comprising:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
5. The method for hot plug of the USB port of the remote test server according to claim 4, further comprising:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
6. The utility model provides a USB controlling means of remote test server peripheral hardware hot plug which characterized in that includes:
the information acquisition module is used for acquiring USB information A of the USB equipment under the tested server system before testing;
the receiving module is used for receiving an instruction which is issued by the testing computer client through the IP network and controls the USB equipment interface;
and the control module controls the on-off of the USB output interface corresponding to the USB equipment interface according to the instruction, performs the hot plug test on the USB equipment interface, and finishes the test when the preset total power-off times are reached.
7. The device according to claim 6, wherein the receiving module is configured to:
and receiving the issued USB equipment interface disconnection instruction, and waiting for reaching the preset buffer time.
8. The device according to claim 7, wherein the receiving module is configured to:
and receiving the issued USB equipment interface connection instruction, and waiting for reaching the preset buffering time.
9. The device of claim 8, wherein the USB control device is further configured to:
and judging whether the 5V voltage of the USB output interface exists or not, and determining whether to send out warning prompt or not according to the judgment result.
10. The device of claim 9, wherein the USB control device is further configured to:
acquiring USB information B under a tested server system after the USB equipment is accessed again;
and comparing whether the USB information A is consistent with the USB information B, and determining whether to send out a warning prompt according to a comparison result.
CN201910865332.9A 2019-09-12 2019-09-12 Method for remotely testing hot plug of server peripheral and USB control device Withdrawn CN110659168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910865332.9A CN110659168A (en) 2019-09-12 2019-09-12 Method for remotely testing hot plug of server peripheral and USB control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910865332.9A CN110659168A (en) 2019-09-12 2019-09-12 Method for remotely testing hot plug of server peripheral and USB control device

Publications (1)

Publication Number Publication Date
CN110659168A true CN110659168A (en) 2020-01-07

Family

ID=69036961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910865332.9A Withdrawn CN110659168A (en) 2019-09-12 2019-09-12 Method for remotely testing hot plug of server peripheral and USB control device

Country Status (1)

Country Link
CN (1) CN110659168A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium
CN116449259A (en) * 2023-04-18 2023-07-18 汇春科技(上海)有限公司 Device and method for testing hot plug times of USB equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium
CN113468048B (en) * 2021-06-21 2023-03-28 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium
CN116449259A (en) * 2023-04-18 2023-07-18 汇春科技(上海)有限公司 Device and method for testing hot plug times of USB equipment

Similar Documents

Publication Publication Date Title
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
CN110659168A (en) Method for remotely testing hot plug of server peripheral and USB control device
CN110320891B (en) Railway vehicle braking system CAN bus message maintenance monitoring system and monitoring method
US20090234942A1 (en) Apparatus, system, and method for testing embedded device
CN107239372B (en) Electronic device and detection method thereof
CN211505789U (en) PCIE board card testing arrangement
CN102455965A (en) Electronic device test system and method
CN112948186B (en) Detection device and detection method of interface signal
CN217787754U (en) Automatic testing device and system
CN103969491A (en) Device and method for detecting voltage of processor
CN110543226A (en) System and method for remotely testing abnormal power failure of server
CN102843397A (en) Distributed system and distributed method for automatically copying hard disk
US20100031087A1 (en) Method of control in a system having a media reader
JP2016158231A (en) Method and equipment for out-of-band network port state detection, and computer readable recording medium
CN103969492A (en) Device and method for detecting processor voltage
CN213365381U (en) Main board
KR102161805B1 (en) Internet of things gateway and operating method of thereof
CN112953788A (en) Network state detection method and device, BMC and storage medium
CN112596983A (en) Monitoring method for connector in server
US8832341B2 (en) Dynamically determining a primary or slave assignment based on receiving a power signal from the cable at the port of a device
EP3413205A1 (en) Re-enumeration of usb 3.0 compatible devices
CN111400220A (en) Cable and method of use thereof
CN105515918A (en) Wake-on-LAN (WOL) test method under SUSE Linux system
CN112732504B (en) Server BMC serial port circuit
CN219476096U (en) Universal embedded system test platform based on USB interface

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200107

WW01 Invention patent application withdrawn after publication