A WiFi device testing method and related equipment

CN122993850APending Publication Date: 2026-10-27SHENZHEN FENDA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610838213.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-11
Publication Date
2026-10-27

AI Technical Summary

Benefits of technology

[0031]从以上技术方案可以看出,本申请实施例具有以下优点:本申请实施例提供了一种WiFi设备测试方法,所述方法应用于测试设备对被测试设备的测试过程中,所述测试设备和所述被测试设备均具有WiFi模块,所述方法包括:采集测试环境中短距无线通信信号数量和强度,基于所述短距无线通信信号数量和强度计算干扰指数,所述干扰指数与短距无线通信信号数量和强度的大小正相关;根据所述干扰指数,确定所述测试设备的信号衰减参数,所述干扰指数与所述信号衰减参数正相关,所述信号衰减参数用于调整所述测试设备的短距无线通信信号的输出功率,以使得所述测试设备输出的短距无线通信信号在预设测试距离内与所述被测试设备正常通信,超出所述预设测试距离则不足以正常通信;基于所述信号衰减参数调整所述测试设备的短距无线通信信号;基于调整后的短距无线通信信号完成对所述被测试设备的测试过程。本方案通过采集测试环境短距无线通信信号的数量与强度,量化计算干扰指数,并自适应匹配对应的信号衰减参数,动态调整测试设备短距无线通信输出功率,通过限定短距信号仅在预设测试距离内有效,可规避周边设备跨设备信号串扰,适配多设备规模化自动化测试场景,无需人工调整设备位置、切换信道等繁琐操作,大幅降低测试运维成本,显著提升批量测试效率,适配行业高效量产测试需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122993850A_ABST
    Figure CN122993850A_ABST
Patent Text Reader

Abstract

This application provides a WiFi device testing method applied to automated testing scenarios involving a test device equipped with a WiFi module and a device under test. The method first collects the quantity and intensity of short-range wireless communication signals in the test environment, quantifies and calculates the interference index, which increases synchronously with the quantity and intensity of environmental interference signals. Then, it adaptively matches a corresponding signal attenuation parameter based on the interference index; the higher the interference index, the larger the matched attenuation parameter. The signal attenuation parameter is negatively correlated with the effective output power of the short-range wireless signal of the test device. Based on the determined attenuation parameter, the short-range wireless communication signal of the test device is dynamically adjusted so that the signal can only communicate normally with the device under test within a preset test distance; beyond that distance, effective communication is impossible. Finally, the entire process of device testing is completed based on the stabilized signal after adjustment. This solution can fundamentally avoid signal crosstalk in densely populated multi-device scenarios, eliminates the need for manual debugging, effectively improves test stability and batch testing efficiency, and reduces test maintenance costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of equipment testing, and in particular relates to a WiFi device testing method and related equipment. Background Technology

[0002] In the field of automated testing for WiFi devices, the industry has established standardized routine testing procedures, which are the core technical means for factory quality inspection, performance verification, and functional validation of WiFi devices. Routine automated testing operations rely on a unified testing environment to complete the entire testing chain: First, the address code of the WiFi device under test is scanned and obtained through a Bluetooth adapter to achieve accurate device location and identification; then, a stable communication connection is established between the WiFi router and the WiFi device under test. Based on this, comprehensive testing is carried out, covering multiple key testing tasks such as WiFi performance indicator detection, device product control function verification, real-time upload of test data, and OTA remote upgrade testing. This is a crucial core link in ensuring the quality of WiFi devices and controlling their performance stability.

[0003] With the development of intelligent and mass-produced WiFi devices, automated testing scenarios are gradually showing a multi-device intensive testing mode. Multiple WiFi devices under test (DUTs) and multiple Bluetooth adapters are often deployed simultaneously in the same testing environment to achieve batch device synchronous testing, thereby improving overall testing capacity. However, in this intensive testing mode, both WiFi and Bluetooth devices mainly operate in the 2.4GHz common frequency band, resulting in a high degree of overlap in their signal frequency bands and mutual competition for spectrum resources. This easily leads to serious radio frequency signal interference, becoming a core issue restricting the stable operation of automated testing. Summary of the Invention

[0004] The purpose of this invention is to provide a WiFi device testing method and related equipment, aiming to solve the problem of mutual interference of radio frequency signals during existing WiFi device testing. This application provides the following: A first aspect of this application provides a WiFi device testing method, the method being applied during a test process between a test device and a device under test, wherein both the test device and the device under test have a WiFi module, the method comprising: The quantity and intensity of short-range wireless communication signals in the test environment are collected, and the interference index is calculated based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. Based on the interference index, the signal attenuation parameter of the test device is determined. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. The short-range wireless communication signal of the test equipment is adjusted based on the signal attenuation parameters. The testing process of the device under test is completed based on the adjusted short-range wireless communication signal.

[0005] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, the short-range wireless communication signal includes Bluetooth signal and WiFi signal.

[0006] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, the interference index is calculated based on the following formula:

[0007] in: Interference index; Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources; The signal power of the device currently under test is denoted as .

[0008] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, determining the signal attenuation parameter of the testing device according to the interference index includes: like If the value is less than 1, it is determined to be a low interference level, and the attenuation parameter is confirmed to be 0. If 1≤ <3: then it is determined to be a moderate interference level, and the attenuation parameter is confirmed to be 2-5dB; like ≥3: This indicates a high interference level, and the attenuation parameter is confirmed to be 6-10dB.

