CN103885868B - The test macro of simulation USB hot plug process and device - Google Patents

The test macro of simulation USB hot plug process and device Download PDF

Info

Publication number
CN103885868B
CN103885868B CN201410153282.9A CN201410153282A CN103885868B CN 103885868 B CN103885868 B CN 103885868B CN 201410153282 A CN201410153282 A CN 201410153282A CN 103885868 B CN103885868 B CN 103885868B
Authority
CN
China
Prior art keywords
usb
converting interface
speed
sensitive switch
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410153282.9A
Other languages
Chinese (zh)
Other versions
CN103885868A (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201410153282.9A priority Critical patent/CN103885868B/en
Publication of CN103885868A publication Critical patent/CN103885868A/en
Application granted granted Critical
Publication of CN103885868B publication Critical patent/CN103885868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention provides a kind of test macro of simulating USB hot plug process, its proving installation comprises first and second USB DEVICE converting interface, first and second USB HOST converting interface, first and second speed-sensitive switch, load module and control module.Model machine and external equipment are connected with first and second USB HOST converting interface respectively, and model machine and computing machine are connected with first and second USB DEVICE converting interface respectively.Control module is connected with first and second speed-sensitive switch, and the testing time according to load module setting controls the first or second speed-sensitive switch break-make, to control first and second USB HOST converting interface or to control connection or the disconnection of first and second USB DEVICE converting interface.The present invention also provides a kind of proving installation, utilizes the present invention, by the manual operation connecting or extract USB line or OTG line of the break-make control simulation of speed-sensitive switch, improves the efficiency that USB HOST and USB DEVICE tests.

Description

The test macro of simulation USB hot plug process and device
Technical field
The present invention relates to electronic equipment quality test technical field, particularly relate to a kind of test macro and device of simulating USB hot plug process.
Background technology
At present, with USB (universal serial bus) (universal serial bus, USB) electronic equipment (such as computer) of port gets more and more, USB device is also more and more universal, for ensureing that USB HOST and USB DEVICE can normally work, need the quality of often test USB HOST and USB DEVICE when electronic equipment factory inspection and daily servicing.
USB HOST test refers to that model machine is by OTG line circumscribed USB device equipment (as USB flash disk, USB keyboard/mouse, USB portable hard drive etc.), and operates by being connected with the USB HOST interface of model machine.USB DEVICE test refers to that model machine connects computer equipment, and model machine is operated the data of model machine internal storage region by computer equipment as USB DEVICE.
Generally, USB HOST tests and is undertaken by connecting or pull out OTG connecting line by hand, and USB DEVICE is undertaken by connecting or pull out usb line by hand.But when the quantity needing to carry out USB HOST and the USB DEVICE tested is more, even need manually carry out the connection of up to ten thousand times or pull out the operation of usb line, the dull so frequent operation repeated again makes the test duration longer, and efficiency is lower.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of test macro and device of simulating USB hot plug process, improves the efficiency that USB DEVICE and USB HOST tests.
For solving the problems of the technologies described above, the invention provides a kind of test macro of simulating USB hot plug process, comprise USB external equipment, model machine and computing machine, this test macro also comprises proving installation, and this proving installation comprises a USB DEVICE converting interface, the 2nd USB DEVICE converting interface, a USB HOST converting interface, the 2nd USB HOST converting interface, the first speed-sensitive switch, the second speed-sensitive switch, load module and control module.2nd USB HOST converting interface is connected with this USB external equipment, and is connected with this first speed-sensitive switch, the 2nd USB HOST converting interface successively.2nd USB HOST converting interface is connected with the USB HOST interface of this model machine.2nd USB DEVICE converting interface is connected with the USB interface of this computing machine, and is connected with this second speed-sensitive switch, a USB DEVICE converting interface successively.One USBDEVICE converting interface is also connected with the USB DEVICE interface of this model machine, and this load module is connected with control module, and this control module is also connected with this first speed-sensitive switch and the second speed-sensitive switch respectively.
This load module is used for the setting that testing time is carried out in the setting of operation response personnel.
The testing time that this control module is used for setting according to this load module controls this first speed-sensitive switch or the second speed-sensitive switch break-make, to control the connection of a USB HOST converting interface and the 2nd USB HOST converting interface or disconnection or to control connection or the disconnection of a USB DEVICE converting interface and the 2nd USB DEVICE converting interface.
The present invention also provides a kind of proving installation of simulating USB hot plug process, and this proving installation comprises a USB DEVICE converting interface, the 2nd USB DEVICE converting interface, a USB HOST converting interface, the 2nd USB HOST converting interface, the first speed-sensitive switch, the second speed-sensitive switch, load module and control module.2nd USB HOST converting interface is used for being connected with a USB external equipment, and is connected with this first speed-sensitive switch, the 2nd USB HOST converting interface successively.2nd USB HOST converting interface is used for being connected with the USB HOST interface of a model machine.2nd USB DEVICE converting interface is used for being connected with the USB interface of a computing machine, and is connected with this second speed-sensitive switch, a USB DEVICE converting interface successively.One USBDEVICE converting interface is also connected with the USB DEVICE interface of this model machine, and this load module is connected with control module, and this control module is also connected with this first speed-sensitive switch and the second speed-sensitive switch respectively.
This load module is used for the setting that testing time is carried out in the setting of operation response personnel.
The testing time that this control module is used for setting according to this load module controls this first speed-sensitive switch or the second speed-sensitive switch break-make, to control the connection of a USB HOST converting interface and the 2nd USB HOST converting interface or disconnection or to control connection or the disconnection of a USB DEVICE converting interface and the 2nd USB DEVICE converting interface.
A kind of test macro and device of simulating USB hot plug process provided by the invention, by controlling the control realizing the connection/disconnection of USB HOST converting interface and the connection/port of USBDEVICE converting interface to the break-make of a pair speed-sensitive switch, thus simulation USB HOST test and USBDEVICE test.Utilize the present invention, by the manual operation connecting or extract USB line or OTG line of the break-make control simulation of speed-sensitive switch, thus improve the efficiency of USB HOST and USB DEVICE test.
Accompanying drawing explanation
Fig. 1 is a kind of structural representation of simulating the test macro of USB hot plug process in embodiment of the present invention.
Label declaration
Test macro 1
Proving installation 10
One USB DEVICE converting interface 11
2nd USB DEVICE converting interface 12
One USB HOST converting interface 13
2nd USB HOST converting interface 14
First speed-sensitive switch 15
Second speed-sensitive switch 16
Load module 17
Control module 18
Display module 19
USB external equipment 20
Model machine 30
USB HOST interface 31
USB DEVICE interface 32
Computing machine 40
USB interface 41
Embodiment
By describing technology contents of the present invention, structural attitude in detail, realized object and effect, accompanying drawing is coordinated to be explained in detail below in conjunction with embodiment.
Please refer to Fig. 1, be structural representation of simulating the test macro of USB hot plug process a kind of in embodiment of the present invention, this system 1 comprises proving installation 10, USB external equipment 20, model machine 30 and computing machine 40.Wherein, this proving installation 10 comprises USB DEVICE converting interface the 11, the 2nd USB DEVICE converting interface the 12, the one USB HOST converting interface the 13, the 2nd USB HOST converting interface 14, first speed-sensitive switch 15, second speed-sensitive switch 16, load module 17, control module 18 and display module 19.In the present embodiment, this display module 19 is LCD MODULE, and this control module 18 is the microcontroller of a MUC, and this load module 17 can be keyboard.
Wherein, 2nd USB HOST converting interface 14 is connected with this USB external equipment 20, and be connected with the first speed-sensitive switch 15, the 2nd USB HOST converting interface 14 successively, the 2nd USB HOST converting interface 14 is connected with the USB HOST interface 31 of a model machine 30 by USB extended line.2nd USB DEVICE converting interface 12 holds USB interface 41 to be connected by USB extended line with the PC of this computing machine 40, and be connected with the second speed-sensitive switch 16, a USB DEVICE converting interface 11 successively, a USB DEVICE converting interface 11 is also connected with the USB DEVICE interface 32 of this model machine 30 by USB extended line.This load module 17 is connected successively with control module 18 and display module 19, and this control module 18 is also connected with this first speed-sensitive switch 15 and the second speed-sensitive switch 16 respectively.
It is as described below that the test macro 1 of this simulation USB hot plug process carries out the principle of work that USB HOST and USB DEVICE tests.
When needs are tested USB HOST, tester sets the number of times needing test by load module 17, this control module 18 controls this first speed-sensitive switch 15 break-make rapidly according to the testing time that load module 17 sets, to control connection or the disconnection of a USB HOST converting interface 13 and the 2nd USB HOST converting interface 14, and then the operation connecting or disconnect in simulation USB HOST test.
When needs are tested USB DEVICE, tester sets the number of times needing test by load module 17, this control module 18 controls this second speed-sensitive switch 16 break-make rapidly according to the testing time that load module 17 sets, to control connection or the disconnection of a USB DEVICE converting interface 11 and the 2nd USB DEVICE converting interface 12, and then the operation connecting or disconnect in simulation USB DEVICE test.
In the present embodiment, the number of times of needs test of this display module 19 for showing tester and being set by load module 17.
Further, the test macro 1 utilizing this USB to simulate the process of hot plug can carry out the test of USBDEVICE and USB HOST simultaneously, is independent of each other.
A kind of test macro and device of simulating USB hot plug process provided by the invention, by controlling the control realizing the connection/disconnection of USB HOST converting interface and the connection/port of USBDEVICE converting interface to the break-make of a pair speed-sensitive switch, thus simulation USB HOST test and USBDEVICE test.Utilize the present invention, by the manual operation connecting or extract USB line or OTG line of the break-make control simulation of speed-sensitive switch, thus improve the efficiency of USB HOST and USB DEVICE test.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (6)

1. simulate the test macro of USB hot plug process for one kind, comprise USB external equipment, model machine and computing machine, it is characterized in that, described test macro also comprises proving installation, and described proving installation comprises a USB DEVICE converting interface, the 2nd USB DEVICE converting interface, a USB HOST converting interface, the 2nd USB HOST converting interface, the first speed-sensitive switch, the second speed-sensitive switch, load module and control module; Described 2nd USB HOST converting interface is connected with described USB external equipment, and is connected with described first speed-sensitive switch, the 2nd USBHOST converting interface successively; Described 2nd USB HOST converting interface is connected with the USBHOST interface of described model machine; Described 2nd USB DEVICE converting interface is connected with the USB interface of described computing machine, and is connected with described second speed-sensitive switch, a USB DEVICE converting interface successively; A described USB DEVICE converting interface is also connected with the USB DEVICE interface of described model machine, and described load module is connected with control module, and described control module is also connected with described first speed-sensitive switch and the second speed-sensitive switch respectively;
Described load module is used for the setting that testing time is carried out in the setting of operation response personnel;
The testing time that described control module is used for setting according to described load module controls described first speed-sensitive switch or the second speed-sensitive switch break-make, to control the connection of a described USB HOST converting interface and the 2nd USB HOST converting interface or disconnection or to control connection or the disconnection of a described USBDEVICE converting interface and the 2nd USB DEVICE converting interface.
2. the test macro of simulation USB hot plug process as claimed in claim 1, it is characterized in that, described proving installation also comprises display module, for showing the testing time of described load module setting.
3. the test macro of simulation USB hot plug process as claimed in claim 1 or 2, it is characterized in that, described control module is the microcontroller of MCU.
4. simulate the proving installation of USB hot plug process for one kind, it is characterized in that, described proving installation comprises a USB DEVICE converting interface, the 2nd USB DEVICE converting interface, a USB HOST converting interface, the 2nd USB HOST converting interface, the first speed-sensitive switch, the second speed-sensitive switch, load module and control module; Described 2nd USB HOST converting interface is used for being connected with a USB external equipment, and is connected with described first speed-sensitive switch, the 2nd USB HOST converting interface successively; Described 2nd USB HOST converting interface is used for being connected with the USB HOST interface of a model machine; Described 2nd USB DEVICE converting interface is used for being connected with the USB interface of a computing machine, and is connected with described second speed-sensitive switch, a USBDEVICE converting interface successively; A described USB DEVICE converting interface is also connected with the USB DEVICE interface of described model machine, and described load module is connected with control module, and described control module is also connected with described first speed-sensitive switch and the second speed-sensitive switch respectively;
Described load module is used for the setting that testing time is carried out in the setting of operation response personnel;
The testing time that described control module is used for setting according to described load module controls described first speed-sensitive switch or the second speed-sensitive switch break-make, to control the connection of a described USB HOST converting interface and the 2nd USB HOST converting interface or disconnection or to control connection or the disconnection of a described USBDEVICE converting interface and the 2nd USB DEVICE converting interface.
5. the proving installation of simulation USB hot plug process as claimed in claim 4, it is characterized in that, described proving installation also comprises display module, for showing the testing time of described load module setting.
6. the proving installation of the simulation USB hot plug process as described in claim 4 or 5, is characterized in that, described control module is the microcontroller of MCU.
CN201410153282.9A 2014-04-16 2014-04-16 The test macro of simulation USB hot plug process and device Active CN103885868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410153282.9A CN103885868B (en) 2014-04-16 2014-04-16 The test macro of simulation USB hot plug process and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410153282.9A CN103885868B (en) 2014-04-16 2014-04-16 The test macro of simulation USB hot plug process and device

Publications (2)

Publication Number Publication Date
CN103885868A CN103885868A (en) 2014-06-25
CN103885868B true CN103885868B (en) 2015-08-26

Family

ID=50954776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410153282.9A Active CN103885868B (en) 2014-04-16 2014-04-16 The test macro of simulation USB hot plug process and device

Country Status (1)

Country Link
CN (1) CN103885868B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589781B (en) * 2014-10-24 2019-01-22 惠州市德赛西威汽车电子股份有限公司 A kind of vehicle audio simulation USB plug automated testing method
CN104932962B (en) * 2015-06-05 2017-09-05 惠州Tcl移动通信有限公司 A kind of USB plugs test system and its method
TWI580968B (en) * 2015-12-09 2017-05-01 英業達股份有限公司 Testing Tool and Testing Method of Connection of Universal Serial Bus Type C (USB Type C) Port
CN105868065A (en) * 2016-04-25 2016-08-17 浪潮电子信息产业股份有限公司 Method for testing hot plugging parts of whole SmartRack
CN107656882A (en) * 2016-07-25 2018-02-02 深圳市中兴微电子技术有限公司 A kind of USB controller verification method, system and equipment
CN107423182A (en) * 2017-04-25 2017-12-01 广州御融通电子设备开发有限公司 One kind simulation USB hot drawing plug devices
CN108387793A (en) * 2017-12-29 2018-08-10 惠州市德赛西威汽车电子股份有限公司 A kind of automatization test system and method for external equipment hot plug
CN109359079B (en) * 2018-10-16 2021-05-14 福建实达电脑设备有限公司 Simulation plug-in device and method for automatically maintaining USB connection
TWI744692B (en) * 2019-09-11 2021-11-01 英業達股份有限公司 Hard disk examination method and system of the same
CN113820583B (en) * 2020-06-19 2024-02-27 北京君正集成电路股份有限公司 USB OTG test method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092733A (en) * 2011-10-31 2013-05-08 鸿富锦精密工业(深圳)有限公司 Testing device and testing method for simulating plugging and unplugging actions

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393588B1 (en) * 1998-11-16 2002-05-21 Windbond Electronics Corp. Testing of USB hub
JP2003518892A (en) * 1999-12-24 2003-06-10 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Emulation of device disconnection
US8850082B2 (en) * 2010-08-30 2014-09-30 Qualcomm Incorporated Virtual USB compound device enumeration
CN202394228U (en) * 2011-12-21 2012-08-22 北京握奇数据系统有限公司 USB (Universal Serial Bus) equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092733A (en) * 2011-10-31 2013-05-08 鸿富锦精密工业(深圳)有限公司 Testing device and testing method for simulating plugging and unplugging actions

Also Published As

Publication number Publication date
CN103885868A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103885868B (en) The test macro of simulation USB hot plug process and device
CN101793931B (en) High-pressure transducer testing system
CN102968377A (en) Virtual machine technique based airborne software system testing general platform
CN101989390A (en) Multi-core embedded type teaching and scientific research platform
CN101604275A (en) BIOS test macro and method of testing thereof
CN201069618Y (en) PLC simulation teaching device
CN203191662U (en) Liquid crystal display module test system
CN108153624B (en) Test circuit board suitable for NGFF slot
CN101858947A (en) Virtual instrument bus type multifunctional maintenance test device
CN204303198U (en) Portable simulated teaching instrument
CN204808311U (en) Keyboard and mouse analog system based on PCI
CN202075919U (en) Serial bus experimental device
CN202677381U (en) 1553B treaty simulation tester
CN204695300U (en) A kind of computer software testing device
CN205301484U (en) Many testboards system of pencil conduction testing
CN202503487U (en) Signal generator used in experimental teaching of electrical automation specialty
CN202383571U (en) FPC (flexible printed circuit board) output interface based main board
CN204667732U (en) A kind of NAND gate circuit demonstrating experiment device
CN203689732U (en) Automotive electronic networked fault simulation assessment apparatus
CN205301522U (en) Digit NULL tester
CN202771697U (en) Experimental platform
CN104599569A (en) Demonstrating experiment device for NAND gate circuit
CN204191049U (en) Modularization human-machine interaction data acquisition terminal
CN203982603U (en) Vocational education practice teaching checking device
CN202196393U (en) Device for testing server basic input/ output system (BIOS) and burning firmware

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Patentee before: Fuzhou Rockchip Semiconductor Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.