CN112566156B - Method for automatically testing WiFi module compatibility and electronic equipment - Google Patents

Method for automatically testing WiFi module compatibility and electronic equipment Download PDF

Info

Publication number
CN112566156B
CN112566156B CN202011294940.8A CN202011294940A CN112566156B CN 112566156 B CN112566156 B CN 112566156B CN 202011294940 A CN202011294940 A CN 202011294940A CN 112566156 B CN112566156 B CN 112566156B
Authority
CN
China
Prior art keywords
tested
wifi module
router
terminal
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011294940.8A
Other languages
Chinese (zh)
Other versions
CN112566156A (en
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.)
Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Original Assignee
Shenzhen Shuliantianxia 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 Shenzhen Shuliantianxia Intelligent Technology Co Ltd filed Critical Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority to CN202011294940.8A priority Critical patent/CN112566156B/en
Publication of CN112566156A publication Critical patent/CN112566156A/en
Application granted granted Critical
Publication of CN112566156B publication Critical patent/CN112566156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services 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 and electronic equipment for automatically testing WiFi module compatibility. 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 a terminal so as to enable the terminal to be connected to a router to be tested in a switching way; 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 binds the router to be tested; the method comprises the steps of obtaining the distribution network state of the WiFi module to be tested, recording test results between the router to be tested, the terminal and the WiFi module to be tested according to the distribution network state, determining the distribution network compatibility of the router, the terminal and the WiFi module according to the test results, enabling the whole test process to be automatic, improving the test efficiency of the distribution network compatibility, and rapidly determining the mobile phone model and the router model compatible with the WiFi module.

Description