[0009] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, determining the signal attenuation parameter of the testing device according to the interference index includes: Determine the channel of the device under test; The same-frequency interference index and the different-frequency interference index are calculated according to the following formulas. The same-frequency interference index is the interference index calculated based on interference sources of the same frequency according to the following formulas. The different-frequency interference index is the interference index calculated based on interference sources of different frequencies according to the following formulas.

[0010] in The interference index, Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources. The signal power of the device under test; The initial signal attenuation parameters are determined based on the following formula:

[0011] in Initial attenuation parameters Normalized co-channel interference index Normalized inter-frequency interference index Co-frequency interference weights Inter-frequency interference weight.

[0012] The normalization methods for the co-frequency interference index and the inter-frequency interference index include: If the actual interference index <1, after normalization the value is 0; If the actual interference index 1≤ <3, after normalization, the value is 0.5; If the actual interference index ≥3, after normalization the value is 1.

[0013] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, the device under test is a smart door lock or a smart speaker.

[0014] Optionally, the WiFi device testing method provided in the first aspect of this application, based on the adjusted short-range wireless communication signal, includes the following steps: The Bluetooth address code of the device under test is obtained based on the attenuated Bluetooth signal. Establish a WiFi connection with the device under test based on the attenuated WiFi signal; While maintaining a WiFi connection, WiFi performance testing, functional verification, test data uploading, and OTA upgrades are performed sequentially, forming a continuous automated testing process.

[0015] Based on the WiFi device testing method provided in the first aspect of the embodiments of this application, optionally, the step of completing the testing process of the device under test based on the adjusted short-range wireless communication signal further includes: The signal attenuation parameters are adjusted in real time based on the changes in short-range wireless communication signals in the current test environment.

[0016] A second aspect of this application provides a WiFi device testing device, which is used in the testing process of a device under test. Both the WiFi device testing device and the device under test have a WiFi module. The WiFi device testing device includes: The interference index determination unit is used to collect the quantity and intensity of short-range wireless communication signals in the test environment, and calculate the interference index based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. The signal attenuation parameter determination unit is used to determine the signal attenuation parameter of the test device based on the interference index. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. An adjustment unit is used to adjust the short-range wireless communication signal of the test equipment based on the signal attenuation parameter. The test unit is used to complete the test process of the device under test based on the adjusted short-range wireless communication signal.

[0017] Optionally, based on the WiFi device testing equipment provided in the second aspect of the embodiments of this application, the short-range wireless communication signal may include Bluetooth signal and WiFi signal.

[0018] Based on the WiFi device testing equipment provided in the first aspect of the embodiments of this application, optionally, the interference index is calculated based on the following formula:

[0019] in: Interference index; Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources; The signal power of the device currently under test is denoted as .

[0020] Optionally, the signal attenuation parameter determination unit is used for: like If the value is less than 1, it is determined to be a low interference level, and the attenuation parameter is confirmed to be 0. If 1≤ <3: then it is determined to be a moderate interference level, and the attenuation parameter is confirmed to be 2-5dB; like ≥3: This indicates a high interference level, and the attenuation parameter is confirmed to be 6-10dB.

[0021] Optionally, the signal attenuation parameter determination unit is specifically used for: Determine the channel of the device under test; The same-frequency interference index and the different-frequency interference index are calculated according to the following formulas. The same-frequency interference index is the interference index calculated based on interference sources of the same frequency according to the following formulas. The different-frequency interference index is the interference index calculated based on interference sources of different frequencies according to the following formulas.

[0022] in The interference index, Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources. The signal power of the device under test; The initial signal attenuation parameters are determined based on the following formula:

[0023] in Initial attenuation parameters Normalized co-channel interference index Normalized inter-frequency interference index Co-frequency interference weights Inter-frequency interference weight.

[0024] The normalization methods for the co-frequency interference index and the inter-frequency interference index include: If the actual interference index <1, after normalization the value is 0; If the actual interference index 1≤ <3, after normalization, the value is 0.5; If the actual interference index ≥3, after normalization the value is 1.

[0025] Optionally, the device under test is a smart door lock or a smart speaker.

[0026] Optionally, the test unit is used for: The Bluetooth address code of the device under test is obtained based on the attenuated Bluetooth signal. Establish a WiFi connection with the device under test based on the attenuated WiFi signal; While maintaining a WiFi connection, WiFi performance testing, functional verification, test data uploading, and OTA upgrades are performed sequentially, forming a continuous automated testing process.

[0027] Optionally, the testing equipment further includes: The adjustment unit is used to adjust the signal attenuation parameter in real time based on the changes in short-range wireless communication signals in the current test environment.

[0028] A third aspect of this application provides a WiFi device testing device, comprising: Central processing unit, memory, input / output interface, wired or wireless network interface, Bluetooth adapter, WiFi router, signal attenuation module, signal strength detection unit, and power supply; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory on the device to perform the method as described in any of the first aspects of the embodiments of this application.

[0029] A fourth aspect of this application provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method as described in any one of the first aspects of this application.

[0030] The fifth aspect of this application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the method described in any one of the first aspects of this application.

