Wireless diagnosis method, terminal device and storage medium

Through automated log crawling and deep convolutional neural network analysis, the problem of low wireless network diagnosis efficiency is solved, and efficient wireless disconnection cause diagnosis and solution output is achieved.

CN119110335APending Publication Date: 2024-12-10FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411155822.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The existing wireless network diagnostic solutions have problems such as intelligence and low diagnostic efficiency, which leads to the need for manual monitoring and log crawling when the wireless connection is disconnected, which is inefficient and has a large resource occupancy.

Method used

When obtaining wireless disconnection events, log crawling operations are automatically performed, and the analysis logs are filtered to output wireless disconnection data. Preset conditions and deep convolutional neural networks are used to build an analytical model to automatically diagnose the causes and solutions of wireless disconnection.

Benefits of technology

It improves the intelligence and efficiency of the diagnostic process, reduces the resource usage of manual monitoring and log crawling, and shortens the output time of diagnostic results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110335A_ABST
    Figure CN119110335A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless diagnosis method, a terminal device and a storage medium, and relates to the technical field of wireless networks, and the method comprises the steps: obtaining a wireless disconnection event, executing a log capturing operation under the condition that the wireless disconnection event meets a preset capturing condition, obtaining an initial log, and storing the initial log in the terminal device; according to the invention, low monitoring efficiency caused by the fact that a troubleshooting person needs to regularly and manually monitor the wireless disconnection information is avoided, the intelligence of the diagnosis process is improved, and large performance overhead and large resource occupation of terminal equipment caused by the fact that log retest needs to be started in advance can be avoided; according to the method, the initial log is filtered and analyzed, the target log including the preset wireless disconnection data is output, and the wireless diagnosis result is output according to the target log, so that the troubleshooting time of the log is shortened, and the diagnosis efficiency of outputting the wireless diagnosis result according to the target log is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless network technology, and in particular to a wireless diagnosis method, a terminal device and a storage medium. Background Art

[0002] In order to ensure the stable operation of the wireless network, when the wireless connection is disconnected, it is necessary to diagnose the cause of the wireless connection disconnection to determine the root cause of the wireless connection disconnection and take corresponding solutions.

[0003] At present, the diagnostic scheme for the existing wireless connection disconnection phenomenon is usually that, because the wireless connection disconnection time is random, the troubleshooter needs to monitor the phenomenon regularly, and in order to be able to capture logs in time when the wireless connection disconnection phenomenon occurs, the log retest needs to be started in advance. After the wireless connection disconnection phenomenon is detected, the causes of the wireless connection disconnection need to be checked one by one to obtain the diagnosis result of the wireless connection disconnection, which has the defects of low intelligence of the diagnostic process and low diagnostic efficiency. Summary of the invention

[0004] The main purpose of this application is to provide a wireless diagnostic method, terminal device and storage medium, aiming to solve the technical problems of low intelligence and diagnostic efficiency in conventional diagnostic solutions.

[0005] To achieve the above objectives, the present application proposes a wireless diagnosis method, which includes:

[0006] Obtain a wireless disconnection event, and when it is detected that the wireless disconnection event meets a preset capture condition, perform a log capture operation to obtain an initial log;

[0007] The initial log is filtered and parsed, and a target log including preset wireless disconnection data is output, and the wireless diagnosis result is output according to the target log.

[0008] In one embodiment, the step of obtaining a wireless disconnection event includes:

[0009] In a preset acquisition time period, the wireless status is checked at preset time intervals, and a wireless disconnection event to be determined is obtained when the wireless status is a wireless disconnection state;

[0010] Determine whether the wireless disconnection duration reflected by the wireless disconnection event to be determined is equal to or greater than a preset disconnection duration;

[0011] If so, the wireless disconnection event to be determined is determined as a wireless disconnection event.

[0012] In one embodiment, before checking the wireless status at a preset time interval in a preset acquisition time period and obtaining a wireless disconnection event to be determined when the wireless status is a wireless disconnection state, the method includes:

[0013] Receive a wireless disconnection problem scenario uploaded by a user, and set a preset acquisition time period, a preset time interval, a preset disconnection duration, and a preset total number of disconnections according to the disconnection data reflected in the wireless disconnection problem scenario; or,

[0014] Obtain historical wireless disconnection data, and set a preset acquisition time period, preset time interval, preset disconnection duration, and preset total number of disconnections based on the historical wireless disconnection data.

