CN112437463B - Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium - Google Patents

Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium Download PDF

Info

Publication number
CN112437463B
CN112437463B CN202011328451.XA CN202011328451A CN112437463B CN 112437463 B CN112437463 B CN 112437463B CN 202011328451 A CN202011328451 A CN 202011328451A CN 112437463 B CN112437463 B CN 112437463B
Authority
CN
China
Prior art keywords
test
router
frame
target
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.)
Active
Application number
CN202011328451.XA
Other languages
Chinese (zh)
Other versions
CN112437463A (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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202011328451.XA priority Critical patent/CN112437463B/en
Publication of CN112437463A publication Critical patent/CN112437463A/en
Application granted granted Critical
Publication of CN112437463B publication Critical patent/CN112437463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a method, a device, a system, equipment and a medium for automatically testing Wi-Fi compatibility of a terminal, wherein the method comprises the following steps: acquiring air interface packets sent by different routers to be tested and terminals under different protocol modes; extracting an interactive frame in an air interface packet; analyzing the interactive frame to obtain a parameter field of the interactive frame; obtaining a test parameter; generating test parameter configuration information corresponding to the simulation router according to the test parameters and the parameter fields of the target interaction frame corresponding to the target router to be tested and the target protocol mode; sending test parameter configuration information and an activation instruction to the simulation router so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information; and controlling the test terminal to be connected with the simulation router according to the test parameters, and testing the connectivity between the test terminal and the simulation router to obtain a test result. The invention can realize the automatic test of the Wi-Fi compatibility of the test terminal and the router to be tested does not need to be directly used for the test.

Description

Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device, a system, equipment and a medium for automatically testing Wi-Fi compatibility of a terminal.
Background
Conventionally, in order to verify whether the Wi-Fi function of a terminal is well compatible with routers of different brands and models and configured with different authentication encryption methods, a plurality of routers of different brands and models and configured with different authentication encryption methods need to be connected with the terminal one by one and then operated, so as to test the Wi-Fi compatibility function of the terminal. The specific test method comprises the following steps: after the plurality of routers are configured, the terminals are sequentially connected with the routers for data communication, and the next router is connected after the test is finished.
In contrast, in the prior art, a scheme for realizing automatic test of Wi-Fi compatibility of a terminal by building a networking system is designed, and the specific realization method is as follows: the method comprises the steps that a plurality of wireless routers to be tested are deployed in a system, configuration information is set, the terminal completes connection and communication test between the terminal and each wireless router respectively according to the configuration information, and test results are generated. However, when the wireless router to be tested needs to be switched from the test scenario to the application scenario, the configuration information needs to be modified manually, which is time-consuming and labor-consuming.
Disclosure of Invention
In view of the above deficiencies of the prior art, an object of the present invention is to provide a method, an apparatus, a system, a device, and a medium for automatically testing Wi-Fi compatibility of a terminal, so as to implement automatic testing of Wi-Fi compatibility of a test terminal, and during testing, a router to be tested does not need to be directly used for testing, and thus the router to be tested does not need to switch between a test scenario and an application scenario.
In order to achieve the above object, the present invention provides an automatic testing method for Wi-Fi compatibility of a terminal, comprising:
acquiring air interface packets sent by different routers to be tested in different protocol modes and terminals in a wireless connection process;
extracting the interactive frame in each air interface packet;
analyzing each interactive frame to obtain a parameter field of each interactive frame;
acquiring test parameters, wherein the test parameters comprise a target router to be tested, a target protocol mode, a target encryption mode and target password information;
generating test parameter configuration information corresponding to a simulation router according to the test parameters and parameter fields of a target interaction frame corresponding to the target router to be tested and the target protocol mode;
sending the test parameter configuration information and an activation instruction to the simulation router so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information;
and controlling the test terminal to be connected with the simulation router according to the test parameters, and testing the connectivity between the test terminal and the simulation router to obtain a test result.
In a preferred embodiment of the present invention, after parsing each of the interactive frames to obtain a parameter field of each of the interactive frames, the method further includes: and storing the parameter field of each interactive frame and the router to be tested and the protocol mode corresponding to each interactive frame into a database.
In a preferred embodiment of the present invention, the interactive frame includes a management frame, a data frame, and a control frame.
In a preferred embodiment of the present invention, the generating test parameter configuration information corresponding to a simulation router according to the test parameter and the parameter field of the target interaction frame corresponding to the target router to be tested and the target protocol mode includes:
acquiring a target interaction frame corresponding to the target router to be tested and the target protocol mode;
inserting a preset frame type into the management frame of the target interaction frame to obtain a management frame which can be identified by the analog router;
and generating the test parameter configuration information according to the test parameters, the data frame and the control frame in the target interactive frame and the management frame which can be identified by the simulation router.
In a preferred embodiment of the present invention, the testing connectivity between the test terminal and the analog router to obtain a test result includes:
controlling the terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed;
counting the success rate of sending ping packets for multiple times, judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
In a preferred embodiment of the present invention, after obtaining the test result, the method further comprises:
and uploading the test result to a cloud end web server.
In order to achieve the above object, the present invention further provides an automatic testing apparatus for Wi-Fi compatibility of a terminal, comprising:
the system comprises an air interface packet acquisition module, a wireless connection module and a data transmission module, wherein the air interface packet acquisition module is used for acquiring air interface packets sent by different routers to be tested in different protocol modes and terminals in the wireless connection process;
a frame extraction module, configured to extract an interactive frame in each air interface packet;
the frame analysis module is used for analyzing each interactive frame to obtain a parameter field of each interactive frame;
the system comprises a test parameter acquisition module, a target encryption module and a target encryption module, wherein the test parameter acquisition module is used for acquiring configured test parameters, and the test parameters comprise a target router to be tested, a target protocol mode, a target encryption mode and target password information;
the configuration information generating module is used for generating test parameter configuration information corresponding to the simulation router according to the test parameters and the parameter fields of the target interaction frames corresponding to the target router to be tested and the target protocol mode;
the activation module is used for sending the test parameter configuration information and an activation instruction to the simulation router so as to enable the simulation router to perform corresponding configuration and activation according to the test parameter configuration information;
and the test module is used for controlling the test terminal to be connected with the simulation router according to the test parameters and testing the connectivity between the test terminal and the simulation router to obtain a test result.
In a preferred embodiment of the present invention, the apparatus further comprises: and the data storage module is used for storing the parameter field of each interactive frame, the router to be tested and the protocol mode corresponding to each interactive frame into a database.
In a preferred embodiment of the present invention, the interactive frame includes a management frame, a data frame, and a control frame.
In a preferred embodiment of the present invention, the configuration information generating module is specifically configured to:
acquiring a target interaction frame corresponding to the target router to be tested and the target protocol mode;
inserting a preset frame type into the management frame of the target interaction frame to obtain a management frame which can be identified by the analog router;
and generating the test parameter configuration information according to the test parameters, the data frame and the control frame in the target interactive frame and the management frame which can be identified by the simulation router.
In a preferred embodiment of the present invention, the test module is specifically configured to:
controlling the terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed;
counting the success rate of sending ping packets for multiple times, judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
In a preferred embodiment of the present invention, the apparatus further comprises: and the test result uploading module is used for uploading the test result to the cloud end web server.
In order to achieve the above object, the present invention further provides an automatic testing system for Wi-Fi compatibility of a terminal, the system including a testing subsystem, the testing subsystem including:
the automatic Wi-Fi compatibility testing device for the terminal, and the testing terminal and the analog router which are respectively connected with the automatic Wi-Fi compatibility testing device for the terminal are provided.
In a preferred embodiment of the present invention, the system further comprises a plurality of packet capturing subsystems, each of the packet capturing subsystems comprising:
the system comprises the router to be tested, a terminal wirelessly connected with the router to be tested and a packet capturing server, wherein the packet capturing server is connected with the terminal Wi-Fi compatibility automatic testing device.
In order to achieve the above object, the present invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the aforementioned method when executing the computer program.
To achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the aforementioned method.
By adopting the technical scheme, compared with the prior art, the invention has the following beneficial effects:
firstly, acquiring air interface packets sent by different routers to be tested and terminals in a wireless connection process under different protocol modes, extracting interactive frames in the air interface packets, and analyzing the interactive frames to obtain parameter fields of the interactive frames; then, test parameters are obtained, wherein the test parameters comprise a target router to be tested, a target protocol mode, a target encryption mode and target password information, and test parameter configuration information corresponding to the simulation router is generated according to the test parameters and parameter fields of a target interaction frame corresponding to the target router to be tested and the target protocol mode; then, sending the test parameter configuration information and an activation instruction to the simulation router so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information, and sending a test instruction to a test terminal so that the test terminal is connected with the simulation router according to the test parameter; and finally, testing the connectivity between the test terminal and the simulation router to obtain a test result. Therefore, the Wi-Fi compatibility automatic test of the test terminal and the target router to be tested can be realized, and the router to be tested does not need to be directly used for testing during testing, so that the router to be tested does not need to be switched between a test scene and an application scene, the configuration information of the router to be tested is prevented from being adjusted, and time and labor are saved. In addition, when the router to be tested has problems, the interactive frame extracted from the air interface packet can be used for the remote reproduction and positioning of the problems by workers.
Drawings
Fig. 1 is a flowchart of an automatic testing method for Wi-Fi compatibility of a terminal according to embodiment 1 of the present invention;
FIG. 2 is a block diagram of an automatic testing apparatus for Wi-Fi compatibility of a terminal according to embodiment 2 of the present invention;
FIG. 3 is an architecture diagram of an automatic Wi-Fi compatibility testing system of a terminal according to embodiment 3 of the present invention;
FIG. 4 is a flowchart of the test subsystem in embodiment 3 of the present invention;
fig. 5 is an architecture diagram of an electronic device according to embodiment 4 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Example 1
The embodiment provides an automatic testing method for Wi-Fi compatibility of a terminal, as shown in fig. 1, the method includes the following steps:
and S1, acquiring air interface packets sent by different routers to be tested in different protocol modes and terminals in the wireless connection process.
In this embodiment, each router under test supports at least one or more of 802.11b, 11g, 11a, 11n, 11ac protocol modes. When a router to be tested performs wireless communication with a terminal according to a certain protocol mode, an air interface packet at the side of the router to be tested in the communication process is grabbed through a packet grabbing tool (such as a WireShark packet grabbing tool) installed in a packet grabbing server. In this step, the air interface packet is acquired from the packet capturing server through the network.
And S2, extracting the interactive frame in each air interface packet, wherein the interactive frame comprises a management frame, a data frame and a control frame.
And S3, analyzing each interactive frame to obtain the parameter field of each interactive frame. In this embodiment, the parameter field of each interactive frame is a hexadecimal character string.
And S4, storing the parameter field of each interactive frame and the router to be tested and the protocol mode corresponding to each interactive frame into a database at the same time.
S5, acquiring configured test parameters, where in an embodiment, the test parameters include a target router to be tested, a target protocol mode, a target encryption mode, and target password information.
S6, generating test parameter configuration information corresponding to the simulation router according to the test parameters and the parameter fields of the target interaction frame corresponding to the target router to be tested and the target protocol mode. In this embodiment, a specific process of generating the test parameter configuration information is as follows:
firstly, a target interaction frame corresponding to the target router to be tested and the target protocol mode is obtained from a database.
And then, inserting a preset frame type into the management frame of the target interactive frame to obtain the management frame which can be identified by the analog router. Generally, the IE element of the management frame of the interaction frame contains the ID, the length, and the parameter value, and does not contain the frame type, and the test parameter configuration information of the analog router generally requires the frame type of the management frame. In this embodiment, the frame types of the management frame include four types as follows: a beacon frame, a probe response frame, an authentication response frame, and an association response frame.
And finally, combining the test parameters, the data frames and the control frames in the target interactive frames and the management frames which can be identified by the simulation router to generate the test parameter configuration information.
And S7, sending the test parameter configuration information and an activation instruction to the simulation router so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information. At this time, the simulation router is used for simulating the target router to be tested in the target protocol mode.
And S8, sending a test instruction to a test terminal so that the test terminal is connected with the simulation router according to the test parameters.
And then, S9, testing connectivity between the test terminal and the analog router to obtain a test result. In this embodiment, an ICMP (Internet Control Message Protocol) is used to perform connectivity test, and the specific test process is as follows:
firstly, controlling the test terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed; and then counting the success rate of sending ping packets for multiple times, and judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
S10, the test result is uploaded to the cloud end web server, and meanwhile, an intermediate result (such as the sending failure times) in the test process can be sent to the cloud end web server, so that analysis of a tester is facilitated, and the test efficiency is improved.
Through the steps, the Wi-Fi compatibility automatic test of the test terminal and the target router to be tested can be realized, and the router to be tested does not need to be directly used for testing during testing, so that the router to be tested does not need to be switched between a test scene and an application scene, the configuration information of the router to be tested is prevented from being adjusted, and time and labor are saved. In addition, when the router to be tested has problems, the interactive frame extracted from the air interface packet can be used for the remote reproduction and positioning of the problems by workers.
Example 2
The present embodiment provides an automatic testing apparatus for terminal Wi-Fi compatibility, as shown in fig. 2, the apparatus 10 includes: an air interface packet obtaining module 11, a frame extracting module 12, a frame parsing module 13, a data storage module 14, a test parameter obtaining module 15, a configuration information generating module 16, an activating module 17, a testing module 18, and a testing result uploading module 19.
The following describes each module of this embodiment in detail:
the air interface packet obtaining module 11 is configured to obtain air interface packets sent by different routers to be tested in different protocol modes and terminals in a wireless connection process.
In this embodiment, each router under test supports at least one or more of 802.11b, 11g, 11a, 11n, 11ac protocol modes. When a router to be tested performs wireless communication with a terminal according to a certain protocol mode, an air interface packet at the side of the router to be tested in the communication process is grabbed through a packet grabbing tool (such as a WireShark packet grabbing) installed in a packet grabbing server. In this embodiment, the air interface packet obtaining module 11 obtains the air interface packet from the packet capturing server through a network.
The frame extraction module 12 is configured to extract an interactive frame in each air interface packet, where the interactive frame includes a management frame, a data frame, and a control frame.
The frame parsing module 13 is configured to parse each interactive frame to obtain a parameter field of each interactive frame. In this embodiment, the parameter field of each interactive frame is a hexadecimal character string.
The data storage module 14 is configured to store the parameter field of each interactive frame and the router to be tested and the protocol mode corresponding to each interactive frame in a database at the same time.
The test parameter obtaining module 15 is configured to obtain configured test parameters, where in an embodiment, the test parameters include a target router to be tested, a target protocol mode, a target encryption mode, and target password information.
The configuration information generating module 16 is configured to generate the test parameter configuration information corresponding to the simulated router according to the test parameter and the parameter field of the target interaction frame corresponding to the target router to be tested and the target protocol mode. In this embodiment, a specific process of generating the test parameter configuration information is as follows:
firstly, a target interaction frame corresponding to the target router to be tested and the target protocol mode is obtained from a database.
And then, inserting a preset frame type into the management frame of the target interactive frame to obtain the management frame which can be identified by the analog router. Generally, the IE element of the management frame of the interaction frame contains the ID, the length, and the parameter value, and does not contain the frame type, and the test parameter configuration information of the analog router generally requires the frame type of the management frame. In this embodiment, the frame types of the management frame include four types as follows: a beacon frame, a probe response frame, an authentication response frame, and an association response frame.
And finally, combining the test parameters, the data frames and the control frames in the target interactive frames and the management frames which can be identified by the simulation router to generate the test parameter configuration information.
The activation module 17 is configured to send the test parameter configuration information and the activation instruction to the simulation router, so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information. At this time, the simulation router is used for simulating the target router to be tested in the target protocol mode.
The test module 18 is configured to send a test instruction to a test terminal, so that the test terminal is connected to the analog router according to the test parameter, and then test connectivity between the test terminal and the analog router to obtain a test result. In this embodiment, an ICMP (Internet Control Message Protocol) is used to perform connectivity test, and the specific test process is as follows:
firstly, controlling the test terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed; and then counting the success rate of sending ping packets for multiple times, and judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
The test result uploading module 19 is configured to upload the test result to the cloud web server, and simultaneously send an intermediate result (such as the number of failed sending times) in the test process to the cloud web server, which is helpful for a tester to analyze and improves the test efficiency.
Through the steps, the Wi-Fi compatibility automatic test of the test terminal and the target router to be tested can be realized, and the router to be tested does not need to be directly used for testing during testing, so that the router to be tested does not need to be switched between a test scene and an application scene, the configuration information of the router to be tested is prevented from being adjusted, and time and labor are saved. In addition, when the router to be tested has problems, the interactive frame extracted from the air interface packet can be used for the remote reproduction and positioning of the problems by workers.
Example 3
The embodiment provides an automatic testing system for Wi-Fi compatibility of a terminal, and as shown in fig. 3, the system includes several packet capturing subsystems and a testing subsystem.
In this embodiment, each packet capturing subsystem includes: the router to be tested 2, the terminal 3 and the packet capturing server 4, wherein the terminal 3 is in wireless connection with the router to be tested 2. Wherein, each router 2 to be tested at least supports one or more of 802.11b, 11g, 11a, 11n and 11ac protocol modes, and a packet capturing tool installed in the packet capturing server 4. When a certain router 2 to be tested performs wireless communication with the terminal 3 according to a certain protocol mode, an air interface packet at the side of the router 2 to be tested in the communication process is captured by a packet capturing tool installed in a packet capturing server 4.
In this embodiment, the test subsystem includes: a test terminal 5, an analog router 6, and a terminal Wi-Fi compatibility automatic test apparatus 10 as described in embodiment 2. The automatic test device 10 is integrated in a test device 1, the test device 1 is connected with a test terminal 5 through a USB, the test device 1 is connected with an analog router 6 through an Ethernet, and the test device 5 is connected with a packet capturing server 4 through a network 7.
The working flow of the testing subsystem of this embodiment is shown in fig. 4, wherein steps S1-S10 in fig. 4 are identical to the operations performed in steps S1-S10 in embodiment 1, and are not repeated herein.
The analog router in this embodiment may be implemented by using Golden AP equipment of Ixia, and certainly, may also be implemented by using other suitable equipment, which is not limited in this embodiment.
In this embodiment, the automatic test apparatus 10 issues test commands to the test terminals in different ways for different product types. For example, when the automatic test device 10 is integrated in an Android test device and the test terminal is Android, the automatic test device 10 issues a test instruction by calling an Android system interface function; when the test equipment and the test terminal are internet-of-things non-interface products, a test instruction can be issued through a serial port AT command.
Example 4
The present embodiment provides an electronic device, which may be represented in the form of a computing device (for example, may be a server device), and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the automatic camera performance testing method provided in embodiment 1.
Fig. 5 shows a schematic diagram of a hardware structure of the embodiment, and as shown in fig. 5, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the various system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 includes volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and can further include Read Only Memory (ROM) 923.
Memory 92 also includes a program/utility 925 having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes each functional application and data processing, such as the automatic test method for camera performance provided in embodiment 1 of the present invention, by executing the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 5
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the steps of the automatic test method for camera performance of embodiment 1.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product including program code for causing a terminal device to execute the steps of implementing the automatic camera performance testing method of embodiment 1 when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be understood by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. An automatic test method for Wi-Fi compatibility of a terminal is characterized by comprising the following steps:
acquiring air interface packets sent by different routers to be tested in different protocol modes and terminals in the wireless connection process;
extracting the interactive frame in each air interface packet;
analyzing each interactive frame to obtain a parameter field of each interactive frame;
acquiring test parameters, wherein the test parameters comprise a target router to be tested, a target protocol mode, a target encryption mode and target password information;
generating test parameter configuration information corresponding to a simulation router according to the test parameters and parameter fields of a target interaction frame corresponding to the target router to be tested and the target protocol mode;
sending the test parameter configuration information and an activation instruction to the simulation router so that the simulation router performs corresponding configuration and activation according to the test parameter configuration information;
controlling a test terminal to be connected with the simulation router according to the test parameters, and testing the connectivity between the test terminal and the simulation router to obtain a test result;
the interactive frame comprises a management frame, a data frame and a control frame;
generating test parameter configuration information corresponding to a simulation router according to the test parameters and parameter fields of the target interaction frame corresponding to the target router to be tested and the target protocol mode, wherein the test parameter configuration information comprises:
acquiring a target interaction frame corresponding to the target router to be tested and the target protocol mode;
inserting a preset frame type into the management frame of the target interaction frame to obtain a management frame which can be identified by the analog router;
and generating the test parameter configuration information according to the test parameters, the data frame and the control frame in the target interactive frame and the management frame which can be identified by the simulation router.
2. The method of claim 1, wherein after parsing each interactive frame to obtain the parameter field of each interactive frame, the method further comprises: and storing the parameter field of each interactive frame, the router to be tested corresponding to each interactive frame and the protocol mode to a database.
3. The method according to claim 1, wherein the step of testing connectivity between the test terminal and the simulation router to obtain a test result comprises:
controlling the terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed;
counting the success rate of sending ping packets for multiple times, judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
4. The method of claim 1, wherein after obtaining the test result, the method further comprises:
and uploading the test result to a cloud end web server.
5. An automatic testing device for Wi-Fi compatibility of a terminal is characterized by comprising:
the system comprises an air interface packet acquisition module, a wireless connection module and a data transmission module, wherein the air interface packet acquisition module is used for acquiring air interface packets sent by different routers to be tested in different protocol modes and terminals in the wireless connection process;
a frame extraction module, configured to extract an interactive frame in each air interface packet;
the frame analysis module is used for analyzing each interactive frame to obtain a parameter field of each interactive frame;
the system comprises a test parameter acquisition module, a target encryption module and a target encryption module, wherein the test parameter acquisition module is used for acquiring configured test parameters, and the test parameters comprise a target router to be tested, a target protocol mode, a target encryption mode and target password information;
the configuration information generating module is used for generating test parameter configuration information corresponding to the simulation router according to the test parameters and the parameter fields of the target interaction frames corresponding to the target router to be tested and the target protocol mode;
the activation module is used for sending the test parameter configuration information and an activation instruction to the simulation router so as to enable the simulation router to perform corresponding configuration and activation according to the test parameter configuration information;
the test module is used for controlling a test terminal to be connected with the simulation router according to the test parameters and testing the connectivity between the test terminal and the simulation router to obtain a test result;
the interactive frame comprises a management frame, a data frame and a control frame;
the configuration information generation module is specifically configured to:
acquiring a target interaction frame corresponding to the target router to be tested and the target protocol mode;
inserting a preset frame type into the management frame of the target interaction frame to obtain a management frame which can be identified by the analog router;
and generating the test parameter configuration information according to the test parameters, the data frames and the control frames in the target interactive frame and the management frames which can be identified by the simulation router.
6. The device for automatically testing Wi-Fi compatibility of a terminal according to claim 5, further comprising: and the data storage module is used for storing the parameter field of each interactive frame, the router to be tested corresponding to each interactive frame and the protocol mode to a database.
7. The device for automatically testing Wi-Fi compatibility of a terminal according to claim 5, wherein the testing module is specifically configured to:
controlling the terminal to send ping packets to the simulation router for multiple times, and judging whether the packet loss rate of each time of sending is lower than a preset packet loss rate threshold value, if so, judging that the sending is successful, and if not, judging that the sending is failed;
counting the success rate of sending ping packets for multiple times, judging whether the success rate is lower than a preset success rate threshold value, if so, judging that the test fails, and if not, judging that the test succeeds.
8. The device for automatically testing Wi-Fi compatibility of a terminal according to claim 5, further comprising: and the test result uploading module is used for uploading the test result to the cloud end web server.
9. An automatic test system for Wi-Fi compatibility of a terminal, which is characterized by comprising a test subsystem, wherein the test subsystem comprises:
the terminal Wi-Fi compatibility automatic test device of any one of the preceding claims 5-8, and the test terminal and the analog router connected to the terminal Wi-Fi compatibility automatic test device, respectively.
10. The system according to claim 9, wherein said system further comprises a plurality of packet capturing subsystems, each of said packet capturing subsystems comprising:
the system comprises the router to be tested, a terminal wirelessly connected with the router to be tested and a packet capturing server, wherein the packet capturing server is connected with the terminal Wi-Fi compatibility automatic testing device.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202011328451.XA 2020-11-24 2020-11-24 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium Active CN112437463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011328451.XA CN112437463B (en) 2020-11-24 2020-11-24 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011328451.XA CN112437463B (en) 2020-11-24 2020-11-24 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN112437463A CN112437463A (en) 2021-03-02
CN112437463B true CN112437463B (en) 2022-09-16

Family

ID=74693927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011328451.XA Active CN112437463B (en) 2020-11-24 2020-11-24 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN112437463B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038499B (en) * 2021-04-22 2022-07-08 紫光展锐(重庆)科技有限公司 Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN113742236A (en) * 2021-09-13 2021-12-03 展讯半导体(成都)有限公司 Test configuration method, electronic device and storage medium
CN114090117A (en) * 2021-11-10 2022-02-25 深圳Tcl新技术有限公司 Configuration method, device, equipment and storage medium
CN115242673A (en) * 2022-07-21 2022-10-25 深圳市凯利华电子有限公司 Detection apparatus for detect router network stability
CN117040667B (en) * 2023-10-08 2023-12-19 灿芯技术(深圳)有限公司 WiFi interference test method and device based on packet grabbing playback

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN106254147A (en) * 2016-09-08 2016-12-21 珠海全志科技股份有限公司 A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN108260188A (en) * 2018-02-28 2018-07-06 惠州Tcl移动通信有限公司 A kind of Wi-Fi connection control method and system
CN111163463A (en) * 2019-12-27 2020-05-15 深圳市宏电技术股份有限公司 Method, device, equipment and storage medium for accessing wireless equipment to router

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11368327B2 (en) * 2008-08-11 2022-06-21 Icontrol Networks, Inc. Integrated cloud system for premises automation
EP2115943B1 (en) * 2007-02-27 2018-04-04 Thomson Licensing Method and apparatus for power management in wlan
CN103532782B (en) * 2013-10-15 2017-07-28 东南大学 A kind of WLAN wireless network testers and its method of testing
US9703743B2 (en) * 2014-03-31 2017-07-11 Juniper Networks, Inc. PCIe-based host network accelerators (HNAS) for data center overlay network
CN104410986A (en) * 2014-11-10 2015-03-11 福建联迪商用设备有限公司 Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
US10251079B2 (en) * 2016-08-12 2019-04-02 W2Bi, Inc. Cloud-based services for management of cell-based test systems
CN106357477A (en) * 2016-09-26 2017-01-25 美的智慧家居科技有限公司 Distribution network test method and device
CN107750058A (en) * 2017-10-30 2018-03-02 欧普照明股份有限公司 Method, control terminal and the system of equipment access network based on wifi Beacon frames
CN109041107B (en) * 2018-08-10 2021-09-24 成都西加云杉科技有限公司 WIFI roaming automatic test method and system
CN109151874A (en) * 2018-09-30 2019-01-04 广州掌动智能科技有限公司 WIFI performance test methods, device, computer equipment and storage medium
CN110601871B (en) * 2019-07-31 2022-04-05 华为技术有限公司 Virtual equipment testing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202799A (en) * 2014-07-29 2014-12-10 福建星网锐捷通讯股份有限公司 A method for accessing wireless network by WIFI smart apparatus with zero-configuration
CN106254147A (en) * 2016-09-08 2016-12-21 珠海全志科技股份有限公司 A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN108260188A (en) * 2018-02-28 2018-07-06 惠州Tcl移动通信有限公司 A kind of Wi-Fi connection control method and system
CN111163463A (en) * 2019-12-27 2020-05-15 深圳市宏电技术股份有限公司 Method, device, equipment and storage medium for accessing wireless equipment to router

Also Published As

Publication number Publication date
CN112437463A (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN112437463B (en) Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
US7277395B2 (en) Method and apparatus for wireless network load emulation
CN111200837B (en) Wi-Fi software testing system and method
CN105103494A (en) Network switch simulation
CN108241580B (en) Client program testing method and terminal
CN104410986A (en) Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
CN109284140B (en) Configuration method and related equipment
CN106961357A (en) A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals
CN113778879B (en) Interface fuzzy test method and device
CN105516388A (en) Wireless network device MAC address test method and system
CN105099733B (en) The method and system of equipment safety management in safety control platform
CN113411232A (en) Block chain simulation test system and application server
CN111352778B (en) Network simulation processing method and device, electronic equipment and storage medium
CN108009086B (en) System automation test method based on case decomposition and function learning
CN111181800A (en) Test data processing method and device, electronic equipment and storage medium
WO2017016386A1 (en) Method and device for implementing radio remote unit fault analysis
CN107770798A (en) A kind of data analysing method and device
CN112583663B (en) Automatic network performance testing method based on domestic operating system
CN114040408A (en) Shooting range system based on 4G mobile network simulation environment
US9329960B2 (en) Methods, systems, and computer readable media for utilizing abstracted user-defined data to conduct network protocol testing
CN105827462B (en) A kind of Method and kit for detecting the network equipment
CN112463511A (en) Automatic test system and test method for serial port equipment of Internet of things
CN109656791A (en) A kind of gRPC performance test methods and device based on Jmeter
CN112491656A (en) Method and device for testing concurrent connection number of router IPSEC tunnel
CN107769968B (en) Debugging and testing system of SNMP (simple network management protocol) agent in AFDX (avionics full Duplex switched Ethernet) network

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