[0031] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This application provides a WiFi device testing method, which is applied during the testing process of a test device on a device under test. Both the test device and the device under test have WiFi modules. The method includes: collecting the quantity and intensity of short-range wireless communication signals in the test environment; calculating an interference index based on the quantity and intensity of the short-range wireless communication signals, wherein the interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals; determining a signal attenuation parameter of the test device based on the interference index, wherein the interference index is positively correlated with the signal attenuation parameter; the signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance; adjusting the short-range wireless communication signal of the test device based on the signal attenuation parameter; and completing the testing process of the device under test based on the adjusted short-range wireless communication signal. This solution collects the quantity and intensity of short-range wireless communication signals in the test environment, quantifies and calculates the interference index, and adaptively matches the corresponding signal attenuation parameters to dynamically adjust the output power of short-range wireless communication of the test equipment. By limiting the effectiveness of short-range signals to only within a preset test distance, it can avoid cross-device signal interference from surrounding devices, adapt to large-scale automated testing scenarios with multiple devices, eliminate the need for cumbersome operations such as manually adjusting device positions and switching channels, significantly reduce test and maintenance costs, significantly improve batch testing efficiency, and meet the industry's high-efficiency mass production testing needs. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort. It is understood that the drawings provided in this section are only for better understanding of this solution and do not constitute a limitation on this application.

[0033] Figure 1 This is a flowchart illustrating an embodiment of the WiFi device testing method provided in this application.

[0034] Figure 2 This is another flowchart illustrating an embodiment of the WiFi device testing method provided in this application.

[0035] Figure 3 This is a schematic diagram of a WiFi device testing device embodiment provided in this application.

[0036] Figure 4This is another structural schematic diagram of an embodiment of the WiFi device testing equipment provided in this application. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application are clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application. At the same time, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0038] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0039] The existing automated testing process for WiFi devices mainly suffers from the following problems: (i) Interference and evasion methods only address the symptoms, not the root cause. Current industry solutions to WiFi and Bluetooth signal interference, such as adjusting device placement and switching WiFi channels, can only alleviate the interference problem to a certain extent and cannot fundamentally solve signal conflicts in densely populated environments with multiple devices. For example, in large-scale automated testing scenarios, the number of devices under test is large and their layout is compact, making it difficult to achieve effective isolation between devices through simple repositioning. Switching WiFi channels can only avoid some co-channel interference; given the full-band frequency hopping characteristics of Bluetooth devices, interference caused by signal overlap still cannot be avoided.

[0040] (ii) The anti-interference effect is greatly affected by the environment. The effectiveness of existing anti-interference methods is highly dependent on the stability of the test environment. When new interference sources appear in the test environment, such as new WiFi devices, Bluetooth devices, or other electrical appliances using the 2.4GHz frequency band, existing anti-interference measures will quickly become ineffective and need to be readjusted. This dynamically changing environmental interference makes it difficult to guarantee the stability of the test process, requiring testers to invest a lot of time and effort in environmental troubleshooting and parameter adjustment, which seriously reduces test efficiency.

[0041] (iii) Lack of targeted anti-interference solutions for automated testing Currently, most anti-interference technologies on the market are geared towards general consumer scenarios, with few dedicated solutions for automated testing of WiFi devices. Automated testing requires the simultaneous completion of a series of continuous tasks, including Bluetooth address code acquisition, WiFi connection establishment, multi-dimensional performance testing, data uploading, and OTA upgrades, demanding extremely high signal stability and anti-interference capabilities. Ordinary anti-interference technologies cannot meet the differentiated signal requirements at different stages of the testing process. For example, stable Bluetooth signal transmission is needed during address code acquisition, while high-speed and stable WiFi connection is required during WiFi performance testing. Existing technologies struggle to achieve this level of refined anti-interference control.

[0042] (iv) High cost of equipment upgrades and modifications Some existing anti-interference solutions rely on hardware upgrades, such as replacing the WiFi router with one that supports the 5GHz band or using a Bluetooth adapter with anti-interference capabilities, which requires significant investment in equipment procurement. For existing test environments, large-scale equipment replacement not only increases testing costs but also disrupts the testing process and affects the testing schedule. Furthermore, some anti-interference technologies require complex equipment configuration and modification, demanding a high level of technical expertise from test personnel, further raising the application threshold.

[0043] To address the aforementioned issues, this application provides a WiFi device testing method, as detailed below. Figure 1 This includes steps 101 to 104.

[0044] Specifically, this solution is implemented in a testing environment where the testing equipment and the device under test both have a WiFi module, including: 101. Collect the quantity and intensity of short-range wireless communication signals in the test environment, and calculate the interference index based on the quantity and intensity of the short-range wireless communication signals. The quantity and intensity of short-range wireless communication signals in the test environment are collected, and the interference index is calculated based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. In practice, this step is executed by the signal detection unit built into the test equipment, which scans and collects data from the overall test environment. Short-range wireless communication signals specifically refer to near-field wireless interaction signals operating in the 2.4GHz public frequency band. In automated WiFi device testing scenarios, these mainly include broadcast signals from various WiFi devices under test, Bluetooth broadcast signals from test and peripheral devices, and redundant wireless network signals from the surrounding area—signals in the same frequency band that are highly likely to interfere with the test link. The test equipment will collect two core types of data from these short-range wireless communication signals: signal quantity and signal strength. The signal quantity is the total number of all valid short-range wireless signals detected in the current test environment, directly reflecting the density of wireless devices in the environment. The signal strength is the RF power of each monitored signal, usually measured in dBm, characterizing the radiation intensity of various interference signals. After data acquisition, the test equipment's built-in processing unit will integrate all collected signal quantity and signal strength data, and quantify and solve for the interference index corresponding to the current test environment using a preset interference calculation model. In this application, the interference index is positively correlated with the number and intensity of short-range wireless communication signals. In other words, the more short-range wireless signals in the same frequency band there are in the test environment, and the greater the radiation intensity of individual and overall signals, the more severe the environmental spectrum contention and signal crosstalk problems become, resulting in a higher calculated environmental interference index. For example, if there are only two weak interference signals in the environment with a total interference power of 0.002mW, the calculated interference index is 0.1. In the second scenario, the number of interference signals increases to six, and the intensity of some interference signals increases, with the total interference power increasing to 0.04mW, resulting in an interference index of 2.0. The specific calculation method can be determined according to the actual situation and is not limited here.

