Method and system for monitoring stability of WiFi module

By installing the test APP and learning the standby or wake-up function on the device to be tested on the WiFi module, the WiFi connection situation of the device during the standby and wake-up process is automatically monitored, and the problem of insufficient monitoring of the connection stability of the WiFi module in the existing technology is solved, achieving efficient and accurate test results.

CN119603716APending Publication Date: 2025-03-11SICHUAN JIUZHOU ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411715227.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The prior art is difficult to comprehensively and automatically monitor the comprehensive performance of WiFi modules such as connection stability, return success rate and Internet connectivity during standby and wake-up, resulting in inefficient testing and inaccurate results.

Method used

By installing the test APP on the device to be tested, configuring WiFi connection, learning standby or wake-up functions, and sending standby instructions through the control device to record the number of standby times. After the preset delay time, wake up the device, start WiFi connection back, and monitor the network connection status in real time through the test APP, and accumulate the number of success or failures of the connection back.

Benefits of technology

It realizes comprehensive and automated monitoring of the standby, wake-up, back-connection and Internet connectivity of WiFi modules, improves testing efficiency, ensures the accuracy and consistency of test results, helps optimize the performance of WiFi modules and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603716A_ABST
    Figure CN119603716A_ABST
Patent Text Reader

Abstract

The invention discloses a stability monitoring method and system for a WiFi module, and relates to the technical field of WiFi module monitoring, and the method comprises the steps: installing a test APP on a to-be-tested device, configuring WiFi, connecting an external network, and storing configuration information. The test remote controller of the control device is used for learning the standby or awakening function of the standard remote controller, and remote control is achieved. And the control device sends a standby instruction to enable the to-be-tested device to enter a standby state, and the test APP records the number of entering times. And after a preset delay, the test remote controller wakes up the to-be-tested device, the WiFi service is started for reconnection, and the test APP monitors the network connection state in real time. If the WiFi reconnection is successful, a ping operation is initiated to detect the Internet connectivity, and the number of successful reconnection times is recorded; and if the reconnection fails, recording the number of failures. According to the invention, through an automatic test process, the connection stability of the WiFi module after standby wake-up is effectively monitored, and the test efficiency and accuracy are 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 WiFi module monitoring, and in particular to a stability monitoring method and system for a WiFi module. Background Art

[0002] In the actual application of smart devices, WiFi modules often face problems such as signal interference, network fluctuations, and connection problems during device standby and wake-up. These problems may cause unstable WiFi connections or even disconnections, seriously affecting the user experience. At present, although there are some methods and tools for testing the performance of WiFi modules on the market, most of them focus on testing single indicators such as signal strength and transmission rate. There is a relative lack of monitoring of comprehensive performance such as connection stability, reconnection success rate, and Internet connectivity during standby and wake-up of WiFi modules. At the same time, existing testing methods often require manual operation, such as repeatedly turning on and off the device, manually checking the network connection status, etc. to evaluate the stability of the WiFi module. This method is not only inefficient, but also difficult to ensure the accuracy and consistency of the test results. In particular, there is a lack of a comprehensive, systematic and automated solution for monitoring the WiFi stability of smart devices in actual usage scenarios.

[0003] Therefore, there is an urgent need for a technical solution that can comprehensively and automatically monitor the stability of WiFi modules, so as to accurately evaluate and optimize the performance of WiFi modules of smart devices. Summary of the invention

[0004] The object of the present invention is to provide a stability monitoring method and system for a WiFi module, so as to solve the problem in the prior art of insufficient monitoring of comprehensive performance such as the success rate of reconnecting to an upper-level network device after WiFi is restarted.

[0005] The present invention solves the above problems through the following technical solutions:

[0006] A method for monitoring the stability of a WiFi module, comprising:

[0007] Install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information;

[0008] Learning the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device;

[0009] Send a standby command to the device under test through a control device to trigger the product under test to enter the standby state, and detect and record the number of times the smart device under test enters the standby state through a test APP;

[0010] After the preset delay time is over, the test remote controller of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP;

[0011] If the test APP detects that the WiFi reconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi reconnections. If the reconnection fails, the test APP automatically accumulates the number of failed WiFi reconnections.

