CN102087626B - Automatic test system and automatic test method thereof - Google Patents

Automatic test system and automatic test method thereof Download PDF

Info

Publication number
CN102087626B
CN102087626B CN 200910225594 CN200910225594A CN102087626B CN 102087626 B CN102087626 B CN 102087626B CN 200910225594 CN200910225594 CN 200910225594 CN 200910225594 A CN200910225594 A CN 200910225594A CN 102087626 B CN102087626 B CN 102087626B
Authority
CN
China
Prior art keywords
unit
computing machine
goal description
waiting time
serial bus
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.)
Expired - Fee Related
Application number
CN 200910225594
Other languages
Chinese (zh)
Other versions
CN102087626A (en
Inventor
张倍铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics 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 Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN 200910225594 priority Critical patent/CN102087626B/en
Publication of CN102087626A publication Critical patent/CN102087626A/en
Application granted granted Critical
Publication of CN102087626B publication Critical patent/CN102087626B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides an automatic test system and an automatic test method thereof. The automatic test system comprises a computer and a test device which is used for testing a universal serial bus device. The automatic test system judges whether the universal serial bus device is configured with the computer through the automatic test method, and starts to test the universal serial bus device when the configuration is finished. Through the automatic test system and the automatic test method, manpower is not needed to automatically decide whether to start the test on the universal serial bus or not, so that the working efficiency is improved.

Description

Auto-Test System and automatic test approach thereof
Technical field
The present invention relates to Auto-Test System and method, relate in particular to a kind of Auto-Test System and automatic test approach thereof that universal serial bus device is tested automatically.
Background technology
Therefore USB (universal serial bus) (Universal Series Bus, USB) device is applied on many fields owing to have with the function of inserting with usefulness, and more common is USB video-audio playing device, USB storage device, USB mouse and USB keyboard etc.And in the manufacture process of USB device or make and must the USB device be tested when finishing, can normally move with each function of guaranteeing the USB device.
Whether take the USB keyboard as example, the simplest keyboard test is pressed each button by a tester again for connecting USB keyboard and computing machine, and whether carries out its keypress function after observing pressing keys, normal to judge button.Yet, with manpower test not only test speed slowly and cost too high, in addition, the tester also may feel fatigue because of long test, so the situation of touch of key-press by accident occurs easily.For solving this situation, release on the market a kind of automatic keyboard testing device so that keyboard is tested automatically, its operation situation is described as No. 00325905 bulletin case of Taiwan patent, and does not add explanation.
Before test USB device, the USB device must be connected in computing machine or proving installation, and in its connection procedure, the meeting generation device changes the message of (Device change), at this moment, the USB device can transmit usb protocol to be described to computing machine, computing machine is described and the function of its USB device of identification by reading usb protocol, those usb protocols are described as describing unit (Descriptor), wherein consist of prerequisite description unit of USB device institute and comprise unit describe unit (Device Descriptor), unit (Configuration Descriptor) is described in configuration, interface description unit (Interface Descriptor), end points is described unit (Endpoint Descriptor).Some USB device comprises that also word string is described unit (StringDescriptor), unit (Class Descriptor) is described by group and unit (Report Descriptor) etc. is described in report in addition, can increase or reduce these according to the demand of USB device and describe unit.And computing machine receives those and describes after the unit and those of this USB device can be described unit and be stored in the device log-on message, in order to can detect this USB device when this USB device is connected with computing machine again and this USB device of identification and finish the configuration (Configure) of USB device by installing log-on message in the future.
Generally speaking, the operating system of computing machine is Microsoft Windows.When the USB device is connected in computing machine or proving installation and transmission description unit, the Windows operating system of computing machine will be detected USB port all on the computing machine, so that the description of USB device unit can repeat to be detected by computing machine, therefore must wait for computing machine to all USB port detect complete just can finish the USB device be configured to automatically test.Although computing machine can be detected all USB port, can't judge but whether the configuration of USB device is finished, so computing machine can't learn when this begins automatically to test, therefore must dispose available manpower still to judge whether the configuration of USB device is finished, and start automatic testing equipment automatically to test.That is to say that automatic testing equipment still must rely on manpower to be tested.
Summary of the invention
The technical problem to be solved in the present invention is, for the prior art above shortcomings, a kind of Auto-Test System and automatic test approach thereof that universal serial bus device is tested of can automatically determining whether to begin is provided, need not to rely on manpower can carry out automatic test job, high efficiency.
The technical solution adopted for the present invention to solve the technical problems provides a kind of Auto-Test System, in order to a universal serial bus device is tested automatically, this Auto-Test System comprises computing machine, proving installation, connection management program and autotest program; Proving installation is connected in this computing machine and this universal serial bus device, in order to this universal serial bus device is tested, wherein when this universal serial bus device is connected with this proving installation, this universal serial bus device produce a plurality of description unit also should be a plurality of description unit transfer to this computing machine; Whether the connection management installation is transferred to this computing machine in order to judge these a plurality of goal description units of describing in the unit in this computing machine; Wherein be transferred to this computing machine when this goal description unit, and this connection management program detects this goal description unit when again being transferred to this computing machine within a stand-by period, this connection management program will make zero and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine, and this connection management program do not detect this goal description unit when again being transferred to this computing machine within waiting time, exports an enabling signal; And autotest program is installed in this computing machine, in order to start this proving installation according to this enabling signal so that this universal serial bus device is tested automatically.
This connection management program also comprises a timer, in order to calculate waiting time.
After this connection management program recomputates waiting time, when this connection management program detects this goal description unit when again being transferred to this computing machine within the waiting time of recomputating, this connection management program again will make zero and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine again, and this connection management program do not detect this goal description unit when being transferred to this computing machine within the waiting time of recomputating, and exports this enabling signal.
This goal description unit is unit describe unit (Device Descriptor).
This unit describe unit comprises product identification code (Product ID, PID) and manufacturer's identification code (VendorID, VID).
Alternatively, this goal description unit comprises that unit describe unit, interface are described unit (Interface Descriptor) and unit (Report Descriptor) is described in report.
This unit describe unit also comprises product identification code and manufacturer's identification code.
This universal serial bus device is the devices such as usb mouse or USB interface keyboard.
The present invention also provides a kind of automatic test approach, finishes in order to judge whether universal serial bus device and computing machine dispose, and the method may further comprise the steps:
S1: it is first to receive a plurality of descriptions that produced by this universal serial bus device;
S2: judge whether to receive this a plurality of goal description units of describing in the unit; Wherein received when this goal description unit, and when after this goal description unit is received, again receiving this goal description unit in the stand-by period, will make zero waiting time and recomputate waiting time; And received when this goal description unit, and when after this goal description unit is received, again not receiving this goal description unit in waiting time, judge that this universal serial bus device and this allocation of computer finish.
After recomputating waiting time, when this goal description unit is received within the waiting time of recomputating again, will makes zero waiting time and recomputate waiting time; And when this goal description unit is not received again, judge that this universal serial bus device and this allocation of computer finish within the waiting time of recomputating.
This goal description unit is unit describe unit.
This unit describe unit comprises product identification code and manufacturer's identification code.
Alternatively, this goal description unit comprises that also unit describe unit, interface are described unit and unit is described in report.
This unit describe unit also comprises product identification code and manufacturer's identification code.
This universal serial bus device is the devices such as usb mouse or USB interface keyboard.
Auto-Test System of the present invention and automatic test approach thereof, judge whether to still have the goal description unit that be transmitted by detecting goal description unit within the stand-by period, but the goal description that is not transmitted is first, finish to learn whether universal serial bus device and computing machine dispose whereby, and carry out follow-up work.Auto-Test System of the present invention and automatic test approach thereof are finished in order to judge whether universal serial bus device and computing machine dispose, and can improve the defective of prior art and realize not relying on manpower and the automatic test job that operate, and increase work efficiency.
Description of drawings
Fig. 1 is the block flow diagram of automatic test approach preferred embodiment of the present invention.
Fig. 2 is the structural representation of Auto-Test System preferred embodiment of the present invention.
Embodiment
Can learn the opportunity that should start automatic test in order to ensure computing machine, the invention provides a kind of in order to judge whether universal serial bus device and computing machine dispose the automatic test approach of finishing, see also Fig. 1, it is the block flow diagram of automatic test approach preferred embodiment of the present invention.The method may further comprise the steps S1: connect a proving installation and a computing machine, and connect a universal serial bus device and proving installation to set up being connected of universal serial bus device and intercomputer.Step S2: a plurality of description of universal serial bus device transmission unit is to computing machine.Step S3: judge whether to receive the goal description unit from universal serial bus device.Step S4: start timer, and judge within a stand-by period, whether again to receive goal description unit.Step S5: will make zero the stand-by period, and recomputate the stand-by period.Step S6: judgement universal serial bus device and allocation of computer are finished.And step S7: carry out the automatic test of universal serial bus device.
What need pay special attention to is, when carrying out step S3, if when not receiving goal description unit, and repeating step S3; And if receive goal description when unit, then carry out step S4.And when carrying out step S4, if when within the stand-by period, again receiving goal description unit, carry out step S5; If when within the stand-by period, again not receiving goal description unit, then carry out step S6.After completing steps S5, then again carry out step S4.
Next judge with complete Auto-Test System explanation whether universal serial bus device and computing machine dispose the method for finishing.See also Fig. 2, it is the structural representation of Auto-Test System preferred embodiment of the present invention.Auto-Test System 1 is in order to automatically to test a universal serial bus device 12, Auto-Test System 1 comprises a computing machine 10 and a proving installation 11, proving installation 11 is connected in computing machine 10 and universal serial bus device 12, in order to universal serial bus device 12 is tested, and the structure of proving installation 11 and operation situation be as described in No. 00325905 bulletin case of disclosed Taiwan patent in the prior art, and repeat no more.
Computing machine 10 has a connection management program 101 and the autotest program 102 in order to carry out automatic test, and connection management program 101 has a timer 1011.And the device of universal serial bus device 12 for connecting by USB (universal serial bus) (USB) interface, in this preferred embodiment, universal serial bus device 12 is the USB keyboard.
Described in prior art, USB keyboard 12 is connected in the connection procedure of computing machine 10 or proving installation 11, USB keyboard 12 can transmit the first D of a plurality of descriptions to computing machine 10, make computing machine 10 by reading the first D of a plurality of descriptions the function of its USB keyboard 12 of identification, and the first D of a plurality of description is stored in the login edit routine in the computing machine 10.Disposed in order to ensure USB keyboard 12 and computing machine 10 and to have finished, setting among the first D of a plurality of descriptions last group, to describe unit be goal description unit.The present invention with goal description unit as judging whether USB keyboard 12 and computing machine 10 dispose the benchmark of finishing, and connection management program 101 is then in order to judge whether the goal description unit among the first D of a plurality of descriptions is transferred to computing machine 10.
Goal description unit can be unit describe unit, and unit describe unit comprises a product identification code (ProductID, PID) and manufacturer's identification code (Vendor ID, VID).Perhaps goal description unit can comprise that unit describe unit, an interface are described unit and unit is described in a report.In this preferred embodiment, goal description unit can comprise that unit describe unit, interface are described unit and unit is described in report, and goal description unit is stored in the login edit routine of Windows operating system of computing machine, and the form of the goal description unit in this preferred embodiment is Vid_1234Pid_5678MI_05Col_09.
When Auto-Test System 1 of the present invention brings into operation, connecting test device 11 and computing machine 10, and connect USB keyboard 12 and proving installation 11, to set up be connected (the step S1) of 10 in USB keyboard 12 and computing machine.Next, first D is to computing machine 10 (step S2) for the 12 a plurality of descriptions of transmission of USB keyboard, at this moment, the connection management program 101 of computing machine 10 judges whether to receive the goal description unit (step S3) from USB keyboard 12, wherein do not receive goal description when unit when connection management program 101 detects computing machine 10, continue receiving target and describe unit until receive till the goal description unit.And receive goal description when unit when connection management program 101 detects computing machine 10, then start timer 1011, and judge whether computing machine 10 receives goal description unit (step S4) again within the stand-by period.
In step S4, when detecting computing machine 10, connection management program 101 within the stand-by period, again receives goal description when unit, and will make zero the stand-by period, and recomputate the stand-by period (step S5), again to carry out step S4.And within the stand-by period, again do not receive goal description when unit when connection management program 101 detects computing machine 10, judge that then USB keyboard 12 and allocation of computer finish (step S6) and export an enabling signal E.Next, autotest program 102 starts proving installation 11 according to enabling signal E, so that 11 pairs of USB keyboards 12 of proving installation are tested (step S7) automatically.Operational process as for automatically test is then no longer added explanation.
What need special instruction is, the present invention sets timer 1011 to calculate the stand-by period, mainly be whether to still have the first D of description to repeat to be transmitted in order to detecting, as all the representative of first D is described with goal description unit in the present embodiment, within the stand-by period, there is goal description unit to be transmitted then to represent computing machine 10 not yet all USB port detectings to be finished if detect, otherwise, if within the stand-by period, do not receive goal description unit, represent then that USB keyboard 12 and computing machine 10 have disposed to finish and carried out follow-up automatic test job.Therefore, the setting of stand-by period is quite important, if the stand-by period is set too shortly, the goal description unit that should be detected is left in the basket, that is to say, connection management program 101 will be therefore and error in judgement causes follow-up automatic test job failure, therefore needs test and obtain through testing repeatedly for different USB devices the setting of stand-by period.
According to above-mentioned preferred embodiment as can be known, Auto-Test System of the present invention and method, judge whether to still have the goal description unit that be transmitted by detecting goal description unit within the stand-by period, but the goal description that is not transmitted is first, finish to learn whether universal serial bus device and computing machine dispose whereby, and carry out follow-up work.Therefore, Auto-Test System of the present invention and method are finished in order to judge whether universal serial bus device and computing machine dispose, and really can improve the defective of prior art and realize not relying on manpower and the automatic test job that carry out.
The above is preferred embodiment of the present invention only, is not to limit claim scope of the present invention, and therefore all other do not break away from the equivalence change of finishing under the disclosed spirit or modify, and all should be contained in the claim scope of the present invention.

Claims (15)

1. Auto-Test System, in order to universal serial bus device is tested automatically, it is characterized in that: this Auto-Test System comprises:
Computing machine;
Proving installation, be connected in this computing machine and this universal serial bus device, in order to this universal serial bus device is tested, wherein when this universal serial bus device is connected with this proving installation, this universal serial bus device produce a plurality of description unit also should be a plurality of description unit transfer to this computing machine;
The connection management program is installed in this computing machine, whether is transferred to this computing machine in order to judge these a plurality of goal description units of describing in the unit; Wherein be transferred to this computing machine when this goal description unit, and this connection management program detects this goal description unit when again being transferred to this computing machine within a stand-by period, this connection management program will make zero and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine, and this connection management program do not detect this goal description unit when again being transferred to this computing machine within waiting time, exports an enabling signal; And
Autotest program is installed in this computing machine, in order to start this proving installation according to this enabling signal so that this universal serial bus device is tested automatically.
2. Auto-Test System as claimed in claim 1, it is characterized in that: this connection management program also comprises a timer, in order to calculate waiting time.
3. Auto-Test System as claimed in claim 1, it is characterized in that: this connection management program recomputated after waiting time, when this connection management program detects this goal description unit when again being transferred to this computing machine within the waiting time of recomputating, this connection management program again will make zero and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine again, and this connection management program do not detect this goal description unit when being transferred to this computing machine within the waiting time of recomputating, and exports this enabling signal.
4. Auto-Test System as claimed in claim 1 is characterized in that: this goal description unit is unit describe unit.
5. Auto-Test System as claimed in claim 4, it is characterized in that: this unit describe unit comprises product identification code and manufacturer's identification code.
6. Auto-Test System as claimed in claim 1 is characterized in that: this goal description unit comprises that unit describe unit, interface are described unit and unit is described in report.
7. Auto-Test System as claimed in claim 6, it is characterized in that: this unit describe unit comprises product identification code and manufacturer's identification code.
8. Auto-Test System as claimed in claim 1, it is characterized in that: this universal serial bus device is usb mouse or USB interface keyboard.
9. an automatic test approach is finished in order to judge whether universal serial bus device and computing machine dispose, and it is characterized in that: the method comprises:
Reception is first by a plurality of descriptions that this universal serial bus device produces; And
Judge whether to receive this a plurality of goal description units of describing in the unit; Wherein received when this goal description unit, and when after this goal description unit is received, again receiving this goal description unit in the stand-by period, will make zero waiting time and recomputate waiting time; And received when this goal description unit, and when after this goal description unit is received, again not receiving this goal description unit in waiting time, judge that this universal serial bus device and this allocation of computer finish.
10. automatic test approach as claimed in claim 9, it is characterized in that: after recomputating waiting time, when this goal description unit is received within the waiting time of recomputating again, will makes zero waiting time and recomputate waiting time; And when this goal description unit is not received again, judge that this universal serial bus device and this allocation of computer finish within the waiting time of recomputating.
11. automatic test approach as claimed in claim 10 is characterized in that: this goal description unit is unit describe unit.
12. automatic test approach as claimed in claim 11 is characterized in that: this unit describe unit comprises product identification code and manufacturer's identification code.
13. automatic test approach as claimed in claim 9 is characterized in that: this goal description unit comprises that unit describe unit, interface are described unit and unit is described in report.
14. automatic test approach as claimed in claim 13 is characterized in that: this unit describe unit comprises product identification code and manufacturer's identification code.
15. automatic test approach as claimed in claim 9 is characterized in that: this universal serial bus device is usb mouse or USB interface keyboard.
CN 200910225594 2009-12-07 2009-12-07 Automatic test system and automatic test method thereof Expired - Fee Related CN102087626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910225594 CN102087626B (en) 2009-12-07 2009-12-07 Automatic test system and automatic test method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910225594 CN102087626B (en) 2009-12-07 2009-12-07 Automatic test system and automatic test method thereof

Publications (2)

Publication Number Publication Date
CN102087626A CN102087626A (en) 2011-06-08
CN102087626B true CN102087626B (en) 2013-04-10

Family

ID=44099442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910225594 Expired - Fee Related CN102087626B (en) 2009-12-07 2009-12-07 Automatic test system and automatic test method thereof

Country Status (1)

Country Link
CN (1) CN102087626B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631783B (en) * 2012-08-21 2018-09-04 百度在线网络技术(北京)有限公司 A kind of generation method and system of front end page
TWI676899B (en) * 2018-02-21 2019-11-11 Measuring instrument data collecting device and method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504887A (en) * 2002-12-02 2004-06-16 英业达股份有限公司 Testing device and method for universal serial bus port

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6948098B2 (en) * 2001-03-30 2005-09-20 Cirrus Logic, Inc. Circuits and methods for debugging an embedded processor and systems using the same
US20030056036A1 (en) * 2001-09-14 2003-03-20 Carlton Gary Don Apparatus and method for testing universal serial bus communication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504887A (en) * 2002-12-02 2004-06-16 英业达股份有限公司 Testing device and method for universal serial bus port

Also Published As

Publication number Publication date
CN102087626A (en) 2011-06-08

Similar Documents

Publication Publication Date Title
CN106844268B (en) USB equipment testing system, testing method and testing device
CN102023912B (en) Dormancy wake-up testing system and method
CN101359307B (en) Test device of SAS channel and test method thereof
CN100511171C (en) Test approach for debugging serial port function with single board and system thereof
CN103970628B (en) Automatic detection system and automatic detection method thereof
CN106445811A (en) SecureCRT-based automated test system and method
CN102075788A (en) Automatic detection method and testing device for set top box
CN101711350A (en) System and method for testing wireless devices
CN101599035A (en) USB port proving installation and method
CN116340073B (en) Test method, device and system
CN101377754B (en) Bridging SAS channel test system and method
CN102087626B (en) Automatic test system and automatic test method thereof
CN103488513A (en) Universal driving method for plug and play of device
CN105094880A (en) USB driving method, computer and compound equipment
CN104063297A (en) Method and device capable of diagnosing computer hardware through USB interfaces
CN102455965A (en) Electronic device test system and method
CN106612215A (en) Integrated remote detection device and method based on Ethernet
CN102981675A (en) Multi-point touch data processing method and multi-point touch data processing system thereof
US7958405B1 (en) Automatic testing system and method for judging whether universal serial bus device is configured to computer
CN108304290A (en) Server power-up state monitors system and method, computer storage and equipment
CN114387775B (en) Pressure measurement method and device for simulating remote controller
CN1797488A (en) System and method for testing LCD unit
CN106649002A (en) Server and method for automatically overhauling baseboard management controller
CN111505531A (en) Board card test system
CN103365735A (en) Transmission interface and method for determining transmission signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130410

Termination date: 20161207