[0045] It should be noted that if the device under test is already operational during the data acquisition process, the interference signals to be collected in this step are the environmental signals remaining after removing the device under test's own signal from all short-range wireless communication signals scanned. The device under test's own WiFi and Bluetooth broadcast signals are valid communication signals for this test and do not have interference properties; they must be filtered out throughout the process. Only other external signals in the same frequency band are considered as interference statistics. In actual implementation, the interference index can be adjusted by setting the status of the test device.

[0046] 102. Determine the signal attenuation parameters of the test equipment based on the interference index.

[0047] Based on the interference index, the signal attenuation parameter of the test device is determined. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the effective output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. After obtaining the interference index of the current test environment in step 101, this step adaptively matches and determines the signal attenuation parameter corresponding to the test equipment based on the level value of the interference index. The overall principle follows a positive correlation between the interference index and the signal attenuation parameter; that is, the higher the environmental interference index, the larger the matched signal attenuation parameter value, and the stronger the corresponding signal attenuation. The core parameters and actual implementation methods of this step are explained in detail below. The signal attenuation parameter is an adjustable power control parameter built into the test equipment, used to regulate the output power of short-range wireless communication signals. Specifically, it can include sub-parameters such as signal gain attenuation value, transmit power threshold, and signal coverage distance threshold, allowing for targeted power weakening and range constraint of the Bluetooth short-range communication signal and WiFi test signal of the test equipment. The preset test distance is an effective communication distance threshold preset in advance according to the test station size, equipment placement specifications, and automated test operation standards. It is the standard working distance between the test equipment and the device under test. In conventional automated test scenarios, it can be preset to a fixed distance such as 0.5m, 1m, or 1.5m, and can be flexibly calibrated according to different test production lines and different equipment models.

[0048] The core control logic of this step is as follows: by precisely constraining the signal radiation capability of the test equipment through signal attenuation parameters, the short-range wireless communication signal output by the test equipment can maintain a stable and complete communication strength within the preset test distance range, and can normally complete all test interaction operations such as device address code reading, WiFi handshake connection, data interaction, and OTA upgrade communication; once the preset test distance is exceeded, the signal strength after attenuation processing will be significantly reduced to below the communication threshold, making it impossible to establish communication with other external devices in the environment, thereby completely eliminating cross-device crosstalk and cross-workstation interference problems.

[0049] In practical implementation, a one-to-one mapping relationship between interference index ranges and signal attenuation parameters can be pre-established and stored in the control program of the test equipment to achieve automatic matching. For example, multiple interference levels can be divided: when the interference index is in the low interference range, it indicates that the number and intensity of external interference signals in the test environment are small, so a smaller signal attenuation parameter can be matched to only slightly attenuate the test signal, ensuring signal transmission rate and stability; when the interference index is in the medium interference range, a medium signal attenuation parameter is matched; when the interference index is in the high interference range, it indicates that the current test environment is densely populated with equipment and has severe signal interference. At this time, the largest signal attenuation parameter is matched to deeply attenuate the test signal, reduce the signal coverage area, and avoid interference to multiple surrounding devices.

[0050] 103. Adjust the short-range wireless communication signal of the test equipment based on the signal attenuation parameter.

[0051] This step involves the execution of signal parameters. The main executing components are the intelligent control unit and wireless power adjustment module built into the test equipment. It primarily adjusts the short-range wireless communication signal of the test equipment based on the signal attenuation parameters determined in step 102. The short-range wireless communication signals regulated in this solution mainly refer to the Bluetooth identification signal and WiFi test signal used for test interaction in the 2.4GHz band. The Bluetooth identification signal is used to read the address code of the device under test, and the WiFi test signal is used for device connection, data transmission, and OTA upgrade testing; it is the core communication carrier of the test link.

[0052] In practice, the testing equipment will analyze and adapt the signal attenuation parameters to the current interference level, and correct the transmission power, radiation gain, and signal coverage of short-range wireless communication signals. For low-interference environments, the signal is slightly attenuated to retain high-quality transmission performance; for medium-interference environments, the signal radiation range is moderately compressed to avoid slight crosstalk; and for high-interference dense testing environments, long-distance redundant signals are deeply attenuated to retain only the effective communication signal within the preset test distance.

[0053] 104. The test process of the device under test is completed based on the adjusted short-range wireless communication signal.

[0054] This step, based on the standardized short-range wireless communication signal adjusted in step 103, establishes an interference-free, highly stable dedicated test communication link to complete a full set of automated testing procedures for the device under test. Specific test content covers core tasks such as WiFi basic performance indicator testing, device control function effectiveness verification, real-time test data upload and storage, and device OTA remote upgrade testing. Thanks to precise signal attenuation control, the problem of signal interference in multi-WiFi and multi-Bluetooth environments is solved, enabling successful verification of the standardized performance and functionality of the WiFi device under test. In actual implementation, the testing process can be adjusted according to the actual situation; no restrictions are imposed here.