[0012] Furthermore, the control device sends an infrared key value as a standby instruction to the device under test via a serial port connected to a PC.

[0013] Furthermore, the test APP detects the standby state of the device under test by setting properties or writing files, and automatically accumulates and records the number of standby times.

[0014] Furthermore, the test remote control of the control device wakes up the device under test and starts the WiFi service for WiFi reconnection, including: after the device under test wakes up, the WiFi service reads the saved WiFi configuration information through the background process to ensure that the WiFi can normally reconnect to the previously connected external network device.

[0015] Furthermore, the test APP monitors the network connection status of the device under test in real time through the ConnectivityManager service, including whether the WiFi backconnection is successful and whether it can connect to the Internet, and outputs the test results in the form of records or reports.

[0016] A stability monitoring system for a WiFi module, comprising:

[0017] Install the configuration module, install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information;

[0018] A learning module, which learns the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device;

[0019] The standby trigger module sends a standby instruction to the device under test through a control device, triggering the product under test to enter the standby state, and detects and records the number of times the smart device under test enters the standby state through a test APP;

[0020] Wake-up reconnection module, after the preset delay time, the test remote control of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP;

[0021] The backconnection test module, if the test APP detects that the WiFi backconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi backconnections. If the backconnection fails, the test APP automatically accumulates the number of failed WiFi backconnections.

[0022] Furthermore, the test remote control is a learning universal infrared remote control, and the control device is an Android system control device.

[0023] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0024] The present invention uses a control device and a test remote controller to perform standby and wake-up operations on the device under test in an automated manner, and the reconnection mechanism of the WiFi module is automatically triggered during this process. Through real-time monitoring and recording of the test APP, the reconnection characteristics of the WiFi module after standby restart can be accurately verified, including key indicators such as the success rate, speed, and stability of the reconnection. This automated testing method not only improves the test efficiency, but also ensures the accuracy and consistency of the test results, thereby effectively evaluating the performance of the WiFi module. At the same time, since the present invention can comprehensively and systematically monitor the stability of the WiFi module, this helps to promptly discover and repair potential problems during the product development and production stages. By optimizing the performance of the WiFi module, the reliability of the product is improved.

[0025] In summary, this technical solution improves test efficiency and reduces human operation errors through a series of automated and systematic steps and components; it realizes comprehensive monitoring of WiFi module standby, wake-up, reconnection and Internet connectivity, which helps to optimize the performance of WiFi modules and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of the method of the present invention;

[0027] Figure 2 It is a structural schematic diagram of the system of the present invention;

[0028] Figure 3 It is a structural block diagram of the system of the present invention. DETAILED DESCRIPTION

[0029] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0030] Example:

[0031] Combined with Figure 1 As shown, a stability monitoring method of a WiFi module includes:

[0032] Install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information;

[0033] Learning the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device;

[0034] Send a standby command to the device under test through a control device to trigger the product under test to enter the standby state, and detect and record the number of times the smart device under test enters the standby state through a test APP;

[0035] After the preset delay time is over, the test remote controller of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP;

[0036] If the test APP detects that the WiFi reconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi reconnections. If the reconnection fails, the test APP automatically accumulates the number of failed WiFi reconnections.

[0037] It should be noted that the WiFi configuration information is saved in wpa_supplicant.conf; the preset delay time is set by controlling the serial port of the PC connected to the device, and the delay time is the time interval from the automatic standby of the device to the next wake-up, which is greater than or equal to the time after the device is completely in standby. After the device is awakened, a new delay time is set, and the new delay time needs to be greater than or equal to the normal startup time of the device under test; after the WiFi service is started, the system will read the ssid and password saved in wpa_supplicant.conf through the background process wpa_supplicant to ensure WiFi reconnection.

