WiFi module test method, device and system and readable storage medium

By automatically configuring the wireless access point AP to provide a test network, the complex and inefficient WiFi module testing process is solved, and efficient compatibility, packet loss rate and throughput testing is achieved.

CN119071842APending Publication Date: 2024-12-03SHANGHAI CHANGLIAN ZHIRONG COMM TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411143939.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, the WiFi module testing process is complex and inefficient, especially during compatibility, packet loss rate and throughput testing, it is necessary to manually combine different frequency bands, security protocols and network configurations, resulting in inefficient testing.

Method used

By generating configuration information for wireless access point APs, the AP is automatically configured to provide a test network, including SSID, security protocols, EAPs, frequency bands and channels, simplifying the test process and improving efficiency.

Benefits of technology

It realizes automated WiFi module testing, reduces manual configuration operations, improves test efficiency and accuracy, simplifies the test process, and enables quick switching of different test networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071842A_ABST
    Figure CN119071842A_ABST
Patent Text Reader

Abstract

The invention provides a WiFi module test method, device and system and a readable storage medium. The WiFi module test method comprises the following steps: generating wireless access point configuration information corresponding to a first wireless access point AP based on a test item of a to-be-tested WiFi module; the wireless access point configuration information comprises at least one piece of test network configuration information, and each piece of test network configuration information comprises a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of a test network; controlling the first AP to be turned on, and controlling the second AP to be turned off; and, based on the at least one test network configuration information, configuring the first AP, so that the first AP provides at least one test network, and under the condition that the electronic equipment corresponding to the to-be-tested WiFi module is connected with the test network, obtaining target test data sent by the electronic equipment, and determining a test result of the to-be-tested WiFi module based on the target test data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a WiFi module testing method, device, system and readable storage medium. Background Art

[0002] With the rapid development of communication technology, the application scenarios of wireless fidelity (WiFi) networks are becoming more and more extensive. WiFi networks can not only provide higher speed, larger capacity, lower latency and more refined traffic management, but also provide users with higher spectrum efficiency, larger coverage, more energy-saving scheduling mechanism and higher reliability and security.

[0003] For electronic devices with WiFi network connection functions, such as smartphones, tablets, laptops, etc., the compatibility, packet loss rate, throughput and roaming performance of their WiFi modules must be tested before leaving the factory to ensure the stability and reliability of the WiFi modules in actual use.

[0004] In the related art, due to the wide variety of WiFi security protocols and the complexity of testing and debugging in WiFi roaming scenarios, when testing the compatibility, packet loss rate and throughput of WiFi modules, testers are required to manually combine different frequency bands, different security protocols, and different network configurations to build different WiFi networks, and connect wireless devices to different WiFi networks to achieve compatibility, packet loss rate and throughput testing of WiFi modules. The testing process is complicated and inefficient. Summary of the invention

[0005] The present application provides a WiFi module testing method, device, system and readable storage medium to solve the problem of complex testing process and low efficiency when testing WiFi modules in the related art.

[0006] In a first aspect, an embodiment of the present application provides a WiFi module testing method, comprising: generating wireless access point configuration information corresponding to a first wireless access point AP based on a test item of a WiFi module to be tested; wherein the test item of the WiFi module to be tested is a compatibility test, a packet loss rate test, a throughput test, or a roaming test; the first AP is an AP among multiple APs that needs to provide a test network corresponding to the test item; the wireless access point configuration information includes at least one test network configuration information, and each of the test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band, and a channel of the test network;

[0007] Controlling the first AP to be turned on, and controlling the second AP to be turned off; wherein the second AP is another AP among the multiple APs except the first AP;

[0008] Based on the at least one test network configuration information, configure the first AP so that the first AP provides at least one of the test networks;

[0009] When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data;

[0010] Wherein, in the case where the test network is a compatibility test network corresponding to the compatibility test, the target test data includes the SSID of the compatibility test network to which the electronic device is connected;

[0011] In the case where the test network is a packet loss rate test network corresponding to the packet loss rate test, the target test data includes a first test data packet transmitted by the electronic device through the packet loss rate test network;

[0012] In the case where the test network is a throughput test network corresponding to the throughput test, the target test data includes the number of second test data packets transmitted by the electronic device through the throughput test network within a unit time;

[0013] In a case where the test network is a roaming test network corresponding to the roaming test, the target test data includes a basic service set identifier BSSID of the roaming test network to which the electronic device is connected.

[0014] In one possible design, configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes:

[0015] For each of the first APs, based on the M first test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides M compatibility test networks; wherein the M compatibility test networks correspond one-to-one to the M first test network configuration information, and M is a positive integer greater than 1;

[0016] When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes:

[0017] For a first compatibility test network that successfully establishes a connection with the electronic device, obtaining the SSID of the first compatibility test network sent by the electronic device through the first compatibility test network; wherein the first compatibility test network includes all or part of the M compatibility test networks;

[0018] Based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks, the compatibility of the WiFi module to be tested is determined.

[0019] In a possible design, determining the compatibility of the WiFi module to be tested based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks includes:

[0020] In a case where the SSID of the first compatibility test network corresponds one-to-one with the SSIDs of the M compatibility test networks, determining that the WiFi module to be tested is compatible with the M compatibility test networks provided by the first AP;

[0021] In the case that the SSID of the first compatibility test network does not correspond one-to-one with the SSIDs of the M compatibility test networks, it is determined that the WiFi module to be tested is compatible with the first compatibility test network provided by the first AP, and that the WiFi module to be tested is incompatible with the second compatibility test network provided by the first AP; wherein the second compatibility test network is other compatibility test networks among the M compatibility test networks except the first compatibility test network.

[0022] In one possible design, configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes:

[0023] For each of the first APs, based on the N second test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides N packet loss rate test networks; wherein the N packet loss rate test networks correspond one-to-one to the N second test network configuration information, and N is a positive integer greater than 1;

[0024] When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes:

[0025] When the electronic device successfully establishes a connection with the target packet loss rate test network, obtaining a first test data packet transmitted by the electronic device through the target packet loss rate test network; wherein the target packet loss rate test network is any packet loss rate test network among the N packet loss rate test networks;

[0026] Based on the actual number of the first test data packets transmitted by the electronic device through the target packet loss rate test network, and the preset number of the first test data packets, the packet loss rate of the WiFi module to be tested when the electronic device is connected to the target packet loss rate test network is determined; wherein the preset number of the first test data packets is the number of the first test data packets that the electronic device expects to transmit through the target packet loss rate test network.

[0027] In one possible design, configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes:

[0028] For each of the first APs, based on the Q third test network configuration information included in the wireless access point configuration information corresponding to the first AP, configure the first AP so that the first AP provides Q throughput test networks; wherein the Q throughput test networks correspond one-to-one to the Q third test network configuration information, and Q is a positive integer greater than 1;

[0029] When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes:

[0030] When the electronic device successfully establishes a connection with the target throughput test network, obtaining the number of the second test data packets transmitted by the electronic device through the target throughput test network within a unit time; wherein the target throughput test network is any one of the Q throughput test networks;

[0031] Based on the number of the second test data packets transmitted by the electronic device through the target throughput test network, the throughput of the to-be-tested WiFi module when the electronic device is connected to the target throughput test network is determined.

[0032] In one possible design, each of the APs includes a programmable attenuator, and the programmable attenuator of the AP is used to attenuate the signal strength of the test network provided by the AP;

[0033] In a case where the test network provided by the first AP is the compatibility test network, the packet loss rate test network or the throughput test network, the attenuation of the programmable attenuator of the first AP is zero;

[0034] In a case where the test network provided by the first AP is the roaming test network, the attenuation amount of the programmable attenuator of the first AP is a preset attenuation amount.

[0035] In one possible design, configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes:

[0036] Based on the fourth test network configuration information included in the wireless access point configuration information corresponding to the plurality of first APs, the plurality of first APs are configured respectively so that each of the plurality of first APs provides a roaming test network; wherein the SSIDs of the plurality of roaming test networks corresponding to the plurality of first APs are the same;

[0037] When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes:

[0038] In the case where the electronic device successfully establishes a connection with the roaming test network provided by the third AP, the signal strength of the roaming test network provided by the third AP is attenuated by the programmable attenuator of the third AP, and the signal strength of the roaming test network provided by the fourth AP is enhanced by the programmable attenuator of the fourth AP; wherein the third AP is a first AP among the multiple first APs corresponding to the roaming test network with which the electronic device successfully establishes a connection, and the fourth AP is another AP among the multiple first APs except the third AP;

[0039] Acquire, within a preset time period, a BSSID of the target roaming test network sent by the electronic device through the target roaming test network at preset time intervals; wherein the target roaming test network is a roaming test network with which the electronic device has successfully established a connection, and the target roaming test network is a roaming test network provided by the third AP or the roaming test network provided by the fourth AP;

[0040] Based on the multiple BSSIDs of the target roaming test network sent by the electronic device, the roaming result of the WiFi module to be tested is determined.

[0041] In a second aspect, an embodiment of the present application provides a WiFi module testing device, including: a main control device and a wireless access controller, and multiple APs;

[0042] Each of the APs comprises an AP controller, a programmable attenuator and an AP antenna, one end of the AP controller is connected to the AP antenna through the programmable attenuator, the other end of the AP controller is connected to the wireless access controller, the programmable attenuator is also connected to the main control device, and the main control device attenuates the signal strength of the test network provided by the AP through the programmable attenuator;

