CN101793934B - Universal anti-drawing test equipment and test method thereof - Google Patents
Universal anti-drawing test equipment and test method thereof Download PDFInfo
- 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
- interface
- devices
- equipment
- 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
Links
Images
Landscapes
- Power Sources (AREA)
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
[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.
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 (4)
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 |
CN110175050B (en) * | 2019-05-29 | 2022-10-14 | 深圳创龙智新科技有限公司 | Peripheral device control method, device, system, electronic device and storage medium |
-
2010
- 2010-02-02 CN CN 201019091006 patent/CN101793934B/en active Active
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 | |
CN100492309C (en) | Method and host equipment for implementing virtual hot-swap | |
CN111339010B (en) | PCIE (peripheral component interface express) equipment hot plug identification method, system and related components | |
CN103699112B (en) | Based on avionics Autonomous test Authentication devices and the verification method thereof of I/O signal fault simulation | |
CN102981093B (en) | Test system for central processing unit (CPU) module | |
CN105353755B (en) | Multi-functional fault injection device based on PXI buses | |
CN102540060A (en) | Digital integrated circuit chip testing system | |
CN104317690B (en) | A kind of Memory Demand Scrub method of testing based on ITP instrument | |
CN101793934B (en) | Universal anti-drawing test equipment and test method thereof | |
CN103281226B (en) | A kind of MVB device address configuration system and method based on TCN | |
CN105095037A (en) | Wire card, backboard of wire card and wire card test method | |
CN104932962A (en) | USB (Universal Serial Bus) plug testing system and method thereof | |
CN109117371A (en) | A kind of fault filling method improving period BIT verifying ability | |
CN111881074B (en) | Electronic system, host device and control method | |
CN110502464A (en) | A kind of hot-swappable processing method, device, equipment, system and readable storage medium storing program for executing | |
CN109947078A (en) | Direct fault location unit and its board, real time fail method for implanting, device and equipment | |
CN113204456A (en) | Test method, tool, device and equipment for VPP interface of server | |
CN116340073B (en) | Test method, device and system | |
CN111475352A (en) | JBOD interface testing device and method | |
CN103294837A (en) | Method and system for verifying and debugging integrated circuit | |
CN102540908B (en) | General simulator for satellite attitude and track control subsystem closed-loop tests and method for general simulator | |
CN104598415A (en) | Universal serial bus (USB) test fixture | |
Li et al. | Design and realization of HA hot-swap application for CPCI/PXI system | |
CN116148627A (en) | Detection system and method for PCIe CEM connection interface in circuit board | |
CN102955545A (en) | Computer |
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 |