Wireless environment detection methods, equipment and storage media for devices
By acquiring self-test and collaborative wireless environment characteristic information, and combining it with analysis of the reasons why devices cannot connect to the target route, the offline problem of smart devices in the market has been solved, and the fault analysis capability and device network stability have been improved.
Patent Information
- Application Number
- CN202111642320.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2041-12-29
AI Technical Summary
Smart devices sometimes inexplicably go offline in the market, and existing technologies cannot effectively analyze device network failures, resulting in insufficient fault analysis capabilities.
By acquiring self-test wireless environment characteristic information and collaborative wireless environment characteristic information of collaborative devices, the cause of the device's inability to connect to the target route is inferred by combining the two information, including distributed routing information, channel congestion, number of interfering wireless access points, routing information, and the name of the hotspot that the target device is trying to connect to.
Accurately identifying the reasons for device offline improves fault analysis capabilities and enhances the stability of device networking and the efficiency of fault resolution.
Smart Images

Figure CN116419299B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of intelligent device technology, specifically relating to a method, device, and storage medium for wireless environment detection of devices. Background Technology
[0002] It's unrealistic to conduct comprehensive quality testing of smart devices in laboratories, covering all categories and environments. Even after undergoing testing and reaching the market, smart devices often experience unexpected offline issues.
[0003] To address connectivity issues in the market, improve customer complaint resolution rates and equipment uptime, and continuously optimize equipment network stability, it is essential to equip devices with wireless environment detection capabilities. This will enhance fault analysis capabilities and allow engineers to accurately assess equipment network failures. Summary of the Invention
[0004] This application provides a method, device, and storage medium for detecting wireless environment of devices, in order to solve the technical problem of insufficient analysis of device network faults.
[0005] To address the aforementioned technical problems, this application adopts the following technical solution: a device wireless environment detection method, comprising: when a current device cannot connect to a target route, acquiring self-test wireless environment characteristic information, and sending a collaborative detection request to a collaborating device; receiving collaborative wireless environment characteristic information sent by the collaborating device, wherein the collaborative wireless environment characteristic information is acquired by the collaborating device after responding to the collaborative detection request; and combining the self-test wireless environment characteristic information and the collaborative wireless environment characteristic information to infer the cause of the current device's inability to connect to the target route.
[0006] According to one embodiment of this application, obtaining the self-test wireless environment feature information includes: the current device obtaining air interface data packets on the channel where the target route is located, and analyzing and calculating to obtain the self-test wireless environment feature information.
[0007] According to one embodiment of this application, the self-test wireless environment characteristic information includes: distributed routing information, channel congestion, number of interfering wireless access points, routing information, number of connected devices on the route, and the name of the hotspot that the target device attempts to connect to.
[0008] According to one embodiment of this application, sending a collaborative detection request to a collaborative device includes: the current device sending a collaborative detection request to the collaborative device, or, in response to the current device going offline, the cloud sending a collaborative detection request to the collaborative device.
[0009] According to one embodiment of this application, the cooperative wireless environment feature information is obtained by the cooperative device capturing air interface data packets to calculate wireless environment feature information, and by calculating device action feature information from the wireless data packets of the current device.
[0010] According to one embodiment of this application, the cooperative wireless environment feature information includes connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the current device.
[0011] According to one embodiment of this application, the detection method further includes: automatically repairing the fault if the cause of the fault can be repaired on its own.
[0012] According to one embodiment of this application, the detection method further includes: in response to the fact that the cause of the fault cannot be repaired by itself, notifying the cause of the fault through a preset link. To solve the above technical problem, another technical solution adopted in this application is a device wireless environment detection method, including: a cooperating device receiving a cooperating detection request and obtaining cooperating wireless environment feature information, wherein the cooperating detection request is generated after the current device cannot connect to the target route; and sending the cooperating wireless environment feature information to the current device so that the current device can infer the cause of the fault that prevents it from connecting to the target route.
[0013] According to one embodiment of this application, obtaining the cooperative wireless environment feature information includes: the cooperative device capturing air interface data packets to calculate wireless environment feature information, and calculating device action feature information on the wireless data packets of the current device to obtain the cooperative wireless environment feature information.
[0014] To address the aforementioned technical problems, another technical solution adopted in this application is: a device comprising a communication device and a processing device, wherein the communication device is unable to connect to a target route; the processing device acquires self-test wireless environment characteristic information; the communication device sends a cooperative detection request to a cooperative device and receives cooperative wireless environment characteristic information sent by the cooperative device, the cooperative wireless environment characteristic information being acquired by the cooperative device after responding to the cooperative detection request; the processing device combines the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information to infer the cause of the current device's inability to connect to the target route.
[0015] To address the aforementioned technical problems, another technical solution adopted in this application is: a device comprising a communication device and a processing device, wherein the communication device receives a cooperative detection request; the processing device acquires cooperative wireless environment feature information, the cooperative detection request being generated after the current device is unable to connect to the target route; the communication device sends the cooperative wireless environment feature information to the current device, so that the current device can combine it to infer the cause of the failure to connect to the target route.
[0016] To solve the above-mentioned technical problems, another technical solution adopted in this application is: a computer-readable storage medium storing program data thereon, wherein the program data, when executed by a processor, implements any of the above-mentioned methods.
[0017] The beneficial effects of this application are: the method of this application can obtain information about the current device and the surrounding wireless environment due to its own reasons, thereby determining various device offline problems caused by the device itself and the wireless environment. This method can obtain the original wireless environment, discover physical layer communication faults, solve fault causes that cannot be detected in the prior art, facilitate engineers to obtain fault information, reproduce the environment, guide users to solve problems, and improve the efficiency of customer complaint resolution. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:
[0019] Figure 1 This is a schematic flowchart of an embodiment of the device wireless environment detection method of this application;
[0020] Figure 2 This is a flowchart illustrating yet another embodiment of the device wireless environment detection method of this application;
[0021] Figure 3 This is a schematic diagram of the framework of one embodiment of the device of this application;
[0022] Figure 4 This is a schematic diagram of the framework of yet another embodiment of the device of this application;
[0023] Figure 5 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0025] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the device wireless environment detection method of this application.
[0026] One embodiment of this application provides a method for detecting the wireless environment of a device, including the following steps:
[0027] S11: In response to the current device being unable to connect to the target route, obtain self-test wireless environment characteristic information.
[0028] When a device is unable to connect to the target route, indicating a network failure, it needs to acquire self-test wireless environment characteristic information. This inability to connect includes situations where the device continuously fails to connect to the target route within a predetermined time period, or where the device attempts to connect but fails a predetermined number of times consecutively. In this case, the device needs to enter promiscuous / monitor mode to acquire self-test wireless environment characteristic information. Specifically, acquiring this information involves the device acquiring air interface data packets on the channel where the target route is located, analyzing and calculating the data packets to obtain the self-test wireless environment characteristic information. Different algorithms for analyzing air interface data packets and performing stream processing are required to obtain different self-test wireless environment characteristic information, including but not limited to: distributed routing information, channel congestion, number of interfering wireless access points, routing information (whether it supports IPv6, whether it is imported, whether it complies with national standards), number of devices already connected to the route, and the name of the hotspot the target device is attempting to connect to. For example, routing information: By obtaining routing information (whether it supports IPv6, whether it is an imported router, and whether it complies with national standards), it was discovered that the target router was an imported router using a channel different from the national standard, thus causing network connectivity issues. By capturing data frames with the router's MAC address as the source address and a destination address of 33:33:XX:XX:XX:XX, it can be determined whether the router supports or has enabled IPv6 functionality.
[0029] S12: Send a collaborative detection request to the collaborative device.
[0030] In some embodiments, the collaborating device is another normally connected device in the same location, such as the same home, the same office area, etc., and the collaborating device belongs to the same account as the current device. In other embodiments, the collaborating device may also be other normally connected devices nearby.
[0031] Specifically, collaborative detection requests can be sent to one or more collaborative devices.
[0032] The current device can detect its surrounding wireless environment, while collaborating devices can assist in analyzing wireless environment data when the current device cannot connect to other devices. Collaborating devices can acquire information that the current device cannot obtain; for example, if the current device cannot capture data packets sent to it by the target router due to network connectivity issues, the collaborating device can acquire these packets.
[0033] There are several ways to send a collaboration detection request to a collaborating device. In some embodiments, when the current device cannot connect to the target route, it sends the collaboration detection request to the collaborating device through a preset link. The preset link includes, but is not limited to, communication links such as 802.11 underlying unicast and multicast, BLE Bluetooth, and Zigbee technologies. Thus, the current device can connect to the collaborating device through the preset link and send the collaboration detection request to the collaborating device.
[0034] In other embodiments, if the cloud responds to the current device changing from an online state to an offline state, the cloud sends a collaborative detection request to the collaborating device.
[0035] S13: Receive cooperative wireless environment characteristic information sent by the cooperative device. The cooperative wireless environment characteristic information is obtained by the cooperative device after responding to the cooperative detection request.
[0036] In some embodiments, the current device receives cooperative wireless environment characteristic information sent by the cooperating device. This cooperative wireless environment characteristic information is obtained by the cooperating device capturing air interface data packets to calculate wireless environment characteristic information, and by calculating device action characteristic information from the current device's wireless data packets. It should be noted that the cooperative wireless environment characteristic information obtained by the cooperating device may include some of the self-test wireless environment characteristic information obtained by the current device.
[0037] Specifically, after receiving a collaborative detection request, the collaborative device enters promiscuous / listen mode, captures air interface data packets, and performs a wireless environment characteristic information calculation, namely data packet analysis and stream computing, to obtain the wireless environment information in which the collaborative device is located, the interaction information between the target router and the current device, and the interaction information between the target router and other devices. Subsequently, it monitors the wireless data packets of the current device and performs device action characteristic information calculation, including calculating and obtaining device action characteristic information such as request frames, response frames, authentication frames, and deauthentication frames sent by the current device, thereby obtaining the final collaborative wireless environment characteristic information.
[0038] The cooperative wireless environment characteristic information includes, but is not limited to, the following: current device connection handshake packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection. Specifically, it includes:
[0039] Obtain connection handshake data packet statistics for the current device, including probe request frames, probe response frames, assoc request frames, assoc response frames, and Auth frames.
[0040] Retrieve statistics on the status code or reason code in frames such as assocResponed, Auth, disassoc, and deauth in the current device, including the code type and the number of each type.
[0041] Get the SSID name data of probe request frames in the current device, and statistics of different SSID names.
[0042] Obtain the device statistics information of the target route's SSID in the probe request frame in the channel where the target route is located, as well as the statistical information of the probe request frame of each device, to calculate the connection failure rate of the target route.
[0043] S14: Combining self-test wireless environment characteristic information and cooperative wireless environment characteristic information, infer the cause of the current device's inability to connect to the target route.
[0044] In some embodiments, the current device can infer the cause of its inability to connect to the target route by combining self-test wireless environment characteristic information and cooperative wireless environment characteristic information. In other embodiments, the current device can also send self-test wireless environment characteristic information to a cooperative device via a preset link, and the cooperative device can infer the cause of its inability to connect to the target route by combining the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information. Alternatively, the current device can send self-test wireless environment characteristic information to a cooperative device via a preset link, and the cooperative device can send the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information to the cloud, and the cloud can infer the cause of its inability to connect to the target route by combining the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information.
[0045] It is understandable that the self-test wireless environment characteristic information acquired by the current device includes information about the wireless environment in which the current device is located and the underlying information of the current device. The cooperative wireless environment characteristic information acquired by the cooperating device includes the interaction information between the current device and the target router. Therefore, by combining the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information, the cause of the current device's inability to connect to the target router can be more accurately inferred.
[0046] For example, relying solely on the self-test wireless environment characteristic information obtained by the current device, the current device can only infer the cause of the network connection failure. However, this application combines self-test wireless environment characteristic information and cooperative wireless environment characteristic information to determine at least four types of failures: the current device sends a network connection request, but the target route does not receive it; the current device sends a network connection request, the target route receives it but does not respond; the current device sends a network connection request, the target route receives it and sends a rejection message, but the current device does not receive the rejection message; the current device sends a network connection request, the target route receives it and responds normally to the current device, but the current device does not respond.
[0047] Based on the acquired self-test wireless environment characteristic information and cooperative wireless environment characteristic information, the specific cause of the fault can be further inferred, making the fault cause judgment more accurate.
[0048] The method of this application can obtain information about the current device and the surrounding wireless environment due to its own reasons, thereby determining various device offline problems caused by the device itself and the wireless environment. This method can obtain the original wireless environment, discover physical layer communication faults, solve fault causes that cannot be detected in the prior art, facilitate engineers to obtain fault information, reproduce the environment, guide users to solve problems, and improve the efficiency of customer complaint resolution.
[0049] The possible causes of the malfunction include, but are not limited to, the following:
[0050] Routing Information: By obtaining routing information (whether it supports IPv6, whether it is an imported router, and whether it complies with national standards), it was found that the target router was an imported router using a channel different from the national standard, resulting in network connectivity issues. This can be resolved by changing the channel. By capturing data frames with the router's MAC address as the source address and a destination address of 33:33:XX:XX:XX:XX, it can be determined whether the router supports or has enabled IPv6 functionality.
[0051] Distributed route count: The current device captures air interface data packets across all channels, filters out Beacon frames and Probe Responed frames whose source address is the target route's SSID, and counts the number of BSSIDs for that SSID. This count represents the number of distributed routes. By comparing the number of data packets sent by the device to the routes with the number of data packets returned to the device, it can be determined whether any routes are unable to connect to the network.
[0052] Number of devices connected to the target route: Capture packets on the channel where the target route is located, capture data frames, and based on the direction bit (DS) of the data frames, distinguish the route address and device address represented by the source address and destination address, filter the target route address, and count the device addresses that appear. After the count is completed, the number of devices connected to the target route can be obtained, which can then be used to determine whether the route is saturated with load.
[0053] Interference hotspot identification and statistics: Filter Beacon frames and probe Responed frames. If the channel marked in the frame is different from the channel actually scanned, the hotspot of the route is an interference hotspot.
[0054] To detect compatibility issues between the target route and the current device, or whether the target route has added the current device to its blacklist: Filter the current device's probe request and probe response frames, assoc request and assoc response frames, and Auth frames (authentication frames), count the number of each frame, and determine the ratio of handshake requests sent by the current device to the target route to the target route's response handshake requests, i.e., whether the handshake requests are complete, thereby discovering compatibility issues between the target route and the current device, or whether the target route has added the current device to its blacklist.
[0055] Code category statistics: Filter the current device's assocResponed, Auth (authentication) frames, disassoc, and deauth frames, and obtain the status code or reason code from the frames. Calculate the probability of the code's occurrence to determine the specific reason why the current device disconnected from the target route.
[0056] Wireless signal name: Filter the probe request frames of the current device, obtain the SSID field of the frame, determine whether the field is the same as the target router's SSID, and determine whether the network configuration is incorrect.
[0057] Connection failure rate of the target route: Filter probe request frames on the channel where the target route is located, count the number of devices with the SSID field of the target route, and the number of probe request frames sent by each device, to calculate the connection failure rate of the target route.
[0058] Furthermore, once the cause of the malfunction is identified, the problem can be solved through two approaches:
[0059] S15: If the cause of the fault can be repaired automatically, then the fault will be repaired automatically.
[0060] If the fault is self-repairable, the current device adjusts its wireless operating parameters accordingly to resolve the fault. Specifically, if the current device infers the offline fault cause, it directly determines whether the fault is self-repairable. If a collaborating device infers the offline fault cause, it determines whether the current device can self-repair the fault. If so, it sends the fault cause to the current device via a preset link, and the current device adjusts its wireless operating parameters accordingly to resolve the fault. If the cloud infers the offline fault cause, it determines whether the current device can self-repair the fault. If so, it sends the fault cause to a collaborating device, which then sends it to the current device via a preset link. The current device adjusts its wireless operating parameters accordingly to resolve the fault. Preset links include, but are not limited to, 802.11 underlying unicast and multicast, BLE Bluetooth, and Zigbee communication links.
[0061] S16: In response to the fact that the cause of the fault cannot be repaired by itself, the cause of the fault will be notified through the preset link.
[0062] If a fault cannot be self-repaired, the fault information and repair method will be notified via a preset link. Specifically, the user, after-sales service, or engineer can be notified, and the fault will be recorded in the cloud. The user can then adjust the wireless environment, or the after-sales service or engineer can be notified to repair the fault. If the current device infers the offline fault cause, it will send the fault cause to the collaborating device via the preset link. The collaborating device will then forward the fault to the user, after-sales service, or engineer, and record it in the cloud. If the collaborating device infers the offline fault cause, it can determine whether the current device can self-repair the fault. If not, it will send the fault cause to the user, after-sales service, or engineer, and record it in the cloud. If the cloud infers the offline fault cause, it can determine whether the current device can self-repair the fault. If not, the cloud will directly notify the user to adjust the wireless environment, or notify the after-sales service or engineer to repair the fault. The preset link includes, but is not limited to, communication links such as 802.11 underlying unicast and multicast, BLE Bluetooth, and Zigbee technologies.
[0063] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the device wireless environment detection method of this application.
[0064] Another embodiment of this application provides a method for detecting the wireless environment of a device, including the following steps:
[0065] S21: The cooperating device receives a cooperative detection request and obtains cooperative wireless environment characteristic information. The cooperative detection request is generated after the current device is unable to connect to the target route.
[0066] When the current device cannot connect to the target route, indicating a network failure, it needs to acquire self-test wireless environment characteristic information and simultaneously send a collaborative detection request to the collaborating device. The inability of the current device to connect to the target route includes situations where the current device continuously fails to connect to the target route within a predetermined time period; or where the current device attempts to connect to the target route but fails a predetermined number of times consecutively. In some embodiments, the collaborating device is another normally connected device in the same location, such as the same home or office area, and the collaborating device belongs to the same account as the current device. In other embodiments, the collaborating device can also be other nearby normally connected devices. Specifically, there is at least one collaborating device.
[0067] There are several ways for a collaborating device to receive a collaborative detection request. In some embodiments, the collaborating device receives the request through a preset link. This preset link includes, but is not limited to, communication links such as 802.11 underlying unicast and multicast, BLE Bluetooth, and Zigbee technologies. Thus, the current device can connect to the collaborating device through the preset link and send a collaborative detection request to it.
[0068] The collaborative device captures air interface data packets to calculate wireless environment characteristic information, and calculates device action characteristic information from the current device's wireless data packets to obtain collaborative wireless environment characteristic information. It should be noted that the collaborative wireless environment characteristic information obtained by the collaborative device may include some of the self-test wireless environment characteristic information obtained by the current device.
[0069] Specifically, after receiving a collaborative detection request, the collaborative device enters promiscuous / listen mode, captures air interface data packets, and performs a wireless environment characteristic information calculation, namely data packet analysis and stream computing, to obtain the wireless environment information in which the collaborative device is located, the interaction information between the target router and the current device, and the interaction information between the target router and other devices. Subsequently, it monitors the wireless data packets of the current device and performs device action characteristic information calculation, including calculating and obtaining device action characteristic information such as request frames, response frames, authentication frames, and deauthentication frames sent by the current device, thereby obtaining the final collaborative wireless environment characteristic information.
[0070] The cooperative wireless environment characteristic information includes, but is not limited to, the following: current device connection handshake packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection. Specifically, it includes:
[0071] Obtain connection handshake data packet statistics for the current device, including probe request frames, probe response frames, assoc request frames, assoc response frames, and Auth frames.
[0072] Retrieve statistics on the status code or reason code in frames such as assocResponed, Auth authentication, disassoc, and deauth in the current device, including the type of code and the number of each type.
[0073] Get the SSID name data of probe request frames in the current device, and statistics of different SSID names.
[0074] Obtain the device statistics information of the target route's SSID in the probe request frame in the channel where the target route is located, as well as the statistical information of the probe request frame of each device, to calculate the connection failure rate of the target route.
[0075] S22: Send cooperative wireless environment characteristic information to the current device so that the current device can combine it to infer the cause of the failure to connect to the target route.
[0076] The cooperating device sends cooperative wireless environment characteristic information to the current device via a preset link. The current device combines the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information to infer the cause of the failure to connect to the target route. In some embodiments, since the cooperative wireless environment characteristic information includes some of the self-test wireless environment characteristic information obtained by the current device, the current device can also infer the cause of the failure to connect to the target route based solely on the cooperative wireless environment characteristic information.
[0077] It is understandable that the self-test wireless environment characteristic information acquired by the current device includes information about the wireless environment in which the current device is located and the underlying information of the current device. The cooperative wireless environment characteristic information acquired by the cooperating device includes the interaction information between the current device and the target router. Therefore, by combining the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information, the cause of the current device's inability to connect to the target router can be more accurately inferred.
[0078] For example, relying solely on the self-test wireless environment characteristic information obtained by the current device, the current device can only infer the cause of the network connection failure. However, this application combines self-test wireless environment characteristic information and cooperative wireless environment characteristic information to determine at least four types of failures: the current device sends a network connection request, but the target route does not receive it; the current device sends a network connection request, the target route receives it but does not respond; the current device sends a network connection request, the target route receives it and sends a rejection message, but the current device does not receive the rejection message; the current device sends a network connection request, the target route receives it and responds normally to the current device, but the current device does not respond.
[0079] Based on the acquired self-test wireless environment characteristic information and cooperative wireless environment characteristic information, the specific cause of the fault can be further inferred, making the fault cause judgment more accurate.
[0080] This application can obtain information about the current device and its surrounding wireless environment due to its own reasons, thereby identifying various device offline problems caused by the device itself and the wireless environment. This method can obtain the original wireless environment, discover physical layer communication faults, solve fault causes that cannot be detected in the prior art, facilitate engineers to obtain fault information, reproduce the environment, guide users to solve problems, and improve the efficiency of resolving customer complaints.
[0081] The possible causes of the malfunction include, but are not limited to, the following:
[0082] Routing Information: By obtaining routing information (whether it supports IPv6, whether it is an imported router, and whether it complies with national standards), it was found that the target router was an imported router using a channel different from the national standard, resulting in network connectivity issues. This can be resolved by changing the channel. By capturing data frames with the router's MAC address as the source address and a destination address of 33:33:XX:XX:XX:XX, it can be determined whether the router supports or has enabled IPv6 functionality.
[0083] Distributed route count: The current device captures air interface data packets across all channels, filters out Beacon frames and Probe Responed frames whose source address is the target route's SSID, and counts the number of BSSIDs for that SSID. This count represents the number of distributed routes. By comparing the number of data packets sent by the device to the routes with the number of data packets returned to the device, it can be determined whether any routes are unable to connect to the network.
[0084] Number of devices connected to the target route: Capture packets on the channel where the target route is located, capture data frames, and based on the direction bit (DS) of the data frames, distinguish the route address and device address represented by the source address and destination address, filter the target route address, and count the device addresses that appear. After the count is completed, the number of devices connected to the target route can be obtained, which can then be used to determine whether the route is saturated with load.
[0085] Interference hotspot identification and statistics: Filter Beacon frames and probe Responed frames. If the channel marked in the frame is different from the channel actually scanned, the hotspot of the route is an interference hotspot.
[0086] To detect compatibility issues between the target route and the current device, or whether the target route has added the current device to its blacklist: Filter the current device's probe request and probe response frames, assoc request and assoc response frames, and Auth frames (authentication frames), count the number of each frame, and determine the ratio of handshake requests sent by the current device to the target route to the target route's response handshake requests, i.e., whether the handshake requests are complete, thereby discovering compatibility issues between the target route and the current device, or whether the target route has added the current device to its blacklist.
[0087] Code category statistics: Filter the current device's assocResponed, Auth (authentication) frames, disassoc, and deauth frames, and obtain the status code or reason code from the frames. Calculate the probability of the code's occurrence to determine the specific reason why the current device disconnected from the target route.
[0088] Wireless signal name: Filter the probe request frames of the current device, obtain the SSID field of the frame, determine whether the field is the same as the target router's SSID, and determine whether the network configuration is incorrect.
[0089] Connection failure rate of the target route: Filter probe request frames on the channel where the target route is located, count the number of devices with the SSID field of the target route, and the number of probe request frames sent by each device, to calculate the connection failure rate of the target route.
[0090] Please see Figure 3 , Figure 3 This is a schematic diagram of the framework of one embodiment of the device of this application.
[0091] Another embodiment of this application includes a device 30, comprising a communication device 31 and a processing device 32, which are coupled to implement the device wireless environment detection method of the corresponding embodiment described above. Specifically, the communication device 31 cannot connect to the target route; the processing device 32 acquires self-test wireless environment feature information; the communication device 31 sends a cooperative detection request to a cooperating device and receives cooperative wireless environment feature information sent by the cooperating device, which is acquired by the cooperating device after responding to the cooperative detection request; the processing device 32 combines the self-test wireless environment feature information and the cooperative wireless environment feature information to infer the cause of the device 30's inability to connect to the target route. This embodiment of the application can acquire the environmental information of the device 30 due to its own reasons and the surrounding wireless environment, thereby determining various device offline problems caused by the device 30 itself and the wireless environment. This device 30 can acquire the original wireless environment, discover physical layer communication faults, solve fault causes that cannot be detected in the prior art, facilitate engineers to obtain fault information, reproduce the environment, guide users to solve problems, and improve the efficiency of customer complaint resolution.
[0092] Please see Figure 4 , Figure 4 This is a schematic diagram of the framework of one embodiment of the device of this application.
[0093] Another embodiment of this application includes a device 40, comprising a communication device 41 and a processing device 42, which are coupled to implement the device wireless environment detection method of the corresponding embodiment described above. Specifically, the communication device 41 receives a cooperative detection request; the processing device 42 acquires cooperative wireless environment feature information, and the cooperative detection request is generated after the current device is unable to connect to the target route; the communication device 41 sends the cooperative wireless environment feature information to the current device so that the current device can combine it to infer the cause of the failure to connect to the target route. This application embodiment can help obtain information about the current device's own characteristics and the surrounding wireless environment, thereby identifying various device offline problems caused by the device itself and the wireless environment. This device can help the current device obtain the original wireless environment, discover physical layer communication faults, solve fault causes that cannot be detected in the prior art, facilitate engineers to obtain fault information, reproduce the environment, guide users to solve problems, and improve the efficiency of customer complaint resolution.
[0094] Please see Figure 5 , Figure 5 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application.
[0095] Another embodiment of this application provides a computer-readable storage medium 50 that stores program data 51 thereon, which, when executed by a processor, implements any of the above embodiments.
[0096] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, 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 connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0097] 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 network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0098] 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.
[0099] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium 50. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium 50 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium 50 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0100] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for detecting a wireless environment of a device, the method comprising: include: The current device cannot connect to the target router, obtains self-test wireless environment characteristic information, and sends a collaborative detection request to the collaborating device; The process of obtaining the self-test wireless environment feature information includes: the current device obtaining air interface data packets on the channel where the target route is located, and analyzing and calculating them to obtain the self-test wireless environment feature information; The system receives cooperative wireless environment feature information sent by the cooperative device, which is obtained by the cooperative device after responding to the cooperative detection request. The cooperative wireless environment feature information is obtained by the cooperative device capturing air interface data packets to calculate wireless environment feature information and calculating device action feature information from the wireless data packets of the current device. By combining the self-test wireless environment feature information and the cooperative wireless environment feature information, the cause of the current device's inability to connect to the target route is inferred; The cooperative wireless environment feature information includes the connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the current device.
2. The detection method according to claim 1, characterized in that, The self-test wireless environment characteristic information includes: distributed routing information, channel congestion, number of interfering wireless access points, routing information, number of devices already connected to the route, and the name of the hotspot that the target device is trying to connect to.
3. The method of claim 1, wherein, Sending a collaborative detection request to the collaborative device includes: The current device sends a collaborative detection request to the collaborative device, or, in response to the current device going offline, the cloud sends a collaborative detection request to the collaborative device.
4. The method of claim 1, wherein, The cooperative wireless environment feature information includes the connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the current device.
5. The method of claim 1, wherein The detection method further includes: if the fault can be repaired automatically, then the fault is repaired automatically.
6. The method of claim 1, wherein The detection method further includes: in response to the fact that the cause of the fault cannot be repaired by itself, the cause of the fault is notified through a preset link.
7. A method for detecting a wireless environment of a device, the method comprising: include: The collaborative device receives a collaborative detection request and obtains collaborative wireless environment feature information. The collaborative detection request is generated after the current device is unable to connect to the target route. The process of obtaining collaborative wireless environment feature information includes: the collaborative device capturing air interface data packets to calculate wireless environment feature information, and calculating device action feature information from the wireless data packets of the current device to obtain the collaborative wireless environment feature information. The cooperative wireless environment feature information is sent to the current device so that the current device can combine it to infer the cause of the failure to connect to the target route; The cooperative wireless environment feature information includes the connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the current device.
8. An electronic device, comprising: The system includes a communication device and a processing device. The communication device cannot connect to the target route. The processing device acquires self-test wireless environment characteristic information, which includes: the electronic device acquiring air interface data packets on the channel where the target route is located, analyzing and calculating to obtain the self-test wireless environment characteristic information; the communication device sending a cooperative detection request to a cooperating device and receiving cooperative wireless environment characteristic information sent by the cooperating device, the cooperative wireless environment characteristic information being acquired by the cooperating device after responding to the cooperative detection request; wherein the cooperative wireless environment characteristic information is obtained by the cooperating device capturing air interface data packets and calculating wireless environment characteristic information, and by calculating device action characteristic information from the wireless data packets of the electronic device; the processing device combines the self-test wireless environment characteristic information and the cooperative wireless environment characteristic information to infer the cause of the electronic device's inability to connect to the target route. The cooperative wireless environment feature information includes connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the electronic device.
9. A coordination device, characterized in that The system includes a communication device and a processing device. The communication device receives a cooperative detection request. The processing device acquires cooperative wireless environment characteristic information. The cooperative detection request is generated after an electronic device is unable to connect to a target route. Acquiring the cooperative wireless environment characteristic information includes: the cooperative device capturing air interface data packets and calculating wireless environment characteristic information; and calculating device action characteristic information from the wireless data packets of the electronic device to obtain the cooperative wireless environment characteristic information. The communication device sends the cooperative wireless environment characteristic information to the electronic device, allowing the electronic device to infer the cause of the inability to connect to the target route. The cooperative wireless environment feature information includes connection handshake data packet statistics, code category statistics, wireless signal name, and connection failure rate of the target route connection of the electronic device.
10. A computer readable storage medium having stored thereon program data, wherein, When the program data is executed by the processor, it implements the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Methods, equipment, and systems for locating faults in IP bearer networks
CN101431448B
Network device disconnection reporting method, device and system
CN110971428A