[0043] The wireless access controller is wirelessly connected to the master control device, and the master control device configures the AP controller through the wireless access controller;

[0044] Wherein, the main control device is also wirelessly connected to the electronic device, and the main control device is used to execute the method described in the first aspect or various possible designs of the first aspect.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed, the method described in the first aspect or various possible designs of the first aspect is implemented.

[0046] The embodiment of the present application provides a WiFi module testing method. First, based on the test items of the WiFi module, wireless access point configuration information corresponding to the first AP is generated. The first AP is an AP among multiple APs that needs to provide a test network corresponding to the test item. The wireless access point configuration information includes at least one test network configuration information. Each test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of the test network. Secondly, when the first AP is turned on and the second AP is turned off, the first AP is automatically configured based on at least one test network configuration information so that the first AP provides at least one test network. Finally, when the electronic device corresponding to the WiFi module is connected to the test network, the target test data sent by the electronic device is obtained, and the test result of the WiFi module is determined based on the target test data. In the present application, when the WiFi module is tested for any test item, the main control device automatically configures the first AP based on at least one test network configuration information corresponding to each first AP, generates at least one test network related to the first AP, and does not require the tester to manually configure the first AP, thereby improving the configuration efficiency of the first AP, simplifying the test process of the WiFi module, and effectively improving the test efficiency of the WiFi module. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a WiFi module testing method provided in an embodiment of the present application;

[0048] Figure 2 A flowchart of a WiFi module compatibility testing method provided in an embodiment of the present application;

[0049] Figure 3 A flowchart of a method for testing packet loss rate of a WiFi module provided in an embodiment of the present application;

[0050] Figure 4 A schematic diagram of a flow chart of a WiFi module throughput test method provided in an embodiment of the present application;

[0051] Figure 5 A flowchart of a WiFi module roaming test method provided in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of a WiFi module testing device provided in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of the structure of a WiFi module testing system provided in an embodiment of the present application;

[0054] Figure 8 A circuit principle structure block diagram of a main control device and an electronic device provided in an embodiment of the present application;

[0055] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used in the specification of the application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification, claims and drawings of this application are intended to cover non-exclusive inclusions.

[0058] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0059] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists, A and B can exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0060] In addition, the terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order, and may explicitly or implicitly include one or more of the features.

[0061] In the description of this application, unless otherwise specified, "multiple" and "at least two" mean more than two (including two). Similarly, "multiple groups" and "at least two groups" mean more than two groups (including two).

[0062] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense. For example, "connected" or "connection" can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0063] In order to make those skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings. It should be noted that different technical features in the present application can be combined with each other without conflict.

[0064] First, the terms involved in one or more embodiments of this specification are explained.

[0065] A wireless access point (AP) is a device that can provide wireless local area network (WLAN) connections for wireless devices. APs are usually connected to routers or switches through a wired network (such as Ethernet), and then provide network access services to surrounding wireless devices through wireless signals.

[0066] AP creates wireless coverage by transmitting wireless signals, allowing wireless devices to connect to the network within the wireless coverage. AP transmits the data sent by wireless devices to the router or switch through the wired network, enabling communication between wireless devices and the Internet or internal network. In addition, AP can manage and control all wireless devices connected to it, including assigning IP addresses, executing security protocols, managing bandwidth, etc.

[0067] A WiFi network is a network that allows wireless devices to transmit data via radio waves. A WiFi network usually includes configuration parameters such as the Service Set Identifier (SSID), Basic Service Set Identifier (BSSID), WiFi security protocol, Extensible Authentication Protocol (EAP), frequency band, and channel.

[0068] Among them, SSID is the WiFi network name, which is used to identify and distinguish different wireless networks.

[0069] The BSSID is the Media Access Control Address (MAC) address of the AP, which is used to uniquely identify an AP. Each AP has a unique BSSID.

[0070] Among them, WiFi security protocol refers to a set of standards and technical specifications used to protect the security and privacy of wireless network communications. WiFi security protocol defines how to authenticate, encrypt data, and manage keys to prevent unauthorized access and data leakage. WiFi security protocols include Wired Equivalent Privacy (WEP), WPA-Personal (WPA-PSK), WPA-Enterprise (WPA-802.1X), WPA2-Personal (WPA2-PSK), WPA2-Enterprise (WPA2-802.1X), WPA3-Personal (WPA3-PSK), and WPA3-Enterprise (WPA3-802.1X).

[0071] Among them, EAP is a framework protocol for wireless network authentication that supports multiple authentication methods, such as Pre-Shared Key (PSK), Extensible Authentication Protocol-Transport Layer Security (EAP-TLS), Extensible Authentication Protocol-Tunneled Transport Layer Security (EAP-TTLS), Protected Extensible Authentication Protocol (PEAP), Extensible Authentication Protocol-Flexible Authentication via Secure Tunneling (EAP-FAST), etc.

[0072] Among them, WiFi networks can work on different frequency bands, mainly 2.4GHz, 5GHz, and 6GHz (supported by the newer standard WiFi 6E). Different frequency bands have different coverage and interference levels, and the performance of the WiFi network can be optimized by selecting the appropriate frequency band.

[0073] In each frequency band, the bandwidth is divided into multiple smaller parts, each of which is called a channel. Channels are used to transmit wireless data. Each channel has a center frequency (the center point of the channel) and a bandwidth (the width of the channel). By selecting an appropriate channel, interference with other wireless devices can be reduced, and the stability and transmission efficiency of the network can be enhanced. For example, in the 2.4GHz band, the center frequency of channel 1 is 2.412GHz and the bandwidth is 20MHz.

[0074] For example, the configuration of the WiFi network is: SSID: MyHomeWiFi; WiFi security protocol: WPA3-Personal; EAP: Use PSK; Frequency band: 5GHz; Channel: 36; BSSID: 00:1A:2B:3C:4D:5E.

[0075] Received Signal Strength Indication (RSSI) indicates the strength of the wireless signal received by the wireless device from the signal source (such as a wireless access point or router). It is an indicator to measure the signal strength received by the wireless device. The RSSI value is usually measured in decibel milliwatts (dBm). The RSSI range is from negative values ​​(such as -100dBm) to 0dBm. The larger the RSSI value, the stronger the signal received by the wireless device.

[0076] Wireless devices refer to devices that use radio waves for data transmission and communication, such as smart terminals, tablets, laptops, smart home devices and other electronic devices with wireless connection functions. Wireless devices connect to APs through wireless interfaces and communicate using the 802.11 protocol.

[0077] The 802.11 protocol is a series of wireless network standards defined by the Institute of Electrical and Electronics Engineers (IEEE) to define the specifications of the physical layer and media access control layer in WiFi networks. The 802.11 protocol includes multiple standards and extensions (such as 802.11a / b / g / n / ac / ax, etc.), each of which defines different frequency bands, transmission rates, modulation methods and other functional characteristics. Through the 802.11 protocol, wireless devices and APs can communicate and transmit data in wireless networks. Among them, standards and extensions such as 802.11a / b / g / n / ac / ax are prior art, and this application will not go into details.

[0078] Next, some specific embodiments and drawings are used to describe in detail how the present application solves the above-mentioned problem of complex and inefficient testing process when testing the compatibility, packet loss rate and throughput of the WiFi module.

[0079] Figure 1 A schematic diagram of a WiFi module testing method provided in an embodiment of the present application. Figure 1 As shown, the WiFi module testing method provided in the embodiment of the present application specifically includes S101 to S104, and S101 to S104 are described in detail below.

[0080] It should be noted that the execution entity of the WiFi module testing method provided in the embodiment of the present application can be a main control device.

[0081] S101: A main control device generates wireless access point configuration information corresponding to a first wireless access point AP based on a test item of a WiFi module to be tested.

[0082] Among them, the test items of the WiFi module to be tested are compatibility test, packet loss rate test, throughput test or roaming test.

[0083] It should be noted that the compatibility of a WiFi module refers to the ability of the WiFi module to be tested to work normally in different wireless network environments and to interoperate with various network devices (such as wireless access points, routers, client devices of different brands and models).

[0084] It should be noted that the packet loss rate of the WiFi module refers to the proportion of data packets that fail to be successfully transmitted to the destination and are lost during the wireless data transmission process. The packet loss rate is an important indicator to measure the quality and stability of the WiFi network. A low packet loss rate means a more reliable network connection and higher data transmission efficiency.

[0085] It should be noted that the throughput of a WiFi module refers to the amount of data transmitted through the WiFi module per unit time, usually in bits per second (bps) or bytes per second (Bps). Throughput is an important indicator for evaluating the performance of a WiFi module, reflecting the transmission efficiency and speed of the wireless network.

[0086] It should be noted that the roaming performance of the WiFi module refers to the ability of the wireless device to seamlessly switch connections and maintain a stable network connection when moving between multiple APs. Good roaming performance ensures that users will not experience network interruptions during movement.

[0087] In this embodiment, by performing compatibility test, packet loss rate test, throughput test and roaming test on the WiFi module to be tested, the performance of the WiFi module to be tested can be fully understood to ensure its reliability and efficiency in practical applications.

[0088] The first AP is an AP among the multiple APs that needs to provide a test network corresponding to the test item.

[0089] It should be noted that since the bandwidth coverage of a single AP, the number of wireless devices allowed to connect and the total bandwidth are limited, in order to ensure wider and more reliable network coverage and meet the needs of different users and devices, multiple APs can be deployed to achieve seamless wireless network coverage.

[0090] The multiple APs may be APs of different brands and models, or APs of the same brand and model, which is not specifically limited in this embodiment.

[0091] It should be noted that the first AP is all or part of the multiple APs, and this embodiment does not specifically limit this.

[0092] The wireless access point configuration information includes at least one test network configuration information, and each test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of the test network.

[0093] It should be noted that, for different test items, the wireless access point configuration information corresponding to the first wireless access point AP is different.

[0094] The wireless access point configuration information of each first AP includes at least one test network configuration information, and each test network configuration information is used to generate a test network for the first AP. The test networks of the first AP generated based on different test network configuration information are different.

[0095] For any test item in the compatibility test, packet loss rate test and throughput test, when the wireless access point configuration information of each first AP includes multiple test network configuration information, and the multiple test network configuration information are different, the first AP can be configured based on the multiple test network configuration information to generate multiple different test networks related to the first AP.

[0096] S102: The master control device controls the first AP to turn on, and controls the second AP to turn off.

[0097] The second AP is another AP among the multiple APs except the first AP.

[0098] In this embodiment, when the first AP provides a test network corresponding to the test item, only the first AP that needs to provide the test network is turned on, and other APs (second APs) among multiple APs except the first AP are turned off. This can prevent the wireless signal of the second AP from interfering with the wireless signal of the first AP, thereby ensuring the accuracy of the test results.

[0099] S103: The main control device configures the first AP based on the wireless access point configuration information, so that the first AP provides a test network.

[0100] For any test item, the main control device configures the first AP based on the wireless access point configuration information corresponding to each first AP, so that the first AP provides a test network corresponding to the test item.

[0101] It should be noted that the main control device automatically configures the first AP based on the wireless access point configuration information corresponding to the first AP, which can reduce manual configuration operations, facilitate fast switching between different test networks, and effectively improve test efficiency.

[0102] S104: When the electronic device corresponding to the WiFi module to be tested is connected to the test network, the main control device obtains target test data sent by the electronic device, and determines the test result of the WiFi module to be tested based on the target test data.

[0103] Wherein, in the case where the test network is a compatibility test network corresponding to the compatibility test, the target test data includes the SSID of the compatibility test network to which the electronic device is connected.

[0104] In the case where the test network is a packet loss rate test network corresponding to a packet loss rate test, the target test data includes a first test data packet transmitted by the electronic device through the packet loss rate test network.

[0105] In the case where the test network is a throughput test network corresponding to a throughput test, the target test data includes the number of second test data packets transmitted by the electronic device through the throughput test network within a unit time.

[0106] In the case that the test network is a roaming test network corresponding to the roaming test, the target test data includes a basic service set identifier BSSID of the roaming test network to which the electronic device is connected.

[0107] The embodiment of the present application provides a WiFi module testing method. First, based on the test items of the WiFi module, wireless access point configuration information corresponding to the first AP is generated. The first AP is an AP among multiple APs that needs to provide a test network corresponding to the test item. The wireless access point configuration information includes at least one test network configuration information. Each test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of the test network. Secondly, when the first AP is turned on and the second AP is turned off, the first AP is automatically configured based on at least one test network configuration information so that the first AP provides at least one test network. Finally, when the electronic device corresponding to the WiFi module is connected to the test network, the target test data sent by the electronic device is obtained, and the test result of the WiFi module is determined based on the target test data. In the present application, when the WiFi module is tested for any test item, the main control device automatically configures the first AP based on at least one test network configuration information corresponding to each first AP, generates at least one test network related to the first AP, and does not require the tester to manually configure the first AP, thereby improving the configuration efficiency of the first AP, simplifying the test process of the WiFi module, and effectively improving the test efficiency of the WiFi module.

[0108] In the above embodiment, the main control device needs to test the compatibility of the WiFi module to be tested. Next, a method for the main control device to test the compatibility of the WiFi module to be tested is described in detail.

[0109] The compatibility of WiFi modules includes the compatibility of WiFi modules with devices of different manufacturers and models (including various APs, routers, client devices, etc.), the compatibility of WiFi modules with different WiFi frequency bands, the compatibility of WiFi modules with various supported WiFi security protocols, and the compatibility of WiFi modules with different network configurations (SSID, channel, subnet). The purpose of compatibility testing is to ensure that the WiFi module can connect and communicate seamlessly regardless of the network configuration or security protocol used.

[0110] For multiple APs of the same manufacturer and model, it is only necessary to perform a compatibility test on the WiFi module of any AP of the same manufacturer and model; for multiple APs of different manufacturers and models, it is necessary to perform a compatibility test on the WiFi modules of the multiple APs of different manufacturers and models respectively, and the method for performing a compatibility test on the WiFi modules of the multiple APs is the same. This embodiment describes in detail the method for the master control device to perform a compatibility test on the WiFi module of any AP.

[0111] Figure 2 The following is a flow chart of a WiFi module compatibility testing method provided in an embodiment of the present application. Figure 2 As shown, in a possible embodiment, S103, the main control device configures the first AP based on at least one test network configuration information so that the first AP provides at least one test network, including: for each first AP, based on the M first test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides M compatibility test networks.

[0112] Among them, when testing the compatibility of the WiFi module to be tested, in S101, the main control device generates wireless access point configuration information related to the compatibility test corresponding to each first AP based on the compatibility test items of the WiFi module to be tested, and the wireless access point configuration information related to the compatibility test includes M first test network configuration information.

[0113] The M compatibility test networks correspond one-to-one to the M first test network configuration information, and M is a positive integer greater than 1.

[0114] It should be noted that the SSID, security protocol, EAP, frequency band and channel of the M first test network configuration information corresponding to each first AP are different, so that the subsequent main control device can generate M different compatibility test networks related to the first AP based on the M first test network configuration information.

[0115] For example, when testing the compatibility of a WiFi module to be tested, for any first AP, wireless access point configuration information related to the compatibility test corresponding to the first AP is generated, and the wireless access point configuration information related to the compatibility test includes first test network configuration information A, first test network configuration information B and first test network configuration information C. The first test network configuration information A includes: SSID: TestNet_1_WPA2_5G; security protocol: WPA2; EAP protocol: EAP-TLS; frequency band: 5GHz; channel: 36; the first test network configuration information B includes: SSID: TestNet_2_WPA3_2.4G; security protocol: WPA3; EAP protocol: EAP-TTLS; frequency band: 2.4GHz; channel: 6; the first test network configuration information C includes: SSID: TestNet_3_WEP_6G; security protocol: WEP; EAP protocol: PEAP; frequency band: 6GHz; channel: 1.

[0116] The main control device automatically configures the first AP based on the first test network configuration information A, the first test network configuration information B and the first test network configuration information C, and obtains three compatibility test networks related to the first AP; that is, the first AP provides three compatibility test networks, and the names of the three compatibility test networks are TestNet_1_WPA2_5G, TestNet_2_WPA3_2.4G and TestNet_3_WEP_6G; TestNet_1_WPA2_5G is a 5GHz network that supports WPA2 and EAP-TLS authentication, and channel 36 is selected; TestNet_2_WPA3_2.4G is a 2.4GHz network that supports WPA3 and EAP-TTLS authentication, and channel 6 is selected; TestNet_3_WEP_6G is a 6GHz network that supports WEP and PEAP authentication, and channel 1 is selected.

[0117] S104, when the electronic device corresponding to the WiFi module to be tested is connected to the test network, the main control device obtains the target test data sent by the electronic device, and determines the test result of the WiFi module to be tested based on the target test data. This can be achieved through steps a1 and a2, and steps a1 and a2 are described in detail below.

[0118] Step a1: For the first compatibility test network that has successfully established a connection with the electronic device, the main control device obtains the SSID of the first compatibility test network sent by the electronic device through the first compatibility test network.

[0119] The first compatibility test network includes all or part of the M compatibility test networks.

[0120] It should be noted that, in the case where the first AP provides M compatibility test networks, the electronic device can be connected to the compatibility test network corresponding to the user's input operation among the M compatibility test networks based on the user's input operation. For any compatibility test network among the M compatibility test networks, when the electronic device successfully establishes a connection with the compatibility test network, the electronic device sends the SSID of the compatibility test network to the main control device through the compatibility test network connected thereto, and the main control device determines the compatibility test network corresponding to the SSID sent by the electronic device as a first compatibility test network.

[0121] Among them, the electronic device can send a first message to the main control device, and carry the SSID of the compatibility test network to which the electronic device is currently connected in the first message, so that the main control device obtains the SSID of the compatibility test network to which the electronic device is currently connected based on the received first message.

[0122] It should be noted that the first message must carry the SSID of the compatibility test network to which the electronic device is currently connected. In addition, the first message may also carry the BSSID of the compatibility test network to which the electronic device is currently connected, the frequency of the compatibility test network to which the electronic device is currently connected, the signal strength of the compatibility test network to which the electronic device is currently connected, the distance between the first AP corresponding to the compatibility test network to which the electronic device is currently connected and the electronic device, the name of the electronic device, and the sending time of the first message and other information. This embodiment does not make any specific limitations on this.

