The system of WIFI module on a kind of automatic test Android equipment
Technical field
The present invention relates to a kind of automated test device, relate in particular to the system of WIFI module on a kind of automatic test Android equipment.
Background technology
In Android equipment (mobile phone, flat board, MP4 etc.) production process, each module all needs the front index test that dispatched from the factory at present, and testing efficiency is a very key issue.The problems such as the manual testing of WIFI module exists testing efficiency low, and test result is inaccurate, thus cause the Android device fabrication cycle elongated, affect Android equipment Time To Market.
Summary of the invention
The technical problem to be solved in the present invention, be to provide the system of WIFI module on a kind of automatic test Android equipment, solves the problem of WIFI module testing inefficiency on existing Android equipment.
The present invention is achieved in that.
The system of WIFI module on a kind of automatic test Android equipment, comprise control interface module, test communication module, drive load module, testing control module and acquisition module as a result, wherein:
Control interface module: for the Android equipment connection time, connect the ADB of Android equipment;
Test communication module: the relevant information of WIFI module for the WIFI module communication at when test and Android equipment and while obtaining communication;
Drive load module: for read the model of WIFI module by described ADB, and drive and the bottom program according to corresponding test of described model transmission, then transmission loads test driving instruction and moves the bottom program command to Android equipment;
Testing control module: for according to content measurement, send corresponding WIFI test instruction by ADB and send corresponding test data to Android equipment or by the test communication module;
And acquisition module as a result: for according to content measurement, from the test communication module, obtaining corresponding test result or obtain corresponding test result from ADB.
Further, described control interface module is USB control interface module.
When further, described test communication module obtains communication, the relevant information of WIFI module comprises frequency deviation, power or the packet that obtains the WIFI module.
Further, described content measurement is: the transmitting power of measuring the WIFI module;
Testing control module sends corresponding WIFI test instruction by ADB and is specially to Android equipment: testing control module sends the mode of operation instruction of WIFI module to be set and the WIFI module is set by ADB and sends the packet instruction to Android equipment;
Acquisition module obtains corresponding test result and is specially from the test communication module as a result: acquisition module obtains the transmitting power of WIFI module from the test communication module as a result.
Further, described mode of operation comprises 802.11a pattern, 802.11b pattern, 802.11g pattern or 802.11n pattern.
Further, described content measurement is: the receiving sensitivity of measuring the WIFI module;
Testing control module sends corresponding test data by the test communication module and is specially: testing control module sends the WIFI signal of corresponding power by the test communication module;
Acquisition module obtains corresponding test result from ADB and is specially as a result: acquisition module obtains from ADB the result whether the WIFI module can receive the WIFI signal as a result.
Further, described acquisition module as a result is also for exporting result.
The present invention has following advantage: the present invention automatically identifies WIFI module model and sends by ADB the test process that the dependence test instruction completes automation, and self adaptation, without manual intervention, improved testing efficiency.
The accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is system configuration schematic diagram of the present invention.
Embodiment
Refer to shown in Fig. 1, below the present invention is described in detail.
The system 1 of WIFI module on a kind of automatic test Android equipment, comprise control interface module 10, test communication module 11, drive load module 12, testing control module 13 and acquisition module 14 as a result.The object of system 1 test is the WIFI module 20 on Android equipment 2.
Wherein control interface module 10 is for when being connected with Android equipment 2, and the ADB(full name that connects Android equipment 2 is Android Debug Bridge, plays exactly the effect of debugging bridge).What the ADB connected mode of system 1 and Android equipment 2 was common is the USB mode.After control interface module 10 is connected to ADB, system 1 can realize Android equipment 2 action commands, upload the operations such as download file or installation file.When system 1 will be tested Android equipment 2, at first to be connected to the ADB of Android equipment 2.
The relevant information of test communication module 11 WIFI module 20 for WIFI module 20 communications at when test and Android equipment 2 and while obtaining communication.These relevant informations comprise frequency deviation, power or the packet etc. of WIFI module 20.Test communication module 11 gets these relevant informations and can offer acquisition module 14 as a result and analyze output.
Drive load module 12 is for read the model of WIFI module 20 by described ADB, and drives and the bottom program according to the corresponding test of described model transmission, then sends and load test and drive instruction and move the bottom program command to Android equipment 2.Because the WIFI module 20 of Android equipment 2 of test is multiple, it is different that the test of different WIFI modules 20 drives, for the test of mating WIFI module 20 drives, drive load module 12 can be after control interface module 10 connects, move by ADB the model that WIFI module 20 is obtained in the order of reading WIFI module 20 models, and drive and the bottom program in the corresponding test of transmission according to the model got.Android equipment 2 loads after test drives and can make WIFI module 20 enter test mode, can realize WIFI module 20 is carried out to more more complicated test setting, the bottom program can be passed to the operation of the order realization of ADB to Android equipment 2 cores and bottom according to system 1.After system 1 has transmitted test driving and bottom program, sending to load to test drives instruction and operation bottom program command to Android equipment 2 again, Android equipment 2 can load the test driving, make WIFI module 20 enter test mode, Android equipment 2 can move the bottom program afterwards, make Android equipment 2 enter the test wait state, be convenient to the test of testing control module 13 and obtaining of 14 pairs of test results of acquisition module as a result.
Testing control module 13, for according to content measurement, sends corresponding WIFI test instruction by ADB and sends corresponding test data to Android equipment 2 or by test communication module 11; Acquisition module 14 is for obtaining corresponding test result or obtain corresponding test result from ADB from test communication module 11 according to content measurement as a result.Content measurement comprises receiving sensitivity, EVM index, safety, throughput, transmitting power, frequency deviation, emission vector planisphere etc.These content measurements can be divided into following a few class when test: 20 transmissions of WIFI module and test communication module 11 receive and test, WIFI module 20 receives and tests communication module 11 and sends test or WIFI module 20 and test communication module 11 and received and dispatched interactive testing.WIFI module 20 sends and test communication module 11 receives while testing, testing control module 13 will send corresponding WIFI test instruction to Android equipment 2 by ADB, allow WIFI module 20 move accordingly according to test instruction, these actions produce relevant detecting information and can catch by tested communication module 11, and acquisition module 14 obtains corresponding test result from test communication module 11 as a result.WIFI module 20 receives and test communication module 11 sends while testing, testing control module 13 sends corresponding test data by test communication module 11, these test datas can be received by WIFI module 20, and acquisition module 14 can connect Android equipment 2 from ADB and obtain corresponding test result as a result.
Common content measurement has the transmitting power of measuring WIFI module 20 and the receiving sensitivity of measuring WIFI module 20.
While being measured the transmitting power of WIFI module 20, testing control module 13 sends corresponding WIFI test instruction by ADB and is specially to Android equipment 2: testing control module 13 sends the 20 mode of operation instructions of WIFI module to be set and WIFI module 20 is set by ADB and sends the packet instruction to Android equipment 2; Acquisition module 14 obtains corresponding test result and is specially from test communication module 11 as a result: acquisition module 14 obtains the transmitting power of WIFI module 20 from test communication module 11 as a result.WIFI module 20 mode of operations comprise 802.11a pattern, 802.11b pattern, 802.11g pattern or 802.11n pattern.Test communication module 11 is by catching the wireless signal of WIFI module 20, record the amplitude of wireless signal, this amplitude is exactly the transmitting power of WIFI module 20, and acquisition module 14 just can get transmitting power from test communication module 11 as a result, can be by this result output.
While measuring the receiving sensitivity of WIFI module 20, testing control module 13 sends corresponding test data by test communication module 11 and is specially: testing control module 13 sends the WIFI signal of corresponding power by test communication module 11; Acquisition module 14 obtains corresponding test result from ADB and is specially as a result: acquisition module 14 obtains from ADB the result whether WIFI module 20 can receive the WIFI signal as a result.When testing control module 13 sends the WIFI signal of corresponding power by test communication module 11, this corresponding power can be total power, be designated as the WIFI signal of N db, acquisition module 14 obtains from ADB the result whether WIFI module 20 can receive this WIFI signal as a result, if the result got is to receive, illustrate that WIFI module 20 has certain sensitivity, testing control module 13 constantly reduces corresponding power, until when acquisition module 14 gets WIFI module 20 and does not receive the WIFI signal from ADB as a result, this power is designated as to M, sensitivity is exactly M/N so, that is to say the ratio of signal higher than this M/N, WIFI module 20 just can receive this signal.Acquisition module 14 can be exported sensitivity as a result.
To sum up, the present invention, when being tested, can realize full automatic test, and can complete multiple test, has reduced manual operation, has greatly improved testing efficiency.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.