Method for automatically testing WiFi module compatibility and electronic equipment
Technical Field
The invention relates to the field of testing, in particular to a method and electronic equipment for automatically testing WiFi module compatibility.
Background
With the rapid development of the smart home industry, the smart home industry is already hot, wherein the smart products using the WiFi module occupy most of the smart home industry, but the development technology of the mobile phone and the wireless routing is more rapid compared with the Internet of things industry. All WiFi smart products cannot avoid the step of connecting to the router. Therefore, a mobile phone APP or a home gateway is required to be used for carrying out network distribution on the WiFi intelligent product, and the problem of compatibility of the network distribution is particularly remarkable.
The traditional mode for testing the compatibility of the distribution network requires a great deal of time for manual testing by staff, and results in low testing efficiency.
Disclosure of Invention
Based on this, it is necessary to provide a method and an electronic device for automatically testing the compatibility of the WiFi module, so as to improve the testing efficiency of the compatibility of the distribution network.
In a first aspect, an embodiment of the present invention provides a method for automatically testing WiFi module compatibility, 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 as to enable the terminal to be connected to the router to be tested in a switching way;
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 binds 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 test results between the router to be tested, 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 steps of:
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 switch connection 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, a switching instruction is sent to a terminal so that the terminal can be switched to the next router to be tested;
and ending the test if the number of the tested routers reaches the preset number.
In some embodiments, after the acquiring 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 the printing information from the 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 command for activating the distribution network 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 the command to activate the distribution network to the WiFi module to be tested to enable the WiFi module to be tested to enter the distribution network, the method further includes:
judging whether the WiFi module to be tested formally enters a distribution network state or not;
and if the WiFi module to be tested formally enters a network allocation state, executing the 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 obtaining the distribution network state of the WIFI module to be tested, and recording the test result according to the distribution network state includes:
judging whether the WiFi module to be tested is successfully matched with the router to be tested;
if the WiFi module to be tested fails to be connected with the router to be tested, recording a network connection 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, starting network distribution timing to calculate network distribution duration;
judging whether the page of the test APP shows successful network allocation;
if the network allocation is successful, recording a test result;
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 the user on the setting page, so as to acquire the script configuration information.
In some embodiments, the method further comprises:
after the testing of the terminal and the WiFi module to be tested is finished, the terminal is switched to a next terminal which is different from the terminal and is not tested yet, the step of obtaining preset script configuration information is carried out in a returning mode, the script configuration information comprises the information of the router to be tested and the physical address of the WiFi module to be tested, and the testing of the next terminal and the WiFi module to be tested is completed until the testing of all the terminals and the WiFi module to be tested is completed.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; the method comprises the steps of,
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 automatically testing WiFi module compatibility described above.
In a third aspect, embodiments of the present invention further provide a non-volatile computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to perform the above-described method of automatically testing WiFi module compatibility.
Compared with the prior art, the invention has the beneficial effects that: compared with the prior art, the method and the electronic device for automatically testing the WiFi module compatibility are different from the prior art in 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, then a switching instruction is sent to the terminal, so that the terminal is connected to the router to be tested in a switching mode, then a 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 a page of the test APP, the WiFi module to be tested is enabled to be bound with the router to be tested, finally the network distribution state of the WiFi module to be tested is obtained, and the test result is recorded according to the network distribution state, therefore, the network distribution 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 network distribution compatibility can be improved, and the mobile phone model and the router compatible with the WiFi module can be determined rapidly.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a schematic diagram of an application scenario of a method for automatically testing WiFi module compatibility in an embodiment of the invention;
FIG. 2 is a flow chart of a method for automatically testing WiFi module compatibility in accordance with an embodiment of the invention;
FIG. 3 is a flowchart illustrating a method for determining whether a WiFi module to be tested enters a distribution network state according to an embodiment of the invention;
fig. 4 is a schematic flow chart of judging whether the WiFi module to be tested is successfully configured according to an embodiment of the invention;
FIG. 5 is a detailed flow chart of a method for automatically testing WiFi module compatibility in accordance with one embodiment of the invention;
FIG. 6 is a schematic diagram of an apparatus for automatically testing WiFi module compatibility according to an embodiment of the invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, if not in conflict, the features of the embodiments of the present invention may be combined with each other, which is within the protection scope of the present invention. In addition, while functional block division is performed in a device diagram and logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. Furthermore, the words "first," "second," "third," and the like as used herein do not limit the order of data and execution, but merely distinguish between identical or similar items that have substantially the same function and effect.
The method for automatically testing the compatibility of the WiFi module is suitable for the application scene shown in FIG. 1, and comprises the WiFi module to be tested, a terminal and a PC. Fig. 1 schematically illustrates a WiFi module 10 to be tested, a PC computer 20, and a terminal 30, where the PC computer 20 is wired to the WiFi module 10 to be tested through a serial port, and meanwhile, the PC computer is connected to the terminal 30 through a USB data line. The PC computer is provided with a serial port upper computer in an operation mode, 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 achieved, namely, compatibility test of a plurality of routers to be tested, terminals and the WiFi module to be tested is achieved. The terminal may be, for example, a smart phone, a tablet computer, a personal computer, a laptop computer, and the like. The WiFi module may be, for example, a aromatherapy machine, a bright light aromatherapy machine, or 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 can also comprise 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 WiFi module compatibility, the method being performed by an electronic device (e.g., a PC computer in fig. 1), the method including:
step 202, 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.
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, wherein 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 in an information field of an upper computer, and then a Service Set Identifier (SSID) and a password (Key) of a router to be tested and a physical address of a WiFi module to be tested, which are input by a user in the setting page, are acquired, so that script configuration information is obtained.
In some embodiments, as shown in fig. 3, after the preset script configuration information is obtained, the method further includes:
step 302, sending a query instruction to the WiFi module to be tested.
Step 304, determining whether the WiFi module to be tested replies to the query instruction.
Specifically, the query instruction is used for querying an instruction of the distribution network state of the WiFi module to be tested, the controller controls the upper computer on the PC to send the query instruction to the WiFi module to be tested, and then whether the WiFi module to be tested replies the query instruction is judged.
Step 306, if the WiFi module replies to the query command, reading the print information from the information bar.
Specifically, the WiFi module to be tested replies the query instruction in a message reply 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 tested is normal or not is determined by reading the printing information of the information bar of the upper computer, and further, the state of the WiFi module to be tested can be determined by the data type of the reply information of the WiFi module to be tested. For example, if the data type returned by the current WiFi module to be tested is the active network type, it may be determined that the current WiFi module to be tested is in the network state to be configured.
And step 308, determining whether the WiFi module to be tested is ready according to the printing information.
Step 310, if the WiFi module to be tested is ready, sending a command for activating the distribution network to the WiFi module to be tested, so that the WiFi module to be tested enters a distribution network state.
In the embodiment of the invention, the WiFi module to be tested enters the distribution network state to indicate that the WiFi module to be tested is still in the ready state at the moment, and the distribution network is not formally started. After the printing information is acquired, whether the WiFi module to be detected is ready or not can be determined according to the printing information, namely whether the WiFi module to be detected is ready to enter a distribution network state or not is determined. Specifically, taking the above example, when the print information is data of the type of the active distribution network, it is indicated that the WiFi module to be tested is ready. And when the WiFi module to be tested is ready, sending a command for activating the distribution network to the WiFi module to be tested so that the WiFi module to be tested is ready to enter a distribution network state, and performing formal distribution network on the WiFi module to be tested only after the WiFi module to be tested is ready to enter the distribution network state.
Further, in some embodiments, after sending the command for activating the distribution network to the WiFi module to be tested, it is required to confirm whether the WiFi module to be tested really enters the distribution network state.
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. When the WiFi module to be tested formally enters a distribution network state, determining information is sent to an information column of the upper computer. After the determining information sent by the WiFi module to be tested is obtained, the WiFi module to be tested defaults to formally enter a network configuration 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 WiFi module configuration network state to be detected is confirmed in a judging mode, so that the situation that the terminal is switched because the WiFi module to be detected is not ready can be avoided, and the testing efficiency is improved.
And 204, sending a switching instruction to a terminal so as to enable the terminal to be connected to the router to be tested in a switching way.
In the embodiment of the invention, after the preset script information is acquired, the automatic script sends a switching instruction to the terminal in a wired mode, and the terminal is controlled to be connected to the router to be tested in a switching mode. The terminal is connected with the router 1 before receiving the switching instruction, and the terminal is disconnected with the router 1 after receiving the switching instruction, so that the terminal is connected with the router to be tested, and the terminal is convenient for the compatibility test in the later period.
Step 206, 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 binds the router to be tested, wherein the test APP is used for providing a setting page.
In the embodiment of the invention, if the compatibility between the WiFi module to be tested and the terminal as well as the WiFi module to be tested is to be tested, a test APP on the terminal is required to be used, the test APP is used for providing a setting page, and when the three-party compatibility test is carried out, the router to be tested and the WiFi module to be tested are required to be bound through the test APP on the terminal in advance. Specifically, a test APP on the terminal is started through an ADB command, then a password of the router to be tested and a physical address of the WiFi module to be tested are automatically input on a page of the test APP, so that the WiFi module to be tested is bound with the router to be tested, the WiFi module to be tested and the router to be tested can be located in the same local area network, the password of the router to be tested can be obtained by the WiFi module to be tested, and compatibility testing is facilitated in the later period.
Step 208, 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.
The configuration network state of the WiFi module to be tested includes, but is not limited to, whether the WiFi module to be tested is bound with the router to be tested, whether the router is successfully connected, the strength of the WiFi radio frequency signal, and the like. The test results include, but are not limited to, router information to be tested currently, network allocation time consumption, network allocation success, network allocation failure 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 the upper computer, and the electronic equipment obtains the distribution network state of the to-be-tested WiFi module from the information field of the upper computer, so that the test result is recorded according to the distribution network state. If the test result is that the network allocation is successful, the WiFi module to be tested is compatible with the router to be tested and the terminal, so that the type of the router compatible with the WiFi module to be tested and the type of the terminal can be determined; if the test result is failure, the test result indicates that the WiFi module to be tested is incompatible with the router to be tested and the terminal, and further the router and the terminal model incompatible with the WiFi module to be tested are eliminated.
As an implementation of step 208, as shown in fig. 4, it includes:
step 402, determining whether the WiFi module to be tested is successfully configured with the router to be tested.
And step 404, if the WiFi module to be tested fails to be connected to the router to be tested, recording the network connection failure result of the WiFi module to be tested.
Step 406, if the WiFi module to be tested and the router to be tested are successfully configured, starting the timing of the network configuration to calculate the duration of the network configuration.
Step 408, determining whether the page of the test APP shows that the network allocation is successful.
Step 410, if the network allocation is successful, recording the test result.
If the network allocation fails, step 412 is performed, the test failure result is recorded.
Specifically, to obtain whether the WiFi module to be tested is successfully configured, information of an information bar of the upper computer needs to be obtained, and whether the WiFi module to be tested is successfully configured is judged through the obtained information. After the information of the network allocation failure of the WiFi module to be detected is obtained, the network allocation failure result of the WiFi module to be detected is recorded, so that the subsequent analysis and processing of the reason of the network allocation failure are facilitated. And after the information of the information field of the upper computer determines that the WiFi module to be tested is successfully distributed, starting the distribution timing, so as to calculate the distribution duration.
Further, after judging whether the WiFi module to be tested is successfully distributed, judging whether the page of the test APP is successfully distributed. Specifically, whether the test APP displays successful network allocation is determined by checking information of the test APP page, and if the test APP page displays successful network allocation, a successful network allocation result is recorded; if the test APP shows the network distribution failure, recording the network distribution failure result of the test APP.
In some embodiments, the script configuration information further includes a preset number of tests, the method further including: 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 switch connection to the router to be tested.
The script configuration information comprises a Service Set Identifier (SSID) and a password (Key) of the router to be tested, and the physical address of the WiFi module to be tested, and also comprises preset test times. Specifically, whether the test times of the router to be tested and the WiFi module to be tested reach the preset test times or not is judged, if the test times do not reach the preset test times, switching execution is continued to be performed to send a switching instruction to a terminal, so that the terminal is connected to the router to be tested in a switching mode.
In some embodiments, if the number of tests reaches the preset number of tests, setting the router to be tested as a tested router, and continuously judging whether the number of the tested routers reaches a preset number; if the number of the tested routers does not reach the preset number, a switching instruction is sent to a terminal so that the terminal can be switched to the next router to be tested; if the number of the tested routers reaches the preset number, the test is ended, the test results are stored separately, and the multiple tests are performed in the mode, so that the test results are more accurate, and further the compatibility report obtained based on the multiple test results is more accurate. The results of the multiple tests include, but are not limited to, the router information to be tested, network allocation success, network allocation failure, network allocation time consumption and the like, and also include network allocation failure rate, network allocation success rate and the like. The network allocation success rate=the network allocation success times/the network allocation times x100%, the network allocation failure rate=the network allocation failure times/the network allocation times x100%, the network allocation times are obtained by performing multiple tests on the same router to be tested and the same WiFi module to be tested, and the router to be tested and the terminal adapted to the WiFi module to be tested can be clearly known through the network allocation success rate and the failure rate.
In some embodiments, to get a richer compatibility report, the method further comprises:
after the testing of the terminal and the WiFi module to be tested is finished, the terminal is switched to a next terminal which is different from the terminal and is not tested yet, the step of obtaining preset script configuration information is carried out in a returning mode, the script configuration information comprises the information of the router to be tested and the physical address of the WiFi module to be tested, and the testing of the next terminal and the WiFi module to be tested is completed until the testing of all the terminals and the WiFi module to be tested is completed.
In the embodiment of the invention, in order to obtain richer compatibility reports, a plurality of terminals of different types are required to be tested, so that compatibility between the WiFi module to be tested and the terminals is determined, the test of the terminals 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 can be made to the test embodiments of the WiFi module to be tested and the router to be tested, so that the embodiment of the invention does not describe the test embodiments excessively.
In the embodiment of the invention, the preset script configuration information, namely the information of the router to be tested and the physical address of the WiFi module, is obtained, and then a switching instruction is sent to the terminal, so that the terminal is switched and connected to the router to be tested, then a 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 a page of the test APP, 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 finally obtained, and 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 the mobile phone model and the router model compatible with the WiFi module can be rapidly determined.
The present invention will be described in detail below for the understanding of the present invention, as shown in fig. 5,
s500, 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, 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 to the query instruction, if yes, 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 command for activating a distribution network to the WiFi module to be tested so as to enable the WiFi module to be tested to enter 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, a switching instruction is sent to a terminal so that the terminal is switched to the router to be tested, and S508 is performed;
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 binds 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 is successfully matched with the router to be tested, if so, switching to S510, otherwise, switching to S511;
s510, recording a failure result of the WiFi module to be tested;
s511, starting distribution network timing to calculate distribution network duration, and turning to S512;
s512, judging whether the page of the test APP displays the successful distribution network, if so, turning to S513, otherwise, 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, 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 a tested router, and turning to S517;
s517, judging whether the number of the tested routers reaches a preset number, if the number of the tested routers does not reach the preset number, turning to S518, otherwise turning to S519;
s518, sending a switching instruction to a terminal so as to enable the terminal to be switched to a next router to be tested;
and S519, ending the test, wherein the test ended here 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 yet, and turning to S500 to finish testing of the next terminal and the WiFi module to be tested until testing of all terminals and the WiFi module to be tested is finished.
Correspondingly, the embodiment of the invention further provides a device 600 for automatically testing the compatibility of the WiFi module, as shown in fig. 6, including:
the obtaining module 602 is 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 to connect to the router to be tested;
the starting module 606 is configured to start a test APP on the terminal, and input 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 binds the router to be tested, where the test APP is configured to provide a setting page;
the recording module 608 is configured to obtain a configuration 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 configuration network state.
In the embodiment of the invention, the preset script configuration information is acquired through the acquisition module, wherein the script configuration information comprises the information of the router to be tested and the physical address of the 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; then, a test APP on the terminal is started through a starting module, and information of the router to be tested and a physical address of the WiFi module to be tested are input on a page of the test APP, so that 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, and the test result is recorded according to the distribution network state through the 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 compatible with the WiFi module can be rapidly determined.
Optionally, in other embodiments of the apparatus, as shown in fig. 6, the apparatus 600 further includes:
the judging module 610 is configured to judge 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 or not.
And ending the test if the number of the tested routers reaches the preset number.
And judging whether the WiFi module to be tested replies the query instruction.
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.
And judging whether the WiFi module to be tested is successfully matched with the router to be tested.
Judging whether the page of the test APP shows successful network allocation.
Optionally, in other embodiments of the apparatus, as shown in fig. 6, the apparatus 600 further includes:
and a display module 612, configured to display the 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 the 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 switch connection 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 a terminal so as to enable the terminal to be switched 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 command for activating the distribution network 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 network configuration state, executing the step of sending a switching instruction to a terminal so as to switch the terminal to the router to be tested.
Optionally, in other embodiments of the apparatus, the recording module 608 is specifically configured to:
if the WiFi module to be tested fails to be connected with the router to be tested, recording a network connection 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, starting network distribution timing to calculate the network distribution duration.
If the network allocation is successful, recording a test result;
if the distribution network fails, recording a test failure result.
It should be noted that, the device for automatically testing the compatibility of the WiFi module according to the embodiment of the invention may execute the method for automatically testing the compatibility of the WiFi module according to the embodiment of the invention, and has the corresponding functional module and beneficial effects of the execution method.
Fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present invention, 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 otherwise, for example in fig. 7.
The memory 704 is used as a non-volatile computer readable storage medium 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 WiFi module compatibility in the embodiments of the present invention. The processor 702 executes various functional applications and data processing of the electronic device by running non-volatile software programs, instructions and modules stored in the memory 704, i.e. implementing the method of automatically testing WiFi module compatibility in the above embodiments.
Memory 704 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created from device usage that automatically tests WiFi module compatibility, and the like. In addition, 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 located remotely from the processor 702, which may be connected to a device for automated testing of WiFi module compatibility via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Embodiments of the present invention also provide a non-volatile computer-readable storage medium storing computer-executable instructions that, when executed by one or more processors, enable the one or more processors to perform the method for automatically testing WiFi module compatibility in any of the method embodiments described above.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and where the program may include processes implementing 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 (Random Access Memory, RAM), or the like.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the invention, the 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 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (10)

