CN108228399A - USB device automatic checkout equipment and its method - Google Patents

USB device automatic checkout equipment and its method Download PDF

Info

Publication number
CN108228399A
CN108228399A CN201611150121.XA CN201611150121A CN108228399A CN 108228399 A CN108228399 A CN 108228399A CN 201611150121 A CN201611150121 A CN 201611150121A CN 108228399 A CN108228399 A CN 108228399A
Authority
CN
China
Prior art keywords
usb device
control module
usb
main control
processing controller
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
Application number
CN201611150121.XA
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.)
Zhejiang Sunny Optical Intelligent Technology Co Ltd
Original Assignee
Zhejiang Sunny Optical 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 Zhejiang Sunny Optical Intelligent Technology Co Ltd filed Critical Zhejiang Sunny Optical Intelligent Technology Co Ltd
Priority to CN201611150121.XA priority Critical patent/CN108228399A/en
Publication of CN108228399A publication Critical patent/CN108228399A/en
Pending legal-status Critical Current

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/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/221Detection 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
    • 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
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

One automatic detection system, including an automatic heating swappable device and a main control module.The automatic heating swappable device, which can be powered, connects USB device.The main control computer is electrically connected the automatic heating swappable device, to detect after the USB device is connected to the automatic heating swappable device, query argument and the corresponding device node of generation, and after sending opening, configuration, shutoff operation and the accumulated result that the device node is performed to electricity instruction and a cut-offing instruction, wherein assigning an open command and statistic mixed-state yield by main control module.

Description

