CN111274071A - USB device plug detection method and device and related device - Google Patents
USB device plug detection method and device and related device Download PDFInfo
- Publication number
- CN111274071A CN111274071A CN202010058981.0A CN202010058981A CN111274071A CN 111274071 A CN111274071 A CN 111274071A CN 202010058981 A CN202010058981 A CN 202010058981A CN 111274071 A CN111274071 A CN 111274071A
- Authority
- CN
- China
- Prior art keywords
- usb
- information
- detection
- plugging
- target
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 130
- 238000000034 method Methods 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 11
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 9
- 101000941170 Homo sapiens U6 snRNA phosphodiesterase 1 Proteins 0.000 description 8
- 102100031314 U6 snRNA phosphodiesterase 1 Human genes 0.000 description 8
- 238000012360 testing method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 3
- 101150089458 Usb1 gene Proteins 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/221—Detection 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 buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
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)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a USB device plugging detection method, which comprises the steps of determining a target USB according to a received detection command; sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information; sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information; the USB device plugging and unplugging detection method not only improves the plugging and unplugging detection efficiency of the USB device, but also effectively ensures the accuracy of the detection result. The application also discloses a USB device plugging detection device, a server and a computer readable storage medium, which all have the beneficial effects.
Description
Technical Field
The application relates to the field of server testing, in particular to a USB device plugging detection method, and further relates to a USB device plugging detection device, a server and a computer readable storage medium.
Background
USB (Universal Serial Bus) is an external Bus standard for standardizing connection and communication between a computer and external devices, and is an interface technology applied to the fields of PCs and servers. In the server test, the peripheral function is always a function which is more concerned by a client, because in daily use, a USB port is externally connected with equipment such as a hard disk, a mouse, a USB flash disk and the like, and the use frequency is high, the stability of USB peripheral identification is particularly important.
The identification of the USB equipment involves hardware design, BIOS and OS, and rapid drive loading and equipment identification can be completed only by matching of all modules so as to meet the requirement of clients for gapless use. At present, verification about device identification under an OS (operating system) is combined into a USB (universal serial bus) device hot plug test, whether a mouse or a keyboard can be used is checked through manual plugging for hundreds of times, the identification condition of the system to the device is not checked, the efficiency is low, and the accuracy of a detection result is low.
Therefore, how to improve the plugging and unplugging detection efficiency of the USB device and improve the accuracy of the detection result are problems to be urgently solved by those skilled in the art.
Disclosure of Invention
The method for detecting the plugging and unplugging of the USB equipment not only improves the plugging and unplugging detection efficiency of the USB equipment, but also effectively ensures the accuracy of a detection result; another object of the present application is to provide a USB device plugging detection apparatus, a server and a computer readable storage medium, which also have the above beneficial effects.
In order to solve the technical problem, the present application provides a USB device plugging detection method, including:
determining a target USB according to the received detection command;
sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information;
and sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information.
Preferably, the determining the target USB according to the received detection command includes:
carrying out command analysis on the detection command to obtain a USB port number;
and determining the target USB according to the USB port number.
Preferably, the USB device plugging/unplugging detection method further includes:
and carrying out USB scanning through a preset information acquisition instruction to obtain standard information of each USB.
Preferably, the standard information of the USB is a USB bus number and/or a USB device number.
Preferably, the obtaining the USB bus number by performing USB scanning through a preset information acquisition instruction includes:
and carrying out USB scanning through an lsusb command to obtain the USB bus number of each USB.
Preferably, the obtaining the USB device number by performing USB scanning through a preset information acquisition instruction includes:
and carrying out USB scanning through a dmesg command to obtain the USB equipment number of each USB.
Preferably, the USB device plugging/unplugging detection method further includes:
and when the plugging detection fails, sending an alarm instruction to alarm equipment.
In order to solve the above technical problem, the present application further provides a USB device plug detection device, the USB device plug detection device includes:
the port determining module is used for determining a target USB according to the received detection command;
the Disable detection module is used for sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if not, outputting detection passing information;
and the Enable detection module is used for sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information.
In order to solve the above technical problem, the present application further provides a server, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one USB device plugging and unplugging detection method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above methods for detecting plugging and unplugging of a USB device are implemented.
The method for detecting the plugging and unplugging of the USB equipment comprises the steps of determining a target USB according to a received detection command; sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information; and sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information.
Therefore, according to the USB device plugging and unplugging detection method provided by the application, the USB device plugging and unplugging simulation is realized by sending the Enable instruction and the Disable instruction to the USB, namely after the Disable USB, the USB device is not identified, after the Enable USB, the USB device is correctly identified, the USB information in the plugging and unplugging process is compared with the standard information, and whether plugging and unplugging detection passes or not is judged according to the comparison result.
The USB device plugging detection device, the server and the computer readable storage medium provided by the application all have the beneficial effects, and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a method for detecting plugging/unplugging of a USB device according to the present disclosure;
fig. 2 is a schematic structural diagram of a USB device plugging/unplugging detection apparatus provided in the present application;
fig. 3 is a schematic structural diagram of a server provided in the present application.
Detailed Description
The core of the application is to provide a USB device plugging detection method, which not only improves the plugging detection efficiency of the USB device, but also effectively ensures the accuracy of the detection result; another core of the present application is to provide a USB device plugging/unplugging detection apparatus, a server and a computer readable storage medium, which also have the above beneficial effects.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, plugging and unplugging detection of the USB interface is realized in a manual mode, the identification condition of a system to equipment is not checked, the efficiency is low, and the accuracy of a detection result is very low. Therefore, in order to solve the technical problem, the application provides a method for detecting the plugging and unplugging of the USB device, the method for detecting the plugging and unplugging of the USB device realizes the plugging and unplugging detection of the USB device through the automatic script, the plugging and unplugging detection efficiency of the USB device is improved, and the accuracy of a detection result is effectively guaranteed.
Referring to fig. 1, fig. 1 is a schematic flow chart of a USB device plugging detection method provided in the present application, where the USB device plugging detection method may include:
s101: determining a target USB according to the received detection command;
this step is intended to achieve validation of the target USB, which is the USB device that needs to be plugged and unplugged for detection. Specifically, when the server needs to be subjected to plug and pull detection of the USB device, the user may initiate a detection command based on the corresponding client, where the detection command includes relevant information of the target USB, so that the target USB may be determined according to the information, and plug and pull detection of the target USB may be further implemented.
It can be understood that the above manner based on the client initiating the detection command is only one implementation manner provided in the present application, and is not unique, and may also be an implementation manner based on a preset response condition to automatically trigger the detection command, such as timing detection, and the like, which is not limited in the present application.
Preferably, the determining the target USB according to the received detection command may include performing command parsing on the detection command to obtain a USB port number; and determining the target USB according to the USB port number.
The preferred embodiment provides a specific method for determining a target USB, which is implemented based on a USB port number. Specifically, the USB port number has uniqueness, so that when a detection command is initiated, the port number of the target USB may be added to the detection command, and further, when the master controller of the server receives the detection command, the master controller of the server may analyze the detection command by using an information analysis technology to obtain the USB port number, thereby determining the target USB. The command analysis technique may be referred to in the prior art, and is not described herein again.
S102: sending a Disable instruction to a target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information;
the step aims to realize the unplugging detection of the USB equipment, specifically, Disable represents Disable, and after USBDenable is performed in principle, the external equipment of the USB cannot be identified, so that the USB equipment unplugging test can be simulated by sending a Disable instruction to the target USB; further, after the Disable instruction is sent to the target USB, corresponding removal information is obtained, where the removal information includes related information of the removed USB, that is, the USB information, so that the removal information may be compared with standard information of the target USB, and if the removal information is consistent with the standard information of the target USB, it indicates that the target USB is removed, the unplugging operation is implemented, and the target USB is correctly detected, that is, the unplugging detection of the target USB is passed, and at this time, it is sufficient to output detection pass information.
The standard information of the target USB is related information of the target USB, which is counted in advance before the plug detection, including but not limited to information such as a port number, a bus number, an equipment number, and the like, and further, the information is uniformly stored as a fixed document, and is used as a comparison standard for each plug detection, and the information is directly called when the target USB is used.
S103: and sending an Enable instruction to the target USB to obtain identification information, judging whether the USB information in the identification information is the same as the standard information of the target USB, and if so, outputting detection passing information.
The step aims to realize the plug detection of the USB equipment, specifically, the Enable is available, and after the USBEnable is treated in principle, the USB external equipment is correctly identified, so that the simulation of the plug test of the USB equipment can be realized by sending an Enable instruction to the target USB; further, after the Enable instruction is sent to the target USB, corresponding identification information is obtained, where the identification information includes the relevant information of the identified USB, that is, the USB information, so that the identification information can be compared with the standard information of the target USB, and if the identification information is consistent with the standard information of the target USB, it indicates that the target USB is identified, the plug-in operation is implemented, and the plug-in operation is correctly detected, that is, it indicates that the plug-in detection of the target USB passes, and at this time, it is sufficient to output the detection passing information.
The standard information of the target USB is the standard information of the target USB in the pull-out detection process, and is directly called in the detection process, which is not described herein again.
It is understood that the execution sequence of S102 and S103 is not unique, and S102 may be executed after S103 is executed, without affecting the implementation of the present technical solution.
Preferably, the USB device plugging/unplugging detection method may further include: and carrying out USB scanning through a preset information acquisition instruction to obtain standard information of each USB.
The preferred embodiment provides a more specific method for acquiring USB standard information, that is, the method is implemented by a preset information acquisition instruction, and before plugging and unplugging detection is performed, the preset information acquisition instruction can be used for performing USB scanning on a server, so as to realize information acquisition and acquire standard information of each USB. The preset information acquisition instruction can adopt any type of instruction in the prior art, and the specific type of the instruction does not influence the implementation of the technical scheme.
Preferably, the USB standard information may be a USB bus number and/or a USB device number.
Preferably, the obtaining the USB bus number by performing USB scanning according to a preset information acquisition instruction may include: USB scanning is carried out through an lsusb command, and a USB bus number of each USB is obtained.
Preferably, the obtaining the USB device number by performing USB scanning according to a preset information acquisition instruction may include: USB scan is performed by a dmesg command to obtain USB device numbers of the respective USB.
The above preferred embodiment provides standard information of a specific type of USB, i.e. USB bus number and/or USB device number, and describes the manner of obtaining the two specifically. For the USB bus number, the collection can be realized through an lsusb command, and for the USB equipment number, the collection can be realized through a dmesg command. Of course, the above command type is only one implementation manner provided by the present application, and is not unique, and may also be other types of acquisition commands, which is not limited in the present application. In addition, the lsusb command and the lsusb command can also be used for collecting removal information and identification information in the plugging detection process.
Preferably, the USB device plugging/unplugging detection method may further include: and when the plugging detection fails, sending an alarm instruction to alarm equipment.
The preferred embodiment aims to realize a detection failure alarm, that is, when the USB information in the removal information obtained in the pull-out detection process is different from the standard information of the target USB, it indicates that the pull-out detection is failed, or when the USB information in the identification information obtained in the plug-in detection process is different from the standard information of the target USB, it indicates that the plug-in detection is failed, and when any one of the above two conditions occurs, it indicates that the plug-in detection of the target USB is failed, and at this time, a detection failure instruction is output, and at the same time, an alarm instruction is initiated to an alarm device to realize the detection failure alarm, so as to notify a technician to maintain or replace the failed USB device.
According to the USB device plugging and unplugging detection method provided by the embodiment of the application, the USB device plugging and unplugging simulation is realized by sending the Enable instruction and the Disable instruction to the USB, namely after the Disable USB, the USB device is not identified, after the Enable USB, the USB device is correctly identified, further the USB information in the plugging and unplugging process is compared with the standard information, and whether plugging and unplugging detection passes or not is judged according to the comparison result.
On the basis of the foregoing embodiments, the present application provides a more specific USB device plugging detection method, which is implemented in the following specific steps:
firstly, externally connecting a USB interface of a server with a mouse or a keyboard and the like, and starting up to enter an OS;
step two, acquiring detailed information of the current system USB equipment through a dmesg command;
step three, acquiring detailed information of the USB of the current system connected with the peripheral equipment through an lsusb command;
step four, respectively obtaining two key parameters (standard information) of USB bus number and device number based on the step two and the step three, and storing the two key parameters as fixed documents;
and step five, taking the USB1 device as an example, realizing the power supply of Disable USB1 under the system through the following commands:
#echo suspend>/sys/bus/usb/devices/usb1/power/level;
step six, checking whether the USB1 is removed or not through a command # lsusb | grep USB1, comparing the obtained information (removal information) with the standard information of the step four, if the two are consistent, checking pass, otherwise fail;
and seventhly, taking the USB1 device as an example, realizing the power supply of the Enable USB1 under the system through the following commands:
#echo on>/sys/bus/usb/devices/usb1/power/level;
step eight, checking whether the USB1 is correctly identified or not through a command # lsusb | grep USB1, comparing the obtained information (identification information) with the standard information of the step four, if the obtained information (identification information) is consistent with the standard information of the step four, checking pass, and otherwise fail.
Therefore, the plugging detection of the USB equipment in the server is realized.
Therefore, according to the method for detecting plugging and unplugging of the USB device provided by the embodiment of the application, the USB device is simulated by sending the Enable instruction and the Disable instruction to the USB device, that is, after the Disable USB, the USB device is not recognized, after the Enable USB, the USB device is correctly recognized, and then USB information in the plugging and unplugging process is compared with standard information, and whether plugging and unplugging detection passes or not is judged according to a comparison result.
To solve the above problem, please refer to fig. 2, fig. 2 is a schematic structural diagram of a USB device plugging/unplugging detection apparatus provided in the present application, where the USB device plugging/unplugging detection apparatus may include:
a port determination module 100, configured to determine a target USB according to the received detection command;
the Disable detection module 200 is configured to send a Disable instruction to the target USB to obtain removal information, determine whether USB information in the removal information is the same as standard information of the target USB, and if so, output detection passing information;
and the Enable detection module 300 is configured to send an Enable instruction to the target USB to obtain identification information, determine whether USB information in the identification information is the same as standard information of the target USB, and if so, output detection passing information.
It can be seen that, the USB device plugging detection apparatus provided in this embodiment of the application implements the simulation of plugging and unplugging of the USB device by sending the Enable instruction and the Disable instruction to the USB, that is, after the Disable USB, the USB device will not be recognized, after the Enable USB, the USB device will be correctly recognized, and then the USB information in the plugging and unplugging process is compared with the standard information, and it is determined whether the plugging and unplugging detection passes through the comparison result, thereby implementing the automatic plugging and unplugging detection of the USB device through the automatic script.
As a preferred embodiment, the port determining module 100 may be specifically configured to perform command parsing on the detection command to obtain a USB port number; and determining the target USB according to the USB port number.
As a preferred embodiment, the USB device plugging/unplugging detection apparatus may further include a standard information acquisition module, configured to perform USB scanning according to a preset information acquisition instruction to obtain standard information of each USB.
As a preferred embodiment, the USB standard information is a USB bus number and/or a USB device number.
As a preferred embodiment, the standard information acquisition module may be specifically configured to perform USB scanning according to an lsusb command to obtain a USB bus number of each USB.
As a preferred embodiment, the standard information collection module may be specifically configured to perform USB scanning via a dmesg command to obtain USB device numbers of the respective USB devices.
As a preferred embodiment, the USB device plugging detection apparatus may further include an alarm module, configured to send an alarm instruction to an alarm device when the plugging detection fails.
For the introduction of the apparatus provided in the present application, please refer to the above method embodiments, which are not described herein again.
To solve the above problem, please refer to fig. 3, where fig. 3 is a schematic structural diagram of a server provided in the present application, and the server may include:
a memory 10 for storing a computer program;
the processor 20 is configured to implement the steps of any one of the USB device plugging detection methods described above when executing the computer program.
For the introduction of the device provided in the present application, please refer to the above method embodiment, which is not described herein again.
In order to solve the above problem, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above methods for detecting plugging and unplugging of a USB device can be implemented.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The USB device plugging detection method, the USB device plugging detection apparatus, the server, and the computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and these improvements and modifications also fall into the elements of the protection scope of the claims of the present application.
Claims (10)
1. A USB device plugging detection method is characterized by comprising the following steps:
determining a target USB according to the received detection command;
sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information;
and sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information.
2. The method for detecting the plugging and unplugging of the USB device according to claim 1, wherein the determining the target USB according to the received detection command comprises:
carrying out command analysis on the detection command to obtain a USB port number;
and determining the target USB according to the USB port number.
3. The method for detecting the plugging/unplugging of the USB device according to claim 1, further comprising:
and carrying out USB scanning through a preset information acquisition instruction to obtain standard information of each USB.
4. The method for detecting the plugging and unplugging of the USB device according to claim 3, wherein the USB standard information is a USB bus number and/or a USB device number.
5. The method for detecting the plugging and unplugging of the USB device according to claim 4, wherein the obtaining the USB bus number by performing USB scanning through a preset information acquisition command comprises:
and carrying out USB scanning through an lsusb command to obtain the USB bus number of each USB.
6. The method for detecting the plugging and unplugging of the USB device according to claim 4, wherein the USB scanning is performed through a preset information acquisition instruction to obtain the USB device number, and the method comprises the following steps:
and carrying out USB scanning through a dmesg command to obtain the USB equipment number of each USB.
7. The method for detecting the plugging/unplugging of the USB device according to any one of claims 1 to 6, further comprising:
and when the plugging detection fails, sending an alarm instruction to alarm equipment.
8. The utility model provides a USB equipment plug detection device which characterized in that includes:
the port determining module is used for determining a target USB according to the received detection command;
the Disable detection module is used for sending a Disable instruction to the target USB to obtain removal information, judging whether USB information in the removal information is the same as standard information of the target USB, and if so, outputting detection passing information;
and the Enable detection module is used for sending an Enable instruction to the target USB to obtain identification information, judging whether USB information in the identification information is the same as standard information of the target USB, and if so, outputting detection passing information.
9. A server, characterized by further comprising:
a memory for storing a computer program;
a processor for implementing the steps of the USB device plugging detection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the steps of the USB device plugging detection method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010058981.0A CN111274071A (en) | 2020-01-19 | 2020-01-19 | USB device plug detection method and device and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010058981.0A CN111274071A (en) | 2020-01-19 | 2020-01-19 | USB device plug detection method and device and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111274071A true CN111274071A (en) | 2020-06-12 |
Family
ID=70998733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010058981.0A Pending CN111274071A (en) | 2020-01-19 | 2020-01-19 | USB device plug detection method and device and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111274071A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932962A (en) * | 2015-06-05 | 2015-09-23 | 惠州Tcl移动通信有限公司 | USB (Universal Serial Bus) plug testing system and method thereof |
CN105511936A (en) * | 2014-09-22 | 2016-04-20 | 北京奇虎科技有限公司 | Test system, method and device |
CN107402855A (en) * | 2017-06-30 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of detection method of hard disk, device and server |
CN108228399A (en) * | 2016-12-14 | 2018-06-29 | 浙江舜宇智能光学技术有限公司 | USB device automatic checkout equipment and its method |
CN110489287A (en) * | 2019-07-12 | 2019-11-22 | 苏州浪潮智能科技有限公司 | Method, system and the storage medium of hot plug are tested by Ipmitool |
CN110514925A (en) * | 2019-08-13 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | Test method and system and storage medium |
CN110659168A (en) * | 2019-09-12 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Method for remotely testing hot plug of server peripheral and USB control device |
-
2020
- 2020-01-19 CN CN202010058981.0A patent/CN111274071A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511936A (en) * | 2014-09-22 | 2016-04-20 | 北京奇虎科技有限公司 | Test system, method and device |
CN104932962A (en) * | 2015-06-05 | 2015-09-23 | 惠州Tcl移动通信有限公司 | USB (Universal Serial Bus) plug testing system and method thereof |
CN108228399A (en) * | 2016-12-14 | 2018-06-29 | 浙江舜宇智能光学技术有限公司 | USB device automatic checkout equipment and its method |
CN107402855A (en) * | 2017-06-30 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of detection method of hard disk, device and server |
CN110489287A (en) * | 2019-07-12 | 2019-11-22 | 苏州浪潮智能科技有限公司 | Method, system and the storage medium of hot plug are tested by Ipmitool |
CN110514925A (en) * | 2019-08-13 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | Test method and system and storage medium |
CN110659168A (en) * | 2019-09-12 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Method for remotely testing hot plug of server peripheral and USB control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111209151A (en) | Linux-based NVME SSD hot plug test method, system, terminal and storage medium | |
CN109885499B (en) | Robot automatic test system and test method | |
CN108241580B (en) | Client program testing method and terminal | |
CN107223257B (en) | Test method, test server and test system | |
CN107943643A (en) | One kind is based on MOC boards hardware DC test methods and system | |
CN109947651B (en) | Artificial intelligence engine optimization method and device | |
CN108628734B (en) | Functional program debugging method and terminal | |
CN113504932B (en) | Firmware data updating method and device | |
CN111309579B (en) | Test method and related device for system event log quantity acquisition function | |
CN110851352A (en) | Fuzzy test system and terminal equipment | |
CN111966551A (en) | Method, system, terminal and storage medium for verifying remote command execution result | |
CN110502382B (en) | TYPE-C interface testing method and device, storage medium and electronic equipment | |
CN113656224A (en) | NVMe SSD hot plug test method, system, device and readable storage medium | |
CN106598793B (en) | Test system and test method based on BIOS serial port log data | |
CN111274071A (en) | USB device plug detection method and device and related device | |
CN115840129A (en) | Board card testing method and device | |
CN116149709A (en) | Firmware upgrading method, device, equipment and medium | |
CN112802495A (en) | Robot voice test method and device, storage medium and terminal equipment | |
CN114385496A (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN115794525A (en) | BMC (baseboard management controller) pressure testing method, device, equipment and storage medium | |
CN116087752A (en) | Chip testing method, system, device and medium | |
CN115421027A (en) | Chip failure type test system | |
CN111490965A (en) | System and method for detecting weak password in Windows environment | |
CN115580550A (en) | Network card stability testing method, device, equipment and storage medium | |
CN112052184B (en) | Automatic generation method, automatic generation device and storage medium for test script |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200612 |