1. A method for automatically testing compatibility of a WiFi module, the method comprising:
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 as to enable the terminal to be connected to the router to be tested in a switching way;
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 binds the router to be tested, and the WiFi module to be tested and the router to be tested are located in the same local area network, and the WiFi module to be tested can acquire a password of the router to be tested, wherein the test APP is used for providing a setting page;
and acquiring a distribution network state of the WiFi module to be tested, and recording test results between the router to be tested, the terminal and the WiFi module to be tested according to the distribution network state, wherein the distribution network state of the WiFi module to be tested comprises whether the router to be tested is bound, whether the router to be connected is successful or not and WiFi radio frequency signal intensity or not.
2. The method of claim 1, wherein the script configuration information further comprises a preset number of tests, the method further comprising:
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 switch connection to the router to be tested.
3. The method according to claim 2, wherein 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, a switching instruction is sent to a terminal so that the terminal can be switched to the next router to be tested;
and ending the test if the number of the tested routers reaches the preset number.
4. The method of claim 1, wherein after the acquiring 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 the printing information from the 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 command for activating the distribution network 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 of claim 4, wherein after sending the command to activate the network to the WiFi module to be tested to cause the WiFi module to be tested to enter the network, the method further comprises:
judging whether the WiFi module to be tested formally enters a distribution network state or not;
and if the WiFi module to be tested formally enters a network allocation state, executing the 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 the configuration 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 configuration state, includes:
judging whether the WiFi module to be tested is successfully matched with the router to be tested;
if the WiFi module to be tested fails to be connected with the router to be tested, recording a network connection 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, starting network distribution timing to calculate network distribution duration;
judging whether the page of the test APP shows successful network allocation;
if the network allocation is successful, recording a test result;
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 the user on the setting page, so as to acquire the script configuration information.
8. The method according to claim 1, wherein the method further comprises: after the testing of the terminal and the WiFi module to be tested is finished, the terminal is switched to a next terminal which is different from the terminal and is not tested yet, the step of obtaining preset script configuration information is carried out in a returning mode, the script configuration information comprises the information of the router to be tested and the physical address of the WiFi module to be tested, and the testing of the next terminal and the WiFi module to be tested is completed until the testing of all the terminals and the WiFi module to be tested is completed.
9. An electronic device, comprising:
at least one processor; the method comprises the steps of,
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 which, when executed by a processor, cause the processor to perform the method of any of claims 1-8.
CN202011294940.8A 2020-11-18 2020-11-18 Method for automatically testing WiFi module compatibility and electronic equipment Active CN112566156B (en)

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 CN112566156A (en) 2021-03-26
CN112566156B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
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
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