[0015] In one embodiment, after the step of obtaining the wireless disconnection event, the following steps are included:

[0016] Determine whether the current number of wireless disconnection times reflected by the wireless disconnection event is a target number of disconnection times, wherein the target number of disconnection times is one less than a preset total number of disconnection times;

[0017] If the current number of wireless disconnection times is the target number of wireless disconnection times, it is determined that the wireless disconnection event meets the preset capture condition.

[0018] In one embodiment, the step of performing a log capture operation to obtain an initial log includes:

[0019] Turn on the log interaction switch, capture logs, and check whether the capture time reaches the preset capture time;

[0020] If the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is not detected, the captured logs are cleared and the logs are captured again; or,

[0021] If the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is detected, or if the preset capture time is not reached and the next wireless disconnection event that meets the preset stop condition is detected, the log captured during the preset capture time is determined as the initial log;

[0022] The preset stop condition is that the next wireless disconnection times reflected by the next wireless disconnection event is the preset total disconnection times.

[0023] In one embodiment, the steps of filtering and parsing the initial log and outputting the target log including the preset wireless disconnection data include:

[0024] Filter out the logs that do not include wireless information in the initial logs to obtain the wireless logs;

[0025] Analyze the wireless logs to obtain the wireless data reflected by each wireless log;

[0026] Determine whether each wireless data is preset wireless disconnection data;

[0027] If yes, the wireless log to which the wireless data belongs is determined as the target log.

[0028] In one embodiment, before the step of obtaining the wireless disconnection event, the following steps are included:

[0029] Inputting historical wireless disconnection data into a preset deep convolutional neural network for training to construct a training model;

[0030] Input the wireless data to be tested into the training model to obtain a reference value of the sample data;

[0031] Determine whether the reference value reaches a preset benchmark value;

[0032] If the reference value reaches the preset benchmark value, a parsing model is constructed based on the training model;

[0033] The parsing model is used to parse the wireless logs.

[0034] In one embodiment, the step of outputting the wireless diagnosis result according to the target log includes:

[0035] Determine the wireless disconnection cause based on the wireless data reflected in the target log, and output the corresponding wireless diagnosis result based on the wireless disconnection cause;

[0036] The wireless diagnosis results include the wireless disconnection reasons and wireless disconnection solutions.

[0037] In addition, to achieve the above objectives, the present application also proposes a terminal device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless diagnostic method described above.

[0038] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the wireless diagnostic method described above are implemented.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] A wireless diagnosis method is proposed. By acquiring wireless disconnection events, when it is detected that the wireless disconnection events meet the preset capture conditions, a log capture operation is performed to obtain an initial log; the initial log is filtered and parsed, and a target log including preset wireless disconnection data is output, and the wireless diagnosis result is output according to the target log.

[0041] That is, after detecting a wireless disconnection event that meets the preset capture conditions, the application automatically performs a log capture operation to obtain an initial log, which not only avoids the low monitoring efficiency of the wireless disconnection information that needs to be manually monitored by the personnel who need to conduct regular inspections, improves the intelligence of the diagnosis process, but also avoids the performance overhead and resource occupation of the terminal device caused by the need to start log retesting in advance. By filtering and parsing the initial log, interference logs that are not related to the wireless disconnection can be excluded, thereby reducing the time required to check the log and speeding up the diagnostic efficiency of outputting wireless diagnosis results based on the target log. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 A flowchart of the first embodiment of the wireless diagnostic method of the present application is provided;

[0045] Figure 2 A schematic diagram of the diagnostic structure involved in the wireless diagnostic method of this application;

[0046] Figure 3 A schematic diagram of a flow chart provided for the second embodiment of the wireless diagnostic method of the present application;

[0047] Figure 4 Schematic diagram of the process flow provided for the third embodiment of the wireless diagnostic method of the present application

[0048] Figure 5 A brief flowchart of the wireless diagnostic method provided in this application

[0049] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the wireless diagnostic method in the embodiment of the present application.

