CN101793934B - Universal anti-drawing test equipment and test method thereof - Google Patents

Universal anti-drawing test equipment and test method thereof Download PDF

Info

Publication number
CN101793934B
CN101793934B CN 201019091006 CN201019091006A CN101793934B CN 101793934 B CN101793934 B CN 101793934B CN 201019091006 CN201019091006 CN 201019091006 CN 201019091006 A CN201019091006 A CN 201019091006A CN 101793934 B CN101793934 B CN 101793934B
Authority
CN
China
Prior art keywords
test
power supply
equipment
interface
devices
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
CN 201019091006
Other languages
Chinese (zh)
Other versions
CN101793934A (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.)
Wuhan Tianyu Information Industry Co Ltd
Original Assignee
Wuhan Tianyu Information Industry 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 Wuhan Tianyu Information Industry Co Ltd filed Critical Wuhan Tianyu Information Industry Co Ltd
Priority to CN 201019091006 priority Critical patent/CN101793934B/en
Publication of CN101793934A publication Critical patent/CN101793934A/en
Application granted granted Critical
Publication of CN101793934B publication Critical patent/CN101793934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides universal anti-drawing test equipment which is connected to a computer for performing an anti-drawing test on equipment to be tested and a test method thereof. The anti-drawing test equipment comprises a USB switching module, an output power control module, a PS2 power supply interface and a USB peripheral equipment interface, wherein the anti-drawing test equipment can be connected to the computer through the USB switching module; the output power control module is connected to the USB switching module; the equipment to be tested is optionally connected to the PS2 power supply interface or the USB peripheral equipment interface; and the output power control module controls power output to the PS2 power supply interface and the USB peripheral equipment interface according to a received computer command. By using the PS2 power supply interface and the USB peripheral equipment interface, the universalization of the anti-drawing test equipment is realized and special anti-drawing test equipment does not need developing according to different needs of different equipment to be tested. The problem of the compatibility of special equipment and the problem of electrical property deviation caused by reconstructing the special equipment can be solved after the anti-drawing test equipment is universalized.

Description