Citations (2)

* Cited by examiner, † Cited by third party
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
CN108712300A (en) * 2018-04-02 2018-10-26 四川斐讯信息技术有限公司 A kind of automated testing method and system of smart machine distribution

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154859B (en) * 2016-03-02 2020-09-04 美的集团股份有限公司 Intelligent electric appliance distribution network testing method and system and control terminal
CN110191483A (en) * 2019-07-01 2019-08-30 深圳勇艺达机器人有限公司 A kind of Performance Test System and method for Wifi mould group
CN110493812B (en) * 2019-08-23 2023-04-07 上海庆科信息技术有限公司 Distribution network test processing method, device and system, processor and master control equipment
CN110708717A (en) * 2019-09-27 2020-01-17 青岛海尔科技有限公司 Method and device for compatibility test, terminal equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN108712300A (en) * 2018-04-02 2018-10-26 四川斐讯信息技术有限公司 A kind of automated testing method and system of smart machine distribution

Also Published As

Publication number Publication date
CN112566156A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112566156B (en) Method for automatically testing WiFi module compatibility and electronic equipment
CN106937273B (en) HD icon display control method and device
EP3051776B1 (en) Method and apparatus for controlling turn-on and turn-off of smart socket
CN107483254B (en) Production test method and device for intelligent module of Internet of things
CN108153696B (en) Embedded system serial port module matching method, device, medium and computer equipment
CN108306778A (en) A kind of mobile terminal test method, device and system
WO2018014857A1 (en) Set top box wifi throughput testing system, method and device
CN107135124B (en) Method and system for multi-Bluetooth communication parallel test
CN112737816B (en) Equipment binding method and device
CN106488539A (en) The processing method of WiFi resource and system in terminal
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN104411021A (en) Dual-IMSI automatic switching method and system for realizing global roaming
CN110708717A (en) Method and device for compatibility test, terminal equipment and storage medium
CN105530625B (en) Information processing method and electronic equipment
CN114328256A (en) Test method, test device, computer-readable storage medium and electronic equipment
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN113515420A (en) Test method and test system
CN104684015A (en) Equipment maintenance method and equipment
WO2021047561A1 (en) Method and apparatus for migrating subscriber subscription parameter set profile, subscription manager-data preparation+, and operator background system
CN113505031A (en) Up-down test method, up-down test device and readable storage medium
CN110087113B (en) Method and system for wirelessly burning television characteristic information
KR20180129798A (en) How to Verify Phone Number Changes, Devices and Systems
CN113950044B (en) User identification card identification method, device, terminal equipment and storage medium
CN104507073A (en) Method and system for downloading application
CN104284391A (en) Client terminal wireless access method and device

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