[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The main solution of the embodiment of the present application is: by acquiring a wireless disconnection event, when it is detected that the wireless disconnection event meets the preset capture conditions, a log capture operation is performed to obtain an initial log; the initial log is filtered and parsed, and a target log including preset wireless disconnection data is output, and the wireless diagnostic results are output according to the target log.

[0054] In the prior art, the diagnostic scheme for the existing wireless connection disconnection phenomenon is usually that, because the wireless connection disconnection time is random, the troubleshooter needs to monitor the phenomenon regularly, and in order to be able to capture logs in time when the wireless connection disconnection phenomenon occurs, the log retest needs to be started in advance. After the wireless connection disconnection phenomenon is detected, the causes of the wireless connection disconnection need to be checked one by one to obtain the diagnosis result of the wireless connection disconnection, which has the defects of low intelligence of the diagnostic process and low diagnostic efficiency.

[0055] The present application provides a solution, which automatically performs log capture operation to obtain the initial log after detecting a wireless disconnection event that meets the preset capture conditions. This not only avoids the low monitoring efficiency of the wireless disconnection information that needs to be manually monitored by the personnel in charge of the investigation, improves the intelligence of the diagnosis process, but also avoids the performance overhead and resource occupation of the terminal equipment caused by the need to start the log retest in advance. By filtering and parsing the initial log, interference logs that are not related to the wireless disconnection can be excluded, thereby reducing the time for checking the log and accelerating the diagnostic efficiency of outputting the wireless diagnosis results according to the target log.

[0056] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a terminal device, etc. capable of realizing the above functions. The following takes the terminal device as an example to illustrate this embodiment and the following embodiments.

[0057] Based on this, the embodiment of the present application provides a wireless diagnosis method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the wireless diagnostic method of the present application.

[0058] In this embodiment, the wireless diagnosis method includes steps S10 to S40:

[0059] Step S10, obtaining a wireless disconnection event, and when it is detected that the wireless disconnection event meets a preset capture condition, performing a log capture operation to obtain an initial log.

[0060] Combination Figure 2 The diagnostic results shown in the figure are used to illustrate that the acquisition of wireless disconnection events described in this embodiment is executed in the low-power module, that is, the acquisition of wireless disconnection events is performed after the terminal device is turned on and started, when the terminal device and the router have established a connection relationship and the screen is turned off and enters a dormant state. By periodically checking the connection status between the terminal device and the router when the terminal device is in a dormant state through the low-power module, the wireless disconnection events are acquired, which can reduce the energy consumption of the terminal device, improve energy utilization, and thus extend the service life of the terminal device.

[0061] After obtaining the wireless disconnection event through periodic checking of the low-power module, the obtained wireless disconnection event is transmitted to the judgment module. When the judgment module detects that the transmitted wireless disconnection event meets the preset capture conditions, the log capture operation is automatically performed to obtain the initial log. That is, as long as it is detected that the wireless disconnection event meets the preset capture conditions, the log capture operation can be automatically started, avoiding the low monitoring efficiency caused by the need for investigation personnel to manually monitor the wireless disconnection information regularly, and avoiding the negative phenomenon of performance overhead and resource occupation of terminal equipment caused by the need to start log retesting in advance.

[0062] In a feasible implementation, step S10 may include steps S11 to S13:

[0063] Step S11 : in a preset acquisition time period, checking the wireless status at preset time intervals, and acquiring a wireless disconnection event to be determined when the wireless status is a wireless disconnection status.

[0064] Furthermore, the low power consumption module checks the wireless connection status (i.e., wireless status) between the terminal device and the router at preset time intervals during a preset acquisition time period, and obtains the wireless disconnection event to be determined when the wireless status is a wireless disconnection status from the viewing result, thereby avoiding the situation of excessive power consumption and excessive resource occupation caused by continuous real-time viewing for a long time.

[0065] Step S12: determining whether the wireless disconnection duration reflected by the wireless disconnection event to be determined is equal to or greater than a preset disconnection duration.

[0066] Step S13: If yes, the wireless disconnection event to be determined is determined as a wireless disconnection event.

[0067] In this embodiment, after obtaining the wireless disconnection event to be determined, it will be determined whether the wireless disconnection duration reflected by the wireless disconnection event to be determined is equal to or greater than the preset disconnection duration. Only the wireless disconnection event to be determined whose wireless disconnection duration is equal to or greater than the preset disconnection duration is determined as a wireless disconnection event and counted as one wireless disconnection event.

[0068] If the wireless disconnection duration reflected by the wireless disconnection event to be determined is detected to be less than the preset disconnection duration, it is considered that the wireless disconnection duration of the wireless disconnection event to be determined is too short and has too low reference value, so it is not selected as the wireless disconnection event for wireless diagnosis.

[0069] In a feasible implementation manner, before step S11, steps A11 to A12 may also be included:

[0070] Step A11, receiving the wireless disconnection problem scenario uploaded by the user, and setting a preset acquisition time period, a preset time interval, a preset disconnection duration and a preset total number of disconnections according to the disconnection data reflected by the wireless disconnection problem scenario.

[0071] Step A12, obtaining historical wireless disconnection data, and setting a preset acquisition time period, a preset time interval, a preset disconnection duration, and a preset total number of disconnections according to the historical wireless disconnection data.

[0072] It should be noted that, see Figure 2 It can be seen that the setting module in this embodiment will receive wireless disconnection problem scenarios encountered by users during the operation of terminal devices uploaded by users, according to the disconnection data reflected by the wireless disconnection problem scenarios. For example, the wireless disconnection problem scenario may be 3 wireless disconnection phenomena within 24 hours, so the corresponding disconnection data is the total number of disconnections within 24 hours is 3 times, so at this time the corresponding preset acquisition time period can be set to 24 hours, the preset total number of disconnections is 3 times, and the preset disconnection duration and the preset total number of disconnections can be directly set according to the disconnection data, and can also be set according to actual detection and judgment needs. For example, in order to avoid the omission of wireless disconnection events caused by the detection time interval process, the preset time interval can be set to check the wireless connection status once every 3 hours, and in order to avoid the waste of detection resources caused by multiple disconnections of the wireless connection in a short period of time due to simple poor contact of the network cable, the preset disconnection duration of a single wireless disconnection state can be set to 10 seconds.

[0073] At the same time, the preset acquisition time period, preset time interval, preset disconnection duration and preset total number of disconnections can be set based on big data synchronized from the cloud, that is, historical wireless disconnection data.

[0074] Compared with the wireless disconnection problem scenarios uploaded by users, the historical wireless disconnection data has a wider reference range and more reference disconnection data. Therefore, the corresponding preset acquisition time period, preset time interval, preset disconnection duration and preset total number of disconnections can more accurately view wireless disconnection events and avoid missing wireless disconnection events.

[0075] Compared with historical wireless disconnection data, the wireless disconnection problem scenarios uploaded by users are more timely. Therefore, the corresponding preset acquisition time period, preset time interval, preset disconnection duration and preset total number of disconnections can quickly respond to the wireless diagnostic environment of the current terminal device.

[0076] Step S20, filtering and parsing the initial log, outputting a target log including preset wireless disconnection data, and outputting a wireless diagnosis result according to the target log.

[0077] In order to reduce the time required to check the captured initial logs, improve the efficiency of checking and shorten the time required to output the wireless diagnosis results, this embodiment Figure 2 The data analysis module shown filters the captured initial logs to screen out interference logs that are not related to wireless diagnosis, and retains logs associated with wireless diagnosis, thereby avoiding the increase in meaningless troubleshooting time for troubleshooting interference logs and shortening the diagnosis process.

[0078] Pass the filtered logs to Figure 2 The diagnostic module shown is used for analysis to check the initial log after preliminary filtering and obtain a target log including preset wireless disconnection data. The preset wireless disconnection data is a keyword that can reflect the cause of the wireless disconnection. Therefore, the log obtained after filtering is analyzed to achieve rapid troubleshooting of the log. After obtaining the target log that can reflect the cause of the wireless disconnection, the target log is transferred to the storage module for storage, and the corresponding wireless diagnostic result is output through the application module.

[0079] The preset wireless disconnection data may be keywords such as "Disconnect Reason", "locally generated", "handleIPConfigurationLost" and the like that can reflect the wireless disconnection reason.

[0080] From the above, it can be seen that the diagnosis process of the wireless status does not require manual troubleshooting and diagnosis, and the capture of logs can be automatically triggered, which greatly improves the intelligence and efficiency of the diagnosis process.

[0081] In a feasible implementation, step S20 may include step S21:

[0082] Step S21, determining the wireless disconnection reason according to the wireless data reflected in the target log, and outputting the corresponding wireless diagnosis result according to the wireless disconnection reason, wherein the wireless diagnosis result includes the wireless disconnection reason and the wireless disconnection solution.

[0083] The diagnostic module can determine the wireless disconnection cause that currently causes the wireless connection to be disconnected based on the wireless data reflected in the target log, and after searching for a solution to the wireless disconnection problem based on the wireless disconnection cause, output the corresponding wireless diagnostic result to the application module based on the wireless disconnection cause and its corresponding wireless disconnection solution. For example, the diagnostic module confirms that the abnormal wireless disconnection is caused by the loss of IP Provision based on the wireless data reflected in the target log, and at the same time confirms that the solution to the abnormal wireless disconnection is to check the lifetime configuration of the router. At this time, the diagnostic module will output the wireless diagnostic results of the wireless disconnection cause "IP Provision lost" and the wireless disconnection solution "check router lifetime configuration", avoiding the defects of low diagnostic efficiency and low diagnostic intelligence caused by the need for troubleshooting personnel to manually confirm the wireless disconnection cause and search for wireless disconnection solutions.

[0084] In this embodiment, by obtaining a wireless disconnection event, when it is detected that the wireless disconnection event meets the preset capture conditions, a log capture operation is performed to obtain an initial log, which not only avoids the low monitoring efficiency of the wireless disconnection information that needs to be manually monitored by the troubleshooting personnel on a regular basis, improves the intelligence of the diagnosis process, but also avoids the performance overhead and resource occupation of the terminal equipment caused by the need to start log retesting in advance; the initial log is filtered and parsed, and a target log including preset wireless disconnection data is output, and the wireless diagnosis results are output according to the target log, thereby reducing the log troubleshooting time and speeding up the diagnosis efficiency of outputting the wireless diagnosis results according to the target log.

[0085] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 In step S10, the wireless diagnostic method further includes steps S14 to S18:

[0086] Step S14, determining whether the current wireless disconnection times reflected by the wireless disconnection event is a target disconnection times, wherein the target disconnection times is one less than a preset total disconnection times.

[0087] The reason for judging whether the current number of wireless disconnections reflected by the wireless disconnection event is the target number of wireless disconnections is to judge whether the log captured based on the currently acquired wireless disconnection event can accurately detect the cause of the wireless disconnection.

[0088] If the number of wireless disconnection times of the wireless disconnection event detected by the judgment module is less than the target number of disconnection times, it means that the log capture based on the wireless disconnection event will be invalid and waste log capture resources. In order to avoid excessive log resource occupation, this embodiment is configured to clear the captured logs at each preset capture time during the execution of the log capture operation, so as to ensure the timeliness of the captured logs.

[0089] Therefore, if logs are captured directly based on the wireless disconnection event after the wireless disconnection event is obtained without determining the current wireless disconnection times of the wireless disconnection event, there is a high possibility that log capture resources will be excessively wasted.

[0090] Step S15: If the current number of wireless disconnection times is the target number of wireless disconnection times, it is determined that the wireless disconnection event meets the preset capture condition.

[0091] Assuming that the preset total number of disconnections is 3 times, the target number of disconnections is 2 times. If the judgment module determines that the current number of wireless disconnections is 2 times, then the corresponding wireless disconnection event is determined to meet the preset capture conditions. At this time, capturing the log can ensure the timeliness of the capture and avoid the waste of log capture resources.

[0092] Step S16, turning on the log interaction switch, capturing logs, and detecting whether the capture time reaches the preset capture time.

[0093] After the judgment module determines that the wireless disconnection event meets the preset capture conditions, the judgment module will send the wireless disconnection event to the diagnosis module. After receiving the wireless disconnection event, the diagnosis module will turn on the detailed log switch of the message interaction with the network layer, application layer and driver layer, that is, the log interaction switch, so that the data analysis module can capture the initial log, avoiding the performance overhead and resource occupation of the terminal device caused by the conventional need to turn on the log interaction switch in advance to ensure the timeliness of log capture.

[0094] When the data analysis module starts to capture the initial log, it will also start to detect the capture time to determine whether the capture time has reached the preset capture time, so as to avoid the log storage being overfull due to too long a capture time.

[0095] Among them, the preset crawling time is set based on the maximum number of logs that the data analysis module can store.

[0096] It should be noted that this embodiment makes software modifications to the log interaction switch for the user software so that it is integrated into the user version, so that when the log corresponding to the user software needs to be captured, the log capture operation can be performed without changing the debug version, thereby reducing the risk of non-recurrence of wireless disconnection events caused by version changes.

[0097] Step S17: If the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is not detected, the captured log is cleared and the log is captured again.

[0098] If the data analysis module detects that the current capture time reaches the preset capture time, but has not detected the next wireless disconnection event that meets the preset stop condition, in order to ensure the timeliness of the logs for subsequent analysis and avoid excessive log resource usage, the logs captured at the current capture time will be cleared, and then the logs will be captured again and the capture time will be detected again.

[0099] Step S18, if the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is detected, or if the preset capture time is not reached and the next wireless disconnection event that meets the preset stop condition is detected, the log captured at the preset capture time is determined as the initial log, wherein the preset stop condition is that the next wireless disconnection number reflected by the next wireless disconnection event is the preset total disconnection number.

[0100] If the data analysis module detects that the current capture time has reached the preset capture time or detects that the current capture time has reached the preset capture time, but detects the next wireless disconnection event that meets the preset stop condition, it means that the number of detected wireless disconnections has reached the preset total number of disconnections, that is, the viewing operation of the wireless connection status at the preset acquisition time is completed. The initial log captured at the preset capture time can not only reflect the operating status of the terminal device in the current state, but also ensure the integrity of the captured initial log.

[0101] It should be noted that if the next wireless disconnection event that meets the preset stop condition is detected before the preset capture time is reached, the log capture operation can be stopped after a certain delay to ensure that the number of captured logs is sufficient for wireless diagnosis, and the certain delay time is less than or equal to the remaining capture time. For example, if the preset capture time is 5 minutes, and when the capture time is detected to be 2 minutes, the next wireless disconnection event that meets the preset stop condition is detected, then the log capture operation can be delayed for 3 minutes before notifying.

[0102] In this embodiment, by judging whether the current number of wireless disconnections reflected by the wireless disconnection event is the target number of disconnections; if the current number of wireless disconnections is the target number of disconnections, it is determined that the wireless disconnection event meets the preset capture condition, thereby ensuring the timeliness of the captured log; turning on the log interaction switch, capturing the log, and detecting whether the capture time reaches the preset capture time, thereby avoiding the phenomenon of log storage being overfull due to the capture time being too long; if the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is not detected, the captured log is cleared and the log is captured again, thereby ensuring the timeliness of the log for subsequent analysis and avoiding excessive occupation of log resources; if the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is detected, or if the preset capture time is not reached and the next wireless disconnection event that meets the preset stop condition is detected, the log captured at the preset capture time is determined as the initial log, thereby ensuring that the captured initial log can both reflect the operating status of the terminal device in the current state and ensure the integrity of the captured initial log.

[0103] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 In step S20, the wireless diagnostic method further includes steps S22 to S25:

[0104] Step S22, filtering out the logs that do not include wireless information in the initial logs to obtain wireless logs.

[0105] Among them, wireless information is information related to wireless diagnosis. By filtering out the logs that do not include wireless information in the initial logs, invalid logs are filtered out to obtain wireless logs, thereby avoiding the defects of increased troubleshooting time and reduced troubleshooting efficiency caused by wireless logs in the subsequent log troubleshooting process.

[0106] Step S23, parsing the wireless logs to obtain the wireless data reflected by each wireless log.

[0107] This embodiment transfers the wireless log to the parsing model of the diagnosis module, quickly parses the wireless log through the parsing model, and obtains the wireless data reflected by each wireless log in turn, thereby accelerating the parsing efficiency of the log parsing operation and the parsing accuracy of the output wireless data.

[0108] Step S24, determining whether each wireless data is preset wireless disconnection data.

[0109] Step S25: If yes, the wireless log to which the wireless data belongs is determined as the target log.

[0110] At this time, the terminal module determines whether the wireless data output by the analysis is the preset wireless disconnection data, thereby determining whether the wireless data can reflect the reason for the wireless disconnection, and determines the wireless log to which the wireless data is the preset wireless disconnection data as the target log, thereby realizing rapid troubleshooting and screening of the target log.

[0111] If there is wireless data that is not the preset wireless disconnection data, the wireless log to which the wireless data belongs is classified as an invalid log and deleted.

[0112] In a feasible embodiment, steps B11 to B14 may be further included before step S10:

[0113] Step B11: input the historical wireless disconnection data into a preset deep convolutional neural network for training to build a training model.

[0114] Deep convolutional neural networks are a method of continuously reducing the dimensionality of huge amounts of wireless data so that it can be trained to build parsing models.

[0115] The training model is obtained after training with historical wireless disconnection data and can be regarded as the initial parsing model of the parsing model. It is used to verify whether the initial parsing model obtained after deep learning based on historical wireless disconnection data is accurate.

[0116] Step B12: input the wireless data to be tested into the training model to obtain a reference value of the sample data.

[0117] The wireless data to be tested is used to test whether the training model is fully trained. The reference value refers to the value output after the wireless data to be tested is input into the training model and used to judge whether the training model is fully trained.

[0118] Step B13, determining whether the reference value reaches a preset reference value.

[0119] The preset benchmark value is the minimum value for judging whether the training model is complete.

[0120] Step B14: if the reference value reaches a preset benchmark value, a parsing model is constructed based on the training model, wherein the parsing model is used to parse the wireless log.

[0121] For example, the preset benchmark value is 90. At this time, the wireless data information ac to be tested is input into the training model, and the reference value obtained is 91, which exceeds the preset benchmark value, indicating that the training model at this time is complete and can be used to build an analytical model.

[0122] If the reference value obtained is 89, which does not reach the preset benchmark value, it means that the training model training at this time is not complete enough, and returns to step B12. At this time, the wireless data to be tested can be another batch of wireless data or the wireless data used before, depending on the actual situation, and this application does not limit it.

[0123] The parsing model is constructed based on the training model only when the reference value outputted finally reaches the preset benchmark value, thereby improving the parsing efficiency of the parsing module and the accuracy of the output target log.

[0124] In this embodiment, the logs that do not include wireless information in the initial logs are filtered out to obtain wireless logs; the wireless logs are parsed to obtain the wireless data reflected by each wireless log; it is determined whether each wireless data is the preset wireless disconnection data; if so, the wireless log to which the wireless data belongs is determined as the target log, thereby accelerating the troubleshooting efficiency of the log troubleshooting operation and the parsing efficiency of the parsing operation, as well as the parsing accuracy of the output wireless data.

[0125] For example, to help understand the implementation process of the wireless diagnosis method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A brief flowchart of a wireless diagnostic method is provided, specifically:

[0126] During the preset acquisition time period, the wireless connection status (i.e. wireless status) between the terminal device and the router is periodically checked at preset time intervals (i.e. Figure 5 Step S1 in the above example) determines whether the wireless status is a wireless disconnected status (i.e. Figure 5 Step S2 in the above example) obtains the wireless disconnection event to be determined (i.e., the wireless state is the wireless disconnection state) from the viewing result. Figure 5 In step S3), it is determined whether the wireless disconnection duration reflected by the wireless disconnection event to be determined is equal to or greater than the preset disconnection duration. Only the wireless disconnection event to be determined that has a wireless disconnection duration equal to or greater than the preset disconnection duration is determined to be a wireless disconnection event. That is, it is determined whether the wireless disconnection event to be determined is a wireless disconnection event (i.e. Figure 5 If yes, the log capture operation is automatically started to capture the log, and the capture time detection is started to determine whether the capture time reaches the preset capture time. If it is detected that the current capture time reaches the preset capture time, but the next wireless disconnection event that meets the preset stop condition is not detected, the log captured at the current capture time will be cleared, and then the log capture and capture time detection will be performed again until the next wireless disconnection event that meets the preset stop condition is detected, and the log captured at the preset capture time will be output as the initial log (i.e. Figure 5Step S5 in the above example) filters and analyzes the captured initial log, outputs a target log including preset wireless disconnection data, and outputs a wireless diagnosis result (i.e., Figure 5 Step S6 in the above process).

[0127] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the wireless diagnostic method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0128] Reference below Figure 6 , which shows a schematic diagram of the structure of a terminal device suitable for implementing the embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as laptop computers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Figure 6As shown, the terminal device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the terminal device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the terminal device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a terminal device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0131] The terminal device provided by the present application adopts the wireless diagnostic method in the above embodiment, which can solve the technical problems of low intelligence and diagnostic efficiency in conventional diagnostic solutions. Compared with the prior art, the beneficial effects of the terminal device provided by the present application are the same as the beneficial effects of the wireless diagnostic method provided by the above embodiment, and other technical features in the terminal device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the wireless diagnostic method in the above-mentioned embodiment.