[0055] Based on the above technical solution, it can be seen that this application has the following beneficial effects: (a) Solving the problem of signal interference in environments with multiple WiFi and Bluetooth connections This application proposes to reduce signal interference to the outside world at the source by applying short-range attenuation to the signals of Bluetooth adapters and WiFi routers, while also minimizing the impact of external signals on the test equipment. While ensuring normal signal transmission between the Bluetooth adapter and the device under test, and between the WiFi router and the device under test, the application significantly reduces the signal coverage area, avoiding signal overlap with other WiFi and Bluetooth devices in the environment, thereby completely resolving the signal interference problem in densely populated environments with multiple devices.

[0056] (ii) Achieve stable and continuous operation of the automated testing process To address the issue of unexplained test termination caused by existing technologies, this application proposes a precise signal attenuation control and intelligent parameter adjustment mechanism. This ensures that throughout the entire testing process, the Bluetooth adapter can stably acquire the address code of the device under test, the WiFi router maintains a continuous and stable connection with the device under test, and tasks such as test data upload and OTA upgrades can be completed smoothly. This avoids test interruptions caused by signal interference, achieves stable and continuous operation of the automated testing process, and improves testing efficiency and the reliability of test results.

[0057] (iii) Meeting the differentiated signal requirements of multiple stages of automated testing The requirements for Bluetooth and WiFi signals differ at different stages of automated testing of WiFi devices. For example, in the address code acquisition stage, Bluetooth signals need strong directional transmission capabilities to accurately obtain the address information of the device under test; while in the WiFi performance testing stage, WiFi signals need to maintain high-speed and stable transmission. This application proposes to use an intelligent control unit to dynamically adjust signal attenuation parameters according to different stages of the test task, meeting the differentiated signal requirements of each stage and achieving refined anti-interference control.

[0058] (iv) Reduce testing costs and application barriers This application proposes an integrated device design that combines the signal attenuation module, signal strength detection unit, Bluetooth adapter, and WiFi router. This eliminates the need for large-scale replacement of existing testing equipment, reducing upgrade and modification costs. Simultaneously, the intelligent control unit automatically adjusts attenuation parameters based on environmental interference, eliminating the need for complex manual configuration by testing personnel. This lowers the technical application threshold and facilitates rapid deployment in various automated testing scenarios for WiFi devices.

[0059] To facilitate the use of this method in practical implementation, this application also provides a more detailed embodiment that can be implemented selectively. Please refer to [link to relevant documentation]. Figure 2 One embodiment of this application includes steps 201-207.

[0060] Before implementing this solution, it is necessary to introduce the equipment structure for implementing this solution. Please refer to [link / reference needed]. Figure 4 The device includes a central processing unit, memory, input / output interfaces, wired or wireless network interfaces, Bluetooth adapter, WiFi router, signal attenuation module, signal strength detection unit, and power supply. The WiFi device automated testing anti-interference device in this embodiment is an integrated structure, mainly composed of five parts: a Bluetooth adapter, a WiFi router, a signal attenuation module, a signal strength detection unit, and a central processing unit. These modules work together to achieve environmental perception, interference calculation, signal modulation, and automated testing functions. The specific connection and deployment relationships are as follows: The signal attenuation module connects to both the Bluetooth adapter and the WiFi router's signal transmitter, enabling controllable attenuation of both types of test signals. The signal strength detection unit is deployed throughout the test environment, collecting real-time data on the quantity and intensity of ambient WiFi, Bluetooth, and various interference signals, and transmitting the data back to the intelligent control unit. The intelligent control unit establishes communication connections with the signal attenuation module, signal strength detection unit, Bluetooth adapter, and WiFi router, calculating optimal attenuation parameters based on the monitoring data, issuing adjustment commands, and coordinating the working sequence and status of each module. The signal attenuation module uses a programmable high-precision attenuator, supporting continuously adjustable signal attenuation from 0 to 30 dB. Its working principle involves dynamically adjusting the internal circuit impedance to precisely reduce the wireless signal transmission power, achieving short-range constraint of the test signal. While ensuring normal communication of equipment within the test station, it significantly compresses the signal radiation range, ensuring the test signal is effectively transmitted only within a preset short-range interval. Beyond this distance, the signal strength rapidly attenuates, fundamentally preventing cross-station and cross-device signal crosstalk.

[0061] The signal strength detection unit consists of a WiFi signal detector, a Bluetooth signal detector, and an interference signal analysis module. The WiFi and Bluetooth detectors collect the strength data of wireless signals in the same frequency band in the environment in real time. The interference signal analysis module filters the collected data, removes the target signals of the device under test, counts the number and intensity of the remaining same-frequency and different-frequency interference signals, quantifies and analyzes the degree of environmental interference, and finally uploads the standardized interference data to the intelligent control unit.

[0062] The central processing unit, with its built-in microprocessor and dedicated anti-interference control algorithm, is the core control hub of the entire device. It can receive environmental monitoring data, automatically calculate the interference index and match the optimal attenuation parameters, and adaptively adjust the signal attenuation amplitude according to the interference level. At the same time, it can identify different stages of the testing process, dynamically fine-tune the attenuation parameters, and adapt to the differentiated signal requirements of different stages such as address code acquisition, WiFi connection, performance testing, and OTA upgrades, achieving intelligent anti-interference control throughout the entire process.

