CN112566156A - Method for automatically testing compatibility of WiFi module and electronic equipment - Google Patents
Method for automatically testing compatibility of WiFi module and electronic equipment Download PDFInfo
- Publication number
- CN112566156A CN112566156A CN202011294940.8A CN202011294940A CN112566156A CN 112566156 A CN112566156 A CN 112566156A CN 202011294940 A CN202011294940 A CN 202011294940A CN 112566156 A CN112566156 A CN 112566156A
- Authority
- CN
- China
- Prior art keywords
- tested
- wifi module
- router
- distribution network
- terminal
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 164
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000015654 memory Effects 0.000 claims description 15
- 238000007639 printing Methods 0.000 claims description 14
- 230000003213 activating effect Effects 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000003205 fragrance Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0022—Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/0085—Hand-off measurements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/60—Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the field of testing, and discloses a method for automatically testing compatibility of a WiFi module and electronic equipment. The method comprises the following steps: acquiring preset script configuration information, wherein the script configuration information comprises information of a router to be tested and a physical address of a WiFi module to be tested; sending a switching instruction to the terminal so as to enable the terminal to be switched and connected to the router to be tested; starting a test APP on a terminal, and inputting information of a router to be tested and a physical address of a WiFi module to be tested on a page of the test APP, so that the WiFi module to be tested is bound with the router to be tested; the distribution network state of the WiFi module to be tested is obtained, the test result between the router to be tested, the terminal and the WiFi module to be tested is recorded according to the distribution network state, the distribution network compatibility of the router, the terminal and the WiFi module can be determined according to the test result, the whole test process is automatic, the test efficiency of the distribution network compatibility can be improved, and the mobile phone model and the router model which are compatible with the WiFi module can be rapidly determined.
Description
Technical Field
The invention relates to the field of testing, in particular to a method for automatically testing compatibility of a WiFi module and electronic equipment.
Background
Along with the rapid development of the intelligent home industry, the intelligent home industry is hot, wherein the intelligent product using the WiFi module occupies most of the intelligent product, but the development technology of the mobile phone and the wireless router is more rapid than the Internet of things industry. All WiFi smart products cannot avoid the step of connecting routers. Therefore, a network needs to be distributed to the WiFi intelligent product by using the mobile phone APP or the home gateway, and the compatibility problem of the distribution network is particularly prominent.
The traditional mode for testing the compatibility of the distribution network needs a large amount of time spent by workers to perform manual testing, so that the testing efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a method and an electronic device for automatically testing the compatibility of the WiFi module, which can improve the testing efficiency of the distribution network compatibility.
In a first aspect, an embodiment of the present invention provides a method for automatically testing compatibility of a WiFi module, where the method includes:
acquiring preset script configuration information, wherein the script configuration information comprises information of a router to be tested and a physical address of a WiFi module to be tested;
Sending a switching instruction to a terminal so that the terminal is switched and connected to the router to be tested;
starting a test APP on the terminal, and inputting information of the router to be tested and a physical address of the WiFi module to be tested on a page of the test APP so that the WiFi module to be tested is bound with the router to be tested, wherein the test APP is used for providing a setting page;
and acquiring the distribution network state of the WiFi module to be tested, and recording the test results between the router to be tested and the terminal and the WiFi module to be tested according to the distribution network state.
In some embodiments, the script configuration information further includes a preset number of tests,
the method further comprises the following steps:
judging whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times or not;
and if the test times do not reach the preset test times, continuing to execute the step of sending a switching instruction to the terminal so as to enable the terminal to be switched and connected to the router to be tested.
In some embodiments, the method further comprises:
if the test times reach the preset test times, setting the router to be tested as a tested router;
Judging whether the number of the tested routers reaches a preset number or not;
if the number of the tested routers does not reach the preset number, sending a switching instruction to a terminal so that the terminal is switched to the next router to be tested;
and if the number of the tested routers reaches the preset number, ending the test.
In some embodiments, after obtaining the preset script configuration information, the method further includes:
sending a query instruction to the WiFi module to be tested;
judging whether the WiFi module to be tested replies the query instruction or not;
if the WiFi module replies the query instruction, reading printing information from an information bar;
determining whether the WiFi module to be tested is ready according to the printing information;
and if the WiFi module to be tested is ready, sending a distribution network activating instruction to the WiFi module to be tested so as to enable the WiFi module to be tested to enter a distribution network state.
In some embodiments, after the sending a distribution network activating instruction to the WiFi module to be tested to enable the WiFi module to be tested to enter a distribution network state, the method further includes:
judging whether the WiFi module to be tested formally enters a distribution network state;
and if the WiFi module to be tested formally enters a distribution network state, executing a step of sending a switching instruction to a terminal so as to switch the terminal to the router to be tested.
In some embodiments, the acquiring a distribution network state of the to-be-tested WIFI module and recording a test result according to the distribution network state includes:
judging whether the WiFi module to be tested is successfully distributed with the router to be tested;
if the WiFi module to be tested and the router to be tested fail to distribute the network, recording a network distribution failure result of the WiFi module to be tested;
if the WiFi module to be tested and the router to be tested are successfully distributed with the network, starting distribution network timing to calculate distribution network duration;
judging whether the distribution network is successfully displayed on the page of the test APP;
if the distribution network is successfully displayed, recording a test result;
and if the distribution network fails, recording a test failure result.
In some embodiments, the method further comprises:
displaying a setting page;
and acquiring the information of the router to be tested and the physical address of the WiFi module to be tested, which are input by a user on the setting page, so as to acquire the script configuration information.
In some embodiments, the method further comprises:
after the terminal and the WiFi module to be tested are tested, the terminal is switched to a next terminal which is different from the terminal and is not tested, execution is returned to obtain preset script configuration information, and the script configuration information comprises information of a router to be tested and a physical address of the WiFi module to be tested, so that the next terminal and the WiFi module to be tested are tested until all the terminals and the WiFi module to be tested are tested.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for automatically testing the compatibility of the WiFi module.
In a third aspect, an embodiment of the present invention further provides a non-volatile computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the processor is caused to execute the method for automatically testing the compatibility of the WiFi module.
Compared with the prior art, the invention has the beneficial effects that: different from the situation of the prior art, the method for automatically testing the compatibility of the WiFi module and the electronic device in the embodiment of the invention have the advantages that the preset script configuration information, namely the information of the router to be tested and the physical address of the WiFi module, is obtained, the terminal is switched and connected to the router to be tested, the test APP on the terminal is started, the information of the router to be tested and the physical address of the WiFi module to be tested are input on the page of the test APP, so that the WiFi module to be tested is bound with the router to be tested, the distribution network state of the WiFi module to be tested is obtained, the test result is recorded according to the distribution network state, the distribution network compatibility of the router, the terminal and the WiFi module can be determined according to the test result, the whole test process is automatic, the test efficiency of the compatibility of the distribution network can be improved, and can confirm cell-phone model and the router model that the wiFi module can be compatible fast.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic view of an application scenario of a method for automatically testing compatibility of a WiFi module according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for automatically testing the compatibility of a WiFi module according to one embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a process of determining whether a WiFi module to be tested enters a distribution network state in an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating a process of determining whether the distribution of the WiFi module to be tested is successful in an embodiment of the present invention;
FIG. 5 is a detailed flowchart of a method for automatically testing the compatibility of a WiFi module in an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus for automatically testing compatibility of a WiFi module according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. The terms "first", "second", "third", and the like used in the present invention do not limit data and execution order, but distinguish the same items or similar items having substantially the same function and action.
The method for automatically testing the compatibility of the WiFi module is suitable for the application scene shown in figure 1 and comprises the WiFi module to be tested, a terminal and a PC. Fig. 1 exemplarily shows a WiFi module 10 to be tested, a PC computer 20, and a terminal 30, where the PC computer 20 is connected to the WiFi module 10 to be tested via a serial port, and meanwhile, the PC computer is connected to the terminal 30 via a USB data line. The PC computer runs with a serial port upper computer, and information configuration can be carried out on the router to be tested and the WiFi module to be tested on a setting page of the upper computer, so that three-party compatibility test is realized, namely compatibility test of the plurality of routers to be tested, terminals and the WiFi module to be tested is realized. The terminal may be, for example, a smart phone, a tablet computer, a personal computer, a laptop computer, and the like. The WiFi module can be, for example, a fragrance machine, a light fragrance machine and the like.
It should be noted that the method provided by the embodiment of the present invention may be further extended to other suitable application environments, and is not limited to the application environment shown in fig. 1. In the actual application process, the application environment may further include more or fewer WiFi modules to be tested, terminals, and PC computers.
As shown in fig. 2, an embodiment of the present invention provides a method for automatically testing compatibility of a WiFi module, where the method is executed by an electronic device (for example, a PC computer in fig. 1), and the method includes:
In the embodiment of the invention, the information of the router to be tested comprises a Service Set Identifier (SSID) and a password (Key) of the router to be tested, the physical address of the WiFi module to be tested is the MAC address of the WiFi module to be tested, and each WiFi module to be tested has a unique MAC address. Specifically, a setting page is displayed on an information bar of the upper computer, and then a Service Set Identifier (SSID) and a password (Key) of the router to be tested, which are input by a user on the setting page, and a physical address of the WiFi module to be tested are acquired, so that script configuration information is acquired.
In some embodiments, as shown in fig. 3, after obtaining the preset script configuration information, the method further includes:
Specifically, the inquiry instruction is used for inquiring the instruction of the distribution network state of the WiFi module to be tested, the controller controls the upper computer on the PC computer to send the inquiry instruction to the WiFi module to be tested, and then whether the WiFi module to be tested replies to the inquiry instruction is judged.
And step 306, if the WiFi module replies the query instruction, reading the printing information from the information bar.
Specifically, the WiFi module to be tested replies to the query instruction in a message replying mode. When the WiFi module receives the inquiry command, the information can be automatically replied and printed on the information bar of the upper computer, whether the communication of the WiFi module to be detected is normal or not is determined by reading the printing information on the information bar of the upper computer, and furthermore, what state the WiFi module to be detected is in at present can be determined by the data type of the reply information of the WiFi module to be detected. For example, if the data type replied by the current WiFi module to be tested is the activated distribution network type, it may be determined that the current WiFi module to be tested is in a state to be distributed.
And 308, determining whether the WiFi module to be tested is ready according to the printing information.
In the embodiment of the invention, the WiFi module to be tested entering the distribution network state indicates that the WiFi module to be tested is still in the preparation state at the moment and the distribution network is not formally started. After the printing information is acquired, whether the WiFi module to be tested is ready or not can be determined according to the printing information, namely whether the WiFi module to be tested is ready to enter a distribution network state or not. Specifically, taking the above example as a reference, when the printing information is data for activating the distribution network type, it is described that the WiFi module to be tested is ready. And when the WiFi module to be tested is ready, sending a distribution network activating instruction to the WiFi module to be tested so that the WiFi module to be tested is ready to enter a distribution network state, and only after the WiFi module to be tested is ready to enter the distribution network state, formally distributing the network to the WiFi module to be tested.
Further, in some embodiments, after sending a distribution network activating instruction to the WiFi module to be tested, it is necessary to determine whether the WiFi module to be tested really enters a distribution network state.
And judging whether the WiFi module to be tested formally enters a distribution network state, and specifically, inquiring the printing information of the information bar of the upper computer to confirm whether the WiFi module to be tested formally enters the distribution network state. And when the WiFi module to be tested formally enters a distribution network state, sending the determined information to an information bar of the upper computer. After the determination information sent by the WiFi module to be tested is acquired, the WiFi module to be tested is defaulted to formally enter a distribution network state, and at the moment, a switching instruction can be sent to the terminal so that the terminal can be switched and connected to the router to be tested. The distribution network state of the WiFi module to be tested is confirmed in a judging mode, so that the situation that the terminal is switched due to the fact that the WiFi module to be tested is not ready can be avoided, and the testing efficiency is improved.
And 204, sending a switching instruction to a terminal so that the terminal is switched and connected to the router to be tested.
In the embodiment of the invention, after the preset script information is acquired, the automatic script sends the switching instruction to the terminal in a wired mode, and the terminal is controlled to be switched and connected to the router to be tested. Illustratively, before the terminal receives the switching instruction, the terminal is connected with the router 1, and after the switching instruction is received, the terminal is disconnected from the router 1 and then connected with the router to be tested, so that the compatibility test can be conveniently performed at a later stage.
In the embodiment of the invention, if the compatibility between the WiFi module to be tested, the terminal and the router to be tested needs to be tested, the test APP on the terminal is used for providing the setting page, and when the three-party compatibility test is carried out, the router to be tested and the WiFi module to be tested need to be bound in advance through the test APP on the terminal. Specifically, start through the ADB order test APP on the terminal, then automatic input on test APP's the page the password of the router that awaits measuring with the physical address of the wiFi module that awaits measuring, so that the wiFi module that awaits measuring binds the router that awaits measuring to can make the wiFi module that awaits measuring with the router that awaits measuring is in same LAN, and the wiFi module that awaits measuring can acquire the password of the router that awaits measuring, and the later stage of being convenient for carries out the compatibility test.
And 208, acquiring a distribution network state of the WiFi module to be tested, and recording test results among the router to be tested, the terminal and the WiFi module to be tested according to the distribution network state.
The distribution network state of the WiFi module to be tested comprises but is not limited to whether the WiFi module is bound with a router to be tested or not, whether the router is successfully connected or not, WiFi radio-frequency signal strength and the like. The test result includes, but is not limited to, information of the current router to be tested, time consumed by the distribution network, success of the distribution network, failure of the distribution network, and the like. Specifically, after the to-be-tested WiFi module is bound to the to-be-tested router, the to-be-tested WiFi module can send information to an upper computer, the electronic equipment obtains the distribution network state of the to-be-tested WiFi module from an information bar of the upper computer, and then a test result is recorded according to the distribution network state. If the test result is that the distribution network is successful, the WiFi module to be tested is compatible with the router to be tested and the terminal, so that the model of the router compatible with the WiFi module to be tested and the model of the terminal can be determined; and if the test result is failure, indicating that the WiFi module to be tested is incompatible with the router to be tested and the terminal, and further eliminating the router and the terminal model which are incompatible with the WiFi module to be tested.
As an implementation of step 208, as shown in fig. 4, it includes:
And 404, if the distribution network of the WiFi module to be tested and the router to be tested fails, recording a distribution network failure result of the WiFi module to be tested.
And 406, if the distribution of the WiFi module to be tested and the router to be tested is successful, starting distribution network timing to calculate the duration of the distribution network.
And step 408, judging whether the distribution network is successfully displayed on the page of the test APP.
And step 410, if the distribution network is successfully displayed, recording a test result.
And step 412, if the distribution network fails, recording a test failure result.
Specifically, to know whether the network distribution of the WiFi module to be tested is successful, the information of the upper computer information bar needs to be acquired, and whether the network distribution of the WiFi module to be tested is successful is judged through the acquired information. And after the information that the WiFi module to be detected replies the failure of the distribution network is obtained, recording the result of the failure of the distribution network of the WiFi module to be detected, so that the follow-up analysis and processing of the reason of the failure of the distribution network are facilitated. And after the success of the distribution network of the WiFi module to be tested is determined through the information of the upper computer information bar, starting distribution network timing so as to calculate the duration time of the distribution network.
Further, after the WiFi module to be tested is judged whether to successfully distribute the network, whether the page of the test APP shows that the network is successfully distributed needs to be judged. Specifically, whether the distribution network is successfully displayed by the test APP is determined by checking the information of the test APP page, and if the distribution network is successfully displayed by the test APP page, a distribution network success result is recorded; and if the test APP shows that the distribution network fails, recording the test APP and displaying a distribution network failure result.
In some embodiments, the script configuration information further includes a preset number of tests, and the method further includes: judging whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times or not; and if the test times do not reach the preset test times, continuing to execute the step of sending a switching instruction to the terminal so as to enable the terminal to be switched and connected to the router to be tested.
The script configuration information includes preset test times, in addition to a Service Set Identifier (SSID) and a password (Key) of the router to be tested and a physical address of the WiFi module to be tested. Specifically, whether the test times of the router to be tested and the WiFi module to be tested reach preset test times or not is judged, if the test times do not reach the preset test times, switching execution is continuously performed, and a switching instruction is sent to the terminal, so that the terminal is switched and connected to the router to be tested.
In some embodiments, if the number of times of testing reaches the preset number of times of testing, setting the router to be tested as a tested router, and continuously judging whether the number of the tested routers reaches the preset number; if the number of the tested routers does not reach the preset number, sending a switching instruction to a terminal so that the terminal is switched to the next router to be tested; if the number of the tested routers reaches the preset number, the test is finished, the test results are separately stored, and the test is carried out for multiple times in the mode, so that the test results are more accurate, and further the compatibility reports obtained based on the multiple test results are more accurate. The results of the multiple tests include, but are not limited to, the information of the router to be tested, success of the distribution network, failure of the distribution network, time consumed by the distribution network, and the like, and also include distribution network failure rate, distribution network success rate, and the like. The distribution network success rate is equal to distribution network success times/distribution network times x 100%, the distribution network failure rate is equal to distribution network failure times/distribution network times x 100%, the distribution network times are obtained by testing the same to-be-tested router and the same to-be-tested WiFi module for multiple times, and the to-be-tested router and the terminal matched with the to-be-tested WiFi module can be known clearly through the distribution network success rate and the failure rate.
In some embodiments, to obtain a richer compatibility report, the method further comprises:
after the terminal and the WiFi module to be tested are tested, the terminal is switched to a next terminal which is different from the terminal and is not tested, execution is returned to obtain preset script configuration information, and the script configuration information comprises information of a router to be tested and a physical address of the WiFi module to be tested, so that the next terminal and the WiFi module to be tested are tested until all the terminals and the WiFi module to be tested are tested.
In the embodiment of the present invention, in order to obtain a richer compatibility report, a plurality of different types of terminals need to be tested, so as to determine the compatibility between the WiFi module to be tested and the terminal, the test of the terminal and the WiFi module to be tested is similar to the test of the router to be tested and the WiFi module to be tested, and reference may be made to a test embodiment of the WiFi module to be tested and the router to be tested, which is not described in more detail in the embodiment of the present invention.
In the embodiment of the invention, by acquiring the preset script configuration information, namely the information of the router to be tested and the physical address of the WiFi module, then sending a switching instruction to a terminal so as to enable the terminal to be switched and connected to the router to be tested, then starting a test APP on the terminal, inputting the information of the router to be tested and the physical address of the WiFi module to be tested on the page of the test APP, thereby the WiFi module to be tested is bound with the router to be tested, finally the distribution network state of the WiFi module to be tested is obtained, the test result is recorded according to the distribution network state, therefore, the distribution network compatibility of the router, the terminal and the WiFi module can be determined according to the test result, the whole test process is automatic, the test efficiency of the distribution network compatibility can be improved, and can confirm cell-phone model and the router model that the wiFi module can be compatible fast.
In order that the invention may be readily understood, reference will now be made in detail to the invention, as illustrated in figure 5,
s500, obtaining preset script configuration information, wherein the script configuration information comprises information of a router to be tested and a physical address of a WiFi module to be tested, and turning to S501;
s501, sending a query instruction to the WiFi module to be tested, and turning to S502;
s502, judging whether the WiFi module to be tested replies the query instruction or not, if the WiFi module replies the query instruction, turning to S503, otherwise, turning to S501;
s503, reading the printing information from the information bar, and turning to S504;
s504, determining whether the WiFi module to be tested is ready according to the printing information, if so, turning to S505, otherwise, turning to S503;
s505, sending a distribution network activating instruction to the WiFi module to be tested so that the WiFi module to be tested enters a distribution network state, and turning to S506;
s506, judging whether the WiFi module to be tested formally enters a distribution network state, if so, turning to S507, otherwise, turning to S505;
s507, sending a switching instruction to a terminal so that the terminal is switched to the router to be tested, and turning to S508;
S508, starting a test APP on the terminal, inputting information of the router to be tested and a physical address of the WiFi module to be tested on a page of the test APP so that the WiFi module to be tested is bound with the router to be tested, wherein the test APP is used for providing a setting page, and turning to S509;
s509, judging whether the WiFi module to be tested and the router to be tested are successfully distributed, if the WiFi module to be tested and the router to be tested are failed to be distributed, turning to S510, otherwise, turning to S511;
s510, recording a distribution network failure result of the WiFi module to be tested;
s511, starting distribution network timing to calculate the distribution network duration, and turning to S512;
s512, judging whether the distribution network is successfully displayed on the page of the test APP, if so, turning to S513, and if not, turning to S514;
s513, recording the test result, and turning to S515;
s514, recording a test failure result;
s515, judging whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times or not, if the test times do not reach the preset test times, turning to S507, otherwise, turning to S516;
s516, setting the router to be tested as the tested router, and turning to S517;
S517, judging whether the number of the tested routers reaches a preset number, if not, turning to S518, otherwise, turning to S519;
s518, sending a switching instruction to a terminal so that the terminal is switched to the next router to be tested;
and S519, ending the test, wherein the ended test is the test of the router to be tested and the WiFi module to be tested.
S520, switching the terminal to a next terminal which is different from the terminal and is not tested, and switching to S500 to complete the test of the next terminal and the WiFi module to be tested until the test of all the terminals and the WiFi module to be tested is completed.
Correspondingly, an embodiment of the present invention further provides an apparatus 600 for automatically testing compatibility of a WiFi module, as shown in fig. 6, including:
an obtaining module 602, configured to obtain preset script configuration information, where the script configuration information includes information of a router to be tested and a physical address of a WiFi module to be tested;
a sending module 604, configured to send a switching instruction to a terminal, so that the terminal is switched and connected to the router to be tested;
a starting module 606, configured to start a test APP on the terminal, and input information of the to-be-tested router and a physical address of the to-be-tested WiFi module on a page of the test APP, so that the to-be-tested WiFi module is bound to the to-be-tested router, and the test APP is used to provide a setting page;
The recording module 608 is configured to acquire a distribution network state of the WiFi module to be tested, and record a test result between the router to be tested and the terminal and the WiFi module to be tested according to the distribution network state.
In the embodiment of the invention, preset script configuration information is acquired through an acquisition module, wherein the script configuration information comprises information of a router to be tested and a physical address of a WiFi module to be tested; then, a switching instruction is sent to a terminal through a sending module so that the terminal is switched and connected to the router to be tested; starting a test APP on the terminal through a starting module, and inputting information of the router to be tested and a physical address of the WiFi module to be tested on a page of the test APP so that the WiFi module to be tested is bound with the router to be tested; and finally, acquiring the distribution network state of the WIFI module to be tested, and recording a test result according to the distribution network state through a recording module, so that the distribution network compatibility of the router, the terminal and the WiFi module can be determined according to the test result, the whole test process is automatic, the test efficiency of the distribution network compatibility can be improved, and the mobile phone model and the router model which are compatible with the WiFi module can be rapidly determined.
Optionally, in another embodiment of the apparatus, as shown in fig. 6, the apparatus 600 further includes:
the determining module 610 is configured to determine whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times.
If the test times reach the preset test times, setting the router to be tested as a tested router;
and judging whether the number of the tested routers reaches a preset number.
And if the number of the tested routers reaches the preset number, ending the test.
And judging whether the WiFi module to be tested replies the query instruction or not.
And determining whether the WiFi module to be tested is ready according to the printing information.
And judging whether the WiFi module to be tested enters a distribution network state or not.
And judging whether the WiFi module to be tested and the router to be tested are successfully distributed.
And judging whether the distribution network is successfully displayed on the page of the test APP.
Optionally, in another embodiment of the apparatus, as shown in fig. 6, the apparatus 600 further includes:
a display module 612, configured to display a setting page.
Optionally, in other embodiments of the apparatus, the obtaining module 602 is specifically configured to:
and acquiring the information of the router to be tested and the physical address of the WiFi module to be tested, which are input by a user on the setting page, so as to acquire the script configuration information.
Optionally, in other embodiments of the apparatus, the sending module 604 is specifically configured to:
and if the test times do not reach the preset test times, continuing to execute the step of sending a switching instruction to the terminal so as to enable the terminal to be switched and connected to the router to be tested.
And if the number of the tested routers does not reach the preset number, sending a switching instruction to the terminal so as to switch the terminal to the next router to be tested.
And sending a query instruction to the WiFi module to be tested.
And if the WiFi module to be tested is ready, sending a distribution network activating instruction to the WiFi module to be tested so as to enable the WiFi module to be tested to enter a distribution network state.
And if the WiFi module to be tested enters a distribution network state, executing a step of sending a switching instruction to a terminal so that the terminal is switched to the router to be tested.
Optionally, in another embodiment of the apparatus, the recording module 608 is specifically configured to:
if the WiFi module to be tested and the router to be tested fail to distribute the network, recording a network distribution failure result of the WiFi module to be tested;
and if the WiFi module to be tested and the router to be tested are successfully distributed with the network, starting distribution network timing to calculate the duration time of the distribution network.
If the distribution network is successfully displayed, recording a test result;
and if the distribution network fails, recording a test failure result.
It should be noted that the apparatus for automatically testing compatibility of a WiFi module of the present invention can execute the method for automatically testing compatibility of a WiFi module provided in the embodiments of the present invention, and has the corresponding function modules and beneficial effects of the execution method.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device 700 includes:
one or more processors 702 and memory 704, one processor 702 being illustrated in FIG. 7.
The processor 702 and the memory 704 may be connected by a bus or other means, such as by a bus in FIG. 7.
The memory 704 is a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for automatically testing compatibility of a WiFi module in the embodiments of the present invention. The processor 702 executes various functional applications and data processing of the electronic device by running the nonvolatile software programs, instructions and modules stored in the memory 704, that is, the method for automatically testing the compatibility of the WiFi module in the above embodiments is implemented.
The memory 704 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the data storage area can store data created according to the device for automatically testing the compatibility of the WiFi module, and the like. Further, the memory 704 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 704 may optionally include memory remotely located from the processor 702, and these remote memories may be connected over a network to a device that automatically tests WiFi module compatibility. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the invention also provides a non-volatile computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors may be enabled to execute the method for automatically testing the compatibility of the WiFi module in any method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for automatically testing the compatibility of a WiFi module is characterized by comprising the following steps:
acquiring preset script configuration information, wherein the script configuration information comprises information of a router to be tested and a physical address of a WiFi module to be tested;
sending a switching instruction to a terminal so that the terminal is switched and connected to the router to be tested;
Starting a test APP on the terminal, and inputting information of the router to be tested and a physical address of the WiFi module to be tested on a page of the test APP so that the WiFi module to be tested is bound with the router to be tested, wherein the test APP is used for providing a setting page;
and acquiring the distribution network state of the WiFi module to be tested, and recording the test results between the router to be tested and the terminal and the WiFi module to be tested according to the distribution network state.
2. The method of claim 1, wherein the script configuration information further comprises a preset number of tests,
the method further comprises the following steps:
judging whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times or not;
and if the test times do not reach the preset test times, continuing to execute the step of sending a switching instruction to the terminal so as to enable the terminal to be switched and connected to the router to be tested.
3. The method of claim 2, further comprising:
if the test times reach the preset test times, setting the router to be tested as a tested router;
judging whether the number of the tested routers reaches a preset number or not;
If the number of the tested routers does not reach the preset number, sending a switching instruction to a terminal so that the terminal is switched to the next router to be tested;
and if the number of the tested routers reaches the preset number, ending the test.
4. The method of claim 1, wherein after obtaining the preset script configuration information, the method further comprises:
sending a query instruction to the WiFi module to be tested;
judging whether the WiFi module to be tested replies the query instruction or not;
if the WiFi module replies the query instruction, reading printing information from an information bar;
determining whether the WiFi module to be tested is ready according to the printing information;
and if the WiFi module to be tested is ready, sending a distribution network activating instruction to the WiFi module to be tested so as to enable the WiFi module to be tested to enter a distribution network state.
5. The method according to claim 4, wherein after sending a distribution network activating instruction to the WiFi module to be tested to enable the WiFi module to be tested to enter a distribution network state, the method further comprises:
judging whether the WiFi module to be tested formally enters a distribution network state;
and if the WiFi module to be tested formally enters a distribution network state, executing a step of sending a switching instruction to a terminal so as to switch the terminal to the router to be tested.
6. The method of claim 1, wherein the obtaining a distribution network state of the WiFi module to be tested and recording test results between the router to be tested and the terminal and the WiFi module to be tested according to the distribution network state comprises:
judging whether the WiFi module to be tested is successfully distributed with the router to be tested;
if the WiFi module to be tested and the router to be tested fail to distribute the network, recording a network distribution failure result of the WiFi module to be tested;
if the WiFi module to be tested and the router to be tested are successfully distributed with the network, starting distribution network timing to calculate distribution network duration;
judging whether the distribution network is successfully displayed on the page of the test APP;
if the distribution network is successfully displayed, recording a test result;
and if the distribution network fails, recording a test failure result.
7. The method according to any one of claims 1-6, further comprising:
displaying a setting page;
and acquiring the information of the router to be tested and the physical address of the WiFi module to be tested, which are input by a user on the setting page, so as to acquire the script configuration information.
8. The method of claim 1, further comprising:
After the terminal and the WiFi module to be tested are tested, the terminal is switched to a next terminal which is different from the terminal and is not tested, execution is returned to obtain preset script configuration information, and the script configuration information comprises information of a router to be tested and a physical address of the WiFi module to be tested, so that the next terminal and the WiFi module to be tested are tested until all the terminals and the WiFi module to be tested are tested.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
10. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011294940.8A CN112566156B (en) | 2020-11-18 | 2020-11-18 | Method for automatically testing WiFi module compatibility and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011294940.8A CN112566156B (en) | 2020-11-18 | 2020-11-18 | Method for automatically testing WiFi module compatibility and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112566156A true CN112566156A (en) | 2021-03-26 |
CN112566156B CN112566156B (en) | 2023-12-08 |
Family
ID=75044108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011294940.8A Active CN112566156B (en) | 2020-11-18 | 2020-11-18 | Method for automatically testing WiFi module compatibility and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112566156B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113709793A (en) * | 2021-08-10 | 2021-11-26 | 广东睿住智能科技有限公司 | Distribution network testing method and system of intelligent lamp |
CN114244759A (en) * | 2021-12-16 | 2022-03-25 | 深圳Tcl新技术有限公司 | Distribution network testing method and system of intelligent device, computer device and medium |
CN114500228A (en) * | 2021-12-29 | 2022-05-13 | 深圳市共进电子股份有限公司 | Automatic test system method and automatic test system |
CN114567916A (en) * | 2022-03-01 | 2022-05-31 | 德沃康科技集团有限公司 | Production test method, device, equipment and medium based on WiFi furniture |
CN118524029A (en) * | 2024-07-23 | 2024-08-20 | 深圳市和生创新技术有限公司 | Automatic distribution network testing method and related system |
CN118524029B (en) * | 2024-07-23 | 2024-10-22 | 深圳市和生创新技术有限公司 | Automatic distribution network testing method and related system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105142135A (en) * | 2015-08-18 | 2015-12-09 | 四川长虹电器股份有限公司 | Method for rapidly configuring intelligent device network connection based on quick connection protocol |
CN107154859A (en) * | 2016-03-02 | 2017-09-12 | 美的集团股份有限公司 | Intelligent electric appliance distribution method of testing, system and control terminal |
CN108712300A (en) * | 2018-04-02 | 2018-10-26 | 四川斐讯信息技术有限公司 | A kind of automated testing method and system of smart machine distribution |
CN110191483A (en) * | 2019-07-01 | 2019-08-30 | 深圳勇艺达机器人有限公司 | A kind of Performance Test System and method for Wifi mould group |
CN110493812A (en) * | 2019-08-23 | 2019-11-22 | 上海庆科信息技术有限公司 | Processing method, device, system, processor and the main control device of distribution test |
CN110708717A (en) * | 2019-09-27 | 2020-01-17 | 青岛海尔科技有限公司 | Method and device for compatibility test, terminal equipment and storage medium |
-
2020
- 2020-11-18 CN CN202011294940.8A patent/CN112566156B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105142135A (en) * | 2015-08-18 | 2015-12-09 | 四川长虹电器股份有限公司 | Method for rapidly configuring intelligent device network connection based on quick connection protocol |
CN107154859A (en) * | 2016-03-02 | 2017-09-12 | 美的集团股份有限公司 | Intelligent electric appliance distribution method of testing, system and control terminal |
CN108712300A (en) * | 2018-04-02 | 2018-10-26 | 四川斐讯信息技术有限公司 | A kind of automated testing method and system of smart machine distribution |
CN110191483A (en) * | 2019-07-01 | 2019-08-30 | 深圳勇艺达机器人有限公司 | A kind of Performance Test System and method for Wifi mould group |
CN110493812A (en) * | 2019-08-23 | 2019-11-22 | 上海庆科信息技术有限公司 | Processing method, device, system, processor and the main control device of distribution test |
CN110708717A (en) * | 2019-09-27 | 2020-01-17 | 青岛海尔科技有限公司 | Method and device for compatibility test, terminal equipment and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113709793A (en) * | 2021-08-10 | 2021-11-26 | 广东睿住智能科技有限公司 | Distribution network testing method and system of intelligent lamp |
CN114244759A (en) * | 2021-12-16 | 2022-03-25 | 深圳Tcl新技术有限公司 | Distribution network testing method and system of intelligent device, computer device and medium |
CN114500228A (en) * | 2021-12-29 | 2022-05-13 | 深圳市共进电子股份有限公司 | Automatic test system method and automatic test system |
CN114500228B (en) * | 2021-12-29 | 2024-03-29 | 深圳市共进电子股份有限公司 | Automatic test method and automatic test system |
CN114567916A (en) * | 2022-03-01 | 2022-05-31 | 德沃康科技集团有限公司 | Production test method, device, equipment and medium based on WiFi furniture |
CN118524029A (en) * | 2024-07-23 | 2024-08-20 | 深圳市和生创新技术有限公司 | Automatic distribution network testing method and related system |
CN118524029B (en) * | 2024-07-23 | 2024-10-22 | 深圳市和生创新技术有限公司 | Automatic distribution network testing method and related system |
Also Published As
Publication number | Publication date |
---|---|
CN112566156B (en) | 2023-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112566156A (en) | Method for automatically testing compatibility of WiFi module and electronic equipment | |
CN106937273B (en) | HD icon display control method and device | |
WO2017113527A1 (en) | Method and device for switching virtual sim card, and terminal | |
CN110677317B (en) | Test method, test device, test equipment and storage medium | |
CN111263377B (en) | Network configuration method, device, equipment and system and distribution network testing method and system | |
CN107770786B (en) | Method, equipment and system for testing network performance | |
CN110708717A (en) | Method and device for compatibility test, terminal equipment and storage medium | |
CN107666664B (en) | Method, device, equipment and storage medium for machine-card binding | |
CN113038499B (en) | Terminal Wi-Fi compatibility testing method, device, system, equipment and medium | |
CN109743703A (en) | Communication method, data acquisition terminal and monitoring system | |
CN113515420A (en) | Test method and test system | |
JP7008636B2 (en) | How to check for phone number changes, devices, and systems | |
CN103530233A (en) | Automation testing method, testing server and system of mobile browser | |
CN113505031A (en) | Up-down test method, up-down test device and readable storage medium | |
CN114281673B (en) | Test method, device and storage medium based on virtualization service | |
CN111130929A (en) | Method and system for automatically testing WIFI throughput | |
CN113950044B (en) | User identification card identification method, device, terminal equipment and storage medium | |
WO2019227454A1 (en) | Ecu identifier and identification method, system, device and medium thereof | |
CN105323373A (en) | Mobile terminal, and method and device for initializing subscriber identity module card of mobile terminal | |
CN103763087A (en) | Information processing method and electronic devices | |
CN104619012A (en) | Mobile terminal position acquisition method and system | |
CN111464395A (en) | Method and device for creating block chain and readable storage medium | |
CN113840392B (en) | User intimacy determination method, device, computer equipment and storage medium | |
CN111147400A (en) | Method and device for command line configuration synchronization and electronic equipment | |
CN112203319B (en) | Test method and device of ZigBee device, computer device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |