Wireless local area network communication module test method, device, equipment and medium

By automatically determining and executing test scripts using preset mapping tables in the edge server Wi-Fi module testing, the problems of inefficiency in testing in the existing technology are solved, and a more efficient and accurate testing process is achieved.

CN119697686APending Publication Date: 2025-03-25INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202412000360.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The testing methods for edge server Wi-Fi modules in the prior art are inefficient and may introduce human errors.

Method used

Provide a test method for wireless LAN communication module, by collecting modules, acquiring submodules, determining modules and testing modules, using preset mapping tables to automatically determine the test scripts and perform tests, avoiding manual installation and execution of test files.

Benefits of technology

It improves testing efficiency and accuracy, reduces the possibility of human error, and can adapt to different test scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697686A_ABST
    Figure CN119697686A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless local area network communication module testing method, device and equipment and a medium, and relates to the technical field of servers. According to the scheme, a preset mapping table is constructed in advance, and corresponding test scripts of a wireless local area network communication module under different parameter information and different test types are stored in the table; when the to-be-tested wireless local area network communication module is tested, the corresponding target test script is determined according to the preset mapping table, the parameter information of the to-be-tested wireless local area network communication module and the test type, and finally the to-be-tested wireless local area network communication module is tested according to the target test script, so that a test file does not need to be manually installed, and the test efficiency is improved. A manual test process is replaced by an automatic mode, different test scenes can be adapted, and the test efficiency and the test accuracy are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a method, device, equipment and medium for testing a wireless local area network communication module. Background Art

[0002] Currently, server manufacturers need to conduct comprehensive tests on Wi-Fi modules before producing edge computing servers equipped with wireless LAN communication (Wi-Fi) modules, including information inspection, basic function testing, performance testing and stability testing, to ensure product quality.

[0003] However, the current testing method has significant defects: the only way is to manually install the test files in the system and execute the instructions one by one, and then manually export and test the data results, which requires testers to enter the equipment laboratory to operate. Copying the test tools to the edge server and executing various tests after installing the files not only consumes a lot of manpower and time, but also prolongs the test cycle, is inefficient, and may introduce human errors.

[0004] In view of the above, how to solve the problem that the current testing method for the Wi-Fi module of the edge server is inefficient and may introduce human errors is an urgent problem to be solved by technicians in this field. Summary of the invention

[0005] The purpose of the present invention is to provide a wireless local area network communication module testing method, device, equipment and medium to solve the problem that the current testing method for the Wi-Fi module of the edge server is inefficient and may introduce human errors.

[0006] In order to solve the above technical problems, the present invention provides a wireless local area network communication module testing method, comprising:

[0007] Collect parameter information of the wireless LAN communication module to be tested;

[0008] Obtain a preset mapping table and determine the test type of the wireless local area network communication module to be tested; wherein the preset mapping table includes test scripts corresponding to the wireless local area network communication module under different parameter information and different test types;

[0009] Determine the target test script corresponding to the wireless local area network communication module to be tested according to the preset mapping table, the parameter information of the wireless local area network communication module to be tested and the test type;

[0010] Test the wireless LAN communication module to be tested according to the target test script.

[0011] On the one hand, the parameter information of the wireless LAN communication module to be tested is collected, including:

[0012] Run the script to obtain the wireless LAN communication module parameter information;

[0013] Based on the wireless LAN communication module parameter information acquisition script, the network manager command line tool device list command of the wireless LAN communication module to be tested is executed through the subprocess running function to obtain the network information of the wireless LAN communication module to be tested; wherein the network information at least includes the network name, base station media access control address, channel information, frequency band information, encryption method and signal strength;

[0014] Based on the wireless LAN communication module parameter information acquisition script, the network manager command line tool device status command of the wireless LAN communication module to be tested is executed through the sub-process running function to obtain the interface information of the wireless LAN communication module to be tested; wherein the interface information at least includes the interface name and the interface usage status.

[0015] On the other hand, the construction process of the preset mapping table includes:

[0016] Collect various parameter information of wireless LAN communication module;

[0017] Determine the various test types involved in the wireless LAN communication module test; the test types at least include basic function test, performance test and stability test;

[0018] Determine the corresponding test script according to each parameter information and each test type;

[0019] Establish the mapping relationship between each parameter information and each test type and the corresponding test script;

[0020] Set constraints for each test script.

[0021] On the other hand, the wireless LAN communication module to be tested is tested according to the target test script, including:

[0022] When there are multiple target test scripts, set the priority of each target test script;

[0023] Execute each target test script in sequence according to the priority to test the wireless LAN communication module to be tested.

[0024] On the other hand, when the test type of the wireless local area network communication module to be tested is a performance test, the wireless local area network communication module to be tested is tested according to the target test script, including:

[0025] Acquire channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation cycle; wherein the channel parameters at least include channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput;

[0026] The performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel.

[0027] On the other hand, the channel parameters of each channel of the wireless local area network communication module to be tested are obtained according to a preset channel evaluation period, including:

[0028] Obtain the channel utilization, received signal strength indication, signal-to-noise ratio and throughput of each channel of the wireless LAN communication module to be tested through the wireless tool device interface site information export command;

[0029] Obtain the signal-to-interference-noise ratio of each channel of the wireless LAN communication module to be tested through the wireless interface list device interface scanning command;

[0030] Correspondingly, the performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel, including:

[0031] Determine weight parameters of channel utilization, signal to interference plus noise ratio, received signal strength indication, signal to noise ratio and throughput respectively;

[0032] Obtain the minimum and maximum values ​​corresponding to channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput respectively;

[0033] According to the corresponding minimum and maximum values, the channel utilization, signal to interference and noise ratio, received signal strength indicator, signal to noise ratio and throughput are standardized respectively;

[0034] Obtain the product of channel utilization, signal to interference and noise ratio, received signal strength indicator, signal to noise ratio and throughput and corresponding weight parameters;

[0035] The products are summed to obtain the comprehensive performance score of the corresponding channel.

[0036] On the other hand, after obtaining the comprehensive performance score of each channel, it also includes:

[0037] According to the comprehensive performance scores, determine whether the current channel of the wireless LAN communication module to be tested meets the switching conditions;

[0038] If so, the wireless local area network communication module to be tested is switched from the current channel to the channel with the highest comprehensive performance score.

[0039] In order to solve the above technical problems, the present invention also provides a wireless local area network communication module testing device, comprising:

[0040] The acquisition module is used to acquire parameter information of the wireless local area network communication module to be tested;

[0041] The acquisition submodule is used to obtain a preset mapping table and determine the test type of the wireless local area network communication module to be tested; wherein the preset mapping table contains test scripts corresponding to the wireless local area network communication module under different parameter information and different test types;

[0042] A determination module, used to determine a target test script corresponding to the wireless local area network communication module to be tested according to a preset mapping table, parameter information of the wireless local area network communication module to be tested and a test type;

[0043] The test module is used to test the wireless local area network communication module to be tested according to the target test script.

[0044] In order to solve the above technical problems, the present invention also provides a wireless local area network communication module testing device, comprising:

[0045] Memory for storing computer programs;

[0046] The processor is used to implement the steps of the above-mentioned wireless local area network communication module testing method when executing the computer program.

[0047] To solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above wireless local area network communication module testing method are implemented.

[0048] The wireless local area network communication module testing method provided by the present invention specifically collects parameter information of the wireless local area network communication module to be tested; obtains a preset mapping table, and determines the test type of the wireless local area network communication module to be tested; wherein the preset mapping table includes test scripts corresponding to the wireless local area network communication module under different parameter information and different test types; according to the preset mapping table, the parameter information and test type of the wireless local area network communication module to be tested, determines the target test script corresponding to the wireless local area network communication module to be tested; and tests the wireless local area network communication module to be tested according to the target test script.

[0049] The beneficial effects of the present invention are that, by pre-constructing a preset mapping table, the test scripts corresponding to the wireless LAN communication module under different parameter information and different test types are saved in the table; when the wireless LAN communication module to be tested is tested, the corresponding target test script is determined according to the preset mapping table, the parameter information of the wireless LAN communication module to be tested and the test type, and finally the wireless LAN communication module to be tested is tested according to the target test script, without the need to manually install the test file, and the manual testing process is replaced by an automated method, which can adapt to different testing scenarios and greatly improve the testing efficiency and the testing accuracy.

[0050] On the other hand, the present invention specifically obtains the network information and interface information of the wireless LAN communication module to be tested by running the wireless LAN communication module parameter information acquisition script; based on the wireless LAN communication module parameter information acquisition script, executing the network manager command line tool device list command of the wireless LAN communication module to be tested through the subprocess running function, and executing the network manager command line tool device status command of the wireless LAN communication module to be tested through the subprocess running function. By collecting various parameter information of the wireless LAN communication module; determining various test types involved in the wireless LAN communication module test; determining the corresponding test script according to each parameter information and each test type; establishing the mapping relationship between each parameter information and each test type and the corresponding test script and setting the restriction conditions of each test script, the creation of a preset mapping table is realized. When there are multiple target test scripts, the priority of each target test script is set; and each target test script is executed in sequence according to the priority to test the wireless LAN communication module to be tested to prevent test errors or conflicts.

[0051] In addition, the present invention also provides a wireless local area network communication module testing device, equipment and medium, with the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A flow chart of a wireless local area network communication module testing method provided by an embodiment of the present invention;

[0054] Figure 2 A schematic diagram of a wireless local area network communication module testing device provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of a wireless local area network communication module testing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] The core of the present invention is to provide a wireless local area network communication module testing method, device, equipment and medium to solve the problem that the current testing method for the Wi-Fi module of the edge server is inefficient and may introduce human errors.

[0058] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0059] In the production process of edge computing servers equipped with Wi-Fi modules, server manufacturers must first perform a series of tests on the Wi-Fi modules, covering information verification, basic function verification, performance evaluation, and stability testing, to ensure that the product quality meets the standards. However, the current testing methods have significant limitations: testers need to manually install test files in the system environment, execute instructions one by one, and then manually export and analyze the test data results. This process requires testers to go to the equipment laboratory to operate, transfer the test tools to the edge server, and perform various tests after installing the files. This method not only consumes a lot of manpower and time, but also leads to extended testing cycles, low efficiency, and may introduce human errors. Therefore, in order to solve the above problems, the present invention provides a wireless local area network communication module testing method.

[0060] It should be noted that this solution is applicable to testing any Wi-Fi module, not limited to Wi-Fi-based edge servers, depending on the specific implementation.

[0061] Figure 1 A flow chart of a wireless local area network communication module testing method provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0062] S10: Collect parameter information of the wireless local area network communication module to be tested.

[0063] When the Wi-Fi module needs to be tested, the parameter information of the Wi-Fi module to be tested must be collected first. It should be noted that the parameter information should at least include the Wi-Fi module network name (Service Set Identifier, SSID), Basic Service Set Identifier (Basic Service Set Identifier, BSSID) (i.e., Wi-Fi base station media control protocol address), channel, frequency band, encryption method, and signal strength. In this embodiment, there is no restriction on the specific method of collecting Wi-Fi module parameter information, which depends on the specific implementation situation.

[0064] S11: Obtain a preset mapping table and determine the test type of the wireless local area network communication module to be tested.

[0065] The preset mapping table includes test scripts corresponding to the wireless local area network communication module under different parameter information and different test types.

[0066] Further, obtain a preset mapping table and determine the test type of the Wi-Fi module to be tested. It should be noted that the preset mapping table is pre-built and contains test scripts corresponding to the Wi-Fi module under different parameter information and different test types; the test types of the Wi-Fi module include basic function tests, performance tests, and stability tests, etc. The preset mapping table associates the Wi-Fi parameter information and test types with specific test scripts, and can point to the most appropriate test script according to different parameter combinations. If there is no exact matching entry in the mapping table, the closest configuration item can be selected, or fuzzy matching can be performed according to the user's specific rules. In this embodiment, there is no restriction on the specific construction process of the preset mapping table.

[0067] It should also be noted that each test script in the preset mapping table is added or compiled by the user according to actual test requirements. In this embodiment, there is no restriction on the source, specific function and compilation method of the test script, which depends on the specific implementation situation.

[0068] S12: Determine a target test script corresponding to the wireless local area network communication module to be tested according to the preset mapping table, parameter information of the wireless local area network communication module to be tested, and the test type.

[0069] S13: Testing the wireless LAN communication module to be tested according to the target test script.

[0070] Subsequently, according to the collected and determined parameter information and test type of the Wi-Fi module to be tested, a match is performed in the preset mapping table to find the corresponding target test script. It should be noted that when the user has multiple test requirements, that is, when there are multiple test types, the number of target test scripts is multiple. Finally, the Wi-Fi module to be tested is tested according to the target test script. In this embodiment, there is no restriction on the specific test process.

[0071] In addition, in order to improve the test efficiency of the Wi-Fi module, a multi-device parallel test method can also be adopted. Specifically, multiple Wi-Fi modules can be tested at the same time, which significantly improves the test efficiency. Connect multiple devices to the test platform, and the test scripts can be configured and adjusted according to different models of Wi-Fi modules to meet different test requirements. The platform performs unified task scheduling for each test script and automatically assigns test tasks to different Wi-Fi modules according to test requirements. At the same time, the test script can also be divided into multiple modules, each module is responsible for a specific type of test (such as performance testing, stability testing). The test framework of the test script adopts a modular design, which can easily add, delete or modify test scripts to adapt to different test scenarios.

[0072] In this embodiment, a preset mapping table is pre-constructed, and the test scripts corresponding to the wireless LAN communication module under different parameter information and different test types are saved in the table; when the wireless LAN communication module to be tested is tested, the corresponding target test script is determined according to the preset mapping table, the parameter information of the wireless LAN communication module to be tested and the test type, and finally the wireless LAN communication module to be tested is tested according to the target test script, without the need to manually install the test file, and the manual testing process is replaced by an automated method, which can adapt to different testing scenarios and greatly improve the testing efficiency and test accuracy.

[0073] On the basis of the above embodiments, in some embodiments, collecting parameter information of the wireless local area network communication module to be tested includes:

[0074] S101: Run the wireless LAN communication module parameter information acquisition script;

[0075] S102: Based on the wireless LAN communication module parameter information acquisition script, executing the network manager command line tool device list command of the wireless LAN communication module to be tested through the subprocess running function to obtain the network information of the wireless LAN communication module to be tested;

[0076] The network information includes at least the network name, base station media access control address, channel information, frequency band information, encryption method and signal strength;

[0077] S103: Based on the wireless LAN communication module parameter information acquisition script, the network manager command line tool device status command of the wireless LAN communication module to be tested is executed through the subprocess running function to obtain the interface information of the wireless LAN communication module to be tested;

[0078] The interface information at least includes the interface name and interface usage status.

[0079] In order to collect parameter information of the Wi-Fi module to be tested, in the specific implementation, the Wi-Fi module parameter information acquisition script get_Wi-Fi_info.py is first run, so that the parameter information can be automatically acquired through the script.

[0080] Specifically, based on the Wi-Fi module parameter information acquisition script get_Wi-Fi_info.py, the subprocess run function subprocess.run is run, and the network manager command line tool device list command nmcli dev Wi-Fi list of the Wi-Fi module to be tested is executed through the subprocess run function subprocess.run to obtain the network information of the Wi-Fi module to be tested. The network information includes at least the network name (ie, SSID), the base station media access control address (ie, BSSID), channel information, frequency band information, encryption method, and signal strength.

[0081] Furthermore, based on the Wi-Fi module parameter information acquisition script get_Wi-Fi_info.py, a subprocess run function subprocess.run is run, and the network manager command line tool device status command nmcli dev status of the Wi-Fi module to be tested is executed through the subprocess run function subprocess.run to obtain the interface information of the Wi-Fi module to be tested. The interface information includes at least the interface name and the interface usage status.

[0082] Finally, the network information and interface information of the Wi-Fi module to be tested can be further spliced ​​to obtain the parameter information of the Wi-Fi module to be tested. At the same time, the parameter information can be directly printed so that the user can analyze the operation status of the Wi-Fi module to be tested in advance according to the parameter information.

[0083] In this embodiment, by running the wireless LAN communication module parameter information acquisition script; based on the wireless LAN communication module parameter information acquisition script, the network manager command line tool device list command of the wireless LAN communication module to be tested is executed through the sub-process running function, and the network manager command line tool device status command of the wireless LAN communication module to be tested is executed through the sub-process running function, and the network information and interface information of the wireless LAN communication module to be tested are respectively obtained.

[0084] Based on the above embodiments, in some embodiments, the process of constructing the preset mapping table includes:

[0085] S111: Collecting various parameter information of the wireless LAN communication module;

[0086] S112: Determine various test types involved in the wireless LAN communication module test;

[0087] Among them, the test types include at least basic function test, performance test and stability test;

[0088] S113: Determine a corresponding test script according to each parameter information and each test type;

[0089] S114: Establishing a mapping relationship between each parameter information and each test type and a corresponding test script;

[0090] S115: Setting restriction conditions for each test script.

[0091] In order to create a preset mapping table, in this embodiment, it is specifically necessary to collect various parameter information of the Wi-Fi module, such as SSID, BSSID, channel, frequency band, etc. At the same time, various test types involved in Wi-Fi are determined, including at least basic function test, performance test and stability test.

[0092] Furthermore, in order to meet specific tests on the Wi-Fi module under different parameter information, it is necessary to determine the corresponding test script according to each parameter information and each test type, and establish a mapping relationship between each parameter information and each test type and the corresponding test script.

[0093] Table 1 Preset mapping table

[0094] Network Name Frequency band Channel Encryption Signal strength (dBm) Signal-to-noise ratio (dB) Number of connected devices Test script path HomeWiFi 2.4GHz 6 WPA2 -70 20 5 scripts / 2_4GHz_PerfTest.py OfficeWiFi 5GHz 44 WPA3 -50 30 10 scripts / 5GHz_SecurityTest.py GuestWiFi 2.4GHz 11 Open -80 10 2 scripts / OpenNetwork_BasicTest.py

[0095] As shown in Table 1, through the preset mapping table, after determining the parameter information and test type of the Wi-Fi module, the test script path can be directly determined and the corresponding test script can be found from it. In addition, the restriction conditions of each test script need to be set in the preset mapping table, including the scope of application of the test script, and specifying that a specific test script is only used to test a specific Wi-Fi module.

[0096] In this embodiment, the creation of a preset mapping table is achieved by collecting various parameter information of the wireless LAN communication module; determining various test types involved in the wireless LAN communication module test; determining the corresponding test script according to each parameter information and each test type; establishing a mapping relationship between each parameter information and each test type and the corresponding test script and setting restriction conditions for each test script.

[0097] Based on the above embodiments, in some embodiments, testing the wireless local area network communication module to be tested according to the target test script includes:

[0098] S130: When there are multiple target test scripts, setting the priority of each target test script;

[0099] S131: Execute each target test script in sequence according to the priority to test the wireless local area network communication module to be tested.

[0100] When multiple target test scripts are selected during testing, in order to avoid test conflicts, the priority of each target test script is specifically required. It should be noted that in this embodiment, there is no restriction on the priority of each target test script; in order to improve test efficiency, in specific implementations, the priority of the test script that tests important functions is generally set to the highest, for example, the priority of the underlying driver test script is set to the highest. Subsequently, each target test script is executed in sequence according to the priority order to prevent test errors caused by running multiple scripts at the same time.

[0101] It should be noted that in order to ensure the smooth operation of the target test script, it is also necessary to use appropriate tools or environments to execute the script; during the execution process, some additional parameters or configurations may need to be entered to ensure that the script can run correctly.

[0102] In this embodiment, when there are multiple target test scripts, the priority of each target test script is set; each target test script is executed in sequence according to the priority to test the wireless local area network communication module to be tested to prevent test errors or conflicts.

[0103] Based on the above embodiments, this solution also provides an algorithm based on adaptation and dynamic adjustment for performance testing. In the performance test, the channel parameters are adaptively adjusted based on the adaptive and dynamic adjustment algorithm according to the performance and test requirements of the Wi-Fi module. The algorithm combines adaptive channel selection and dynamic channel allocation technology to dynamically adjust the channel settings of the Wi-Fi network by real-time monitoring of channel occupancy, interference level, signal quality and other factors in the network environment to maximize network performance and stability. The algorithm is described in detail below:

[0104] When the test type of the wireless LAN communication module to be tested is a performance test, the wireless LAN communication module to be tested is tested according to the target test script, including:

[0105] S14: acquiring channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation period; wherein the channel parameters at least include channel utilization, signal to interference and noise ratio, received signal strength indicator, signal to noise ratio and throughput;

[0106] S15: Perform performance evaluation on each channel according to the channel parameters to obtain a comprehensive performance score of each channel.

[0107] Specifically, when the test type of the Wi-Fi module to be tested is a performance test, the channel parameters of each channel of the Wi-Fi module to be tested are obtained according to a preset channel evaluation period. It can be understood that the Wi-Fi module to be tested has multiple channels.

[0108] It should be noted that the preset channel evaluation period refers to the time interval for the adaptive channel selection algorithm to periodically re-evaluate the current channel quality and decide whether to switch channels. In this embodiment, there is no restriction on the preset channel evaluation period, for example, it is set to 30 minutes.

[0109] In addition, channel parameters include at least channel utilization, signal to interference plus noise ratio (SINR), received signal strength indication (RSSI), signal to noise ratio (SNR), and throughput. Among them, channel utilization indicates the proportion of time that the channel is occupied in a certain period of time. High utilization may mean that the channel is too busy and prone to interference. SINR takes into account not only background noise, but also interference from other Wi-Fi devices and other wireless devices. It provides a more comprehensive interference assessment. Received signal strength indication is usually between -100dBm and 0dBm, and the closer the value is to 0, the stronger the signal; RSSI reflects the received signal strength. A lower RSSI value may mean a weak signal or interference. The signal to noise ratio indicates the ratio of the received signal strength to the background noise. A higher SNR means a clearer signal and less interference. Throughput is the actual data transmission rate measured, which can indirectly reflect the quality of the channel. Low throughput may mean severe interference or congestion.

[0110] Further, the performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel. The comprehensive performance score reflects the performance of the corresponding channel. In this embodiment, the specific calculation process of the comprehensive performance score is not limited and depends on the specific implementation situation.

[0111] In this embodiment, the channel parameters of each channel of the wireless local area network communication module to be tested are obtained according to a preset channel evaluation period; and the performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel, so that the user can intuitively determine the channel performance of the Wi-Fi module to be tested according to the comprehensive performance score.

[0112] On the basis of the above embodiments, in some embodiments, obtaining channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation period includes:

[0113] S141: Obtain channel utilization, received signal strength indication, signal-to-noise ratio, and throughput of each channel of the wireless local area network communication module to be tested through a wireless tool device interface site information export command;

[0114] S142: Obtain the signal-to-interference-and-noise ratio of each channel of the wireless local area network communication module to be tested through a wireless interface list device interface scanning command.

[0115] In order to collect the channel parameters of each channel of the Wi-Fi module to be tested, the wireless tool device interface station information export command iw dev wlan0 station dump is used to obtain the channel utilization, received signal strength indication, signal-to-noise ratio and throughput of each channel of the Wi-Fi module to be tested; the wireless interface list device interface scan command iwlist wlan0scan is used to obtain the signal-to-interference-to-noise ratio of each channel of the wireless LAN communication module to be tested.

[0116] Correspondingly, the performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel, including:

[0117] S151: Determine weight parameters of channel utilization, signal to interference plus noise ratio, received signal strength indicator, signal to noise ratio and throughput respectively;

[0118] S152: Obtaining minimum and maximum values ​​corresponding to channel utilization, signal to interference plus noise ratio, received signal strength indicator, signal to noise ratio, and throughput, respectively;

[0119] S153: performing standardization processing on the channel utilization, signal to interference plus noise ratio, received signal strength indicator, signal to noise ratio and throughput respectively according to the corresponding minimum value and maximum value;

[0120] S154: Obtain the product of channel utilization, signal to interference and noise ratio, received signal strength indicator, signal to noise ratio and throughput and corresponding weight parameters;

