CN110514925A - Test method and system and storage medium - Google Patents

Test method and system and storage medium Download PDF

Info

Publication number
CN110514925A
CN110514925A CN201910745607.5A CN201910745607A CN110514925A CN 110514925 A CN110514925 A CN 110514925A CN 201910745607 A CN201910745607 A CN 201910745607A CN 110514925 A CN110514925 A CN 110514925A
Authority
CN
China
Prior art keywords
test
terminal
control device
target device
detection parameters
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
Application number
CN201910745607.5A
Other languages
Chinese (zh)
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910745607.5A priority Critical patent/CN110514925A/en
Publication of CN110514925A publication Critical patent/CN110514925A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of test method and system, and storage medium, test method is applied in test macro, test macro includes: terminal, control device and at least one test equipment, test method includes: after obtaining test instruction, according to the identification information that test instruction carries, target device is determined at least one test equipment;Control device enables target device, so that target device and terminal establish connection, and obtains the corresponding detection parameters of terminal;Test result is generated according to detection parameters.

Description

Test method and system and storage medium
Technical field
The invention relates to charging detection technique field more particularly to a kind of test methods and system, and storage to be situated between Matter.
Background technique
With the gradually development of science and technology, terminal has been increasingly becoming important equipment indispensable in life and work, together When, being constantly progressive based on terminal technology, more and more terminals all have the function of that fast charge or sudden strain of a muscle are filled, the charging function of terminal charge Rate arrives 20W (5V4A or 9V2A) from incipient 5W (5V1A), then arrives 50W (10V5A), and the speed of terminal charge is getting faster. The principle and agreement that the fast charge as used in each manufacturer or sudden strain of a muscle are filled are different, it is therefore desirable to charging measurement is carried out to terminal, with Determine whether terminal can be applicable in different types of charge protocol.
Currently, test equipment and terminal mainly pass through universal serial bus when carrying out charging measurement to terminal (Universal Serial Bus, USB) carries out data interaction and therefore for different test equipments, needs constantly to end End carries out the replacement of USB interface, and repeatedly to the Plug Action of USB interface, it is not only be easy to cause the damage of terminal, is also increased Testing time leads to the defect of low, the intelligent difference of testing efficiency.
Summary of the invention
The embodiment of the present application provides a kind of test method and system and storage medium, can be to avoid constantly to terminal The damage for carrying out terminal caused by the replacement of USB interface, reduces the testing time, improves testing efficiency, realize test Intelligence and automation.
The technical solution of the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of test method, and the test method is applied in test macro, the test System includes: terminal, control device and at least one test equipment, which comprises
After obtaining test instruction, according to the identification information that the test instruction carries, at least one described test Target device is determined in equipment;
The control device enables the target device, so that the target device and the terminal establish connection, and obtains Take the corresponding detection parameters of the terminal;
Test result is generated according to the detection parameters.
The embodiment of the present application provides a kind of test macro, which is characterized in that the test macro is by terminal, control device And at least one test equipment is constituted, the test macro comprises determining that unit, enabling unit, connection unit, acquiring unit And generation unit,
The determination unit is used for after obtaining test instruction, instructs the identification information carried, according to the test Target device is determined at least one described test equipment;
The enabling unit enables the target device for the control device;
The connection unit, for making the target device and the terminal establish connection;
The acquiring unit, for obtaining the corresponding detection parameters of the terminal;
The generation unit, for generating test result according to the detection parameters.
The embodiment of the present application provides a kind of test macro, and the test macro includes: terminal, control device and at least One test equipment, processor, the memory for being stored with the processor-executable instruction, when described instruction is by the processor When execution, test method as described above is realized.
The embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with program, is applied to test system In system, when described program is executed by processor, test method as described above is realized.
The embodiment of the present application provides a kind of test method and system and storage medium, and test method is applied to test system In system, test macro includes: terminal, control device and at least one test equipment, and test method includes: to refer in acquisition test After order, according to the identification information that test instruction carries, target device is determined at least one test equipment;Control device makes Energy target device, so that target device and terminal establish connection, and obtains the corresponding detection parameters of terminal;It is raw according to detection parameters At test result.That is, in embodiments herein, control device can with terminal and at least one test equipment into Row connection, so as to enable the target device at least one test equipment according to test instruction, by target device to end End is tested, and determines the corresponding test result of terminal according to the detection parameters of acquisition.It can be seen that in this application, Test macro when carrying out the detection of different test equipments to terminal, by control equipment at least one test equipment into Row is selected and is enabled, it can is switched different test equipments by control device and is tested terminal, to avoid constantly The damage that terminal caused by the replacement of USB interface is carried out to terminal, reduce the testing time, improve testing efficiency, it is real The intelligence and automation of test are showed.
Detailed description of the invention
Fig. 1 is the schematic diagram of test macro;
Fig. 2 is a kind of implementation process schematic diagram for test method that the embodiment of the present application proposes;
Fig. 3 is the schematic illustration one of test method;
Fig. 4 is the schematic illustration two of test method;
Fig. 5 is the composed structure schematic diagram one for the test macro that the embodiment of the present application proposes;
Fig. 6 is the composed structure schematic diagram two for the test macro that the embodiment of the present application proposes.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.It is understood that specific embodiment described herein is used only for explaining related application, rather than to this application Restriction.It also should be noted that illustrating only part relevant to related application for ease of description, in attached drawing.
With the gradually development of science and technology, terminal has been increasingly becoming important equipment indispensable in life and work, together When, being constantly progressive based on terminal technology, more and more terminals all have the function of that fast charge or sudden strain of a muscle are filled, the charging function of terminal charge Rate arrives 20W (5V4A or 9V2A) from incipient 5W (5V1A), then arrives 50W (10V5A), and the speed of terminal charge is getting faster. Correspondingly, the type of fast charge or sudden strain of a muscle are filled principle and agreement is also more and more, this results in number of types of adapter on the market, For example adapter is filled in common charging 5V1A adapter, OPPO sudden strain of a muscle, adapter, power transmission are filled in the super sudden strain of a muscle of OPPO (PowerDelivery, PD) high pressure fast charge adapter, fast charge (Quick Charge, QC) high pressure fast charge adapter.
The principle and agreement filled just because of fast charge used in each manufacturer or sudden strain of a muscle are different, it is therefore desirable to carry out to terminal Charging measurement, to determine whether terminal can be applicable in different types of charge protocol, while can be to avoid existing on terminating circuit Loophole, influence terminal uses time and various functions.
Currently, test equipment and terminal mainly carry out data interaction by USB when carrying out charging measurement to terminal, because This needs constantly to carry out terminal the replacement of USB interface for different test equipments, and repeatedly to the plug of USB interface Movement, not only be easy to cause the damage of terminal, also increases the testing time, lead to the defect of low, the intelligent difference of testing efficiency.
Of the existing technology in order to solve the problems, such as, the embodiment of the present application provides a kind of charging measurement method and system, And storage medium, wherein test macro includes: terminal, control device and at least one test equipment, in the implementation of the application Example in, control device can be attached with terminal and at least one test equipment, so as to according to test instruct enable to Target device in a few test equipment, tests terminal by target device, and true according to the detection parameters of acquisition Make the corresponding test result of terminal.It can be seen that in this application, test macro is carrying out different test equipments to terminal Detection when, by control equipment selected and enabled at least one test equipment, it can cut by control device It changes different test equipments to test terminal, so that terminal need to only carry out the plug of a USB, terminal needle can be tested It is whether normal to the function of different test equipments, realize the purpose of the number and automatic test that reduce test plug USB port, To avoid constantly carrying out the damage of terminal caused by the replacement of USB interface to terminal, the testing time is reduced, is improved Testing efficiency.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
One embodiment of the application provides a kind of test method, which is applied in test macro, wherein test System may include terminal, control device and at least one test equipment.
Fig. 1 is the schematic diagram of test macro, as shown in Figure 1, the test macro that the application proposes may include terminal, control Device and test equipment compared with prior art, can specifically survey at least one in the test macro that the application proposes Examination equipment is connected in control device, so as to when detecting terminal, avoid constantly setting for different tests It is standby to carry out physics switching.
It should be noted that terminal, control device and test equipment can pass through USB in embodiments herein Connection.That is, terminal only needs to connect by USB port with control device, it can utilize and be connected to control device extremely A few test equipment is tested.
Fig. 2 is a kind of implementation process schematic diagram for test method that the embodiment of the present application proposes, as shown in Fig. 2, in this Shen In embodiment please, the method that terminal is tested be may comprise steps of:
Step 101, obtain test instruction after, according to test instruction carry identification information, at least one test Target device is determined in equipment.
In embodiments herein, test macro can be write according to test instruction and beat after obtaining test instruction Dead identification information determines the target device for carrying out terminal detection at least one test equipment.
It should be noted that the operation that test macro can first pass through user receives test in embodiments herein Instruction.Specifically, the reception main body of instruction is tested, either control equipment, is also possible to terminal, the application does not limit specifically It is fixed.
Further, in embodiments herein, test equipment is carried in the test instruction that test macro receives The identification information of corresponding, characterization test device numbering or label, therefore, test macro obtain test instruction after, To determine a test equipment corresponding with identification information from least one test equipment, that is, use according to identification information In the target device tested terminal.
It should be noted that in embodiments herein, to the executing subject that target device is determined, either Equipment is controlled, is also possible to terminal, the application is not especially limited.
Further, in embodiments herein, control device can be used for selecting test device and being enabled. Specifically, control device can be integrated circuit, control circuit board etc..
Further, in embodiments herein, terminal can be any equipment for having communication and store function.Example Such as: tablet computer, mobile phone, electronic reader, remote controler, personal computer (Personal Computer, PC), notebook electricity The equipment such as brain, mobile unit, Web TV, wearable device.
Further, in embodiments herein, at least one test equipment can for any number of adapter and/ Or OTG.For example, in test macro include 6 test equipments, respectively common adapter, OPPO sudden strain of a muscle fill adapter (5V4V), The super sudden strain of a muscle of OPPO is filled adapter (10V4A), PD high pressure fast charge adapter (9V2A), QC high pressure fast charge adapter (9V2A) and OTG。
It should be noted that in embodiments herein, since the test equipment in test macro both can be adaptation Device, or OTG, therefore, test macro can both test the charging performance of terminal when testing terminal, can also To test the OTG function of terminal.That is, in this application, test macro mainly can carry out following test to terminal: general Whether logical adapter charges normal;Fast charge/sudden strain of a muscle fill function whether normal use;Whether OTG function works normally.
Further, in embodiments herein, terminal, control device and test equipment in test macro can be with It is connected by USB.Specifically, terminal can be connected to control device by USB port, meanwhile, at least one test equipment Any one test equipment can be connected to control device by correspondingly USB port.
It should be noted that in embodiments herein, just because of including at least one test in test macro Equipment, therefore, test macro can establish corresponding identity identification, i.e. identification information in advance for each test equipment, Therefore, test macro can determine corresponding target device after receiving test instruction by identification information.
Step 102, control device enable target device, so that target device and terminal establish connection, and obtain terminal pair The detection parameters answered.
In embodiments herein, test macro is receiving test instruction, and according to the identification information in test instruction After determining target device at least one test equipment, the control device in test macro can set to enable target It is standby, so as to so that target device and terminal establish connection, and then the corresponding detection parameters of terminal can be obtained.
It should be noted that in embodiments herein, test macro is being determined for being tested terminal After target device, control device in test macro can to enable target device, so as to so that target device by with Terminal establishes connection to test terminal.
Further, in embodiments herein, control device had both needed enabled target in enabled target device Connecting path between equipment and terminal;Also need the data path between enabled target device and control device.
It should be noted that connecting path can be used for test of the target device to terminal in embodiments herein, Data path can be used for target device and carry out data transmission to control device.
Further, in embodiments herein, if target device is adapter, target device can pass through Connecting path charges to terminal, so as to obtain the corresponding charge parameter of terminal;If target device is OTG, Target device sends verification request to terminal by connecting path, and obtains the corresponding checking parameter of terminal.That is, at this In application, for different types of target device, the detection parameters of detected terminal are not also identical.
It should be noted that, when target device is adapter, detection parameters can be electricity in embodiments herein Flow the data such as parameter, voltage parameter and charging time.When target device is OTG, detection parameters can be connection status etc. Data.
Step 103 generates test result according to detection parameters.
In embodiments herein, the target device in test macro at least one test equipment is in controlled device It is enabled, and after obtaining the corresponding detection parameters of terminal, test macro can generate the corresponding survey of terminal according to detection parameters Test result.
It should be noted that target device can will test ginseng after obtaining detection parameters in embodiments herein Number is sent to control device by data path, so as to so that control device or terminal generate test knot according to detection parameters Fruit.
Further, in embodiments herein, the generation main body of test result, can also be with either control device It is terminal, the application is not especially limited.
It should be noted that in embodiments herein, test macro according to detection parameters to the corresponding survey of terminal When test result is generated, parameter can be will test and be compared with pre-stored parameter preset threshold value, so as to basis Comparison result determines test result.
Further, in embodiments herein, for different target devices, the detection parameters of the terminal of acquisition are not Together, correspondingly, when carrying out the generation of test result, required parameter preset threshold value is also different.That is, different The corresponding different parameter preset threshold values of target device.
Further, in embodiments herein, test macro is surveyed after generating test result according to detection parameters Terminal in test system can also show test result.
Further, in embodiments herein, when target device is adapter, test result can be for charging just Often, charging it is abnormal, can fast charge or can not the different conditions such as fast charge.When target device is OTG, test result can be for connection just Often or connection is abnormal.
The embodiment of the present application provides a kind of test method, and test method is applied in test macro, and test macro includes: Terminal, control device and at least one test equipment, test method include: to be referred to after obtaining test instruction according to test The identification information carried is enabled, target device is determined at least one test equipment;Control device enables target device, so that mesh Marking device and terminal establish connection, and obtain the corresponding detection parameters of terminal;Test result is generated according to detection parameters.Namely It says, in embodiments herein, control device can be attached with terminal and at least one test equipment, so as to root The target device at least one test equipment is enabled according to test instruction, terminal is tested by target device, and according to The detection parameters of acquisition determine the corresponding test result of terminal.It can be seen that in this application, test macro to terminal into When the detection of the different test equipment of row, is selected and enabled at least one test equipment by controlling equipment Terminal is tested with switching different test equipments by control device, to avoid constantly meeting terminal progress USB Mouthful replacement caused by terminal damage, reduce the testing time, improve testing efficiency, realize test intelligence and Automation.
Based on the above embodiment, in another embodiment of the application, test macro according to identification information at least one Before determining target device in a test equipment, method that test macro tests terminal can with the following steps are included:
Step 104 obtains test instruction.
In embodiments herein, test macro can first obtain test instruction, wherein test macro is obtaining test When instruction, test instruction can be obtained for control device, or terminal obtains test instruction.
Further, in embodiments herein, control device, can be directly according to survey after obtaining test instruction Identification information in examination instruction, determines target device from least one test equipment, identification information can also be synchronized to Terminal, so as to so that terminal determines target device from least one test equipment according to identification information.
Further, in embodiments herein, terminal can directly refer to according to test after obtaining test instruction Identification information in order determines target device from least one test equipment, and identification information can also be synchronized to control Device, so as to so that control device determines target device from least one test equipment according to identification information.
It should be noted that terminal or control device are carrying out target device timing really, it can first obtain and be stored in advance The corresponding relationship for prestoring mark and equipment, the corresponding relationship of mark and equipment then can be prestored according to this, from least one Target device corresponding with identification information is determined in a test equipment.
In embodiments herein, further, test macro can according to the method that detection parameters generate test result With the following steps are included:
Step 201, target device will test parameter, be transmitted to control device by data path.
In embodiments herein, the target device in test macro, can be first by inspection after obtaining detection parameters It surveys parameter and control device is transmitted to by data path.Wherein, data path is between target device and control equipment for passing The path of transmission of data.
Step 202, control device generate test result according to detection parameters and parameter preset threshold value.
In embodiments herein, control device can will be examined after the detection parameters for obtaining target device transmission It surveys parameter to be compared with pre-stored parameter preset threshold value, then determines that the corresponding test of terminal is tied according to comparison result Fruit.
Further, in embodiments herein, the control device in test macro, can after generating test result Test result is synchronized to terminal, so as to so that terminal is stored and is shown to test result.
In embodiments herein, further, test macro can according to the method that detection parameters generate test result With the following steps are included:
Step 203, target device will test parameter, be transmitted to control device by data path.
In embodiments herein, the target device in test macro, can be first by inspection after obtaining detection parameters It surveys parameter and control device is transmitted to by data path.Wherein, data path is between target device and control equipment for passing The path of transmission of data.
Step 204, control device will test parameter synchronization to terminal.
In embodiments herein, control device can will be examined after the detection parameters for obtaining target device transmission Parameter synchronization is surveyed to terminal, so as to so that terminal carries out the generation of test result.
Step 205, terminal generate test result according to detection parameters and parameter preset threshold value.
In embodiments herein, terminal can will test ginseng after obtaining the synchronous detection parameters of control device Number is compared with pre-stored parameter preset threshold value, then determines the corresponding test result of terminal according to comparison result.
The embodiment of the present application provides a kind of test method, and test method is applied in test macro, and test macro includes: Terminal, control device and at least one test equipment, test method include: to be referred to after obtaining test instruction according to test The identification information carried is enabled, target device is determined at least one test equipment;Control device enables target device, so that mesh Marking device and terminal establish connection, and obtain the corresponding detection parameters of terminal;Test result is generated according to detection parameters.Namely It says, in embodiments herein, control device can be attached with terminal and at least one test equipment, so as to root The target device at least one test equipment is enabled according to test instruction, terminal is tested by target device, and according to The detection parameters of acquisition determine the corresponding test result of terminal.It can be seen that in this application, test macro to terminal into When the detection of the different test equipment of row, is selected and enabled at least one test equipment by controlling equipment Terminal is tested with switching different test equipments by control device, to avoid constantly meeting terminal progress USB Mouthful replacement caused by terminal damage, reduce the testing time, improve testing efficiency, realize test intelligence and Automation.
Based on the above embodiment, in the another embodiment of the application, at least one test equipment can be any amount Adapter and OTG combination.
It should be noted that test macro is after determining target device at least one test equipment, control is filled Enabled target device is set, then target device can establish connection by connecting path and terminal, so as to obtain terminal Detection parameters.Wherein, for different types of target device, the detection parameters that test macro obtains are also different.
Further, in embodiments herein, when target device is adapter, then adapter can pass through company It connects road direction terminal to charge, the corresponding detection parameters of the terminal then obtained can be charge parameter.Wherein, charge parameter Can be used for whether the charge protocol of support adapter is determined to terminal.
Further, in embodiments herein, when target device is OTG, then OTG can pass through connecting path Verification request is sent to terminal, the corresponding detection parameters of the terminal then obtained can be checking parameter.Wherein, checking parameter can For whether identifying that OTG is determined to terminal.
Fig. 3 is the schematic illustration one of test method, as shown in figure 3, test equipment in test macro be adapter 1, Adapter 2 and adapter 3, if test macro determines that the target device for being tested terminal is adapter 1, Control device can enable adapter 1 by the unlatching of switch 1.Further, after enabled adapter 1, adapter 1 It can be charged by connecting path to terminal, and obtain the charge parameter of terminal, then can pass through data path Charge parameter is synchronized to control device, so that the test result of terminal can be determined according to charge parameter.Correspondingly, it surveys Test system can also according to the method described above test terminal by adapter 2, adapter 3, specific process flow be adapted to Device 1 is identical.
Fig. 4 is the schematic illustration two of test method, as shown in figure 4, test equipment in test macro be adapter 1, Adapter 2 and OTG, if test macro determines that the target device for being tested terminal is adapter 2, control Device can enable adapter 2 by the unlatching of switch 2.Further, after enabled adapter 2, adapter 2 To charge by connecting path to terminal, and the charge parameter of terminal is obtained, then can will be filled by data path Electrical parameter is synchronized to control device, so that the test result of terminal can be determined according to charge parameter.Correspondingly, test system System can also according to the method described above test terminal by adapter 1, and specific process flow is identical as adapter 2.Test When test equipment in system is OTG, control device can enable suitable OTG by the unlatching of switch 3.Further, make After energy OTG, OTG can send verification request to terminal by connecting path, and obtain the checking parameter of terminal, then just Parameter synchronization can will be verified by data path to control device, so that the survey of terminal can be determined according to checking parameter Test result.
The embodiment of the present application provides a kind of test method, and test method is applied in test macro, and test macro includes: Terminal, control device and at least one test equipment, test method include: to be referred to after obtaining test instruction according to test The identification information carried is enabled, target device is determined at least one test equipment;Control device enables target device, so that mesh Marking device and terminal establish connection, and obtain the corresponding detection parameters of terminal;Test result is generated according to detection parameters.Namely It says, in embodiments herein, control device can be attached with terminal and at least one test equipment, so as to root The target device at least one test equipment is enabled according to test instruction, terminal is tested by target device, and according to The detection parameters of acquisition determine the corresponding test result of terminal.It can be seen that in this application, test macro to terminal into When the detection of the different test equipment of row, is selected and enabled at least one test equipment by controlling equipment Terminal is tested with switching different test equipments by control device, to avoid constantly meeting terminal progress USB Mouthful replacement caused by terminal damage, reduce the testing time, improve testing efficiency, realize test intelligence and Automation.
Based on the above embodiment, in another embodiment of the application, test macro is by terminal, control device and at least One test equipment is constituted, and Fig. 5 is the composed structure schematic diagram one for the test macro that the embodiment of the present application proposes, as shown in figure 5, The test macro 1 that the embodiment of the present application proposes can include determining that unit 11, enabling unit 12, connection unit 13, acquiring unit 14 and generation unit 15.
The determination unit 11 is used for after obtaining test instruction, instructs the identification information carried according to the test, Target device is determined at least one described test equipment;
The enabling unit 12 enables the target device for the control device;
The connection unit 13, for making the target device and the terminal establish connection;
The acquiring unit 14, for obtaining the corresponding detection parameters of the terminal;
The generation unit 15, for generating test result according to the detection parameters.
Further, in embodiments herein, the enabling unit 12 is specifically used for the control device and enables institute State the connecting path between target device and the terminal;The control device enables the target device and the control device Between data path.
Further, in embodiments herein, at least one described test equipment includes: adapter and/or OTG.
Further, in embodiments herein, when the target device is the adapter, the acquiring unit 14, it is charged by the connecting path to the terminal specifically for the target device, and it is corresponding to obtain the terminal Charge parameter.
Further, in embodiments herein, when the target device is the OTG, the acquiring unit 14, tool Body sends verification request to the terminal by the connecting path for the target device, and it is corresponding to obtain the terminal Checking parameter.
Further, in embodiments herein, the generation unit 15, being specifically used for the target device will be described Detection parameters are transmitted to the control device by the data path;The control device is according to the detection parameters and in advance Setting parameter threshold value generates the test result.
Further, in embodiments herein, the generation unit 15, being specifically used for the target device will be described Detection parameters are transmitted to the control device by the data path;The detection parameters are synchronized to by the control device The terminal;The terminal generates the test result according to the detection parameters and parameter preset threshold value.
Further, in embodiments herein, the acquiring unit 14 is also used to the terminal and obtains the test Instruction;Alternatively, the control device obtains the test instruction.
Further, in embodiments herein, the determination unit 11, be also used to the terminal according to prestore mark The target device is determined with the corresponding relationship of equipment and the identification information;Alternatively, the control device according to prestore mark The target device is determined with the corresponding relationship of equipment and the identification information.
Further, in embodiments herein, the terminal, the control device and at least one described test Equipment passes through USB connection.
In embodiments herein, further, Fig. 6 is the composed structure for the test macro that the embodiment of the present application proposes Schematic diagram two, as shown in fig. 6, the test macro 1 that the embodiment of the present application proposes can also include processor 16, be stored with processor Memory 17, terminal 18, control device 19 and at least one test equipment 110 of 16 executable instructions, further, test System 1 can also include communication interface 111, and the bus for connecting processor 16, memory 17 and communication interface 111 112。
In embodiments herein, above-mentioned processor 16 can be application-specific IC (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (ProgRAMmable Logic Device, PLD), field programmable gate array (Field ProgRAMmable Gate Array, FPGA), central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor At least one of.It, can be with for realizing the electronic device of above-mentioned processor function it is to be appreciated that for different equipment To be other, the embodiment of the present application is not especially limited.Test macro 1 can also include memory 17, which can be with Processor 16 connects, wherein for memory 17 for storing executable program code, which includes that computer operation refers to It enables, memory 17 may include high speed RAM memory, it is also possible to further include nonvolatile memory, for example, at least two disks Memory.
In embodiments herein, bus 112 for connection communication interface 111, processor 16 and memory 17 with And being in communication with each other between these devices.
In embodiments herein, memory 17, for storing instruction and data.
Further, in embodiments herein, above-mentioned processor 17 is used for after obtaining test instruction, according to The identification information that the test instruction carries, determines target device at least one described test equipment;The control device The target device is enabled, so that the target device and the terminal establish connection, and obtains the corresponding detection of the terminal Parameter;Test result is generated according to the detection parameters.
In practical applications, above-mentioned memory 17 can be volatile memory (volatile memory), such as at random It accesses memory (Random-Access Memory, RAM);Or nonvolatile memory (non-volatile memory), Such as read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);Or the combination of the memory of mentioned kind, and to place It manages device 16 and instruction and data is provided.
In addition, each functional module in the present embodiment can integrate in one processing unit, it is also possible to each list Member physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both can be with Using formal implementation of hardware, can also be realized in the form of software function module.
If integrated unit realizes that being not intended as independent product is sold or made in the form of software function module Used time can store in a computer readable storage medium, based on this understanding, the technical solution sheet of the present embodiment The all or part of the part that contributes to existing technology or the technical solution can be with software product in other words in matter Form embodies, which is stored in a storage medium, including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) or processor (processor) executes this implementation The all or part of the steps of example method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
A kind of test macro that the embodiment of the present application proposes, which includes: terminal, control device and at least one A test equipment, the test macro is after obtaining test instruction, according to the identification information that test instruction carries, at least one Target device is determined in test equipment;Control device enables target device, so that target device and terminal establish connection, and obtains The corresponding detection parameters of terminal;Test result is generated according to detection parameters.That is, in embodiments herein, control Device can be attached with terminal and at least one test equipment, so as to enable at least one test according to test instruction Target device in equipment tests terminal by target device, and determines terminal pair according to the detection parameters of acquisition The test result answered.It can be seen that in this application, test macro when carrying out the detection of different test equipments to terminal, It is selected and is enabled at least one test equipment by controlling equipment, it can switch different surveys by control device Examination equipment tests terminal, so that the damage that terminal caused by the replacement of USB interface is constantly carried out to terminal is avoided, The testing time is reduced, testing efficiency is improved, realizes the intelligence and automation of test.
The embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with program, and the program is by processor Test method as described above is realized when execution.
Specifically, the corresponding program instruction of one of the present embodiment test method can be stored in CD, hard disk, On the storage mediums such as USB flash disk, read by an electronic equipment when the program instruction corresponding with a kind of test method in storage medium or It is performed, includes the following steps:
After obtaining test instruction, according to the identification information that the test instruction carries, at least one described test Target device is determined in equipment;
The control device enables the target device, so that the target device and the terminal establish connection, and obtains Take the corresponding detection parameters of the terminal;
Test result is generated according to the detection parameters.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application Formula.Moreover, the application, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is realization of the reference according to the method, equipment (system) and computer program product of the embodiment of the present application Flow diagram and/or block diagram describe.It should be understood that flow diagram and/or box can be realized by computer program instructions The combination of each flow and/or block in figure and the process in implementation process schematic diagram and/or block diagram and/or box. These computer program instructions be can provide to general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of processing equipment is to generate a machine, so that passing through computer or the processor of other programmable data processing devices The instruction of execution generate for realizing in one box of implementation process schematic diagram one process or multiple processes and/or block diagrams or The device for the function of being specified in multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, The manufacture of device is enabled, which realizes in implementation process schematic diagram one process or multiple processes and/or block diagrams one The function of being specified in a box or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction that is executed on other programmable devices provide for realizing in one process of implementation process schematic diagram or multiple processes and/or The step of function of being specified in one or more blocks of the block diagram.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.

