CN102236617A - Control method and equipment under test scene of terminal equipment - Google Patents
Control method and equipment under test scene of terminal equipment Download PDFInfo
- Publication number
- CN102236617A CN102236617A CN2011102068522A CN201110206852A CN102236617A CN 102236617 A CN102236617 A CN 102236617A CN 2011102068522 A CN2011102068522 A CN 2011102068522A CN 201110206852 A CN201110206852 A CN 201110206852A CN 102236617 A CN102236617 A CN 102236617A
- Authority
- CN
- China
- Prior art keywords
- terminal equipment
- dut terminal
- driver element
- testing apparatus
- content
- 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.)
- Pending
Links
Images
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
The embodiment of the invention discloses a control method and equipment under a test scene of terminal equipment. By using the technical proposal of the embodiment of the invention, in the event of needing to power off tested terminal equipment, test equipment powers off the tested terminal equipment by directly cutting off power supply of the tested terminal equipment so as to power off the tested terminal equipment; therefore, because of abnormal conditions, such as uncompleted support of the tested terminal equipment to the AT (Attention) instruction, no response and no power-off, the problem that a test process cannot be carried out normally in the event of powering off the tested terminal equipment depending on the AT instruction can be avoided. The processing efficiency of an automation test process and the operation control accuracy can be improved.
Description
Technical field
The present invention relates to communication technical field, control method and equipment under particularly a kind of terminal device test scene.
Background technology
AT is that Attention(notes), the AT instruction is from terminal device (Terminal Equipment, TE) or data terminal equipment (Data Terminal Equipment, DTE) to terminal adapter (Terminal Adapter, TA) or data circuit termination equipment (Data Circuit Terminal Equipment DCE) sends.By TA, TE sends AT and instructs and control transfer table (Mobile Station, function MS) is with GSM(Global System of Mobile communication, global system for mobile communications) Network and carry out alternately.The control of aspects such as the user can call out by the AT instruction, note, phone directory, data service, fax.
Under the test scene of the communications field, testing apparatus can be instructed and realizes control to dut terminal equipment can significantly improving testing efficiency so equally by sending AT for dut terminal equipment.
In concrete test scene, testing apparatus is by USB(Universal Serial BUS, USB (universal serial bus)) to the dut terminal power supply, and instruct dut terminal equipment is operated control by sending AT.
As shown in Figure 1, the USB between testing apparatus and the dut terminal equipment comprises four circuits, is specially: a power lead VCC, two data line D+(Data+) and D-(Data-), and a ground wire GND(Grand).
When testing apparatus need be controlled dut terminal equipment, can send AT by the D+ line of USB and instruct to dut terminal equipment.
For example, when testing apparatus requires the shutdown of dut terminal equipment, can send the AT instruction that content is AT+CFUN=0 (the AT instruction of indication shutdown) for dut terminal equipment by USB, after dut terminal equipment receives the AT instruction of indication shutdown, return the OK response, and close.
In the process that realizes the embodiment of the invention, the applicant finds that there is following problem at least in prior art:
Present many terminal devices are also not really perfect to the support situation of AT instruction, particularly shutdown command.
As shown in Figure 2, synoptic diagram for a kind of terminal device testing process of using the prior art scheme, when testing apparatus needs the shutdown of dut terminal equipment, sending AT by USB instructs to dut terminal equipment, but, when dut terminal equipment is received the AT order, if do not return the OK response, though perhaps returned the OK response, dut terminal equipment is shutdown not, will cause normal testing process to go on, the efficient of automatic test is had a greatly reduced quality, and, in a single day enter abnormality in the test process, can only adopt the way of manual intervention.
The transmitting-receiving of the power supply of dut terminal equipment and AT instruction is all finished by USB, sent the AT instruction of shutdown when testing apparatus, when but dut terminal equipment does not respond, need artificial plug USB connecting line, such processing need arrange the special messenger to operate, reduce testing efficiency, influenced the effect of automatic test.
Summary of the invention
The embodiment of the invention provides control method and the equipment under a kind of terminal device test scene, solves in the prior art the incomplete problem of dut terminal equipment shutdown controlling mechanism.
For achieving the above object, the embodiment of the invention provides the control method under a kind of terminal device test scene on the one hand, may further comprise the steps at least:
When needs were closed dut terminal equipment, the driver element of testing apparatus received the shutdown Indication message;
Described driver element stops to described dut terminal power devices, so that the shutdown of described dut terminal equipment.
On the other hand, the embodiment of the invention also provides a kind of testing apparatus, is used under test scene the dut terminal testing equipment is comprised control module and driver element at least:
Described control module is used for sending the shutdown Indication message to described driver element when needs are closed described dut terminal equipment;
Described driver element is used for stopping to described dut terminal power devices after receiving described shutdown Indication message, so that the shutdown of described dut terminal equipment.
Compared with prior art, the technical scheme that the embodiment of the invention proposed has the following advantages:
By using the technical scheme of the embodiment of the invention, when testing apparatus is shut down control at needs to dut terminal equipment, directly by cutting off electric power supply to dut terminal equipment, realize the shutdown of dut terminal equipment, thereby, when having avoided relying on the shutdown control of AT instruction carrying out dut terminal equipment, because dut terminal equipment is to the support imperfection of AT instruction, occur not having response, abnormal conditions such as maybe can not shut down, and the situation that causes testing process normally to continue has improved the treatment effeciency of automatic test flow process and the accuracy of operation control.
Description of drawings
Fig. 1 is the USB structural representation between testing apparatus of the prior art and the dut terminal equipment;
Fig. 2 is the synoptic diagram of a kind of terminal device testing process of application prior art scheme;
Fig. 3 is the application scenarios synoptic diagram of the control method under a kind of terminal device test scene of embodiment of the invention proposition;
Fig. 4 is the schematic flow sheet of the terminal device control method under a kind of concrete test scene that the embodiment of the invention proposed;
Fig. 5 is the structural representation of a kind of testing apparatus of embodiment of the invention proposition.
Embodiment
As stated in the Background Art, under the present test scene, normally control by the shutdown of AT instruction carrying out dut terminal equipment, but because dut terminal equipment is perfect inadequately to the support of AT instruction, especially to the AT instruction of shutdown, dut terminal equipment can occur and can not in time respond, and perhaps can not normally carry out situations such as power-off operation, thereby cause normal testing process not carry out smoothly, influence the effect and the efficient of automatic test.
At the problems referred to above, the embodiment of the invention has proposed the control method under a kind of terminal device test scene, when needs shut down control to dut terminal equipment, directly by cutting off electric power supply to dut terminal equipment, realize the shutdown of dut terminal equipment, reach accurately and timely to the shut down purpose of control of dut terminal equipment, improved the treatment effeciency of automatic test flow process and the accuracy of operation control.
As shown in Figure 3, be the schematic flow sheet of the control method under a kind of terminal device test scene that the embodiment of the invention proposed, this method specifically may further comprise the steps:
Step S301, when needs are closed dut terminal equipment, the driver element of testing apparatus receives the shutdown Indication message.
Step S302, described driver element stop to described dut terminal power devices, so that the shutdown of described dut terminal equipment.
After control that dut terminal equipment is shut down, continue the test of sundry item if desired, also need this dut terminal opening of device, therefore, the embodiment of the invention has further proposed corresponding start flow process, and is specific as follows:
When needs were opened described dut terminal equipment, the driver element of described testing apparatus received the start Indication message; Described driver element starts to described dut terminal power devices, so that described dut terminal device power-up.
In above-mentioned treatment scheme, whether need to close dut terminal equipment, specifically judge according to one or more of following rule:
The content of default testing process in rule one, the described testing apparatus.
This rule is so long as in order to mate current automatic test flow process, promptly operate accordingly successively according to corresponding automatic test flow rules.
Under this kind rule, the concrete treatment scheme of testing apparatus is as follows:
The control module of described testing apparatus is discerned the content of described default testing process, determines the content of current test event.
If the content of described test event for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described test event then sends the start Indication message to described driver element for opening dut terminal equipment.
The control messages that rule two, described testing apparatus receive.
This rule is so long as in the automatic test flow process; take into account extraneous manual control operation; for example; Pretesting is worked as in interim termination; perhaps temporary needs is closed situations such as dut terminal equipment; then can realize by the operation that sends control corresponding message to testing apparatus; the control messages here can be the message that directly sends; also can be the message that triggers by the button in the operational test set (pressing the button), the variation of the concrete triggering reason and the form of triggering can't influence protection scope of the present invention.
Under this kind rule, the concrete treatment scheme of testing apparatus is as follows:
When the control module of described testing apparatus receives control messages, discern the content of described control messages;
If the content of described control messages for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described control messages then sends the start Indication message to described driver element for opening dut terminal equipment.
Two kinds of above-mentioned rules can be used separately, also can applied in any combination, and specifically adopt which kind of mode to set according to the actual needs, such variation does not influence protection scope of the present invention.
On the other hand, it is to be noted, for concrete application scenarios, in aforesaid shutdown or start operation, described driver element stops or beginning the operation to described dut terminal power devices, is specially described driver element and stops or beginning to the transmission line of electricity power supply that links to each other with described dut terminal equipment.
Wherein, corresponding to the test scene of using USB, the above-mentioned transmission line of electricity that links to each other with described dut terminal equipment is specially the VCC line in the USB circuit that connects described testing apparatus and described dut terminal equipment.
Certainly; if dut terminal equipment is not to be connected with testing apparatus by the USB circuit; so; corresponding variation also can take place in the particular type of corresponding transmission line of electricity; such as; if testing apparatus is to power to dut terminal equipment by supply line independently; so; in above-mentioned shutdown or the start operation; testing apparatus then need directly to cut off or open this independently the electric power transfer of supply line realize corresponding shutdown or start, such variation does not influence protection scope of the present invention.
Need further be pointed out that; above-mentioned treatment scheme only is to be operating as example with shutdown and start the control corresponding flow process has been described; if also there is similar principle in the control operation of other types; then can use the technical scheme that the embodiment of the invention proposes equally, such variation does not influence protection scope of the present invention.
Compared with prior art, the technical scheme that the embodiment of the invention proposed has the following advantages:
By using the technical scheme of the embodiment of the invention, when testing apparatus is shut down control at needs to dut terminal equipment, directly by cutting off electric power supply to dut terminal equipment, realize the shutdown of dut terminal equipment, thereby, when having avoided relying on the shutdown control of AT instruction carrying out dut terminal equipment, because dut terminal equipment is to the support imperfection of AT instruction, occur not having response, abnormal conditions such as maybe can not shut down, and the situation that causes testing process normally to continue has improved the treatment effeciency of automatic test flow process and the accuracy of operation control.
Below, the application scenarios in conjunction with concrete describes the technical scheme that the embodiment of the invention proposed.
In order to make things convenient for explanation, in following examples, be connected by USB between testing apparatus and the dut terminal equipment, VCC line is wherein realized electric power supply.
As shown in Figure 4, be the schematic flow sheet of the terminal device control method under a kind of concrete test scene that the embodiment of the invention proposed.
Be connected by USB with dut terminal equipment in testing apparatus, and after finishing initialization, carry out testing procedure 1, testing procedure 2 successively ... when carrying out testing procedure n, testing apparatus determines that the content of testing procedure n is that the shutdown test is (if according to prior art, the then AT instruction that this moment, testing apparatus sent shutdown need for dut terminal equipment), testing apparatus sends the shutdown Indication message to driver, make it stop to power to the VCC of USB, dut terminal equipment will directly shut down owing to there has not been electric power supply.
When testing apparatus need continue to carry out other testing procedure, need earlier dut terminal equipment to be started shooting again, perhaps the content of testing procedure n+1 directly is (if according to prior art when starting shooting test, the then AT instruction that this moment, testing apparatus sent the start machine need for dut terminal equipment), testing apparatus sends the start Indication message to driver, make it begin to power to the VCC of USB, dut terminal equipment has recovered electric power supply, carries out the start operation.
Such shutdown and start control and treatment.Avoided dut terminal equipment not return OK, perhaps returned OK but do not carry out the situation of corresponding power-off operation, solved therefore and cause the automatic test flow process can't normally continue the problem of moving down.
Compared with prior art, the technical scheme that the embodiment of the invention proposed has the following advantages:
By using the technical scheme of the embodiment of the invention, when testing apparatus is shut down control at needs to dut terminal equipment, directly by cutting off electric power supply to dut terminal equipment, realize the shutdown of dut terminal equipment, thereby, when having avoided relying on the shutdown control of AT instruction carrying out dut terminal equipment, because dut terminal equipment is to the support imperfection of AT instruction, occur not having response, abnormal conditions such as maybe can not shut down, and the situation that causes testing process normally to continue has improved the treatment effeciency of automatic test flow process and the accuracy of operation control.
In order to realize the technical scheme of the embodiment of the invention, the embodiment of the invention also provides a kind of testing apparatus, and its structural representation as shown in Figure 5.
This testing apparatus is used under test scene the dut terminal testing equipment is comprised control module 51 and driver element 52 at least:
Described control module 51 is used for when needs are closed described dut terminal equipment, sends the shutdown Indication messages to described driver element 52;
Described driver element 52 is used for stopping to described dut terminal power devices after receiving described shutdown Indication message, so that the shutdown of described dut terminal equipment.
Further, when dut terminal equipment is carried out start control,
Described control module 51 also is used for when needs are opened described dut terminal equipment, sends the start Indication messages to described driver element 52;
Described driver element 52 also is used for after receiving described start Indication message, and beginning is to described dut terminal power devices, so that described dut terminal device power-up.
Concrete, described control module 51 specifically is used for:
By the content of testing process default in the described testing apparatus, and/or the control messages that receives, determine whether to close described dut terminal equipment.
In concrete enforcement scene, described control module 51 specifically is used for:
Discern the content of described default testing process, determine the content of current test event;
If the content of described test event for closing dut terminal equipment, then sends the shutdown Indication message to described driver element 52, if the content of described test event for opening dut terminal equipment, then sends the start Indication message to described driver element 52.
In the concrete application scenarios of another kind, described control module 51 specifically is used for:
When receiving control messages, discern the content of described control messages;
If the content of described control messages for closing dut terminal equipment, then sends the shutdown Indication message to described driver element 52, if the content of described control messages for opening dut terminal equipment, then sends the start Indication message to described driver element 52.
It is pointed out that described driver element 52, specifically be used to stop or beginning powering to the transmission line of electricity that links to each other with described dut terminal equipment.
Wherein, the transmission line of electricity that described and described dut terminal equipment links to each other is specially the VCC line in the USB circuit that connects described testing apparatus and described dut terminal equipment.
Compared with prior art, the technical scheme that the embodiment of the invention proposed has the following advantages:
By using the technical scheme of the embodiment of the invention, when testing apparatus is shut down control at needs to dut terminal equipment, directly by cutting off electric power supply to dut terminal equipment, realize the shutdown of dut terminal equipment, thereby, when having avoided relying on the shutdown control of AT instruction carrying out dut terminal equipment, because dut terminal equipment is to the support imperfection of AT instruction, occur not having response, abnormal conditions such as maybe can not shut down, and the situation that causes testing process normally to continue has improved the treatment effeciency of automatic test flow process and the accuracy of operation control.
Through the above description of the embodiments, those skilled in the art can be well understood to the embodiment of the invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, the technical scheme of the embodiment of the invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, or network equipment etc.) each implements the described method of scene to carry out the embodiment of the invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred synoptic diagram of implementing scene, module in the accompanying drawing or flow process might not be that the enforcement embodiment of the invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of implementing scene just to description.
More than disclosed only be the several concrete enforcement scene of the embodiment of the invention, still, the embodiment of the invention is not limited thereto, any those skilled in the art can think variation all should fall into the traffic limits scope of the embodiment of the invention.
Claims (14)
1. the terminal device control method under the test scene is characterized in that, may further comprise the steps at least:
When needs were closed dut terminal equipment, the driver element of testing apparatus received the shutdown Indication message;
Described driver element stops to described dut terminal power devices, so that the shutdown of described dut terminal equipment.
2. the method for claim 1 is characterized in that, also comprises:
When needs were opened described dut terminal equipment, the driver element of described testing apparatus received the start Indication message;
Described driver element starts to described dut terminal power devices, so that described dut terminal device power-up.
3. method as claimed in claim 1 or 2 is characterized in that, whether needs to close dut terminal equipment, specifically judges according to following rule:
The content of default testing process in the described testing apparatus; And/or,
The control messages that described testing apparatus receives.
4. method as claimed in claim 3 is characterized in that,
The control module of described testing apparatus is discerned the content of described default testing process, determines the content of current test event;
If the content of described test event for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described test event then sends the start Indication message to described driver element for opening dut terminal equipment.
5. method as claimed in claim 3 is characterized in that,
When the control module of described testing apparatus receives control messages, discern the content of described control messages;
If the content of described control messages for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described control messages then sends the start Indication message to described driver element for opening dut terminal equipment.
6. method as claimed in claim 1 or 2 is characterized in that, described driver element stops or beginning being specially to described dut terminal power devices:
Described driver element stops or beginning to the transmission line of electricity power supply that links to each other with described dut terminal equipment.
7. method as claimed in claim 6 is characterized in that, the transmission line of electricity that described and described dut terminal equipment links to each other is specially:
Connect the VCC line in the USB circuit of described testing apparatus and described dut terminal equipment.
8. testing apparatus is used under test scene the dut terminal testing equipment be is characterized in that, comprises control module and driver element at least:
Described control module is used for sending the shutdown Indication message to described driver element when needs are closed described dut terminal equipment;
Described driver element is used for stopping to described dut terminal power devices after receiving described shutdown Indication message, so that the shutdown of described dut terminal equipment.
9. testing apparatus as claimed in claim 8 is characterized in that,
Described control module also is used for sending the start Indication message to described driver element when needs are opened described dut terminal equipment;
Described driver element also is used for after receiving described start Indication message, and beginning is to described dut terminal power devices, so that described dut terminal device power-up.
10. testing apparatus as claimed in claim 8 or 9 is characterized in that described control module specifically is used for:
By the content of testing process default in the described testing apparatus, and/or the control messages that receives, determine whether to close described dut terminal equipment.
11. testing apparatus as claimed in claim 10 is characterized in that, described control module specifically is used for:
Discern the content of described default testing process, determine the content of current test event;
If the content of described test event for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described test event then sends the start Indication message to described driver element for opening dut terminal equipment.
12. testing apparatus as claimed in claim 10 is characterized in that, described control module specifically is used for:
When receiving control messages, discern the content of described control messages;
If the content of described control messages for closing dut terminal equipment, then sends the shutdown Indication message to described driver element, if the content of described control messages then sends the start Indication message to described driver element for opening dut terminal equipment.
13. testing apparatus is characterized in that as claimed in claim 8 or 9, described driver element specifically is used for:
Stop or beginning to the transmission line of electricity power supply that links to each other with described dut terminal equipment.
14. testing apparatus as claimed in claim 13 is characterized in that, the transmission line of electricity that described and described dut terminal equipment links to each other is specially:
Connect the VCC line in the USB circuit of described testing apparatus and described dut terminal equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102068522A CN102236617A (en) | 2011-07-22 | 2011-07-22 | Control method and equipment under test scene of terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102068522A CN102236617A (en) | 2011-07-22 | 2011-07-22 | Control method and equipment under test scene of terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102236617A true CN102236617A (en) | 2011-11-09 |
Family
ID=44887278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102068522A Pending CN102236617A (en) | 2011-07-22 | 2011-07-22 | Control method and equipment under test scene of terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102236617A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090839A (en) * | 2014-07-02 | 2014-10-08 | 中国银行股份有限公司 | Simulation test method and device for abnormal scene |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1713745A (en) * | 2004-06-22 | 2005-12-28 | 光宝科技股份有限公司 | Automatic mobile testing system and method |
-
2011
- 2011-07-22 CN CN2011102068522A patent/CN102236617A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1713745A (en) * | 2004-06-22 | 2005-12-28 | 光宝科技股份有限公司 | Automatic mobile testing system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090839A (en) * | 2014-07-02 | 2014-10-08 | 中国银行股份有限公司 | Simulation test method and device for abnormal scene |
CN104090839B (en) * | 2014-07-02 | 2017-03-15 | 中国银行股份有限公司 | Abnormal scene analog detection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3312969A1 (en) | Charging method and electronic devices | |
CN100471133C (en) | Method and system for controlling powers of a plurality of servers | |
CN101170438B (en) | A remote serial port debugging method and its system | |
CN107465240A (en) | A kind of intelligent movable power supplies and carry out the method for usb data communication with it | |
CN105811506B (en) | Method for charging electronic device and electronic device | |
KR20170002665A (en) | Power adaptor, terminal and charging system | |
CN102750248A (en) | USB (Universal Serial Bus) equipment working mode switching method and USB equipment | |
CN101986227A (en) | Long-distance control system | |
CN104349304A (en) | Information processing method and electronic equipment | |
CN104866418A (en) | Automatic testing method and system | |
CN105807155A (en) | Testing device and method for power cut and starting of electric devices | |
CN105576753A (en) | Information processing method and electronic equipment | |
US20180097315A1 (en) | Power adapter, terminal device, charging system, and charging method | |
CN111263892B (en) | Method, device and equipment for detecting functions of adapter and storage medium | |
EP3182232A1 (en) | Signalling of specification information on an industrial device | |
CN102236617A (en) | Control method and equipment under test scene of terminal equipment | |
CN102375099A (en) | Portable-type electronic device testing system | |
CN104063033A (en) | State switching method based on electronic equipment interlinking and electronic equipment | |
CN110726928A (en) | Testing device for equipment mainboard | |
CN104737431A (en) | Method and apparatus for controlling a start-up sequence of a DC/DC Buck converter | |
EP3719951B1 (en) | Charging method, terminal and computer storage medium | |
CN101170780B (en) | Method for dual mode terminal to prevent from current backflow between two radio modules | |
CN104345859A (en) | Power supply method and device and charging method and electronic device | |
EP3719952A1 (en) | Charging method, terminal and computer storage medium | |
CN102810838B (en) | Line control method, circuit breaker and power equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20111109 |