USB device automatic checkout equipment and its method
Technical field
The present invention relates to a detection device more particularly to a USB device automatic detection system and its method, wherein being used for Universal serial bus device is automatically detected, to reduce error during artificial detection.
Background technology
With the development of the times, the equipment for supporting the Universal Serial Interface of universal serial bus (USB) is more and more, accordingly Universal serial bus device, accessory, equipment (USB Gadget) type it is also more and more.So-called universal serial bus (English: Universal Serial Bus, USB) or universal serial bus is a kind of connecing applied to computer or PC domain Vocal imitation skill, i.e., for a kind of serial port bus-bar standard of line computer system and external device (ED) and a kind of output and defeated Go out the specification of interface, be a kind of external bus standard.When early stage, multimedia computer just came out, the transmission interface of external connecting device It is numerous and diverse, and installation also in need drives formula and turns back on the limitation that could be used, and causes the inconvenience and puzzlement used.So And the appearance of the universal serial bus (USB), a kind of circumscribed transmission interface of hot plug is createed, with user Just the advantages that flexible, independently-powered, is connected so that the universal serial bus (USB) is as inevasible trend now.Especially Be, at present the universal serial bus (USB) be widely used in computer, can take running gear, photographic goods, box on machine, The related fields such as game machine seem mouse, keyboard, camera, charger, scanner, flash disk, mobile phone, digital still camera, external Network interface card, cable modem etc., almost all of external equipment all use the universal serial bus (USB).
Therefore, with the application of the universal serial bus (USB), this kind of product of USB device is mass produced, then How to ensure the stability of the USB device with regard to critically important.For example, it is largely flooded with all kinds of universal serial bus currently on the market Photographic device (USB Camera), but can easily find all kinds of universal serial bus photographic device (USB on the market Camera quality) is irregular.This expression this kind of product is unqualified in the quality of manufacture detection, wherein causing this general The main reason for universal serial bus photographic device (USB Camera) quality is bad is that most now or traditional use is artificial The universal serial bus photographic device (USBCamera) is plugged to be detected, but due to manually plug detection there are error it is big, It the shortcomings such as force is uneven, efficiency is low or even is further also possible to that the universal serial bus device or the general serial can be caused Bus photographic device generates the problem of certain damage or damage in detection process.
Invention content
It is an object of the present invention to provide an automatic detection system and its method, wherein for automatically detecting Universal serial bus device (USB device), to reduce error during artificial detection.
Another object of the present invention is to provide an automatic detection system and its method, wherein improving detection USB device Efficiency and promote yield.
Another object of the present invention is to provide an automatic detection system and its method, wherein artificial heat is effectively avoided to insert The stress damage that test brings USB device is pulled out, ensures the integrality of test product.
To reach any of the above purpose, the present invention provides an automatic detection system, for being used to detect universal serial bus Device, which is characterized in that including:
One automatic heating swappable device, can be powered connection USB device;And
One main control module is electrically connected the automatic heating swappable device, with detect the USB device be connected to it is described automatic After hot-plug equipment, query argument performs institute with the corresponding device node of generation and transmission one to electricity instruction and a cut-offing instruction After opening, configuration, shutoff operation and the accumulated result of stating device node, wherein being assigned an open command by main control module and being counted Detect yield.
According to present pre-ferred embodiments, include at a relay control module and one wherein the automatic hot-inserting pulls out equipment Controller module is managed, wherein the USB device is connected to the relay control module in which can be powered, the main control module is set It puts to, to electricity instruction and the cut-offing instruction, the relay control module is by described described in processing controller module transmission The universal input of processing controller module is controlled with output driving, and processing controller module described in this way is set can be according to institute It states and controls the relay control module to being connected to the USB device of the relay control module to electricity and institute to electricity instruction It states processing controller module and is set and the relay control module can be controlled to stop to being connected to according to the cut-offing instruction The USB device of the relay control module is to electricity.
According to present pre-ferred embodiments, wherein the main control module includes a USB interface, it is connected to the automatic heating The relay control module of swappable device sets for whether the detection USB device is connected to the automatic heating plug Standby, the relay control module has at least one detection USB interface, for the USB device be connected to being powered it is described Relay control module.
According to present pre-ferred embodiments, wherein the main control module includes an open network Wiring device, it is electrically connected to The processing controller module, for the main control module is made to assign instruction to the automatic heating swappable device.
According to present pre-ferred embodiments, wherein the relay control module includes four bars circuits, wherein distinguishing For VCC, D+, D- and GND, for connecting four data lines of the Universal serial bus, wherein being also VCC, D +, D- and GND.
According to present pre-ferred embodiments, wherein the parameter is the device descriptor of the USB device, configuration description Symbol, interface descriptor etc., and generate the device nodes under parameter satisfaction.
According to present pre-ferred embodiments, wherein the operating result of the device nodes, adds up if success as success Value plus 1, on the contrary then write off value plus 1.
According to present pre-ferred embodiments, wherein the main control module, in statistic mixed-state yield, the success value adds The quantity of the fail values will be equal to the number of USB device test.
According to present pre-ferred embodiments, wherein the main control module is embodied as a computer.
An embodiment according to the present invention, wherein the network connectivity device is embodied as the dress by network protocol command It puts.
According to present pre-ferred embodiments, wherein the processing controller module is embodied as an arm processor.
According to present pre-ferred embodiments, wherein the USB device is embodied as USB camera modules.
According to present pre-ferred embodiments, clamp device is automatically delivered including one, for grip it is to be measured described in USB device makes it be connect with the relay control module.
Another aspect of the present invention provides a USB device automated detection method, includes the following steps:
(a) to electricity to a USB device to activate the USB device;
(b) USB device that is activated is detected;
(c) it is corresponding according to the loading of the configuration parameter of the root node attribute of the USB device detected and the USB device Driver, and generate at least one device node;
(d) at least one device node is selected, and USB device execution is at least one according to the device node order Corresponding operating;And
(e) the USB device operation implementing result is detected, then:
If the USB device fails to perform the operation, that is, determine the USB device damage, stop detection;With
If described in the USB device successful execution operation, to the USB device power off, then again to electricity and again Newly detect the USB device according to the device node perform corresponding operating as a result, such repetitive cycling action to electricity, life It enables, detect, power off, recycle n times, wherein N is preset loop number.According to present pre-ferred embodiments, the automatic detection side Wherein according to step (a), one is sent to electricity from a main control module to a processing controller module of an automatic heating swappable device for method Instruction, wherein the processing controller module, which is set, to control a relay control module to even to electricity instruction according to described The USB device of the relay control module is connected to electricity.
According to present pre-ferred embodiments, the automated detection method, wherein according to step (b), by the main control module A Universal Serial Bus Interface detect the USB device.
According to present pre-ferred embodiments, the automated detection method, wherein according to step (b), wherein during detection etc. If treating, the time is a time out, in an accumulative fail values.
According to present pre-ferred embodiments, the automated detection method, wherein according to step (c), the main control module is looked into The parameters such as device descriptor, configures descriptor, the interface descriptor of the USB device are ask, and corresponding meeting the requirements lower loading Driver, to generate the device nodes.
According to present pre-ferred embodiments, which, wherein according to step e), counts implementing result, if Success adds 1 in success value, otherwise adds 1 in fail values, and the sum total for counting the success value and the fail values is equal to the USB After the detection number of device, test operation, and count yield and output test result.
According to present pre-ferred embodiments, the automated detection method, wherein according to step (e), the main control module leads to Cross the processing controller module that a cut-offing instruction is sent to the automatic heating swappable device by a network connectivity device, then via Relay control module of automatic heating swappable device described in the processing controller module drive goes control and the USB device It disconnects.
Description of the drawings
Fig. 1 is the structural schematic block diagram of an automatic detection system according to a preferred embodiment of the present invention.
Fig. 2 is the check process of the main control module of an automatic detection system according to a preferred embodiment of the present invention Figure.
Fig. 3 is the work of the processing controller module of an automatic detection system according to a preferred embodiment of the present invention Make flow chart.
Specific embodiment
It is described below to disclose the present invention so that those skilled in the art can realize the present invention.It is excellent in being described below Embodiment is selected to be only used as illustrating, it may occur to persons skilled in the art that other obvious modifications.It defines in the following description The present invention basic principle can be applied to other embodiments, deformation scheme, improvement project, equivalent program and do not carry on the back Other technologies scheme from the spirit and scope of the present invention.
It will be understood by those skilled in the art that the present invention exposure in, term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", the orientation of the instructions such as " outer " or position close System is based on orientation shown in the drawings or position relationship, is for only for ease of the description present invention and simplifies description, without referring to Show or imply signified device or element there must be specific orientation, with specific azimuth configuration and operation, therefore above-mentioned art Language is not considered as limiting the invention.
It is understood that term " one " is interpreted as " at least one " or " one or more ", i.e., in one embodiment, The quantity of one element can be one, and in a further embodiment, the quantity of the element can be multiple, and term " one " is no It is understood that as the limitation to quantity.
As shown in Figure 1 to Figure 3, it is a USB device (universal serial bus device according to a preferred embodiment of the invention Part) automatic checkout equipment, for the detection USB device of automation, and then reduces error and increase inspection that artificial detection generates Survey efficiency.
In presently preferred embodiment of the invention, the USB device automatic detection system include a main control module 10 and One automatic heating swappable device 20.10 electrical connection of main control module automatic heating swappable device 20, for detecting the USB device It is connected to after the automatic heating swappable device 20 and tests its yield.It further says, which detects the USB device When being inserted in the automatic heating swappable device 20, so as to via the automatic heating swappable device 20 detect the USB device parameter and In the case where parameter is met the requirements, generate opposite device node and perform the feature operation of device node and accumulative detection knot After fruit, the connection of the automatic heating swappable device 20 and the USB device, and statistical result are disconnected, to reach the side via automation Formula judges the yield of the USB device, when thus being avoided that the USB device is tested in artificial hot plug, because of the bad or behaviour of force It slips up and the damage of stress is brought to the USB device, so as to ensure the integrality of test product.
In presently preferred embodiment of the invention, which includes an at least Universal Serial Bus Interface, and (USB connects Mouthful) 11 and a network connectivity device 12.The automatic heating swappable device 20 includes a relay control module 21 and a processing control Device module 22.The Universal Serial Bus Interface 11 of the main control module 10 is electrically connected to the relay control module 21.The master control The network connectivity device 12 of module 10 is electrically connected to the processing controller module 22.The relay control module 21 can be powered Ground is connected to the processing controller module 22, and further, the relay control module 21 is by the processing controller module 22 Universal input and output (GPIO) drive control.The relay control module 21 is connected to the USB device, i.e., the USB device can It is connected to the relay control module 21 with being powered.It is worth mentioning, from the main control module 10 to the processing controller module 22 One is sent to electricity instruction and a cut-offing instruction, wherein the processing controller module 22, which is set, to be controlled according to this to electricity instruction The relay control module 21 is to being connected to the USB device of the relay control module 21 to electricity and the processing controller mould Block 22 is set can control the relay control module 21 to stop to being connected to relay control mould according to the cut-offing instruction The USB device of block 21 is to electricity.In addition, the main control module 10 learns the USB via the Universal Serial Bus Interface (USB interface) 11 Whether device is connected to the relay control module 21 of the automatic heating swappable device 20.In addition, the relay control module 21 have at least one detection USB interface, so that USB device is connected to the described relay control module 21 in which can be powered.
It is worth mentioning, when the USB device is connected to the automatic heating swappable device 20, when this states USB device automation When detection device provides electrical power to the automatic heating swappable device 20, which is defined as connecting with the USB device Logical state.In this way when the main control module 10 learns that the USB device is connected to the automatic heating via Universal Serial Bus Interface 11 During the relay control module 21 of swappable device 20, the parameter of the USB device will be inquired, and in the case where meeting the requirements, Corresponding driver is loaded, to generate the corresponding device node.Then when the main control module 10 detects system generation After the device node, i.e., the feature operations such as opened, be configured, being closed to the device node, it, should after accumulative testing result Main control module 10 is generated the processing for opening electricity instruction to the automatic heating swappable device 20 by the network connectivity device 12 and is controlled Device module 22, the processing controller module 22 drive the relay control module 21 to go to control via universal input and output (GPIO) System and the disconnection of the USB device.Finally in the detection yield that the USB device is counted by the main control module 10.It is noted that The mode of wired connection can be used in the network connectivity device 12 and the processing controller module 22, and the side of wireless connection also can be used Formula, this not limitation for the present invention.In addition, when carrying out feature operation to the device node by that is, by the main control module 10 The cut-offing instruction is sent to the processing controller module 22 of the automatic heating swappable device 20 by the network connectivity device 12, it should Processing controller module 22 drives the relay control module 21 to remove control and the USB devices via universal input and output (GPIO) The disconnection of part, then send and should be set to electricity instruction to automatic heating plug by the network connectivity device 12 via the main control module 10 The standby 20 processing controller module 22, the processing controller module 22 drive the relay via universal input and output (GPIO) Device control module 21 goes control, to electricity, to recycle n times detection according to this, wherein N is preset loop number with the USB device.
In presently preferred embodiment of the invention, which includes four bars circuits, wherein distinguishing For VCC, D+, D- and GND, for connecting the data line of the USB device, wherein being also tetra- numbers of VCC, D+, D- and GND According to line.In the present invention, four of the relay control module 21 signal lines not to electricity when, be set to OFF, when to After electricity, just make its connection.But this limitation for the present invention, if to electricity when set the relay control module 21 four should The data line connects signal line with four of the USB device.
It further says, the relay control module 21 of the automatic heating swappable device 20 is connected to simultaneously in the USB device When providing electric power, four of the relay control module 21 signal lines connect four of the USB device data lines, at this moment The main control module 10 via Universal Serial Bus Interface 11 learn that the USB device is connected to the automatic heating swappable device 20 should be after Electrical control module 21, and the parameter of the USB device is started a query at, including device descriptor, configures descriptor, interface description The parameters such as symbol.And after the main control module 10 confirms that the parameter is met the requirements, corresponding driver is loaded to generate correspondence The device node.After the device node for detecting system generation in the main control module 10, i.e., the device node is beaten After feature operations and the accumulative testing result such as opening, being configured, closing, which is sent by the network connectivity device 12 should Open command is to the processing controller module 22 of the automatic heating swappable device 20, and the processing controller module 22 is via general defeated Enter with output (GPIO) drive the relay control module 21 disconnect four signal lines, so as to make the USB device disconnect with The connection of the relay control module 21.Finally in the detection yield that the USB device is counted by the main control module 10.It is worth mentioning , when being opened in the device node, be configured, closed when feature operations, add up if these operations are all successful as success value Add 1, on the contrary then write off value plus 1.Finally when counting yield, which will be equal to plus the quantity of the fail values should It after the number of USB device test, just stops operation, and counts the yield of the USB device and output result.In addition, to this By being powered off to the USB device when device node carries out feature operation, electricity is then given again and detects the USB device root again According to the device node perform corresponding operating as a result, such repetitive cycling action to electricity, order, detection, power-off, recycle n times, Middle N is preset loop number.
In presently preferred embodiment of the invention, which is embodied as a computer or a computer, wherein comprising referring to Industrial computer and PC etc..The network connectivity device 12 is the device being embodied as through network protocol command, wherein It may include using wide area network (Wide Area Network, WAN).The processing controller module 22 is embodied as an arm processor (Advanced RISC Machine, are referred to as earlier:Acorn RISC Machine).
It is worth mentioning, which may also include one and automatically deliver clamp device, to be measured for gripping The USB device, and it is made to be connect with the relay control module 21.That is, when the USB device to be measured is large number of When, this automatically deliver clamp device by can be sequentially obtain the USB device to the automatic heating swappable device 20 the relay control Molding block 21, and it is made to be connected, the Universal Serial Bus Interface 11 further to allow the main control module 10 detects the USB Device, and inquire its parameter, accumulative operating result and count its yield etc..Accordingly, it is to be understood that, this automatically delivers gripping Device can include a robotic arm, go to be tested, and testing to grip the USB device to the relay control module 21 Directly the USB device is made to be detached with the relay control module 21 via the robotic arm again afterwards, then grip it is next treat into The USB device of row test is tested to the relay control module 21, until the USB device of all tests has detected Finish.Or this automatically deliver clamp device can also include a pneumatics transmission device so that the USB device can be sequentially transmitted to The working range of the robotic arm.Alternatively, this, which automatically delivers clamp device, can also include a clamping device, for directly pressing from both sides The USB device is taken to connect with the relay control module 21 to be tested, and directly make the USB device and the relay after a test Device control module 21 detaches, and takes the USB device of next pending test to the relay control module 21, until all Test the USB device detection finish.As long as it should be understood by those skilled in the art that employs same or similar with the present invention Technical solution and reached with the same or similar technique effect of the present invention, all belong to the scope of protection of the present invention within, The specific embodiment of the present invention is not limited.
In presently preferred embodiment of the invention, which can be embodied as universal serial bus camera module (USBCamera), that is to say, that the main control module 10 detects the universal serial bus via the Universal Serial Bus Interface 11 When camera module (USB Camera) is connect with the automatic heating swappable device 20, which inquires the universal serial bus After the parameter and the corresponding device node of generation of camera module (USB Camera) and accumulative operating result, disconnect and be somebody's turn to do The connection of universal serial bus camera module (USB Camera), judges that the general serial is total in a manner of reaching via automation The yield of line camera module (USB Camera).It further says, the main control module 10 is via the Universal Serial Bus Interface 11 Detect four of the relay control module 21 signal line connections and the universal serial bus camera module (USB Camera four data lines connection), i.e., inquire the universal serial bus camera module (USB by the main control module 10 The parameters such as device descriptor, configures descriptor, interface descriptor Camera), and meeting the requirements the corresponding driving of lower loading Program, to generate the device nodes, and the main control module 10 is beaten the device nodes after the device nodes are detected The operations such as open, be configured, closing, and after recording result, wherein operate it is all successful then add up to add 1 for success value, it is on the contrary then write off Value plus 1, then sends the open command to the automatic heating swappable device by the main control module 10 by the network connectivity device 12 The 20 processing controller module 22, the processing controller module 22 drive the relay via universal input and output (GPIO) Control module 21 disconnects four signal lines, so as to disconnect the universal serial bus camera module (USB Camera) and be somebody's turn to do The connection of relay control module 21.Finally when counting yield, the success value is logical equal to this plus the quantity of the fail values After needing the number tested with universal serial bus camera module (USB Camera), just stop operation, and count the general serial The yield of bus camera module (USB Camera) and output result.In addition, to the device node carry out feature operation when by, I.e. by the main control module 10 by the network connectivity device 12 send the cut-offing instruction to the automatic heating swappable device 20 this Controller module 22 is managed, which drives the relay control module via universal input and output (GPIO) 21 go control and the disconnection of the universal serial bus camera module (USBCamera), then pass through the net via the main control module 10 Network Wiring device 12 sends the processing controller module 22 to electricity instruction to the automatic heating swappable device 20, processing control Device module 22 drives the relay control module 21 to remove control and the universal serial bus via universal input and output (GPIO) Camera module (USB Camera) gives electricity, recycles n times detection according to this, and wherein N is preset loop number.
In presently preferred embodiment of the invention, the USB device can be embodied as universal serial bus Portable disk (also known as USB with Body dish, quick flashing Portable disk, flash disk, USB memory bodys, flash disk, USB flash disk, electric board, Portable disk, memory stick, with deposit, it is thumb, fast Dodge memory body), also it is to detect the universal serial bus via the Universal Serial Bus Interface 11 by the main control module 10 in this way When Portable disk is connect with the automatic heating swappable device 20, which inquires the parameter of the universal serial bus Portable disk, And after the corresponding device node of generation and accumulative operating result, the connection with the universal serial bus Portable disk is disconnected, with Reach the yield that the universal serial bus Portable disk is judged via the mode of automation.It further says, which passes through Four of the relay control module 21 signal line connections and the general string are detected by the Universal Serial Bus Interface 11 Four of row bus Portable disk data line connections, i.e., the equipment for the universal serial bus Portable disk being inquired by the main control module 10 The parameters such as descriptor, configures descriptor, interface descriptor, and the lower corresponding driver of loading is being met the requirements, it should with generation Device nodes, and the main control module 10 is opened the device nodes after the device nodes are detected, is configured, is closed Operation, and after recording result, wherein operate it is all successful then add up to add 1 for success value, it is on the contrary then the value that writes off adds 1, Ran Houyou The main control module 10 sends a command to the processing controller mould of the automatic heating swappable device 20 by the network connectivity device 12 Block 22, then the relay control module 21 is driven to disconnect via universal input and output (GPIO) by the processing controller module 22 Four signal lines, so as to which the universal serial bus Portable disk be made to disconnect the connection with the relay control module 21.Finally When counting yield, which will be equal to the number of universal serial bus Portable disk test plus the quantity of the fail values Afterwards, it just stops operation, and counts the yield of the universal serial bus Portable disk and output result.Those skilled in the art should Understand, as long as employing technical solution the same or similar with the present invention and having reached and the same or similar technology of the present invention Effect, all belong to the scope of protection of the present invention within, specific embodiment of the invention is not limited.
In addition, the present invention also provides a USB device automated detection method, include the following steps:
(a) to electricity a to USB device to activate the USB device;
(b) USB device that is activated is detected;
(c) according to the configuration parameter of the root node attribute of the USB device detected and USB device loading respective drive Program, and generate at least one device node;
(d) at least one device node is selected, and at least one corresponding according to the device node order USB device execution Operation;And
(e) USB device operation implementing result is detected, then:
If the USB device fails to perform the operation, that is, determine USB device damage, stop detection;With
If the USB device successful execution operation powers off the USB device, then detect again to electricity and again The USB device according to the device node perform corresponding operating as a result, such repetitive cycling action to electricity, order, detection, disconnected Electricity, recycles n times, and wherein N is preset loop number.
According to step (a), sent out from a main control module 10 to a processing controller module 22 of an automatic heating swappable device 20 One is sent to give electricity instruction, wherein the processing controller module 22, which is set, to control relay control mould to electricity instruction according to this Block 21 is to being connected to the USB device of the relay control module 21 to electricity.
According to step (b), which is detected by a Universal Serial Bus Interface 11 of the main control module.
According to step (b), if wherein detection when stand-by period be a time out, in an accumulative fail values.
According to step (c), device descriptor, configures descriptor, interface which inquires the USB device describe The parameters such as symbol, and the lower corresponding driver of loading is being met the requirements, to generate the device nodes.
According to step (e), count implementing result, if success adds 1 in success value, otherwise add 1 in fail values, and count this into After the sum total of work value and the fail values is equal to the detection number of the USB device, test operation, and count yield and output test knot Fruit.
According to step (e), which is sent to this automatically by a network connectivity device 12 by a cut-offing instruction The processing controller module 22 of hot-plug equipment 20, then drive the automatic heating swappable device via the processing controller module 22 20 relay control module 21 goes control and the disconnection of the USB device.
It should be understood by those skilled in the art that foregoing description and attached the embodiment of the present invention shown in figure are only used as illustrating And it is not intended to limit the present invention.The purpose of the present invention has been fully and effectively achieved.The function and structural principle of the present invention exists It shows and illustrates in embodiment, under without departing from the principle, embodiments of the present invention can have any deformation or modification.