Claims (20)

1. a kind of test method, which is characterized in that the test method is applied in test macro, and the test macro includes: Terminal, control device and at least one test equipment, which comprises
After obtaining test instruction, according to the identification information that the test instruction carries, at least one described test equipment Middle determining target device;
The control device enables the target device, so that the target device and the terminal establish connection, and obtains institute State the corresponding detection parameters of terminal;
Test result is generated according to the detection parameters.
2. the method according to claim 1, wherein the control device enables the target device, comprising:
The control device enables the connecting path between the target device and the terminal;
The control device enables the data path between the target device and the control device.
3. according to the method described in claim 2, it is characterized in that, at least one described test equipment include: adapter and/or OTG。
4. according to the method described in claim 3, it is characterized in that, the target device be the adapter when, the target Equipment and the terminal establish connection, and obtain the corresponding detection parameters of the terminal, comprising:
The target device is charged by the connecting path to the terminal, and obtains the corresponding charging ginseng of the terminal Number.
5. according to the method described in claim 3, it is characterized in that, the target device be the OTG when, the target device Connection is established with the terminal, and obtains the corresponding detection parameters of the terminal, comprising:
The target device sends verification request to the terminal by the connecting path, and obtains the corresponding school of the terminal Test parameter.
6. according to the method described in claim 2, it is characterized in that, described generate test result, packet according to the detection parameters It includes:
The target device is transmitted to the control device by the detection parameters, by the data path;
The control device generates the test result according to the detection parameters and parameter preset threshold value.
7. according to the method described in claim 6, it is characterized in that, the method is also after the generation test result Include:
The test result is synchronized to the terminal by the control device.
8. according to the method described in claim 2, it is characterized in that, described generate test result, packet according to the detection parameters It includes:
The target device is transmitted to the control device by the detection parameters, by the data path;
The detection parameters are synchronized to the terminal by the control device;
The terminal generates the test result according to the detection parameters and parameter preset threshold value.
9. the method according to claim 1, wherein it is described according to the identification information it is described at least one survey It tries in equipment before determining target device, which comprises
The terminal obtains the test instruction;Alternatively,
The control device obtains the test instruction.
10. according to the method described in claim 9, it is characterized in that, the method is also after the acquisition test instruction Include:
The identification information is synchronized to the control device by the terminal;Alternatively,
The identification information is synchronized to the terminal by the control device.
11. according to the method described in claim 9, it is characterized in that, it is described according to the identification information it is described at least one Target device is determined in test equipment, comprising:
The terminal determines the target device according to the corresponding relationship and the identification information that prestore mark and equipment;Alternatively,
The control device determines the target device according to the corresponding relationship and the identification information that prestore mark and equipment.
12. according to the described in any item methods of claim 7 or 8, which is characterized in that described generated according to the detection parameters is surveyed After test result, the method also includes:
The terminal shows the test result.
13. the method according to claim 1, wherein the terminal, the control device and described at least one A test equipment is connected by general-purpose serial bus USB.
14. a kind of test macro, which is characterized in that the test macro is set by terminal, control device and at least one test Standby to constitute, the test macro comprises determining that unit, enabling unit, connection unit, acquiring unit and generation unit,
The determination unit is used for after obtaining test instruction, the identification information carried is instructed according to the test, described Target device is determined at least one test equipment;
The enabling unit enables the target device for the control device;
The connection unit, for making the target device and the terminal establish connection;
The acquiring unit, for obtaining the corresponding detection parameters of the terminal;
The generation unit, for generating test result according to the detection parameters.
15. test macro according to claim 14, which is characterized in that
It is logical to enable the connection between the target device and the terminal specifically for the control device for the enabling unit Road;And the control device enables the data path between the target device and the control device.
16. test macro according to claim 15, which is characterized in that at least one described test equipment includes: adaptation Device and/or OTG.
17. test macro according to claim 15, which is characterized in that
The generation unit is specifically used for the target device for the detection parameters, is transmitted to institute by the data path State control device;And the control device generates the test result according to the detection parameters and parameter preset threshold value;
The generation unit is transmitted to also particularly useful for the target device by the detection parameters by the data path The control device;And the detection parameters are synchronized to the terminal by the control device;And the terminal is according to institute Detection parameters and parameter preset threshold value are stated, the test result is generated.
18. test macro according to claim 14, which is characterized in that the terminal, the control device and described At least one test equipment passes through USB connection.
19. a kind of test macro, which is characterized in that the test macro includes: terminal, control device and at least one test Equipment, processor, the memory for being stored with the processor-executable instruction, when described instruction is executed by the processor, Realize such as the described in any item methods of claim 1-13.
20. a kind of computer readable storage medium, is stored thereon with program, it is applied in test macro, which is characterized in that described When program is executed by processor, such as the described in any item methods of claim 1-13 are realized.
CN201910745607.5A 2019-08-13 2019-08-13 Test method and system and storage medium Pending CN110514925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910745607.5A CN110514925A (en) 2019-08-13 2019-08-13 Test method and system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910745607.5A CN110514925A (en) 2019-08-13 2019-08-13 Test method and system and storage medium