[0121] S155: Add the products to obtain a comprehensive performance score of the corresponding channel.

[0122] In order to comprehensively evaluate each channel and obtain a comprehensive performance score, a weighted average algorithm is used in this embodiment: each key parameter is converted into a numerical value, and different weights are assigned according to their importance, and finally a comprehensive score is calculated through a formula for comparing the performance of different channels. The following is a specific description:

[0123] First, the weight parameters of channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput are determined respectively; the weight reflects the importance of the parameter in the overall performance evaluation.

[0124] Furthermore, each channel parameter is standardized. Since the units and ranges of each parameter are different, it is necessary to perform standardization so that its value falls between 0 and 1. The standardization formula is: Standardized value = (actual value - minimum value) / (maximum value - minimum value). Since the actual value is known, it is also necessary to obtain the minimum and maximum values ​​corresponding to the channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput, and then standardize the channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput according to the corresponding minimum and maximum values, and obtain the standardized channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput.

[0125] Finally, obtain the products of the standardized channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput and the corresponding weight parameters, and add up the products to obtain the weighted average result, which is the comprehensive performance score of the corresponding channel.

[0126] In this way, the performance test of the Wi-Fi module to be tested is achieved.

[0127] In order to improve the operating performance of the Wi-Fi module under test, after obtaining the comprehensive performance score of each channel, it also includes:

[0128] S16: judging whether the current channel of the wireless LAN communication module to be tested meets the switching condition according to the comprehensive performance scores; if so, proceeding to step S17;

[0129] S17: Switch the wireless LAN communication module to be tested from the current channel to the channel with the highest comprehensive performance score.

[0130] Specifically, after obtaining the comprehensive performance scores of each channel of the Wi-Fi module to be tested, it is determined whether the current channel of the Wi-Fi module to be tested meets the switching condition according to each comprehensive performance score. It should be noted that in this embodiment, there is no restriction on the switching condition, such as the comprehensive performance score of the current channel is lower than the threshold, or the comprehensive performance score of the current channel is not the highest score among all channels, depending on the specific implementation situation.

[0131] If it is confirmed that the current channel of the Wi-Fi module to be tested does not meet the switching conditions, the process ends without any processing. If the current channel of the Wi-Fi module to be tested meets the switching conditions, the Wi-Fi module to be tested is switched from the current channel to the channel with the highest comprehensive performance score. It can be understood that in the case of multiple wireless access points, the optimal channel is allocated to each access point through the above-mentioned dynamic channel allocation algorithm. Consider the interference and overlap between channels to avoid adjacent access points using the same or similar channels. According to changes in the network environment, the channel settings of the access point are dynamically adjusted to maintain the stability and performance of the network.

[0132] Finally, after completing the comprehensive test of the Wi-Fi module, intelligent analysis of the acquired test data becomes a key step to improve test efficiency and accuracy. With the help of advanced data analysis technologies, such as machine learning algorithms and data mining methods, it is possible to deeply explore potential patterns and anomalies in the test data. Through these technologies, the system can automatically identify the passed and failed items in the test results and further locate the root cause of the problem. For example, for performance test data, intelligent analysis can reveal possible bottlenecks in high-load or multi-device connection scenarios; while for stability test data, potential signal interference or device compatibility issues can be detected. Based on these analysis results, the system can automatically generate a detailed test report that not only lists the summary of the test results, but also provides specific problem location and targeted improvement suggestions.

[0133] In order to improve user experience and ease of operation, the test platform should also be equipped with an intuitive and feature-rich user interface. Through this interface, users can easily view test reports and understand detailed results and analysis of each test item. The interface design should focus on ease of use to ensure that even users with non-technical backgrounds can quickly get started and take corresponding measures based on the recommendations in the report. In addition, the test platform should also support remote monitoring functions, allowing users to access test data through the network anytime and anywhere. This remote monitoring not only provides real-time data updates, but also allows users to perform remote analysis and processing, greatly improving the flexibility and responsiveness of the test. For example, when an urgent problem is found during the test, the user can quickly take measures through the remote interface, such as adjusting the test parameters of the target test script or restarting the target test script, thereby reducing delays caused by waiting for on-site operations. After retesting the target test script with adjusted parameters or restarted to obtain the test results, it is also necessary to use a machine learning algorithm to analyze the reliability of the target test script based on the test results, so that when it is confirmed that the reliability of the target test script meets the preset value, it ends; when it is confirmed that the reliability of the target test script does not meet the preset value, the target test script is removed from the preset mapping table, and the user is prompted to re-complete the missing test scripts in the preset mapping table to ensure the reliability of the test. Through these intelligent and remote functions, the test platform can not only significantly improve the test efficiency, but also provide users with more comprehensive and timely support to ensure that the quality and performance of the Wi-Fi module meet the expected standards.

[0134] In the above embodiments, the wireless local area network communication module testing method is described in detail. The present invention also provides a corresponding embodiment of the wireless local area network communication module testing device.