Universal anti-drawing test equipment and method of testing thereof
[technical field]
The present invention relates to a kind of general anti-drawing test equipment and the method for using this testing apparatus to test.
[background technology]
Some possess the electronic equipment of memory function, such as smart card, mobile phone, PDA etc., usually all need to continue the supply power supply, but under abnormal conditions, electric power supply may occur and unusually interrupt, require this moment the data of electronic equipment storage can maintain a kind of predetermined state, expendable fault can not occur.For this unusual power interrupt condition of analog simulation, usually the performed various action needs of equipment are prevented pulling out test, namely carry out in the process of certain operation or instruction at equipment, cut off the power supply at random, then whether checkout facility can normally recover.Thisly can realize the anti-power-supply device that pulls out test test has very important significance for the electronic storage device actual availability.
Electronic storage device usually needs stable power supply to supply with, but also needs consideration equipment occurring in the situation of unusual power breakdown when design otherwise occur damaging, and can recover reliably.Usually these equipment of checking are to anti-satisfying property of pulling out designing requirement, need some special-purpose equipment, such as the IC smart card, need the special anti-smart card facility that pull out of design to be implemented in the scene of coming analog card unusually to be pulled out in the APDU reciprocal process, for the SD storage card, also need to design the special anti-SD of pulling out card reader and simulate the scene that the SD storage card is removed suddenly equally.
Obviously, for the special anti-drawing test equipment of a certain specific products exploitation not only needs extra expense, and some equipment will be transformed into one and anti-pull out equipment and also have a lot of difficulties, and the change that equipment imitated or that transform also can bring other electrical specification sometimes causes the deviation of test result.
[summary of the invention]
In view of this, be necessary to provide a kind of anti-proving installation that pulls out that can be general.
In view of this, also be necessary to provide a kind of above-mentioned anti-method that proving installation is tested of pulling out that adopts.
A kind ofly be connected to computing machine prevents pulling out test to Devices to test universal anti-drawing test equipment, described anti-drawing test equipment comprises the USB interconnecting module, the out-put supply control module, PS2 power supply interface and USB Peripheral Interface, described anti-drawing test equipment is connected to computing machine by above-mentioned USB interconnecting module, described out-put supply control module is connected to described USB interconnecting module, Devices to test selectively is connected to described PS2 power supply interface or described USB Peripheral Interface, described out-put supply control module exports the power supply of described PS2 power supply interface and described USB Peripheral Interface to according to the computer instruction control that receives, described out-put supply control module by described PS2 power supply interface or/and described USB Peripheral Interface realize the unexpected connection of Devices to test power supply or cut off the power supply suddenly.
A kind of method of utilizing above-mentioned universal anti-drawing test equipment to prevent pulling out test may further comprise the steps: (a)
According to the interface of Devices to test, Devices to test is accessed described PS2 power supply interface or described USB Peripheral Interface, access described anti-drawing test equipment; (b) described out-put supply control module receives the test instruction of the computing machine that connects by described USB interconnecting module; (c) described out-put supply control module disconnects to the power supply of the Devices to test of described PS2 power supply interface or described USB Peripheral Interface; And (d)
Described out-put supply control module recovery is connected to the power supply of the Devices to test of described PS2 power supply interface or described USB Peripheral Interface.
Preferably, further comprising the steps of between described step (b) and the step (c): (e) described out-put supply control module judges whether to arrive setting-up time; If to setting-up time then carry out step (c); Otherwise repeating step (e).
Preferably, described step (d) is further comprising the steps of afterwards: the computer access Devices to test that (f) connects by described USB interconnecting module checks whether Devices to test is normal; If undesired then send miscue.
Preferably, described step (f) if in Devices to test normal, then carry out following steps: (g) judge whether to repeat the anti-test of pulling out; If it is return step (b); Otherwise finish.
The present invention can realize need not the universalization of anti-drawing test equipment to develop special anti-drawing test equipment according to the different demands of different Devices to tests by PS2 power supply interface and USB Peripheral Interface.Can solve the compatibility issue of Special Equipment after the anti-drawing test equipment universalization, and the electrical specification offset issue brought of Special Equipment house of correction.
[description of drawings]
Fig. 1 is the structure principle chart of preferred embodiment universal anti-drawing test equipment of the present invention.
Fig. 2 is that out-put supply control module and the Devices to test among Fig. 1 plugging the sequential chart of test.
Fig. 3 is the workflow diagram of the universal anti-drawing test equipment among Fig. 1.
[embodiment]
For overcoming the problems that anti-drawing test equipment is imitated or house of correction occurs, the present invention proposes a kind of power supply based on general device and supplies with scheme, is implemented in a kind of solution of the universal anti-drawing test on the general device.
As shown in fig. 1, preferred embodiment universal anti-drawing test equipment 100 of the present invention can be connected to computing machine 200 (hereinafter to be referred as PC 200), is used for the performance of test Devices to test 300,400 in the situation of suddenly outage.
This universal anti-drawing test equipment 100 comprises USB interconnecting module 1, out-put supply control module 2, PS2 power supply interface 3 and USB Peripheral Interface 4.USB interconnecting module 1 is used for realizing this equipment access is arrived PC200, and out-put supply control module 2 is connected to USB interconnecting module 1, provides the power supply input thereby PC 200 can be out-put supply control module 2.Out-put supply control module 2 is connected with respectively PS2 power supply interface 3 and USB Peripheral Interface 4.The data transmission that the peripheral hardware to be measured 300 that connects from USB Peripheral Interface 3 and PC are 200 is also transmitted via USB interconnecting module 1.Out-put supply control module 2 can be controlled by PC 200, thereby realize the control to power supply output, so that obtain the PS2 power supply interface 3 of input power and the break-make that USB Peripheral Interface 4 can be realized power supply as required from out-put supply control module 2, test respectively the performance situation of Devices to test 300,400 under suddenly outage with this.
This prevents that pulling out Devices to test 100 also provides USB Peripheral Interface 4, thereby the Devices to test 400 that is linked into PC 200 by USB interface both can directly be linked into PC, also can realize simultaneously the on/off to this USB interface Devices to test 400, similar USB card reader, such as the PC/SC card reader, the SD card reader realizes the break-make control of power supply under the control of this equipment, can finish card such as smart card in the USB card reader, and SD card anti-pulled out performance test.
Simultaneously, this anti-drawing test equipment 100 is owing to provide PS2 power supply interface 3, similarly under the control of this equipment, can realize the break-make of power supply by the Devices to tests such as card reader 300 of PS2 interface power taking, thereby finish smart card in the card reader anti-be pulled out performance test.
Behind this anti-drawing test equipment 100 access PC 200, can be by PC 200 identification controls by driver, host computer can send following three steering orders and realize anti-operation: the void DelayPowerDown (int n_us) that pulls out; Void PowerDown (); Void PowerOn ().
After PC 200 receives void DelayPowerDown (int n_us) instruction, after the experience some time, make PS2 power supply interface 3 and 4 times electricity of USB Peripheral Interface.
After PC 200 receives void PowerDown () instruction, make immediately 4 times electricity of PS2 power supply interface 3 and USB Peripheral Interface.
After PC 200 receives void PowerOn () instruction, PS2 power supply interface 3 and USB Peripheral Interface 4 are powered on.
For the Devices to test 400 that is linked into PC 200 by USB, the USB Peripheral Interface 4 that provides by anti-drawing test equipment 100 when preventing pulling out test is transferred to PC 200, and Devices to test 400 can by transparent identification, not be affected.
For some Devices to tests 300 by the PS2 power supply, such as serial port reader and writer, can supply power supply by the PS2 power supply interface 3 that this equipment provides, thereby realize outage control.
Out-put supply control module 2 and Devices to test 300 or 400 the time program process as shown in Figure 2, the principle of work of this anti-drawing test equipment 100 is exactly to arrive Devices to test 300 or 400 certain time point in execution process instruction by the sustainable supply time of controlling power supply, such as the erasable moment of Flash, in this moment point, outage by power control unit so that Devices to test 300 or 400 quit work immediately, thereby simulation is a typical hot drawing scene out, with the reliability of this judgment device instruction in the abnormal power-down situation.
When above-mentioned anti-drawing test equipment 100 prevents pulling out test at needs, can directly receive on the PC 200 by the special interconnecting module 1 of the USB on it.Subsequently, according to the interface type of equipment 300 to be tested or 400, Devices to test 300 or 400 is linked on the PS2 power supply interface 3 or USB Peripheral Interface of anti-drawing test equipment 100.For further specifying this anti-principle of work of pulling out Devices to test 100, please in conjunction with reference to figure 3.Be the workflow of anti-drawing test equipment 100 in the universal anti-drawing test shown in Fig. 3.
When Devices to test 300 or 400 being prevented pulling out test, in step S1, PC 200 sends the delay cut-off steering order for anti-drawing test equipment 100.This instruction DelayPowerDown is so that this equipment begins timing.
In step S2, PC 200 is through preventing that pulling out equipment 100 begins to carry out the instruction of Devices to test 300 or 400 being prevented pulling out test.
In step S3, in the execution process instruction of Devices to test 300 or 400, energy supply control module 2 continues timing.
When timing arrived the parameter value of definition, in step S4, out-put supply control module 2 disconnects to be supplied with the power supply of Devices to test 300 or 400, thereby so that Devices to test 300 or 400 because accident power-off stops current instruction immediately carries out.
What step S5 simulated is exactly the anti-abnormal power-down scene of pulling out in the test of once command.
In step S6, PC 200 sends the PowerOn instruction, so that the power supply that energy supply control module 2 recovers Devices to test 300 and 400.
Whether in step S7, PC 200 accesses Devices to test 300 or 400 again, normal to check Devices to test 300 or 400 state under the abnormal power-down scene.If Devices to test 300 or 400 shapes are normally then enter subsequently S8 step.If Devices to test 300 or 400 states are undesired, PC 200 output errors promptings (step S9), test can stop.
In step S8, PC 200 judges whether anti-pulling out needs to continue, so that the time point of outage can cover each functional procedure in Devices to test 300 or 400 execution process instructions according to Devices to test 300 or the length of 400 instruction times.
The anti-proving installation 100 that pulls out of the present invention provides a kind of general power supply to supply with control program, Devices to test 300 or 400, by preventing that pulling out proving installation 100 is connected to PC 200, and provide power supply to supply with by anti-drawing test equipment 100, we's anti-drawing test equipment 100 can be accepted the steering order that PC 200 provides, by the power supply of rule disconnection Devices to test 300 or 400, thus the hot drawing scene of real simulation equipment.
The present invention can realize the universalization of anti-drawing test equipment, need not to develop special anti-drawing test equipment according to the different demands of different Devices to tests.Can solve the compatibility issue of Special Equipment after the anti-drawing test equipment universalization, and the electrical specification offset issue brought of Special Equipment house of correction.The present invention can reappear more real abnormal power-down use scenes.Provide special unified DLL (dynamic link library), so that anti-exploitation of pulling out test is easier.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement to enforcement of the present invention, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (5)