[0038] Specifically, a test APP needs to be installed on the device under test as the main tool for monitoring the stability of the WiFi module. After the installation is completed, the WiFi of the device under test needs to be configured to connect it to an external network device, such as a wireless router. During the connection process, the WiFi configuration information, including the network name (SSID) and password, will be saved in the device's wpa_supplicant.conf file. This file is an important part of the WiFi service. It stores the network information that the device has connected to so that it can automatically reconnect when needed. Then, a control device is used, on which a test remote control is installed. This test remote control can learn the standby or wake-up function of the standard remote control of the device under test. Through learning, the test remote control can simulate user operations and send standby or wake-up commands to the device under test. Send a standby command to the device under test through the control device. After receiving the command, the device under test will enter the standby state. At this time, the test APP will detect and record the number of times the device enters the standby state. After the preset delay time ends, the test remote control of the control device will wake up the device under test. This delay time is set by controlling the PC serial port connected to the device, and it represents the time interval from the automatic standby of the device to the next wake-up. This delay time needs to be greater than or equal to the time after the device under test is completely in standby to ensure that the device has completely entered the standby state. At the same time, after the device is awakened, a new delay time will be set. This new delay time needs to be greater than or equal to the normal startup time of the device under test to ensure that the device has enough time to start the WiFi service and reconnect. After the device is awakened, the system will automatically start the WiFi service and read the SSID and password information saved in the wpa_supplicant.conf file through the background process wpa_supplicant. The WiFi module can then try to reconnect to the previously connected network. During this process, the test APP will monitor the network connection status of the device under test in real time. If the WiFi reconnection is detected to be successful, the test APP will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP will automatically accumulate the number of successful WiFi reconnections. If the reconnection fails, the number of failed reconnections will be automatically accumulated.

[0039] As an implementation mode, the control device sends an infrared key value as a standby instruction to the device under test via a serial port connected to a PC.

[0040] Specifically, the control device is responsible for sending various instructions to the device under test, including standby, wake-up, etc. The control device is usually connected to a PC and its behavior is controlled by a software interface or script on the PC. The serial port is a common interface for communication between the control device and the PC, which allows data to be transmitted in a serial manner between the two. The infrared key value refers to a signal encoding used to control smart devices, which simulates the function of the buttons on the remote control. On the device under test, there is usually an infrared receiver for receiving infrared signals from the remote control and decoding them into corresponding operation instructions. In this test scenario, an actual remote control is not required to operate the device under test, but the same control effect is achieved by sending infrared key values ​​through the control device. In specific implementation, the control device will send a string of specific infrared key values ​​to the device under test through the serial port connected to the PC according to a preset test script or instruction set. This string of infrared key values ​​will be received and decoded by the infrared receiver of the device under test, and then the device will perform corresponding operations according to the decoded instructions. In this application, the instruction corresponding to the infrared key value sent is to put the device into standby state.

[0041] Assume that there is a smart TV as the device under test, and the control device is connected to the PC through the serial port. In the test script, an infrared key value "0x01" is specified, which corresponds to the standby button on the smart TV remote control. When the test starts, the control device will send the infrared key value "0x01" to the smart TV through the serial port. After receiving this key value, the smart TV will decode and identify it as a standby command, and then execute the standby operation and enter the standby state.

[0042] In this way, the device under test can be remotely and automatically controlled without human intervention. This not only improves the efficiency of the test, but also ensures the consistency and accuracy of the test. Because each test uses the same infrared key value to trigger the standby state, the stability and performance of the WiFi module in the standby state can be more reliably evaluated.

[0043] As an implementation method, the test APP detects the standby state of the device under test by setting properties or writing files, and automatically accumulates and records the number of standby times.

[0044] Specifically, by setting properties, the test APP can set a specific property at the system level of the device under test, which is associated with the standby state of the device. When the device enters the standby state, the system will update the value of this property accordingly. The test APP will check the value of this property regularly or in real time. Once it is found that it changes to a value indicating the standby state, it will trigger the recording mechanism, accumulate the number of standby times and record it in the log or database.

[0045] For example, suppose we have an attribute called "device_status", whose value is "active" when the device is running normally and "standby" when it is in standby. The test app will constantly check the value of "device_status". Once it detects that the value changes to "standby", it knows that the device has entered the standby state and accumulates the number of standby times accordingly.

[0046] Another way is to write a file. The test app can create a specific file on the device under test to record the changes in the standby state. When the device enters the standby state, the system or the test app itself will write a record to this file to indicate that the device has entered standby. The test app will read this file regularly and accumulate the number of standby times based on the records in the file.