[0135] Figure 2A schematic diagram of a wireless local area network communication module testing device provided by an embodiment of the present invention. Figure 2 As shown, the device comprises:

[0136] The acquisition module 10 is used to acquire parameter information of the wireless local area network communication module to be tested;

[0137] The acquisition module 11 is used to acquire a preset mapping table and determine the test type of the wireless local area network communication module to be tested; wherein the preset mapping table contains test scripts corresponding to the wireless local area network communication module under different parameter information and different test types;

[0138] A determination module 12, configured to determine a target test script corresponding to the wireless local area network communication module to be tested according to a preset mapping table, parameter information of the wireless local area network communication module to be tested and a test type;

[0139] The testing module 13 is used to test the wireless local area network communication module to be tested according to the target testing script.

[0140] In some embodiments, the acquisition module 10 includes:

[0141] The first running submodule is used to run the wireless local area network communication module parameter information acquisition script;

[0142] The first execution submodule is used to obtain a script based on the wireless local area network communication module parameter information, and execute a network manager command line tool device list command on the wireless local area network communication module to be tested through a subprocess running function to obtain the network information of the wireless local area network communication module to be tested; wherein the network information at least includes a network name, a base station media access control address, a channel information, a frequency band information, an encryption method, and a signal strength;

[0143] The second execution submodule is used to obtain the script based on the wireless LAN communication module parameter information, and execute the network manager command line tool device status command of the wireless LAN communication module to be tested through the sub-process running function to obtain the interface information of the wireless LAN communication module to be tested; wherein the interface information at least includes the interface name and the interface usage status.

[0144] In some embodiments, the process of constructing a preset mapping table specifically includes collecting various parameter information of the wireless LAN communication module; determining various test types involved in the wireless LAN communication module test; wherein the test types at least include basic function testing, performance testing, and stability testing; determining the corresponding test script based on each parameter information and each test type; establishing a mapping relationship between each parameter information and each test type and the corresponding test script; and setting restriction conditions for each test script.

[0145] In some embodiments, the testing module 13 includes:

[0146] A setting submodule is used to set the priority of each target test script when there are multiple target test scripts;

[0147] The test submodule is used to execute each target test script in sequence according to the priority to test the wireless local area network communication module to be tested.

[0148] In some embodiments, the testing module 13 includes:

[0149] The first acquisition submodule is used to acquire the channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation period; wherein the channel parameters at least include channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput;

[0150] The first evaluation submodule is used to perform performance evaluation on each channel according to each channel parameter to obtain a comprehensive performance score of each channel.

[0151] In some embodiments, the first acquisition submodule is specifically used to obtain the channel utilization, received signal strength indication, signal-to-noise ratio and throughput of each channel of the wireless local area network communication module to be tested through the wireless tool device interface site information export command; obtain the signal-to-interference-to-noise ratio of each channel of the wireless local area network communication module to be tested through the wireless interface list device interface scan command;

[0152] Correspondingly, the first evaluation submodule is specifically used to determine the weight parameters of channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput respectively; obtain the minimum and maximum values ​​corresponding to the channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput respectively; perform standardization processing on the channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput respectively according to the corresponding minimum and maximum values; obtain the product of the channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput with the corresponding weight parameters; and sum each product to obtain the comprehensive performance score of the corresponding channel.

[0153] In some embodiments, it also includes:

[0154] A judgment submodule is used to judge whether the current channel of the wireless local area network communication module to be tested meets the switching condition according to each comprehensive performance score; if so, trigger the switching submodule;

[0155] The switching submodule is used to switch the wireless local area network communication module to be tested from the current channel to the channel with the highest comprehensive performance score.

[0156] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0157] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned wireless local area network communication module testing method when executed by a processor.

[0158] Figure 3 A schematic diagram of a wireless local area network communication module testing device provided by an embodiment of the present invention. Figure 3 As shown, the wireless LAN communication module test equipment includes:

[0159] A memory 20, used for storing computer programs;

[0160] The processor 21 is used to implement the steps of the wireless local area network communication module testing method mentioned in the above embodiment when executing the computer program.

[0161] The wireless local area network communication module testing device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0162] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array. The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0163] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the wireless local area network communication module testing method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data involved in the wireless local area network communication module testing method.

[0164] In some embodiments, the wireless local area network communication module testing device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0165] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the wireless local area network communication module testing equipment, and may include more or fewer components than those shown in the figure.

[0166] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0167] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0168] The above is a detailed introduction to a wireless local area network communication module testing method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

[0169] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A wireless local area network communication module testing method, characterized in that: include: Collect parameter information of the wireless LAN communication module to be tested; Obtaining a preset mapping table and determining the test type of the wireless local area network communication module to be tested; wherein the preset mapping table includes test scripts corresponding to the wireless local area network communication module under different parameter information and different test types; Determine a target test script corresponding to the wireless local area network communication module to be tested according to the preset mapping table, the parameter information of the wireless local area network communication module to be tested and the test type; The wireless local area network communication module to be tested is tested according to the target test script.