[0063] 201. Collect the quantity and intensity of short-range wireless communication signals in the test environment, and calculate the interference index based on the quantity and intensity of the short-range wireless communication signals.

[0064] 202. Determine the signal attenuation parameters of the test equipment based on the interference index.

[0065] In actual implementation, the determination method for the interference index and signal attenuation parameters can be determined according to the actual situation. Two different determination methods are provided below: I. The interference index is calculated based on the following formula:

[0066] in: Interference index; Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources; The signal power of the device currently under test is denoted as .

[0067] Based on the interference index, the signal attenuation parameters of the test equipment are determined, including: like If the value is less than 1, it is determined to be a low interference level, and the attenuation parameter is confirmed to be 0. If 1≤ <3: then it is determined to be a moderate interference level, and the attenuation parameter is confirmed to be 2-5dB; like ≥3: This indicates a high interference level, and the attenuation parameter is confirmed to be 6-10dB.

[0068] Example of the calculation process (taking the Bluetooth address code acquisition stage as an example) 1. Acquire raw signal strength data (dBm) The signal strength detection unit collects data on the strength of all Bluetooth and WiFi signals in the environment, as shown in the table below:

[0069] Note: dBm is a unit representing the absolute value of power. The larger the value (the closer to 0), the stronger the signal. 2. Unit conversion (dBm to absolute power mW) Conversion formula:

[0070] Target Bluetooth signal: = mW Interference source 1 (other Bluetooth devices): = mW Interference source 2 (other Bluetooth devices): = mW Interference source 3 (other WiFi routers): = mW Substitute into the formula to calculate the interference index

[0071] =

[0072] =

[0073] 4. Result Determination The interference index was obtained in this calculation. The value is approximately 0.14 < 1, which indicates low interference. There is no need to adjust the attenuation parameters of the Bluetooth adapter; simply maintain the initial settings.

[0074] If two strong interference sources are added to the test environment, with signal strengths of -45dBm and -48dBm respectively, then recalculation is required: Power of new interference source: = mW = mW Interference Index: =

[0075] At this point, the result is determined to be high interference. The control unit will automatically increase the attenuation of the Bluetooth adapter by 8dB to reduce external interference and minimize the impact of environmental interference. Similarly, the interference calculation process during the WiFi performance testing phase is the same.

[0076] II. Based on the frequency of the interference signal, this scheme is further refined, specifically: After completing the environmental scan, the signal strength detection unit will classify the interference into two categories: co-channel interference and inter-channel interference. Co-channel interference: The interference signal has the same frequency as the target test signal, which has a greater impact on communication and carries higher weight. Inter-frequency interference: The interference signal is adjacent to the frequency of the target test signal, so its impact is secondary and its weight is even lower.

[0077] The same-frequency interference index and the different-frequency interference index are calculated according to the following formulas. The same-frequency interference index is the interference index calculated based on interference sources of the same frequency according to the following formulas. The different-frequency interference index is the interference index calculated based on interference sources of different frequencies according to the following formulas.

[0078] in The interference index, Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources. The signal power of the device under test; The initial signal attenuation parameters are determined based on the following formula:

[0079] in Initial attenuation parameters Normalized co-channel interference index Normalized inter-frequency interference index Co-frequency interference weights Inter-frequency interference weights. In this scheme The value is 8. The value is 3.

[0080] The normalization methods for the co-frequency interference index and the inter-frequency interference index include: If the actual interference index <1, after normalization the value is 0; If the actual interference index 1≤ <3, after normalization, the value is 0.5; If the actual interference index ≥3, after normalization the value is 1.

[0081] It should be noted that this step allows setting scenario correction rules and parameter verification mechanisms: During the Bluetooth address acquisition phase, an additional 1dB is added to the calculated initial attenuation parameter to enhance anti-interference redundancy; during the WiFi high-bandwidth performance testing phase, an additional 1dB is reduced to ensure high-speed transmission performance; in open, low-interference scenarios, the default configuration is the basic attenuation parameter. After parameter configuration, the system automatically initiates a connection self-test. If a connection error occurs, the attenuation parameter is gradually reduced for retrying, ensuring that the attenuation parameter meets both the refined anti-interference requirements and guarantees stable communication between the test device and the device under test.

[0082] Example 1: Intensive multi-device testing scenario (Bluetooth address acquisition phase) Interference data was detected: Actual index of co-channel interference =3.2≥3→After normalization =1 Actual index of inter-frequency interference =2.1, indicating moderate interference → after normalization =0.5 Substitute into the formula to calculate: =8×1+3×0.5=9.5≈10dB Scene correction: Add an extra 1dB during the Bluetooth phase, resulting in an initial attenuation parameter of 11dB. Example 2: Medium-density test scenario (WiFi performance testing phase) Interference data was detected: Actual index of co-channel interference =1.8, moderate interference → after normalization =0.5 Actual index of inter-frequency interference =2.5, moderate interference → after normalization =0.5 Substitute into the formula to calculate: =8×0.5+3×0.5=5.5≈6dB Scenario Correction: During the WiFi testing phase, an additional 1dB was applied, resulting in a final initial attenuation parameter of 5dB. Example 3: Low-interference, open scene (any stage) Interference data detected: The actual exponents of both co-frequency and inter-frequency interference were <1, and after normalization, they were all 0. Substituting into the formula, we get =0, directly apply the default base attenuation of 3dB without correction, the final initial attenuation parameter is 3dB. Example 4: Ultra-high density test scenario Interference data detected: both same-frequency and different-frequency interference were high, and after normalization, both were 1. Substitute into the formula to calculate: =8×1+3×1=11dB, which does not exceed the 15dB upper limit, so no truncation is needed. The final initial parameter is 11dB. If both the same frequency and different frequency have high interference and the scene correction result is 14dB, which is still within the range, it can be used directly; if the calculation result is 17dB, it is truncated to the maximum allowable value of 15dB (the value range of the attenuation parameter is fixed at 0~15dB (this range can cover most test scenarios, exceeding 15dB will cause the target signal to fail to transmit normally)).