[0123] Step a2: The main control device determines the compatibility of the WiFi module to be tested based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks.

[0124] It should be noted that the main control device compares the received SSID of the first compatibility test network with the SSIDs of the M compatibility test networks related to the first AP to determine the compatibility of the WiFi module to be tested.

[0125] In an embodiment of the present application, by configuring each first AP to generate M different compatibility test networks, it is ensured that each first AP can simultaneously provide multiple compatibility test networks with different configurations, covering different SSIDs, security protocols, EAP protocols, frequency bands and channels; and when the WiFi module to be tested successfully establishes a connection with any of the M compatibility test networks, the electronic device sends the SSID of the compatibility test network to the main control device through the compatibility test network connected to it, so that the main control device can subsequently determine the compatibility of the WiFi module to be tested under the M compatibility test networks provided by the first AP based on the received SSID of the compatibility test network, which can efficiently verify the connection performance and stability of the WiFi module to be tested in different network environments, thereby improving the compatibility testing efficiency of the WiFi module to be tested.

[0126] It should be noted that the main control device can also simultaneously test the compatibility of different electronic devices under M compatibility test networks provided by the same first AP to improve the efficiency of compatibility testing of different electronic devices.

[0127] In the above embodiment, the main control device needs to determine the compatibility of the WiFi module to be tested based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks. Next, a method for the main control device to determine the compatibility of the WiFi module to be tested based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks is described in detail.

[0128] In a possible embodiment, in step a2, the main control device determines the compatibility of the WiFi module to be tested based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of M compatibility test networks. This can be achieved through steps a21 and a22. Steps a21 and a22 are described in detail below.

[0129] Step a21: When the SSID of the first compatibility test network corresponds to the SSIDs of the M compatibility test networks one by one, the main control device determines whether the WiFi module to be tested is compatible with the M compatibility test networks provided by the first AP.

[0130] For example, when the main control device controls the first AP to provide three compatibility test networks related to the first AP through the steps in the above embodiment, and the names of the three compatibility test networks are TestNet_1_WPA2_5G, TestNet_2_WPA3_2.4G and TestNet_3_WEP_6G, respectively, the compatibility test network TestNet_1_WPA2_5G, the compatibility test network TestNet_2_WPA3_2.4G and the compatibility test network TestNet_3_WEP_6G can all successfully establish connections with the electronic device individually. When the electronic device successfully establishes a connection with the compatibility test network TestNet_1_WPA2_5G, the electronic device sends the SSID "TestNet_1_WPA2_5G" of the compatibility test network currently connected to it to the main control device through the compatibility test network TestNet_1_WPA2_5G; When the device successfully establishes a connection with the compatibility test network TestNet_2_WPA3_2.4G, the electronic device sends the SSID "TestNet_2_WPA3_2.4G" of the compatibility test network currently connected to it to the main control device through the compatibility test network TestNet_2_WPA3_2.4G; when the electronic device successfully establishes a connection with the compatibility test network TestNet_3_WEP_6G, the electronic device sends the SSID "TestNet_3_WEP_6G" of the compatibility test network currently connected to it to the main control device through the compatibility test network TestNet_3_WEP_6G; wherein, the SSIDs of the three compatibility test networks sent by the electronic device to the main control device correspond one-to-one to the SSIDs of the three compatibility test networks provided by the first AP. In this case, the main control device determines that the WiFi module to be tested is compatible with the three compatibility test networks provided by the first AP.

[0131] Step a22: When the SSID of the first compatibility test network does not correspond one-to-one with the SSIDs of the M compatibility test networks, the main control device determines that the WiFi module to be tested is compatible with the first compatibility test network provided by the first AP, and that the WiFi module to be tested is incompatible with the second compatibility test network provided by the first AP.

[0132] The second compatibility test network is other compatibility test networks among the M compatibility test networks except the first compatibility test network.

[0133] For example, when the master control device controls the first AP through the steps in the above embodiment to provide three compatibility test networks related to the first AP, and the names of the three compatibility test networks are TestNet_1_WPA2_5G, TestNet_2_WPA3_2.4G and TestNet_3_WEP_6G, the compatibility test network TestNet_1_WPA2_5G and the compatibility test network TestNet_2_WPA3_2.4G can both successfully establish connections with the electronic device individually, and the compatibility test network TestNet_3_WEP_6G cannot establish a connection with the electronic device. When the electronic device successfully establishes a connection with the compatibility test network TestNet_1_WPA2_5G, the electronic device sends the SSID of the compatibility test network currently connected to it to the master control device through the compatibility test network TestNet_1_WPA2_5G. "TestNet_1_WPA2_5G"; when the electronic device successfully establishes a connection with the compatibility test network TestNet_2_WPA3_2.4G, the electronic device sends the SSID "TestNet_2_WPA3_2.4G" of the compatibility test network currently connected to it to the main control device through the compatibility test network TestNet_2_WPA3_2.4G. The SSIDs of the two compatibility test networks sent by the electronic device to the main control device do not correspond one to one to the SSIDs of the three compatibility test networks provided by the first AP. In this case, the main control device determines that the WiFi module to be tested is compatible with the compatibility test networks with SSIDs TestNet_1_WPA2_5G and TestNet_2_WPA3_2.4G provided by the first AP, but is incompatible with the compatibility test network with SSID TestNet_3_WEP_6G provided by the first AP.

[0134] In an embodiment of the present application, the main control device can determine the compatibility of the WiFi module to be tested with the M compatibility test networks provided by the first AP by comparing the SSID of the compatibility test network sent by the electronic device to which it can successfully establish a connection and the SSIDs of the M compatibility test networks configured by the first AP; this method not only improves the accuracy and meticulousness of the compatibility test, but also can quickly identify and locate compatibility issues, thereby optimizing the efficiency and effect of the compatibility test of the WiFi module to be tested.

[0135] In the above embodiment, the main control device needs to test the packet loss rate of the WiFi module to be tested. Next, a method for the main control device to test the packet loss rate of the WiFi module to be tested is described in detail.

[0136] It should be noted that the packet loss rate of the WiFi module refers to the proportion of data packets that fail to be successfully transmitted to the destination and are lost during the wireless data transmission process. The packet loss rate is an important indicator for measuring the quality and stability of the WiFi network. A low packet loss rate means a more reliable network connection and higher data transmission efficiency. The purpose of the packet loss rate test is to evaluate the data transmission reliability and stability of the WiFi module in various network environments and usage scenarios.

[0137] For multiple APs of the same manufacturer and model, it is only necessary to perform a packet loss rate test on any AP of the multiple APs of the same manufacturer and model; for multiple APs of different manufacturers and models, it is necessary to perform a packet loss rate test on the WiFi modules of the multiple APs of different manufacturers and models respectively, and the method for performing a packet loss rate test on the WiFi modules of the multiple APs is the same. This embodiment describes in detail the method for the master device to perform a packet loss rate test on the WiFi module of any AP.

[0138] Figure 3 The following is a flow chart of a method for testing the packet loss rate of a WiFi module provided in an embodiment of the present application. Figure 3 As shown, in a possible embodiment, S103, the main control device configures the first AP based on at least one test network configuration information so that the first AP provides at least one test network, including: for each first AP, based on the N second test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides N packet loss rate test networks.

[0139] Among them, when testing the packet loss rate of the WiFi module to be tested, in S101, the main control device generates wireless access point configuration information related to the packet loss rate test corresponding to each first AP based on the packet loss rate test item of the WiFi module to be tested, and the wireless access point configuration information related to the packet loss rate test includes N second test network configuration information.

[0140] The N packet loss rate test networks correspond one to one to the N second test network configuration information, where N is a positive integer greater than 1.

[0141] It should be noted that the SSID in the N second test network configuration information corresponding to each first AP is the same, and the security protocols, frequency bands and channels in the N second test network configuration information corresponding to each first AP are different, that is, the N packet loss rate test networks provided by the first AP have the same SSID, but the security protocols, frequency bands and channels of the N packet loss rate test networks are different.

[0142] Different SSIDs may cause electronic devices to switch networks or reconnect, introducing additional interference factors, thus affecting the stability of data transmission and the accuracy of packet loss rate measurement. The N packet loss rate test networks provided by the First AP use the same SSID. The test device only needs to connect to the SSID once to test different security protocols, frequency bands, EAPs or channels under the same SSID without frequently switching networks.

[0143] For example, when testing the packet loss rate of the WiFi module to be tested, for any first AP, the wireless access point configuration information related to the packet loss rate test corresponding to the first AP is generated, and the wireless access point configuration information related to the packet loss rate test includes the second test network configuration information D, the second test network configuration information E, the second test network configuration information F and the second test network configuration information G; the second test network configuration information D includes: SSID: ping_test; security protocol: WPA2; frequency band: 2.4GHz; channel: 1; the second test network configuration information E includes: SSID: ping_test; security protocol: WPA3; frequency band: 5GHz; channel: 36; the second test network configuration information F includes: SSID: ping_test; security protocol: WPA2; frequency band: 5GHz; channel: 40; the second test network configuration information G includes: SSID: ping_test; security protocol: WPA3; frequency band: 6GHz; channel: 1.