2. The wireless local area network communication module testing method according to claim 1, characterized in that: Collect parameter information of the wireless LAN communication module to be tested, including: Run the script to obtain the wireless LAN communication module parameter information; Based on the wireless LAN communication module parameter information acquisition script, a network manager command line tool device list command for the wireless LAN communication module to be tested is executed through a subprocess running function to obtain the network information of the wireless LAN communication module to be tested; wherein the network information at least includes a network name, a base station media access control address, channel information, frequency band information, encryption method and signal strength; Based on the wireless LAN communication module parameter information acquisition script, the network manager command line tool device status command of the wireless LAN communication module to be tested is executed through the sub-process running function to obtain the interface information of the wireless LAN communication module to be tested; wherein the interface information at least includes the interface name and the interface usage status.

3. The wireless local area network communication module testing method according to claim 1, characterized in that: The process of constructing the preset mapping table includes: Collect various parameter information of wireless LAN communication module; Determine the various test types involved in the wireless LAN communication module test; the test types at least include basic function test, performance test and stability test; Determine the corresponding test script according to each parameter information and each test type; Establish the mapping relationship between each parameter information and each test type and the corresponding test script; Set constraints for each test script.

4. The wireless local area network communication module testing method according to claim 1, characterized in that: Testing the wireless local area network communication module to be tested according to the target test script includes: When there are multiple target test scripts, setting the priority of each of the target test scripts; The target test scripts are executed in sequence according to the priority to test the wireless local area network communication module to be tested.

5. The wireless local area network communication module testing method according to claim 1, characterized in that: When the test type of the wireless local area network communication module to be tested is a performance test, testing the wireless local area network communication module to be tested according to the target test script includes: Acquire channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation period; wherein the channel parameters at least include channel utilization, signal to interference and noise ratio, received signal strength indication, signal to noise ratio and throughput; A performance evaluation is performed on each of the channels according to each of the channel parameters to obtain a comprehensive performance score of each of the channels.

6. The wireless local area network communication module testing method according to claim 5, characterized in that: Acquiring channel parameters of each channel of the wireless local area network communication module to be tested according to a preset channel evaluation period includes: Obtain the channel utilization rate, the received signal strength indicator, the signal-to-noise ratio and the throughput of each channel of the wireless local area network communication module to be tested through a wireless tool device interface site information export command; Obtaining the signal to interference and noise ratio of each channel of the wireless local area network communication module to be tested through a wireless interface list device interface scanning command; Correspondingly, the performance of each channel is evaluated according to each channel parameter to obtain a comprehensive performance score of each channel, including: respectively determining weight parameters of the channel utilization, the signal to interference plus noise ratio, the received signal strength indication, the signal to noise ratio and the throughput; Respectively obtaining the minimum value and the maximum value corresponding to the channel utilization rate, the signal to interference plus noise ratio, the received signal strength indication, the signal to noise ratio and the throughput; According to the corresponding minimum value and maximum value, respectively, the channel utilization rate, the signal to interference plus noise ratio, the received signal strength indicator, the signal to noise ratio and the throughput are normalized; Acquire the channel utilization, the signal to interference plus noise ratio, the received signal strength indicator, the signal to noise ratio and the product of the throughput and the corresponding weight parameter; The products are summed to obtain the comprehensive performance score corresponding to the channel.

7. The wireless local area network communication module testing method according to claim 5 or 6, characterized in that: After obtaining the comprehensive performance score of each channel, the method further includes: According to each of the comprehensive performance scores, determining whether the current channel of the wireless local area network communication module to be tested meets the switching condition; If so, the wireless local area network communication module to be tested is switched from the current channel to the channel with the highest comprehensive performance score.

8. A wireless local area network communication module testing device, characterized in that: include: The acquisition module is used to acquire parameter information of the wireless local area network communication module to be tested; An acquisition module is used to acquire a preset mapping table and determine the test type of the wireless local area network communication module to be tested; wherein the preset mapping table contains test scripts corresponding to the wireless local area network communication module under different parameter information and different test types; A determination module, configured to determine a target test script corresponding to the wireless local area network communication module to be tested according to the preset mapping table, the parameter information of the wireless local area network communication module to be tested and the test type; A testing module is used to test the wireless local area network communication module to be tested according to the target testing script.

9. A wireless local area network communication module testing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the wireless local area network communication module testing method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the wireless local area network communication module testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Automatic test method and device, computer device and storage medium

    CN109828905A

  • Testing method and device for cloud network equipment, storage medium and computer equipment

    CN111431758A

  • Server automatic test early warning method, device and equipment and storage medium

    CN112000582A

  • Business process testing method and device, equipment and storage medium

    CN115774662A

  • Automatic testing method and device, computer equipment and storage medium

    CN116860644A

Cited By

  • Automatic test method for communication module

    CN120166431A