[0083] 203. Adjust the short-range wireless communication signal of the test equipment based on the signal attenuation parameters.

[0084] 204. Obtain the Bluetooth address code of the device under test based on the attenuated Bluetooth signal.

[0085] 205. Establish a WiFi connection with the tested device based on the attenuated WiFi signal.

[0086] 206. While maintaining a WiFi connection, sequentially perform WiFi performance testing, functional verification, test data upload, and OTA upgrade to form a continuous automated testing process.

[0087] 207. Adjust the signal attenuation parameters in real time based on the changes in short-range wireless communication signals in the current test environment.

[0088] It is worth noting that step 207 can be executed in real time during the implementation of steps 203 to 206 above, always maintaining the optimal signal attenuation and anti-interference state, and ensuring the stability of the entire process of testing from device identification and link establishment to performance testing and OTA upgrade.

[0089] Based on the above solution, it can be seen that this application has the following beneficial effects: More thorough anti-interference: Existing technologies such as adjusting device location or switching channels can only alleviate interference, while this solution actively controls the signal propagation range by deploying adjustable attenuation modules at the Bluetooth adapter and WiFi router, so that the signal is effectively transmitted only within the short distance required for testing, fundamentally reducing spectrum overlap with other devices in the environment and achieving isolation of interference sources.

[0090] Greater adaptability: Traditional methods are greatly affected by environmental changes in their anti-interference effect, while this proposal introduces an intelligent control unit and a signal strength detection unit, which can sense the intensity of environmental interference in real time and dynamically adjust the attenuation parameters to ensure that the optimal anti-interference state is always maintained in different test scenarios, and has good environmental adaptability.

[0091] Supports stable operation throughout the entire process: In response to the different signal requirements of various tasks in automated testing, such as address code acquisition, WiFi connection, and OTA upgrade, this solution can dynamically optimize the attenuation strategy at each stage to ensure communication quality at each stage, avoid test interruption due to interference, and improve the overall test success rate.

[0092] Low cost and easy deployment: Compared to replacing hardware that supports 5GHz or upgrading chips (such as AFH technology which requires Bluetooth 1.2 or higher), this proposal can be integrated and modified on the basis of existing equipment without large-scale equipment replacement, reducing upgrade costs. It also supports automatic adjustment without manual intervention, making it more accessible to users.

[0093] Integrated design enhances usability: The attenuation module, detection unit and Bluetooth / WiFi device are integrated into a dedicated anti-interference test device, which simplifies the deployment process, improves portability and replicability, and is more suitable for large-scale testing scenarios.

[0094] The foregoing describes the WiFi device testing method provided in this application. To support the implementation of the above embodiments, this application also provides a WiFi device testing device. Please refer to [link to relevant documentation]. Figure 3 One embodiment of this application includes: A WiFi device testing device is provided, the device being used in the testing process of a device under test, both the WiFi device testing device and the device under test having a WiFi module, the WiFi device testing device comprising: The interference index determination unit 301 is used to collect the quantity and intensity of short-range wireless communication signals in the test environment, and calculate the interference index based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. The signal attenuation parameter determination unit 302 is used to determine the signal attenuation parameter of the test device based on the interference index. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. Adjustment unit 303 is used to adjust the short-range wireless communication signal of the test equipment based on the signal attenuation parameter; Test unit 304 is used to complete the test process of the device under test based on the adjusted short-range wireless communication signal.

[0095] Optionally, the short-range wireless communication signal includes Bluetooth signals and WiFi signals.

[0096] Optionally, the interference index is calculated based on the following formula:

[0097] in: Interference index; Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources; The signal power of the device currently under test is denoted as .

[0098] Optionally, the signal attenuation parameter determination unit is used for: like If the value is less than 1, it is determined to be a low interference level, and the attenuation parameter is confirmed to be 0. If 1≤ <3: then it is determined to be a moderate interference level, and the attenuation parameter is confirmed to be 2-5dB; like ≥3: This indicates a high interference level, and the attenuation parameter is confirmed to be 6-10dB.

[0099] Optionally, the signal attenuation parameter determination unit is specifically used for: Determine the channel of the device under test; The same-frequency interference index and the different-frequency interference index are calculated according to the following formulas. The same-frequency interference index is the interference index calculated based on interference sources of the same frequency according to the following formulas. The different-frequency interference index is the interference index calculated based on interference sources of different frequencies according to the following formulas.

[0100] in The interference index, Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources. The signal power of the device under test; The initial signal attenuation parameters are determined based on the following formula:

[0101] in Initial attenuation parameters Normalized co-channel interference index Normalized inter-frequency interference index Co-frequency interference weights Inter-frequency interference weight.

[0102] The normalization methods for the co-frequency interference index and the inter-frequency interference index include: If the actual interference index <1, after normalization the value is 0; If the actual interference index 1≤ <3, after normalization the value is 0.5; If the actual interference index ≥3, after normalization the value is 1.