1. one kind is connected to computing machine prevents pulling out test to Devices to test universal anti-drawing test equipment, it is characterized in that: described anti-drawing test equipment comprises the USB interconnecting module, the out-put supply control module, PS2 power supply interface and USB Peripheral Interface, described anti-drawing test equipment is connected to computing machine by above-mentioned USB interconnecting module, described out-put supply control module is connected to described USB interconnecting module, Devices to test selectively is connected to described PS2 power supply interface or described USB Peripheral Interface, described out-put supply control module exports the power supply of described PS2 power supply interface and described USB Peripheral Interface to according to the computer instruction control that receives, described out-put supply control module by described PS2 power supply interface or/and described USB Peripheral Interface realize the unexpected connection of Devices to test power supply or cut off the power supply suddenly.
2. method of utilizing universal anti-drawing test equipment as claimed in claim 1 to prevent pulling out test may further comprise the steps:
(a) according to the interface of Devices to test, Devices to test is accessed described PS2 power supply interface or described USB Peripheral Interface, access described anti-drawing test equipment;
(b) described out-put supply control module receives the test instruction of the computing machine that connects by described USB interconnecting module;
(c) described out-put supply control module disconnects to the power supply of the Devices to test of described PS2 power supply interface or described USB Peripheral Interface; And
(d) described out-put supply control module recovery is connected to the power supply of the Devices to test of described PS2 power supply interface or described USB Peripheral Interface.
3. method of testing according to claim 2 is characterized in that: further comprising the steps of between described step (b) and the step (c):
(e) described out-put supply control module judges whether to arrive setting-up time;
If to setting-up time then carry out step (c); Otherwise repeating step (e).
4. method of testing according to claim 3, it is characterized in that: described step (d) is further comprising the steps of afterwards:
(f) the computer access Devices to test that connects by described USB interconnecting module checks whether Devices to test is normal;
If undesired then send miscue.
5. method of testing according to claim 4 is characterized in that: described step (f) if in Devices to test normal, then carry out following steps:
(g) judge whether to repeat the anti-test of pulling out;
If it is return step (b); Otherwise finish.
CN 201019091006 2010-02-02 2010-02-02 Universal anti-drawing test equipment and test method thereof Active CN101793934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201019091006 CN101793934B (en) 2010-02-02 2010-02-02 Universal anti-drawing test equipment and test method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201019091006 CN101793934B (en) 2010-02-02 2010-02-02 Universal anti-drawing test equipment and test method thereof