Claims (21)

  1. A 1. USB device automatic detection system, which is characterized in that including:
    One automatic heating swappable device, can be powered connection USB device;And
    One main control module is electrically connected the automatic heating swappable device, the automatic hot-inserting is connected to detect the USB device After pulling out equipment, query argument is set with the corresponding device node of generation and transmission one to described in electricity instruction and cut-offing instruction execution After the opening of slave node, configuration, shutoff operation and accumulated result, wherein assigning an open command and statistic mixed-state by main control module Yield.
  2. 2. USB device automatic detection system according to claim 1, wherein the automatic hot-inserting pull out equipment include one after Electrical control module and a processing controller module, wherein the USB device is connected to the relay control mould in which can be powered Block, the main control module be set sent to the processing controller module it is described to electricity instruction and the cut-offing instruction, it is described Relay control module is controlled by the universal input of the processing controller module with output driving, processing controller described in this way Module, which is set, the relay control module to be controlled to control mould to being connected to the relay to electricity instruction according to described The USB device of block is set to electricity and the processing controller module to control the relay according to the cut-offing instruction Control module stops to the USB device for being connected to the relay control module to electricity.
  3. 3. USB device automatic detection system according to claim 2, wherein the main control module includes a USB interface, It is connected to the relay control module of the automatic heating swappable device, for detecting whether the USB device connects In the automatic heating swappable device, the relay control module has at least one detection USB interface, for the USB device It is connected to the relay control module with being powered.
  4. 4. USB device automatic detection system according to claim 2, wherein the main control module connects including an open network Line apparatus is electrically connected to the processing controller module, for the main control module is made to assign instruction to the automatic heating Swappable device.
  5. 5. USB device automatic detection system according to claim 3, wherein the main control module connects including an open network Line apparatus is electrically connected to the processing controller module, for the main control module is made to assign instruction to the automatic heating Swappable device.
  6. 6. according to the USB device automatic detection system any in claim 2-5, wherein the relay control module Including four bars circuits, wherein respectively VCC, D+, D- and GND, for connecting the Universal serial bus Four data lines, wherein also be VCC, D+, D- and GND.
  7. 7. USB device automatic detection system according to claim 1, wherein the parameter setting for the USB device Standby descriptor, configures descriptor, interface descriptor etc., and generate the device nodes under parameter satisfaction.
  8. 8. USB device automatic detection system according to claim 1, wherein the operating result of the device nodes, Add up to add 1 for success value if success, on the contrary write off value plus 1.
  9. 9. USB device automatic detection system according to claim 8, wherein the main control module is in statistic mixed-state yield When, the success value will be equal to the number of USB device test plus the quantity of the fail values.
  10. 10. USB device automatic detection system according to claim 1, wherein the main control module is embodied as a calculating Machine.
  11. 11. USB device automatic detection system according to claim 1, wherein the network connectivity device is embodied as leading to Cross the device of network protocol command.
  12. 12. USB device automatic detection system according to claim 1, wherein the processing controller module is embodied as One arm processor.
  13. 13. USB device automatic detection system according to claim 1, wherein the USB device is embodied as USB camera shootings Module.
  14. 14. USB device automatic detection system according to claim 2, clamp device is automatically delivered including one, with For gripping the USB device to be measured, it is made to be connect with the relay control module.
  15. A 15. USB device automated detection method, which is characterized in that include the following steps:
    (a) to electricity to a USB device to activate the USB device;
    (b) USB device that is activated is detected;
    (c) according to the configuration parameter of the root node attribute of the USB device detected and USB device loading respective drive Program, and generate at least one device node;
    (d) at least one device node is selected, and USB device execution is at least one corresponding according to the device node order Operation;And
    (e) the USB device operation implementing result is detected, then:
    If the USB device fails to perform the operation, that is, determine the USB device damage, stop detection;With
    If operation described in the USB device successful execution, powers off the USB device, electricity is then given again and is examined again Survey the USB device according to the device node perform corresponding operating as a result, such repetitive cycling action to electricity, order, inspection It surveys, power-off, recycles n times, wherein N is preset loop number.
  16. 16. USB device automated detection method according to claim 15, wherein according to step (a), by a main control module One is sent to a processing controller module of an automatic heating swappable device to instruct to electricity, wherein the processing controller module is set Putting can be according to the USB for being instructed to electricity and controlling a relay control module to being connected to the relay control module Device is to electricity.
  17. 17. USB device automated detection method according to claim 15, wherein according to step (b), by the master control mould One Universal Serial Bus Interface of block detects the USB device.
  18. 18. USB device automated detection method according to claim 15, wherein according to step (b), wherein during detection If the stand-by period is a time out, in an accumulative fail values.
  19. 19. USB device automated detection method according to claim 15, wherein according to step (c), the main control module The parameters such as device descriptor, configures descriptor, the interface descriptor of the USB device are inquired, and are meeting the requirements lower loading phase The driver answered, to generate the device nodes.
  20. 20. USB device automated detection method according to claim 15, wherein according to step (e), statistics performs knot Fruit if success adds 1 in success value, otherwise adds 1 in fail values, and the sum total for counting the success value and the fail values is equal to institute After the detection number for stating USB device, test operation, and count yield and output test result.
  21. 21. USB device automated detection method according to claim 15, wherein according to step (e), the main control module One cut-offing instruction by a network connectivity device is sent to the processing controller module of the automatic heating swappable device, then is passed through Relay control module of automatic heating swappable device as described in the processing controller module drive removes control and the USB device Disconnection.