[0135] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0136] The computer-readable storage medium may be included in the terminal device; or may exist independently without being installed in the terminal device.

[0137] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a terminal device, the terminal device: obtains a wireless disconnection event, and when it is detected that the wireless disconnection event meets a preset capture condition, performs a log capture operation to obtain an initial log; filters and analyzes the initial log, outputs a target log including preset wireless disconnection data, and outputs a wireless diagnostic result according to the target log.

[0138] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0141] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned wireless diagnostic method, and can solve the technical problems of low intelligence and diagnostic efficiency in conventional diagnostic schemes. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the wireless diagnostic method provided by the above-mentioned embodiment, and will not be repeated here.

[0142] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A wireless diagnostic method, It is characterized in that The wireless diagnostic method comprises: Acquire a wireless disconnection event, and when it is detected that the wireless disconnection event meets a preset capture condition, perform a log capture operation to obtain an initial log; The initial log is filtered and parsed, a target log including preset wireless disconnection data is output, and a wireless diagnosis result is output according to the target log.

2. The wireless diagnostic method according to claim 1, It is characterized in that The step of obtaining a wireless disconnection event comprises: In a preset acquisition time period, checking the wireless state at preset time intervals, and obtaining a wireless disconnection event to be determined when the wireless state is a wireless disconnection state; Determine whether the wireless disconnection duration reflected by the wireless disconnection event to be determined is equal to or greater than a preset disconnection duration; If so, the wireless disconnection event to be determined is determined as the wireless disconnection event.