[0144] S104, when the electronic device corresponding to the WiFi module to be tested is connected to the test network, the target test data sent by the electronic device is obtained, and the test result of the WiFi module to be tested is determined based on the target test data. This can be achieved through steps b1 and b2, and steps b1 and b2 are described in detail below.

[0145] Step b1: When the electronic device successfully establishes a connection with the target packet loss rate test network, the main control device obtains a first test data packet transmitted by the electronic device through the target packet loss rate test network.

[0146] The target packet loss rate test network is any packet loss rate test network among the N packet loss rate test networks.

[0147] It should be noted that the packet loss rate test network that successfully establishes a connection with the electronic device among the N packet loss rate test networks provided by the first AP is the target packet loss rate test network. Since the N packet loss rate test networks provided by the same first AP have the same SSID, but the security protocols, frequency bands and channels of the N packet loss rate test networks are different, the target packet loss rate test network among the N packet loss rate test networks provided by the first AP can be identified through the security protocol, frequency band and channel of the packet loss rate test network.

[0148] The first test data packet refers to a data packet transmitted by the electronic device to the main control device through the packet loss rate test network connected thereto.

[0149] It should be noted that the main control device monitors and records the number of first test data packets actually sent by the electronic device through each target packet loss rate test network, so as to subsequently determine the packet loss rate of the WiFi module to be tested under each target packet loss rate test network.

[0150] Step b2: The main control device determines the packet loss rate of the WiFi module to be tested when the electronic device is connected to the target packet loss rate test network based on the actual number of first test data packets transmitted by the electronic device through the target packet loss rate test network and the preset number of first test data packets.

[0151] The preset number of first test data packets is the number of first test data packets that the electronic device expects to transmit through the target packet loss rate test network.

[0152] It should be noted that for any target packet loss rate test network, the master control device can use the formula The packet loss rate D of the WiFi module to be tested of the electronic device under the target packet loss rate test network is obtained; S1 represents the actual number of first test data packets sent by the electronic device to the main control device through the target packet loss rate test network, and S0 represents the number of first test data packets that the electronic device expects to send to the main control device through the target packet loss rate test network.

[0153] For example, when the electronic device is connected to the packet loss rate test network corresponding to the second test network configuration information F provided by the first AP, the number of first test data packets that the electronic device expects to send to the main control device through the target packet loss rate test network is 50. During actual data transmission, the actual number of first test data packets sent by the electronic device to the main control device through the target packet loss rate test network is 40, that is, the packet loss rate of the WiFi module to be tested of the electronic device under the target packet loss rate test network is 40.

[0154] In an embodiment of the present application, by configuring each first AP to generate N packet loss rate test networks with the same SSID but different security protocols, frequency bands and channels, the packet loss rate of the WiFi module to be tested in the N packet loss rate test networks provided by the first AP can be determined, which simplifies the test process, avoids frequent network switching, ensures the consistency and stability of the test environment, and thus improves the accuracy and reliability of the packet loss rate test.

[0155] In the above embodiment, the main control device needs to test the throughput of the WiFi module to be tested. Next, a method for the main control device to test the throughput of the WiFi module to be tested is described in detail.

[0156] It should be noted that the throughput of a WiFi module refers to the amount of data transmitted through the WiFi module per unit time, usually in bits per second (bps) or bytes per second (Bps). Throughput is an important indicator for evaluating the performance of a WiFi module, reflecting the transmission efficiency and speed of a wireless network. The purpose of the throughput test is to evaluate the data transmission capability of a WiFi module under various network conditions to ensure that it can provide a stable, high-speed network connection in actual use.

[0157] For multiple APs of the same manufacturer and model, it is only necessary to perform a throughput test on any one of the multiple APs of the same manufacturer and model; for multiple APs of different manufacturers and models, it is necessary to perform a throughput test on the multiple APs of different manufacturers and models respectively, and the method for performing a throughput test on the multiple APs is the same. This embodiment describes in detail the method for the master control device to perform a throughput test on the WiFi module of any AP.

[0158] Figure 4 A schematic diagram of a WiFi module throughput test method provided in an embodiment of the present application. Figure 4 As shown, in a possible embodiment, S103, the main control device configures the first AP based on at least one test network configuration information so that the first AP provides at least one test network, including: for each first AP, based on Q third test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides Q throughput test networks.

[0159] Among them, the Q throughput test networks correspond one to one to the Q third test network configuration information, and Q is a positive integer greater than 1.

[0160] Among them, when testing the throughput of the WiFi module to be tested, in S101, the main control device generates wireless access point configuration information related to the throughput test corresponding to each first AP based on the packet loss rate test item of the WiFi module to be tested, and the wireless access point configuration information related to the throughput test includes Q third test network configuration information.

[0161] The Q throughput test networks correspond one to one with the Q third test network configuration information, where Q is a positive integer greater than 1.

[0162] It should be noted that the SSID in the Q third test network configuration information corresponding to each first AP is the same, and the security protocols, EAPs, frequency bands and channels in the Q third test network configurations corresponding to each first AP are different, that is, the Q throughput test networks provided by the first AP have the same SSID, but the security protocols, EAPs, frequency bands and channels of the Q throughput test networks are different.

[0163] Maintaining the same SSID for the Q throughput test networks helps electronic devices switch seamlessly between throughput test networks with different configurations, reducing interference and connection interruptions caused by network switching to provide more stable test conditions.

[0164] Different security protocols may affect the complexity of the data encryption and authentication process, thereby affecting the throughput of the WiFi module to be tested; the EAP protocol is used for user authentication, and different EAP protocols may affect the connection establishment and data transmission efficiency; different frequency bands have different bandwidths and interference levels, and the selection of frequency bands will significantly affect the throughput of the WiFi to be tested; in addition, the selection of channels will affect signal interference and bandwidth utilization, and different channels may lead to different throughput results; therefore, by configuring the security protocols, EAPs, frequency bands and channels in the Q third test network configurations corresponding to each first AP to be different, it is possible to facilitate the testing of the throughput of the WiFi module to be tested under Q throughput test networks with different configurations.

[0165] For example, when testing the throughput of the WiFi module to be tested, for any first AP, the wireless access point configuration information related to the throughput test corresponding to the first AP is generated, and the wireless access point configuration information related to the throughput test includes the third test network configuration information H, the third test network configuration information I and the third test network configuration information J; the third test network configuration information H includes: SSID: throughput_test; security protocol: WPA2; EAP protocol: EAP-TLS; frequency band: 2.4GHz; channel: 1; the third test network configuration information I includes: SSID: throughput_test; security protocol: WPA3; EAP protocol: EAP-TTLS; frequency band: 5GHz; channel: 36; the third test network configuration information J includes: SSID: throughput_test; security protocol: WPA2; EAP protocol: PEAP; frequency band: 6GHz; channel: 1.

[0166] S104, when the electronic device corresponding to the WiFi module to be tested is connected to the test network, the target test data sent by the electronic device is obtained, and the test result of the WiFi module to be tested is determined based on the target test data. This can be achieved through step c1 and step c2, and step c1 and step c2 are described in detail below.

[0167] Step c1: When the electronic device successfully establishes a connection with the target throughput test network, the main control device obtains the number of second test data packets transmitted by the electronic device through the target throughput test network within a unit time.

[0168] The target throughput test network is any throughput test network among the Q throughput test networks.

[0169] It should be noted that the throughput test network that successfully establishes a connection with the electronic device among the Q throughput test networks provided by the first AP is the target throughput test network. Since the Q throughput test networks provided by the same first AP have the same SSID, but the security protocols, EAPs, frequency bands and channels of the Q throughput test networks are different, the target throughput test network among the Q throughput test networks provided by the first AP can be identified through the security protocols, EAPs, frequency bands and channels of the throughput test networks.

[0170] The second test data packet refers to a data packet transmitted by the electronic device to the main control device through the throughput test network connected thereto.

[0171] It should be noted that the main control device monitors and records the number of second test data packets actually sent by the electronic device through each target throughput test network, so as to subsequently determine the throughput of the WiFi module to be tested under each target throughput test network.

[0172] It should be noted that the second test data packet may be the same as or different from the first data packet, and this embodiment does not specifically limit this.

[0173] Step c2: The main control device determines the throughput of the WiFi module to be tested when the electronic device is connected to the target throughput test network based on the number of second test data packets transmitted by the electronic device through the target throughput test network.

[0174] It should be noted that, for any target throughput test network, the main control device can obtain the throughput of the WiFi module to be tested of the electronic device under the target throughput test network per unit time based on the number of second test data packets transmitted by the electronic device through the target throughput test network and the size of the second test data packets transmitted by the electronic device through the target throughput test network.

[0175] For example, an electronic device transmits 1000 data packets through the target throughput test network in 1 second, and the size of each data packet is 1024 bytes. Then the throughput of the tested WiFi module of the electronic device under the target throughput test network per unit time is

[0176] In an embodiment of the present application, by configuring each first AP to generate Q throughput test networks with the same SSID but different security protocols, EAPs, frequency bands and channels, the number of second data packets transmitted by the electronic device through the target throughput test network per unit time can be automatically collected and analyzed, thereby accurately calculating the throughput of the WiFi module to be tested under the N throughput test networks provided by the first AP; the coverage and detail of the throughput test are improved, and the interference factors introduced by network switching and reconnection during the throughput test are reduced.