[0047] For example, the test app can create a file named "standby_log.txt". Every time the device enters the standby state, a line of record is appended to the file, such as "2023-04-01 12:00:00-Device enteredstandby". The test app can obtain the number of times the device enters the standby state by reading the file and counting the number of records.

[0048] As an implementation mode, the test remote control of the control device wakes up the device under test and starts the WiFi service for WiFi reconnection, including: after the device under test wakes up, the WiFi service reads the saved WiFi configuration information through the background process to ensure that the WiFi can normally reconnect to the previously connected external network device.

[0049] Specifically, in the stability test of the WiFi module of the smart device, when the device under test enters the standby state for a period of time, it is necessary to wake it up by controlling the test remote control of the device and verify the reconnection ability of the WiFi module after standby. When the test remote control of the control device sends a wake-up command to the device under test, the device will be activated from the standby state. Once the device is awakened, its operating system or firmware will start the WiFi service, which is responsible for managing the connection with external network devices. During the startup of the WiFi service, it will read the previously saved WiFi configuration information through the background process. This information usually includes the network name (SSID), password, encryption method, etc., which are saved in a configuration file of the device, such as the wpa_supplicant.conf mentioned above. It records the network information that the device has previously connected to so that it can automatically reconnect when needed.

[0050] For example, suppose we have a smart speaker as the device under test. It has previously connected to a wireless network called "HomeWiFi" and the password of this network is "12345678". When the smart speaker enters standby mode, we use the test remote control to wake it up. After the smart speaker is woken up, its WiFi service will automatically start and read the

[0051] The "HomeWiFi" and corresponding password "12345678" are saved in the wpa_supplicant.conf file. The WiFi service will then try to use this information to connect to the "HomeWiFi" network. If everything is normal, the WiFi module of the smart speaker should be able to successfully connect back to the "HomeWiFi" network, thereby restoring the connection to the Internet. The test app will monitor this process in real time and record the number of successes or failures of WiFi reconnection, so as to analyze and evaluate the stability of the WiFi module later.

[0052] As an implementation method, the test APP monitors the network connection status of the device under test in real time through the ConnectivityManager service, including whether the WiFi reconnection is successful and whether it can connect to the Internet, and outputs the test results in the form of records or reports.

[0053] Specifically, ConnectivityManager is a system service provided by the Android system, which is responsible for managing the device's network connections, including WiFi, mobile data, etc. The test APP can obtain the network connection status information of the device under test in real time by calling the API provided by the ConnectivityManager service. Specifically, when the device under test attempts to reconnect to WiFi, the test APP will use the ConnectivityManager service to monitor the process. It will check whether the WiFi is successfully connected to the previously saved network. This step usually involves verifying whether the SSID and password are correct and whether the network is available. If the WiFi reconnection is successful, ConnectivityManager will update the network connection status, and the test APP will be able to capture this status change; the test APP will further verify whether the device can connect to the Internet. This is achieved by trying to access a known Internet resource, such as sending an HTTP request to a server and waiting for a response. If the device can successfully receive a response, it means that it can connect to the Internet; otherwise, there may be a network configuration problem or the network itself is unreachable. During the entire test process, the test APP will record these changes in network connection status in real time, including the success or failure of WiFi reconnection, the status of Internet connectivity, etc. After the test, the test APP will organize these test results into records or reports for output. These outputs may include detailed test logs that record the results of each WiFi reconnection attempt, the status of Internet connectivity, and any exceptions or error messages; they may also include more advanced reports, such as statistical charts or summary data, which are used to show the stability performance of the WiFi module under different conditions.

[0054] For example, let's assume that we are testing a smartphone as the device under test. During the test, the test app monitors through the ConnectivityManager service that the smartphone successfully connects back to the network called "HomeWiFi" and can access a website on the Internet through the network. This information will be recorded in real time. If in subsequent tests, the smartphone cannot connect back to "HomeWiFi" or successfully connects back but cannot access the Internet, the test app will also capture these abnormal states and record them in the test report. By analyzing these reports, we can gain a deep understanding of the stability performance of the WiFi module in different situations, providing strong support for product optimization and improvement.

[0055] As another embodiment of the present application, Figure 2 and attached Figure 3 As shown, a stability monitoring system for a WiFi module includes:

[0056] Install the configuration module, install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information;