3. The wireless diagnostic method according to claim 2, It is characterized in that Before the step of checking the wireless state at a preset time interval during the preset acquisition time period and obtaining the wireless disconnection event to be determined when the wireless state is a wireless disconnection state, the method includes: Receive a wireless disconnection problem scenario uploaded by a user, and set the preset acquisition time period, the preset time interval, the preset disconnection duration, and the preset total number of disconnections according to the disconnection data reflected by the wireless disconnection problem scenario; or, Acquire historical wireless disconnection data, and set the preset acquisition time period, the preset time interval, the preset disconnection duration, and the preset total number of disconnections according to the historical wireless disconnection data.

4. The wireless diagnostic method according to claim 3, It is characterized in that After the step of obtaining the wireless disconnection event, the following steps are included: Determining whether the current number of wireless disconnection times reflected by the wireless disconnection event is a target number of disconnection times, wherein the target number of disconnection times is one less than the preset total number of disconnection times; If the current number of wireless disconnection events is the target number of wireless disconnection events, it is determined that the wireless disconnection event meets the preset capture condition.

5. The wireless diagnostic method according to claim 4, It is characterized in that The step of executing the log crawling operation to obtain the initial log includes: Turn on the log interaction switch, capture logs, and check whether the capture time reaches the preset capture time; If the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is not detected, the captured logs are cleared and the logs are captured again; or, If the preset capture time is reached and the next wireless disconnection event that meets the preset stop condition is detected, or if the preset capture time is not reached and the next wireless disconnection event that meets the preset stop condition is detected, the log captured during the preset capture time is determined as the initial log; The preset stop condition is that the next wireless disconnection number reflected by the next wireless disconnection event is the preset total disconnection number.