[0177] In the above embodiment, the master control device needs to control the first AP to be turned on, and control the second AP to be turned off. Next, the detailed process of the master control device controlling the first AP to be turned on, and controlling the second AP to be turned off is described.

[0178] In a possible embodiment, each of the APs includes a programmable attenuator, and the programmable attenuator of the AP is used to attenuate the signal strength of the test network provided by the AP;.

[0179] A programmable attenuator is an electronic device that can adjust the signal attenuation through external signals or programming control. The programmable attenuator changes the strength of the input signal by adjusting the impedance of the internal circuit. The attenuation of the attenuator is usually measured in decibels (dB) and can be adjusted within a specific range. Through an external control signal (such as a digital control signal, analog voltage, etc.) or a programming interface, the user can accurately set the desired attenuation value.

[0180] Suppose a wireless communication test system needs to use a programmable attenuator to test the performance of electronic equipment under different signal strengths. Through the programming interface, the programmable attenuator can be set to adjust in 0.5dB steps from 0dB to 60dB, and the response of the electronic equipment under different signal strengths can be recorded to comprehensively evaluate the performance of the electronic equipment under various signal conditions.

[0181] Each of the APs includes an AP controller, a programmable attenuator and an AP antenna. For each AP, one end of the AP controller is connected to the AP antenna through the programmable attenuator, and the other end of the AP controller is connected to the main control device through a wireless access controller. The main control device attenuates the signal strength of the test network provided by the AP through the programmable attenuator.

[0182] It should be noted that when the master control device controls the first AP to turn on, the AP controller and the programmable attenuator of the first AP controlled by the master control device are both turned on; when the master control device controls the first AP to turn off, the AP controller and the programmable attenuator of the first AP controlled by the master control device are both turned off.

[0183] In a case where the test network provided by the first AP is the compatibility test network, the packet loss rate test network or the throughput test network, the attenuation of the programmable attenuator of the first AP is zero.

[0184] It should be noted that when the first AP provides a compatibility test network, setting the attenuation of the first AP's programmable attenuator to zero can ensure that the signal strength of the compatibility test network is maximized and test the compatibility of the WiFi module to be tested of the electronic device under optimal conditions.

[0185] When the first AP provides a packet loss rate test network, the attenuation of the programmable attenuator of the first AP is set to zero to keep the signal strength of the packet loss rate test network unchanged, so as to obtain the actual packet loss rate of the WiFi module to be tested of the electronic device under the packet loss rate test network.

[0186] When the first AP provides a throughput test network, the attenuation of the programmable attenuator of the first AP is set to zero to maximize the signal strength of the throughput test network, thereby facilitating obtaining the maximum data transmission capacity of the WiFi module to be tested of the electronic device.

[0187] In a case where the test network provided by the first AP is the roaming test network, the attenuation amount of the programmable attenuator of the first AP is a preset attenuation amount.

[0188] It should be noted that when the first AP provides a roaming test network, a preset attenuation is set to simulate roaming scenarios under different signal strengths to evaluate the performance of the WiFi module to be tested of the electronic device under weak signal or signal boundary conditions.

[0189] The preset attenuation amount may be determined according to specific requirements of the roaming test, and this embodiment does not specifically limit this.

[0190] For example, the preset attenuation amount may be 5 dB.

[0191] In an embodiment of the present application, by integrating a programmable attenuator in each AP, the signal strength of the test network can be accurately controlled, thereby keeping the signal strength unchanged in compatibility, packet loss rate and throughput tests, and simulating different signal strength conditions in roaming tests, thereby effectively improving the accuracy and reliability of the test results, and enhancing the flexibility of the test process, so as to more realistically evaluate the performance of the WiFi module to be tested.

[0192] In the above embodiment, the main control device needs to test the roaming performance of the WiFi module to be tested. Next, a method for the main control device to test the roaming performance of the WiFi module to be tested is described in detail.

[0193] It should be noted that the roaming performance of the WiFi module refers to the ability of the wireless device to seamlessly switch connections and maintain a stable network connection when moving between multiple APs. Good roaming performance ensures that users will not experience network interruptions during movement. The purpose of the roaming performance test is to evaluate the connection stability of the WiFi module in a mobile environment and ensure that it can maintain a stable network connection when switching between multiple APs.

[0194] Figure 5 A flowchart of a WiFi module roaming test method provided in an embodiment of the present application. Figure 5 As shown, in a possible embodiment, S103, the main control device configures the first AP based on at least one test network configuration information so that the first AP provides at least one test network, including: the main control device configures the multiple first APs respectively based on the fourth test network configuration information included in the wireless access point configuration information corresponding to the multiple first APs, so that each of the multiple first APs provides a roaming test network.

[0195] When testing the roaming performance of the WiFi module to be tested, in S101, the main control device generates wireless access point configuration information related to the roaming test corresponding to each first AP based on the roaming test items of the WiFi module to be tested, and the wireless access point configuration information related to the roaming test includes fourth test network configuration information.

[0196] The SSIDs of the multiple roaming test networks corresponding to the multiple first APs are the same.

[0197] It should be noted that, among the multiple fourth test network configuration information corresponding to the multiple first APs, the SSIDs, security protocols and frequency bands of the multiple fourth test network configuration information are the same, so that the electronic device can roam quickly without re-authentication when switching between the multiple first APs; the channels of the multiple fourth test network configuration information can be different to reduce interference and ensure the signal quality of each first AP, thereby ensuring the overall performance of the roaming test network composed of multiple first APs.

[0198] For example, the roaming performance of the WiFi module to be tested is tested through two first APs, the two first APs are AP1 and AP2, and the fourth test network configuration information of AP1 includes: SSID: roam_test; security protocol: WPA2; frequency band: 5GHz; channel: 36; the fourth test network configuration information of AP2 includes: SSID: roam_test; security protocol: WPA2; frequency band: 5GHz; channel: 40.

[0199] S104, when the electronic device corresponding to the WiFi module to be tested is connected to the test network, the main control device obtains the target test data sent by the electronic device, and determines the test result of the WiFi module to be tested based on the target test data. This can be achieved through steps d1 to d3, which are described in detail below.

[0200] Step d1, when the electronic device successfully establishes a connection with the roaming test network provided by the third AP, the main control device attenuates the signal strength of the roaming test network provided by the third AP through the programmable attenuator of the third AP, and enhances the signal strength of the roaming test network provided by the fourth AP through the programmable attenuator of the fourth AP.

[0201] The third AP is a first AP among the multiple first APs corresponding to the roaming test network that successfully establishes a connection with the electronic device, and the fourth AP is another AP among the multiple first APs except the third AP.

[0202] It should be noted that the roaming test network provided by the third AP is used as the starting point of the roaming test, and the signal strength of the roaming test network provided by the third AP is attenuated by the programmable attenuator of the third AP, so that the signal of the roaming test network provided by the third AP gradually weakens, so as to simulate the scenario where the electronic device is far away from the third AP and approach the roaming trigger condition; at the same time, the signal strength of the roaming test network provided by the fourth AP is enhanced by the programmable attenuator of the fourth AP, so that the signal of the roaming test network provided by the fourth AP gradually increases, so as to simulate the scenario where the electronic device is close to the fourth AP, and attract the electronic device to switch from the roaming test network provided by the third AP to the roaming test network provided by the fourth AP.

[0203] Step d2: The master control device obtains the BSSID of the target roaming test network sent by the electronic device through the target roaming test network within a preset time period and at preset time intervals.

[0204] The target roaming test network is a roaming test network that successfully establishes a connection with the electronic device, and the target roaming test network is a roaming test network provided by the third AP or a roaming test network provided by the fourth AP.

[0205] It should be noted that, within a certain period of time, the BSSIDs of different first APs to which the electronic device is connected during the roaming process are collected at preset time intervals, so as to analyze the roaming behavior of the electronic device.

[0206] The preset duration and the preset time interval can be set by the tester, and this embodiment does not specifically limit this.

[0207] For example, the preset duration may be 10 minutes, and the preset time interval may be 30 seconds.

[0208] Step d3: The main control device determines the roaming result of the WiFi module to be tested based on multiple BSSIDs of the target roaming test network sent by the electronic device.

[0209] Among them, the main control device can analyze the BSSID of the target roaming test network sent by the electronic device, determine the roaming path and switching time of the electronic device by comparing the BSSID collected at different time points, and then evaluate the performance of the WiFi module to be tested during the roaming process, including the timeliness, stability and seamless switching capability of the roaming.

[0210] For example, there are two APs in an office, namely AP1 and AP2. AP1 and AP2 are configured with the same SSID, but AP1 and AP2 are set on different channels (for example, AP1 is on channel 36 and AP2 is on channel 40). When testing the roaming performance of the WiFi module of an electronic device in an office environment, first, the electronic device is controlled to successfully establish a connection with AP1. At this time, the signal strength of AP1 is stronger and the signal strength of AP2 is weaker; secondly, the signal strength of AP1 is gradually attenuated through the programmable attenuator of AP1, and the signal strength of AP2 is gradually increased through the programmable attenuator of AP2 to simulate a scenario where the electronic device is away from AP1 and close to AP2, triggering the electronic device to switch from AP1 to AP2 roaming; at the same time, the total test duration is set to 2 minutes, and the BSSID data is collected every 10 seconds, and the main control device records the BSSID of the AP to which the electronic device is connected at different time points; finally, based on the recorded BSSID of the AP to which the electronic device is connected at different time points, the roaming performance of the electronic device is determined.