Publications (2)

Publication Number Publication Date
CN101793934A CN101793934A (en) 2010-08-04
CN101793934B true CN101793934B (en) 2013-03-20

Family

ID=42586739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201019091006 Active CN101793934B (en) 2010-02-02 2010-02-02 Universal anti-drawing test equipment and test method thereof

Country Status (1)

Country Link
CN (1) CN101793934B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067617A (en) * 2011-10-18 2013-04-24 鼎桥通信技术有限公司 Test terminal driving method and apparatus thereof, and terminal test method and system thereof
CN103678067A (en) * 2013-12-19 2014-03-26 大唐微电子技术有限公司 Test method and device for intelligent card power failure and tested device
CN104932962B (en) * 2015-06-05 2017-09-05 惠州Tcl移动通信有限公司 A kind of USB plugs test system and its method

Also Published As

Publication number Publication date
CN101793934A (en) 2010-08-04

Similar Documents

Publication Publication Date Title
CN102708031B (en) A kind of method of quick location failure memory
CN104317690B (en) A kind of Memory Demand Scrub method of testing based on ITP instrument
CN100492309C (en) Method and host equipment for implementing virtual hot-swap
CN107153591B (en) Detection method and device for power supply architecture of memory
CN103281226B (en) A kind of MVB device address configuration system and method based on TCN
CN103699112B (en) Based on avionics Autonomous test Authentication devices and the verification method thereof of I/O signal fault simulation
CN102981093A (en) Test system for central processing unit (CPU) module
CN105353755B (en) Multi-functional fault injection device based on PXI buses
CN101793934B (en) Universal anti-drawing test equipment and test method thereof
CN105354116A (en) Hot-plug detection method, apparatus, system and mobile terminal
CN103810069A (en) Verification platform and verification method for ARINC659 bus fault-tolerant circuit
CN108009062A (en) A kind of enterprise-level SSD system power failures function test method, apparatus and system
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN107678997A (en) Hot-plug method, system, device and the readable storage medium storing program for executing of PCIE plug-in cards
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN104635722A (en) Abnormal power failure simulation test device
CN102436413A (en) Debugging system and debugging method of board power supply
CN210666782U (en) System and device for verifying electric energy meter management chip
CN103294837A (en) Method and system for verifying and debugging integrated circuit
CN109947078A (en) Direct fault location unit and its board, real time fail method for implanting, device and equipment
CN103605415A (en) Reset circuit, reset system and method supporting hot plug board card
CN107590045A (en) A kind of method for carrying out hot plug test to EIO boards under linux system
Li et al. Design and realization of HA hot-swap application for CPCI/PXI system
CN102955545A (en) Computer
CN107766183B (en) Disk online and offline method and device based on test mechanism

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model