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

Automatic test system and automatic test method thereof Download PDF

Info

Publication number
CN102087626A
CN102087626A CN2009102255945A CN200910225594A CN102087626A CN 102087626 A CN102087626 A CN 102087626A CN 2009102255945 A CN2009102255945 A CN 2009102255945A CN 200910225594 A CN200910225594 A CN 200910225594A CN 102087626 A CN102087626 A CN 102087626A
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.)
Granted
Application number
CN2009102255945A
Other languages
Chinese (zh)
Other versions
CN102087626B (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
USB (universal serial bus) (Universal Series Bus, USB) therefore 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 or the like.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 with the USB keyboard is example, and the simplest keyboard test is pushed 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 tired because of test for a long time, so the situation of easy generation touch of key-press by accident.For solving this situation, release a kind of keyboard automatic test device on the market 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 constitute 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 USB need for equipment 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, so that can detect this USB device when this USB device is connected with computing machine once more and this USB device of identification and finish the configuration (Configure) of USB device by installing log-on message in the future.
Generally speaking, operation system of computer 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, make the description unit of USB device can repeat to be detected by computing machine, therefore must wait for computing machine to all USB port detect finish just can finish the USB device be configured to test automatically.Though 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 to test automatically, whether the configuration of judging the USB device of therefore still must disposing available manpower is finished, and starts automatic testing equipment to test automatically.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, at 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 determining automatically 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; 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 being transferred to this computing machine once more in first-class is treated the time, 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 being transferred to this computing machine once more in 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 being transferred to this computing machine once more in the waiting time of recomputating, this connection management program will make zero once more and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine once more, and this connection management program do not detect this goal description unit when being transferred to this computing machine in the waiting time of recomputating, and exports this enabling signal.
This goal description unit is unit describe unit (Device Descriptor).
This unit describe unit comprise the 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 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 this 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 be received when this goal description unit, and when this goal description unit is received back first-class and treats to receive once more in the time this goal description unit, will make zero waiting time and recomputate waiting time; And be received when this goal description unit, and when this goal description unit is received the back and does not receive this goal description unit in waiting time once more, judge that this universal serial bus device and this computer configuration finish.
After recomputating waiting time, when this goal description unit is received in the waiting time of recomputating once more, will makes zero waiting time and recomputate waiting time; And when this goal description unit is not received once more, judge that this universal serial bus device and this computer configuration finish in the waiting time of recomputating.
This goal description unit is a 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 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 in the stand-by period, but the goal description unit that is not transmitted, 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.This 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 a goal description unit from universal serial bus device.Step S4: start timer, and judge in first-class is treated the time, whether to receive goal description unit once more.Step S5: will make zero the stand-by period, and recomputate the stand-by period.Step S6: judgement universal serial bus device and computer configuration 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, then carry out step S4 if receive goal description when unit.And when carrying out step S4,, carry out step S5 if when in the stand-by period, receiving goal description unit once more; If when in the stand-by period, not receiving goal description unit once more, then carry out step S6.After completing steps S5, then carry out step S4 once more.
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 test automatically 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 a 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 a unit describe unit, and unit describe unit comprise a product identification code (ProductID, PID) and manufacturer's identification code (Vendor ID, VID).Perhaps goal description unit can comprise that a 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, connect proving installation 11 and computing machine 10, and connect USB keyboard 12 and proving installation 11, to set up be connected (the step S1) of USB keyboard 12 and 10 in 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, continue receiving target and describe unit till receiving goal description unit when connection management program 101 detects computing machine 10.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) once more in the stand-by period.
In step S4, when detecting computing machine 10, connection management program 101 in the stand-by period, receives goal description when unit once more, and will make zero the stand-by period, and recomputate the stand-by period (step S5), to carry out step S4 once more.And in the stand-by period, do not receive goal description when unit once more when connection management program 101 detects computing machine 10, judge that then USB keyboard 12 and computer configuration 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 test is automatically 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, in the stand-by period, there is goal description unit to be transmitted then to represent computing machine 10 all USB port detectings not to be finished as yet if detect, otherwise, if in 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 at 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 in the stand-by period, but the goal description unit that is not transmitted, 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 can improve the defective of prior art really 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 in order to limiting claim scope of the present invention, and therefore all other do not break away from the equivalence of being finished under the disclosed spirit and change 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 being transferred to this computing machine once more in first-class is treated the time, 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 being transferred to this computing machine once more in 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 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 being transferred to this computing machine once more in the waiting time of recomputating, this connection management program will make zero once more and recomputate waiting time waiting time; When this goal description unit is transferred to this computing machine once more, and this connection management program do not detect this goal description unit when being transferred to this computing machine in 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 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 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 is characterized in that: this universal serial bus device is devices such as 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: this 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 be received when this goal description unit, and when this goal description unit is received back first-class and treats to receive once more in the time this goal description unit, will make zero waiting time and recomputate waiting time; And be received when this goal description unit, and when this goal description unit is received the back and does not receive this goal description unit in waiting time once more, judge that this universal serial bus device and this computer configuration 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 in the waiting time of recomputating once more, will makes zero waiting time and recomputate waiting time; And when this goal description unit is not received once more, judge that this universal serial bus device and this computer configuration finish in 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 devices such as 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 true CN102087626A (en) 2011-06-08
CN102087626B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631783A (en) * 2012-08-21 2014-03-12 百度在线网络技术(北京)有限公司 Method and system for generating front end page
CN110174855A (en) * 2018-02-21 2019-08-27 凯柏精密机械(嘉兴)有限公司 Meter data collection apparatus and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051192A1 (en) * 2001-03-30 2003-03-13 Pillay Sanjay Ramakrishna 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
CN1504887A (en) * 2002-12-02 2004-06-16 英业达股份有限公司 Testing device and method for universal serial bus port

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051192A1 (en) * 2001-03-30 2003-03-13 Pillay Sanjay Ramakrishna 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
CN1504887A (en) * 2002-12-02 2004-06-16 英业达股份有限公司 Testing device and method for universal serial bus port

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631783A (en) * 2012-08-21 2014-03-12 百度在线网络技术(北京)有限公司 Method and system for generating front end page
CN103631783B (en) * 2012-08-21 2018-09-04 百度在线网络技术(北京)有限公司 A kind of generation method and system of front end page
CN110174855A (en) * 2018-02-21 2019-08-27 凯柏精密机械(嘉兴)有限公司 Meter data collection apparatus and method

Also Published As

Publication number Publication date
CN102087626B (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN102023912B (en) Dormancy wake-up testing system and method
CN100511171C (en) Test approach for debugging serial port function with single board and system thereof
CN102214132B (en) Method and device for debugging Loongson central processing unit (CPU), south bridge chip and north bridge chip
CN101359307B (en) Test device of SAS channel and test method thereof
CN101711350A (en) System and method for testing wireless devices
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN103970628A (en) Automatic detection system and automatic detection method thereof
CN101377754B (en) Bridging SAS channel test system and method
CN102087626B (en) Automatic test system and automatic test method thereof
CN105094880A (en) USB driving method, computer and compound equipment
CN104063297A (en) Method and device capable of diagnosing computer hardware through USB interfaces
CN106612215A (en) Integrated remote detection device and method based on Ethernet
CN102455965A (en) Electronic device test system and method
CN116340073B (en) Test method, device and system
CN100395781C (en) System and method for testing LCD unit
CN102981675A (en) Multi-point touch data processing method and multi-point touch data processing system thereof
CN101561785B (en) Method for automatically detecting operating system on USB device
US7958405B1 (en) Automatic testing system and method for judging whether universal serial bus device is configured to computer
CN106649002A (en) Server and method for automatically overhauling baseboard management controller
CN114387775B (en) Pressure measurement method and device for simulating remote controller
CN101276305B (en) Automatic test system and method
CN102567161A (en) Notebook mainboard testing system and notebook mainboard testing method
CN102662716A (en) Method for realizing startup guiding control in computer system by using interface access
US20120191883A1 (en) Interface integrated device and electronic device testing arrangement
CN112000579B (en) Software interface testing method, system, equipment and medium

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

Granted publication date: 20130410

Termination date: 20161207

CF01 Termination of patent right due to non-payment of annual fee