[0211] If the BSSID of the AP to which the electronic device is connected at different time points recorded by the main control device is: 0 seconds: BSSID1 (AP1); 10 seconds: BSSID1 (AP1); 20 seconds: BSSID1 (AP1); 30 seconds: BSSID2 (AP2); 40 seconds: BSSID2 (AP2); 50 seconds: BSSID2 (AP2); based on the BSSID of the AP to which the electronic device is connected at different time points recorded, the main control device can determine that the electronic device switched from AP1 to AP2 at the 30th second.

[0212] In an embodiment of the present application, by configuring multiple first APs and using the same SSID, and combining the programmable attenuators of the multiple first APs to dynamically adjust the signal strength of the roaming test network provided by the multiple first APs, the roaming process of the electronic device between the multiple first APs can be accurately simulated, so as to comprehensively evaluate the roaming performance of the WiFi module to be tested of the electronic device under different signal conditions.

[0213] Figure 6This is a schematic diagram of the structure of a WiFi module testing device provided in an embodiment of the present application. Figure 6 As shown, the WiFi module testing device 600 provided in this embodiment can exist independently and be used to implement the operations corresponding to the main control device in the above method embodiment.

[0214] The WiFi module test device 600 may include: a transceiver module 601 and a processing module 602. The processing module 602 is used for data processing, and the transceiver module 601 may implement corresponding communication functions. The transceiver module 601 may also be called a communication interface or a communication unit.

[0215] Optionally, the WiFi module testing device 600 may also include a storage unit, which can be used to store instructions and / or data. The processing module 602 can read the instructions and / or data in the storage unit so that the WiFi module testing device 600 implements the steps implemented by the main control device in the aforementioned method embodiment.

[0216] The transceiver module 601 is used to execute the reception-related operations of the master control device in the foregoing method embodiment, and the processing module 602 is used to execute the processing-related operations of the master control device in the foregoing method embodiment.

[0217] Optionally, the transceiver module 601 may include a sending module and a receiving module. The sending module is used to perform the sending operation in the above method embodiment. The receiving module is used to perform the receiving operation in the above method embodiment.

[0218] It should be noted that the WiFi module test device 600 may include a sending module but not a receiving module. Alternatively, the WiFi module test device 600 may include a receiving module but not a sending module. Specifically, it can be determined whether the above scheme executed by the WiFi module test device 600 includes a sending action and a receiving action.

[0219] As an example, the WiFi module testing device 600 is used to perform the above Figure 1 Actions performed by the master control device in the illustrated embodiment.

[0220] The WiFi module testing device 600 may include: a transceiver module 601 and a processing module 602 .

[0221] The processing module 602 is used to generate wireless access point configuration information corresponding to the first wireless access point AP based on the test items of the WiFi module to be tested; wherein the test items of the WiFi module to be tested are compatibility test, packet loss rate test, throughput test or roaming test; the first AP is an AP among multiple APs that needs to provide a test network corresponding to the test items; the wireless access point configuration information includes at least one test network configuration information, and each test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of the test network.

[0222] The processing module 602 is further configured to control the first AP to be turned on, and control the second AP to be turned off; wherein the second AP is an AP other than the first AP among the multiple APs.

[0223] The processing module 602 is further configured to configure the first AP based on at least one test network configuration information, so that the first AP provides at least one test network.

[0224] The processing module 602 is further used to obtain target test data sent by the electronic device when the electronic device corresponding to the WiFi module to be tested is connected to the test network, and determine the test result of the WiFi module to be tested based on the target test data.

[0225] Wherein, in the case where the test network is a compatibility test network corresponding to the compatibility test, the target test data includes the SSID of the compatibility test network to which the electronic device is connected.

[0226] In the case where the test network is a packet loss rate test network corresponding to a packet loss rate test, the target test data includes a first test data packet transmitted by the electronic device through the packet loss rate test network.

[0227] In the case where the test network is a throughput test network corresponding to a throughput test, the target test data includes the number of second test data packets transmitted by the electronic device through the throughput test network within a unit time.

[0228] In the case that the test network is a roaming test network corresponding to the roaming test, the target test data includes a basic service set identifier BSSID of the roaming test network to which the electronic device is connected.

[0229] It should be understood that the execution of the above corresponding processes by each module has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0230] The processing module 602 in the above embodiment can be implemented by at least one processor or processor-related circuit. The transceiver module 601 can be implemented by a transceiver or a transceiver-related circuit. The transceiver module 601 can also be called a communication unit or a communication interface. The storage unit can be implemented by at least one memory.

[0231] Figure 7 The structure diagram of a WiFi module testing system provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the WiFi module testing system 70 includes: a main control device 71 and a wireless access controller 72, and multiple APs 73.

[0232] Each of the APs 73 includes an AP controller 731, a programmable attenuator 732 and an AP antenna 733. One end of the AP controller 731 is connected to the AP antenna 733 through the programmable attenuator 732, and the other end of the AP controller 731 is connected to the wireless access controller 72. The programmable attenuator 732 is also connected to the main control device 71. The main control device 71 attenuates the signal strength of the test network provided by the AP 73 through the programmable attenuator 732.

[0233] The wireless access controller 72 is wirelessly connected to the main control device 71, and the main control device 71 configures the AP controller 731 through the wireless access controller 72;

[0234] The main control device 71 is also wirelessly connected to the electronic device 80, and the main control device 71 performs the operations performed by the main control device in the above method embodiment.

[0235] The main control device 71 is a computer system and software platform for centralized management and control of complex systems.

[0236] The main control device 71 is wirelessly connected to the wireless access controller 72 so as to configure the AP controllers 731 of the plurality of APs 73 respectively through the wireless access controller 72 so that the AP controllers 731 generate different test networks based on different configuration information.

[0237] The main control device 71 is respectively connected to the programmable attenuators 732 of multiple APs 73 by wire to configure the attenuation of the programmable attenuators 732 of the APs 73.

[0238] The main control device 71 is also wirelessly connected to the electronic device 80 to provide the electronic device 80 with background services required for testing.

[0239] The wireless access controller 72 is a device specifically used for centralized management of wireless networks. The wireless access controller 72 can configure, manage and monitor multiple AP controllers 731 through a central interface. The wireless access controller 72 is connected to the AP controllers 731 of multiple AP73 by wire.

[0240] The wireless access controller 72 simplifies the configuration and maintenance of the network. All APs 73 can be configured by logging into the wireless access controller 72 from the main control device 71, which greatly improves management efficiency, reduces configuration errors, and reduces maintenance costs.

[0241] The wireless access controller 72 supports a seamless roaming function, so that the electronic device 80 can smoothly switch APs during movement without interrupting the network connection.

[0242] The AP controller 731 is used to provide a WiFi network and allow the electronic device 80 to connect to the WiFi network provided by it. One end of the AP controller 731 is wiredly connected to the wireless access controller 72, and the other end of the AP controller 731 is wiredly connected to the programmable attenuator 732 in its corresponding AP73.

[0243] The programmable attenuator group 732 is used for antenna expansion of the AP controller 731 and provides input and output signals for the AP controller 731. One end of the programmable attenuator group 732 is wiredly connected to the AP controller 731 in the corresponding AP73, the other end of the programmable attenuator group 732 is wiredly connected to the main control device 71, and the third end of the programmable attenuator group 732 is wiredly connected to the AP antenna 733 in the corresponding AP73.

[0244] The AP antenna 733 is used to detect the signal strength and coverage of the AP controller 731 in the corresponding AP 73. The AP antenna 733 can convert electrical signals into electromagnetic waves for transmission, or convert received electromagnetic waves into electrical signals for reception.

[0245] A test program is installed on the electronic device 80 , and the electronic device 80 sends target test data to the main control device 71 through the test program thereon.

[0246] It should be noted that the AP controllers 731 of multiple AP73 are all set in a signal shielding box, which can effectively isolate external wireless signal interference, provide a clean and interference-free testing environment, avoid inconsistent test results due to changes in the external environment, and ensure the reliability of the test results.

[0247] In an embodiment of the present application, the WiFi module testing system is used to implement the WiFi module testing method in the above embodiment. The specific process of the WiFi module testing system implementing the WiFi module testing method is detailed in the above embodiment, and this embodiment will not repeat it again.

[0248] Figure 8 This is a circuit principle structure block diagram of a main control device and an electronic device provided in an embodiment of the present application. Figure 8 As shown, the main control device 71 includes an AP management module 711, a programmable attenuator management module 712, an electronic device management module 713 and a background service module 714. The electronic device 80 includes a test APP 901.

[0249] Among them, the AP management module 711 is used to turn on or off the AP controller 731, and is also used to configure the test network provided by the AP controller 731, such as configuring the SSID of the test network, configuring the frequency band of the test network, configuring the channel bandwidth of the test network, configuring the security protocol of the test network, and configuring roaming parameters between different test networks.

[0250] The programmable attenuator management module 712 is used to control the programmable attenuator 732 to operate at a preset attenuation amount.