6. The wireless diagnostic method according to claim 1, It is characterized in that The step of filtering and parsing the initial log and outputting a target log including preset wireless disconnection data comprises: Filter out the logs not including wireless information in the initial logs to obtain wireless logs; Parsing the wireless logs to obtain wireless data reflected by each wireless log; Determining whether each of the wireless data is the preset wireless disconnection data; If so, the wireless log to which the wireless data belongs is determined as the target log.

7. The wireless diagnostic method according to claim 6, It is characterized in that Before the step of obtaining the wireless disconnection event, the method includes: Inputting historical wireless disconnection data into a preset deep convolutional neural network for training to construct a training model; Inputting the wireless data to be tested into the training model to obtain a reference value of the sample data; Determining whether the reference value reaches a preset benchmark value; If the reference value reaches the preset benchmark value, constructing an analytical model based on the training model; The parsing model is used to parse the wireless log.

8. The wireless diagnostic method according to claim 1, It is characterized in that The step of outputting the wireless diagnosis result according to the target log comprises: Determine the wireless disconnection reason according to the wireless data reflected in the target log, and output the corresponding wireless diagnosis result according to the wireless disconnection reason; The wireless diagnosis result includes the wireless disconnection reason and the wireless disconnection solution.

9. A terminal device, It is characterized in that The terminal device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless diagnostic method according to any one of claims 1 to 8.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the wireless diagnostic method according to any one of claims 1 to 8 are implemented.