[0057] A learning module, which learns the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device;

[0058] The standby trigger module sends a standby instruction to the device under test through a control device, triggering the product under test to enter the standby state, and detects and records the number of times the smart device under test enters the standby state through a test APP;

[0059] Wake-up reconnection module, after the preset delay time, the test remote control of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP;

[0060] The backconnection test module, if the test APP detects that the WiFi backconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi backconnections. If the backconnection fails, the test APP automatically accumulates the number of failed WiFi backconnections.

[0061] As an implementation method, in combination with the attached Figure 3 As shown, the test remote control is a learning universal infrared remote control, and the control device is an Android system control device.

[0062] Specifically, the test remote control is a learning universal infrared remote control that can learn and imitate the signals of other infrared remote controls. In actual applications, different smart devices may use different infrared remote control protocols and signal encodings. In order to be able to uniformly control these devices in the test, we adopted a learning universal infrared remote control. It can record the signals of other remote controls through a simple learning process and send the same signal to control the device when needed. For example, if we have a smart TV and a smart air conditioner, which use different remote controls respectively, then our learning universal infrared remote control can master the functions of these two remote controls at the same time through learning, so as to uniformly control these two devices in the test. The device used to send test instructions and receive test results is based on the Android operating system.

[0063] In summary, the combination of a learning universal infrared remote control and an Android system control device provides a powerful control method for the stability test of the WiFi module of smart devices. The learning universal infrared remote control can control different types of smart devices in a unified manner; while the Android system control device can easily send test instructions and receive test results, realizing the automation and intelligence of the test. This combination not only improves the efficiency of the test, but also ensures the accuracy and reliability of the test.

[0064] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.

Claims

1. A method for monitoring the stability of a WiFi module, characterized in that: include: Install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information; Learning the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device; Send a standby command to the device under test through a control device to trigger the product under test to enter the standby state, and detect and record the number of times the smart device under test enters the standby state through a test APP; After the preset delay time is over, the test remote controller of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP; If the test APP detects that the WiFi reconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi reconnections. If the reconnection fails, the test APP automatically accumulates the number of failed WiFi reconnections.

2. The method for monitoring the stability of a WiFi module according to claim 1, characterized in that: The control device sends an infrared key value as a standby instruction to the device under test via a serial port connected to a PC.

3. The method for monitoring the stability of a WiFi module according to claim 1, characterized in that: The test APP detects the standby state of the device under test by setting properties or writing files, and automatically accumulates and records the number of standby times.

4. The method for monitoring the stability of a WiFi module according to claim 1, characterized in that: The test remote controller of the control device wakes up the device under test and starts the WiFi service for WiFi reconnection, including: after the device under test wakes up, the WiFi service reads the saved WiFi configuration information through the background process to ensure that the WiFi can normally reconnect to the previously connected external network device.

5. The method for monitoring the stability of a WiFi module according to claim 4, characterized in that: The test APP monitors the network connection status of the device under test in real time through the ConnectivityManager service, including whether the WiFi backconnection is successful and whether it can connect to the Internet, and outputs the test results in the form of records or reports.

6. A WiFi module stability monitoring system, characterized in that: include: Install the configuration module, install the test APP on the device under test, configure the WiFi of the device under test, connect to the external network device, and save the WiFi configuration information; A learning module, which learns the standby or wake-up function of the standard remote control of the device under test based on the test remote control of the control device; The standby trigger module sends a standby instruction to the device under test through a control device, triggering the product under test to enter the standby state, and detects and records the number of times the smart device under test enters the standby state through a test APP; Wake-up reconnection module, after the preset delay time, the test remote control of the control device wakes up the device under test, starts the WiFi service for WiFi reconnection, and monitors the network connection status of the device under test in real time through the test APP; The backconnection test module, if the test APP detects that the WiFi backconnection of the device under test is successful, it will further initiate a ping operation to determine whether the device under test can connect to the Internet. At the same time, the test APP automatically accumulates the number of successful WiFi backconnections. If the backconnection fails, the test APP automatically accumulates the number of failed WiFi backconnections.

7. A WiFi module stability monitoring system according to claim 6, characterized in that: The test remote control is a learning universal infrared remote control, and the control device is an Android system control device.