[0251] For example, the programmable attenuator management module 712 controls a certain programmable attenuator 732 to attenuate the signal strength of the test network provided by the AP controller 731 of the AP 73 corresponding to the programmable attenuator 732 from -1dB to -30dB within 30 seconds.

[0252] The electronic device management module 713 is used to implement centralized management of the electronic device 80 through the test APP 901 installed on the electronic device 80 , such as controlling the electronic device 80 to connect to the AP, assigning addresses to the electronic device 80 , and collecting test information of the electronic device 80 .

[0253] The background service module 714 is used as a background server for providing data packet upload and download for the packet loss rate test, throughput test and roaming test of the master device 71 .

[0254] The test APP 901 is an application program installed on the electronic device 80. The test APP 901 can communicate with the electronic device management module 713 of the main control device 71, manage the network connection of the electronic device 80, perform compatibility, packet loss rate, throughput and roaming tests, and collect compatibility test information, packet loss rate test information, throughput test information and roaming test information and feed it back to the main control device 71.

[0255] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device 900 provided in this embodiment includes: a memory 901 and a processor 902 .

[0256] The memory 901 may be an independent physical unit, and may be connected to the processor 902 via a bus 903. The memory 901 and the processor 902 may also be integrated together and implemented by hardware. The memory 901 is used to store program instructions, and the processor 902 calls the program instructions to execute the operations performed by the main control device in any of the above method embodiments.

[0257] Optionally, when part or all of the methods of the above embodiments are implemented by software, the electronic device 900 may also include only a processor 902. The memory 901 for storing programs is located outside the electronic device 900, and the processor 902 is connected to the memory through circuits / wires for reading and executing the programs stored in the memory. The processor 902 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 902 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0258] The memory 901 may include a volatile memory, such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.

[0259] Illustratively, the present application provides a chip, comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to execute the operations performed by the main control device in the above method embodiment.

[0260] Illustratively, the present application provides a readable storage medium on which computer program instructions are stored. The computer program instructions are executed by a processor of an electronic device so that the electronic device executes the operations performed by the main control device in the above method embodiment.

[0261] Illustratively, the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device executes the operations executed by the main control device in the above method embodiment.

[0262] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A WiFi module testing method, It is characterized in that The method comprises: Generate wireless access point configuration information corresponding to a first wireless access point AP based on the test items of the WiFi module to be tested; wherein the test items of the WiFi module to be tested are compatibility test, packet loss rate test, throughput test or roaming test; the first AP is an AP among multiple APs that needs to provide a test network corresponding to the test items; the wireless access point configuration information includes at least one test network configuration information, and each of the test network configuration information includes a service set identifier SSID, a security protocol, an extensible authentication protocol EAP, a frequency band and a channel of the test network; Controlling the first AP to turn on, and controlling the second AP to turn off; wherein the second AP is another AP among the multiple APs except the first AP; Based on the at least one test network configuration information, configure the first AP so that the first AP provides at least one of the test networks; When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data; Wherein, in the case where the test network is a compatibility test network corresponding to the compatibility test, the target test data includes the SSID of the compatibility test network to which the electronic device is connected; In the case where the test network is a packet loss rate test network corresponding to the packet loss rate test, the target test data includes a first test data packet transmitted by the electronic device through the packet loss rate test network; In the case where the test network is a throughput test network corresponding to the throughput test, the target test data includes the number of second test data packets transmitted by the electronic device through the throughput test network within a unit time; In a case where the test network is a roaming test network corresponding to the roaming test, the target test data includes a basic service set identifier BSSID of the roaming test network to which the electronic device is connected.

2. The method according to claim 1, It is characterized in that The configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes: For each of the first APs, based on the M first test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides M compatibility test networks; wherein the M compatibility test networks correspond one-to-one to the M first test network configuration information, and M is a positive integer greater than 1; When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes: For a first compatibility test network that successfully establishes a connection with the electronic device, obtaining the SSID of the first compatibility test network sent by the electronic device through the first compatibility test network; wherein the first compatibility test network includes all or part of the M compatibility test networks; Based on the SSID of the first compatibility test network sent by the electronic device and the SSIDs of the M compatibility test networks, the compatibility of the WiFi module to be tested is determined.

3. The method according to claim 2, It is characterized in that The determining the compatibility of the to-be-tested WiFi module based on the SSID of the first compatibility test network and the SSIDs of the M compatibility test networks sent by the electronic device includes: In a case where the SSID of the first compatibility test network corresponds one-to-one with the SSIDs of the M compatibility test networks, determining that the WiFi module to be tested is compatible with the M compatibility test networks provided by the first AP; In the case that the SSID of the first compatibility test network does not correspond one-to-one with the SSIDs of the M compatibility test networks, it is determined that the WiFi module to be tested is compatible with the first compatibility test network provided by the first AP, and that the WiFi module to be tested is incompatible with the second compatibility test network provided by the first AP; wherein the second compatibility test network is other compatibility test networks among the M compatibility test networks except the first compatibility test network.

4. The method according to claim 1, It is characterized in that The configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes: For each of the first APs, based on the N second test network configuration information included in the wireless access point configuration information corresponding to the first AP, the first AP is configured so that the first AP provides N packet loss rate test networks; wherein the N packet loss rate test networks correspond one-to-one to the N second test network configuration information, and N is a positive integer greater than 1; When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes: When the electronic device successfully establishes a connection with the target packet loss rate test network, obtaining a first test data packet transmitted by the electronic device through the target packet loss rate test network; wherein the target packet loss rate test network is any packet loss rate test network among the N packet loss rate test networks; Based on the actual number of the first test data packets transmitted by the electronic device through the target packet loss rate test network, and the preset number of the first test data packets, the packet loss rate of the WiFi module to be tested when the electronic device is connected to the target packet loss rate test network is determined; wherein the preset number of the first test data packets is the number of the first test data packets that the electronic device expects to transmit through the target packet loss rate test network.

5. The method according to claim 1, It is characterized in that The configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes: For each of the first APs, based on the Q third test network configuration information included in the wireless access point configuration information corresponding to the first AP, configure the first AP so that the first AP provides Q throughput test networks; wherein the Q throughput test networks correspond one-to-one to the Q third test network configuration information, and Q is a positive integer greater than 1; When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes: When the electronic device successfully establishes a connection with the target throughput test network, obtaining the number of the second test data packets transmitted by the electronic device through the target throughput test network within a unit time; wherein the target throughput test network is any one of the Q throughput test networks; Based on the number of the second test data packets transmitted by the electronic device through the target throughput test network, the throughput of the to-be-tested WiFi module when the electronic device is connected to the target throughput test network is determined.

6. The method according to claim 1, It is characterized in that Each of the APs comprises a programmable attenuator, the programmable attenuator of the AP being used to attenuate the signal strength of the test network provided by the AP; In a case where the test network provided by the first AP is the compatibility test network, the packet loss rate test network or the throughput test network, the attenuation of the programmable attenuator of the first AP is zero; In a case where the test network provided by the first AP is the roaming test network, the attenuation amount of the programmable attenuator of the first AP is a preset attenuation amount.

7. The method according to claim 6, It is characterized in that The configuring the first AP based on the at least one test network configuration information so that the first AP provides at least one of the test networks includes: Based on the fourth test network configuration information included in the wireless access point configuration information corresponding to the plurality of first APs, the plurality of first APs are configured respectively so that each of the plurality of first APs provides a roaming test network; wherein the SSIDs of the plurality of roaming test networks corresponding to the plurality of first APs are the same; When the electronic device corresponding to the WiFi module to be tested is connected to the test network, obtaining target test data sent by the electronic device, and determining the test result of the WiFi module to be tested based on the target test data, includes: In the case where the electronic device successfully establishes a connection with the roaming test network provided by the third AP, the signal strength of the roaming test network provided by the third AP is attenuated by the programmable attenuator of the third AP, and the signal strength of the roaming test network provided by the fourth AP is enhanced by the programmable attenuator of the fourth AP; wherein the third AP is a first AP among the multiple first APs corresponding to the roaming test network with which the electronic device successfully establishes a connection, and the fourth AP is another AP among the multiple first APs except the third AP; Acquire, within a preset time period, a BSSID of the target roaming test network sent by the electronic device through the target roaming test network at preset time intervals; wherein the target roaming test network is a roaming test network with which the electronic device has successfully established a connection, and the target roaming test network is a roaming test network provided by the third AP or the roaming test network provided by the fourth AP; Based on the multiple BSSIDs of the target roaming test network sent by the electronic device, the roaming result of the WiFi module to be tested is determined.

8. A WiFi module testing device, It is characterized in that comprising at least one processor and a memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 7.

9. A WiFi module testing system, It is characterized in that The system includes: a main control device and a wireless access controller, and multiple APs; Each of the APs comprises an AP controller, a programmable attenuator and an AP antenna, one end of the AP controller is connected to the AP antenna through the programmable attenuator, the other end of the AP controller is connected to the wireless access controller, the programmable attenuator is also connected to the main control device, and the main control device attenuates the signal strength of the test network provided by the AP through the programmable attenuator; The wireless access controller is wirelessly connected to the master control device, and the master control device configures the AP controller through the wireless access controller; The main control device is also wirelessly connected to the electronic device, and the main control device is used to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that include: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Optical network communication method and communication device

    CN120601983A