[0103] Optionally, the device under test is a smart door lock or a smart speaker.

[0104] Optionally, the test unit is used for: The Bluetooth address code of the device under test is obtained based on the attenuated Bluetooth signal. Establish a WiFi connection with the device under test based on the attenuated WiFi signal; While maintaining a WiFi connection, WiFi performance testing, functional verification, test data uploading, and OTA upgrades are performed sequentially, forming a continuous automated testing process.

[0105] Optionally, the testing equipment further includes: The adjustment unit is used to adjust the signal attenuation parameter in real time based on the changes in short-range wireless communication signals in the current test environment.

[0106] In this embodiment, the process executed by each unit is the same as described above. Figure 1 , Figure 2 The method flow described in the corresponding embodiments is similar and will not be repeated here.

[0107] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, equivalent circuit transformations and unit divisions are only logical functional divisions. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connections shown or discussed may be through some interfaces, or indirect coupling or communication connections between apparatuses or units, and may be electrical, mechanical, or other forms.

[0108] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0109] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions or improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A WiFi device testing method, characterized in that, The method is applied during the testing process of a test device on a device under test, wherein both the test device and the device under test have a WiFi module, and the method includes: The quantity and intensity of short-range wireless communication signals in the test environment are collected, and the interference index is calculated based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. Based on the interference index, the signal attenuation parameter of the test device is determined. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. The short-range wireless communication signal of the test equipment is adjusted based on the signal attenuation parameters. The testing process of the device under test is completed based on the adjusted short-range wireless communication signal.

2. The WiFi device testing method according to claim 1, characterized in that... The short-range wireless communication signals include Bluetooth signals and WiFi signals.

3. The WiFi device testing method according to claim 1, characterized in that, The interference index is calculated based on the following formula: in: Interference index; Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources; The signal power of the device currently under test is denoted as .

4. The WiFi device testing method according to claim 3, characterized in that, Determining the signal attenuation parameters of the test equipment based on the interference index includes: like If the value is less than 1, it is determined to be a low interference level, and the attenuation parameter is confirmed to be 0. If 1≤ <3: then it is determined to be a moderate interference level, and the attenuation parameter is confirmed to be 2-5dB; like ≥3: This indicates a high interference level, and the attenuation parameter is confirmed to be 6-10dB.

5. The WiFi device testing method according to claim 1, characterized in that, The step of determining the signal attenuation parameter of the test equipment based on the interference index includes: Determine the channel of the device under test; The same-frequency interference index and the different-frequency interference index are calculated according to the following formulas. The same-frequency interference index is the interference index calculated based on interference sources of the same frequency according to the following formulas. The different-frequency interference index is the interference index calculated based on interference sources of different frequencies according to the following formulas. in The interference index, Let be the signal power of the i-th interference source in the environment, and n be the total number of interference sources. The signal power of the device under test; The initial signal attenuation parameters are determined based on the following formula: in Initial attenuation parameters Normalized co-channel interference index Normalized inter-frequency interference index Co-frequency interference weights Inter-frequency interference weights; The normalization methods for the co-frequency interference index and the inter-frequency interference index include: If the actual interference index <1, after normalization the value is 0; If the actual interference index 1≤ <3, after normalization, the value is 0.5; If the actual interference index ≥3, after normalization the value is 1.

6. The WiFi device testing method according to claim 1, characterized in that, The device under test is a smart door lock or a smart speaker.

7. The WiFi device testing method according to claim 1, characterized in that, The process of testing the device under test based on the adjusted short-range wireless communication signal includes: The Bluetooth address code of the device under test is obtained based on the attenuated Bluetooth signal. Establish a WiFi connection with the device under test based on the attenuated WiFi signal; While maintaining a WiFi connection, WiFi performance testing, functional verification, test data uploading, and OTA upgrades are performed sequentially, forming a continuous automated testing process.

8. The WiFi device testing method according to claim 1, characterized in that, The process of testing the device under test based on the adjusted short-range wireless communication signal also includes: The signal attenuation parameters are adjusted in real time based on the changes in short-range wireless communication signals in the current test environment.

9. A WiFi device testing device, characterized in that, The device is used in the testing process of the device under test. Both the WiFi device testing device and the device under test have a WiFi module. The WiFi device testing device includes: The interference index determination unit is used to collect the quantity and intensity of short-range wireless communication signals in the test environment, and calculate the interference index based on the quantity and intensity of the short-range wireless communication signals. The interference index is positively correlated with the magnitude of the quantity and intensity of the short-range wireless communication signals. The signal attenuation parameter determination unit is used to determine the signal attenuation parameter of the test device based on the interference index. The interference index is positively correlated with the signal attenuation parameter. The signal attenuation parameter is used to adjust the output power of the short-range wireless communication signal of the test device. The signal attenuation parameter is negatively correlated with the output power of the short-range wireless communication signal of the test device, so that the short-range wireless communication signal output by the test device can communicate normally with the device under test within a preset test distance, and is insufficient for normal communication beyond the preset test distance. An adjustment unit is used to adjust the short-range wireless communication signal of the test equipment based on the signal attenuation parameter. The test unit is used to complete the test process of the device under test based on the adjusted short-range wireless communication signal.

10. A WiFi device testing device, characterized in that, include: Central processing unit, memory, input / output interface, wired or wireless network interface, Bluetooth adapter, WiFi router, signal attenuation module, signal strength detection unit, and power supply; The memory is either a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory on the device to perform the method as described in any one of claims 1 to 8.