CN201611150121.XA 2016-12-14 2016-12-14 USB device automatic checkout equipment and its method Pending CN108228399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611150121.XA CN108228399A (en) 2016-12-14 2016-12-14 USB device automatic checkout equipment and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611150121.XA CN108228399A (en) 2016-12-14 2016-12-14 USB device automatic checkout equipment and its method

Publications (1)

Publication Number Publication Date
CN108228399A true CN108228399A (en) 2018-06-29

Family

ID=62637549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611150121.XA Pending CN108228399A (en) 2016-12-14 2016-12-14 USB device automatic checkout equipment and its method

Country Status (1)

Country Link
CN (1) CN108228399A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032276A (en) * 2018-07-27 2018-12-18 郑州云海信息技术有限公司 A kind of hot plug device and method
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN112269707A (en) * 2020-11-17 2021-01-26 深兰科技(上海)有限公司 USB enumeration detection method, USB host device and storage medium
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable medium
CN116449259A (en) * 2023-04-18 2023-07-18 汇春科技(上海)有限公司 Device and method for testing hot plug times of USB equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM290999U (en) * 2005-11-18 2006-05-21 Air2U Inc Automatic test system of USB device
CN101063952A (en) * 2006-04-25 2007-10-31 英业达股份有限公司 Universal serial bus host controller rapid testing system and method thereof
CN201440165U (en) * 2009-06-30 2010-04-21 比亚迪股份有限公司 Testing system for control chip of USB equipment
EP2293194A1 (en) * 2009-09-04 2011-03-09 ST-Ericsson (Grenoble) SAS Method and apparatus for testing an USB OTG hardware interface
CN205158348U (en) * 2015-10-30 2016-04-13 北京中电华大电子设计有限责任公司 USB equipment hot plug detecting system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM290999U (en) * 2005-11-18 2006-05-21 Air2U Inc Automatic test system of USB device
CN101063952A (en) * 2006-04-25 2007-10-31 英业达股份有限公司 Universal serial bus host controller rapid testing system and method thereof
CN201440165U (en) * 2009-06-30 2010-04-21 比亚迪股份有限公司 Testing system for control chip of USB equipment
EP2293194A1 (en) * 2009-09-04 2011-03-09 ST-Ericsson (Grenoble) SAS Method and apparatus for testing an USB OTG hardware interface
CN205158348U (en) * 2015-10-30 2016-04-13 北京中电华大电子设计有限责任公司 USB equipment hot plug detecting system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032276A (en) * 2018-07-27 2018-12-18 郑州云海信息技术有限公司 A kind of hot plug device and method
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN112269707A (en) * 2020-11-17 2021-01-26 深兰科技(上海)有限公司 USB enumeration detection method, USB host device and storage medium
WO2022111277A1 (en) * 2020-11-25 2022-06-02 中兴通讯股份有限公司 Hot-plug device information transmission method, computer device and readable 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
CN108228399A (en) USB device automatic checkout equipment and its method
CN104467109B (en) Method for supplying power to electronic equipment and electronic equipment
CN104054064B (en) Flexible port configuration based on interface coupling
CN106786960B (en) Charge control method, device and terminal
CN105814767A (en) Electronic device quick charging method, apparatus and device
CN102981916B (en) A kind of mobile terminal and control method thereof and device
CN103618356A (en) Charging system for mobile terminal and charging method thereof
CN105914810A (en) Method for charging electronic equipment, and electronic equipment
CN107656882A (en) A kind of USB controller verification method, system and equipment
CN208547675U (en) A kind of plug test module for USB Type-C interface
CN107390133A (en) Battery detection equipment, system and method
CN206133546U (en) Storage device's break -make testing arrangement and system
CN107608847A (en) Electronic equipment and its control method and control device
CN206270945U (en) Pluggable module identifying system
CN100465904C (en) Emulator of contact type intelligent card with USB interface
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN107544880A (en) A kind of USB hot plugs stability test method and test device
CN105824732A (en) USB detection method and detection system
CN101211209B (en) Power management system and method
CN111984489A (en) Cable transmission negotiation method, device and related components
CN108873759A (en) A kind of circuit, circuit protection method and electronic equipment
CN207516986U (en) A kind of watchdog circuit and signal processing circuit
CN109542198A (en) A kind of method and apparatus that control PCIe card powers on
CN109684153A (en) Server and its firmware updating method with double firmware storage spaces
CN104598415A (en) Universal serial bus (USB) test fixture

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: 20180629