Publications (1)

Publication Number Publication Date
CN110514925A true CN110514925A (en) 2019-11-29

Family

ID=68625683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910745607.5A Pending CN110514925A (en) 2019-08-13 2019-08-13 Test method and system and storage medium

Country Status (1)

Country Link
CN (1) CN110514925A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142954A (en) * 2019-12-30 2020-05-12 Oppo(重庆)智能科技有限公司 Startup control method and device and computer readable storage medium
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN112241160A (en) * 2020-10-20 2021-01-19 广州小鹏汽车科技有限公司 Vehicle testing method and device, vehicle detection system and test board card
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106405430A (en) * 2016-11-01 2017-02-15 深圳市鹏诚新能源科技有限公司 Lithium ion battery online detection conversion control equipment, system and method
CN107995060A (en) * 2017-11-29 2018-05-04 努比亚技术有限公司 Audio frequency of mobile terminal test method, device and computer-readable recording medium
CN207352080U (en) * 2016-11-15 2018-05-11 莱茵技术监护(深圳)有限公司 Automatic testing equipment and test system
CN108072775A (en) * 2017-11-06 2018-05-25 广东欧珀移动通信有限公司 The test device of mobile terminal
CN108132862A (en) * 2017-12-21 2018-06-08 深圳市闻耀电子科技有限公司 Charged state automated testing method and device
CN207817089U (en) * 2018-01-08 2018-09-04 深圳市鼎阳科技有限公司 A kind of more equipment test conversion devices and its system
CN109299022A (en) * 2018-08-23 2019-02-01 联想(北京)有限公司 A kind of control method and device of USB interface, storage medium
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test macro, test method, test device and storage medium
CN109581106A (en) * 2018-11-28 2019-04-05 Oppo(重庆)智能科技有限公司 Test equipment control method, device, system and electronic equipment
CN109587318A (en) * 2018-11-29 2019-04-05 Oppo(重庆)智能科技有限公司 A kind of endpoint detection methods and device, equipment and storage medium
CN208833886U (en) * 2018-08-03 2019-05-07 德丰电创科技股份有限公司 Electric tool switch test device and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106405430A (en) * 2016-11-01 2017-02-15 深圳市鹏诚新能源科技有限公司 Lithium ion battery online detection conversion control equipment, system and method
CN207352080U (en) * 2016-11-15 2018-05-11 莱茵技术监护(深圳)有限公司 Automatic testing equipment and test system
CN108072775A (en) * 2017-11-06 2018-05-25 广东欧珀移动通信有限公司 The test device of mobile terminal
CN107995060A (en) * 2017-11-29 2018-05-04 努比亚技术有限公司 Audio frequency of mobile terminal test method, device and computer-readable recording medium
CN108132862A (en) * 2017-12-21 2018-06-08 深圳市闻耀电子科技有限公司 Charged state automated testing method and device
CN207817089U (en) * 2018-01-08 2018-09-04 深圳市鼎阳科技有限公司 A kind of more equipment test conversion devices and its system
CN208833886U (en) * 2018-08-03 2019-05-07 德丰电创科技股份有限公司 Electric tool switch test device and system
CN109299022A (en) * 2018-08-23 2019-02-01 联想(北京)有限公司 A kind of control method and device of USB interface, storage medium
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test macro, test method, test device and storage medium
CN109581106A (en) * 2018-11-28 2019-04-05 Oppo(重庆)智能科技有限公司 Test equipment control method, device, system and electronic equipment
CN109587318A (en) * 2018-11-29 2019-04-05 Oppo(重庆)智能科技有限公司 A kind of endpoint detection methods and device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142954A (en) * 2019-12-30 2020-05-12 Oppo(重庆)智能科技有限公司 Startup control method and device and computer readable storage medium
CN111142954B (en) * 2019-12-30 2023-06-23 Oppo(重庆)智能科技有限公司 Startup control method and device and computer readable storage medium
CN111274071A (en) * 2020-01-19 2020-06-12 浪潮电子信息产业股份有限公司 USB device plug detection method and device and related device
CN112241160A (en) * 2020-10-20 2021-01-19 广州小鹏汽车科技有限公司 Vehicle testing method and device, vehicle detection system and test board card
CN112241160B (en) * 2020-10-20 2022-02-11 广州小鹏汽车科技有限公司 Vehicle testing method and device, vehicle detection system and test board card
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system

Similar Documents

Publication Publication Date Title
CN110514925A (en) Test method and system and storage medium
CN111201689B (en) Electronic equipment and charging control method
CN108141385B (en) Cloud-based system and method for managing test configuration of cable test equipment
CN104618054B (en) Parameter regulation means and device
US10720778B2 (en) Method for identifying type of cable, power adapter and cable
AU2015345832A1 (en) Fast charging method, power source adapter and mobile terminal
US10488468B2 (en) Quality-control-testing system for portable charging devices and methods of use
US20160291080A1 (en) Automatic test system and method
KR102611263B1 (en) Output state test method of adapter, output state test system of adapter and computer storage media
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
TWI662821B (en) System and method for testing a radio frequency transceiver by controlling test flow via an induced interrupt
CN104459386A (en) Tester for USB data line
CN106160033B (en) A kind for the treatment of method and apparatus of terminal charger
JP7086169B2 (en) Charging device test system and method
CN101800672A (en) Equipment detection method and equipment
CN116247755B (en) Protocol information testing method, tester and storage medium
CN109378891A (en) Charging/discharging thereof, mobile power source and computer storage medium
CN103052098B (en) A kind of method of north orientation performance test and device
KR102557374B1 (en) Testing method and system of time parameters of adapter, computer storage medium
CN104598415A (en) Universal serial bus (USB) test fixture
KR101648969B1 (en) Server and method for testing based on captured messages
CN107167675A (en) A kind of ageing testing method and device of CANBus terminals
CN109149707A (en) A kind of charging method, split type terminal and computer storage medium
WO2022170907A1 (en) Corrosion identification method and apparatus for connectors, and earbuds, charging box, and storage medium
Kouřil et al. Data acquisition system for the modern induction motor drive applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129

RJ01 Rejection of invention patent application after publication