Intelligent device network configuration operation exception handling method, device, client and medium

By monitoring network failure events and generating exception logs, combined with preset processing measures, the problem of inability to deal with network failures in the existing technology is solved, and the user experience is improved.

CN116112395BActive Publication Date: 2025-07-18SHENZHEN PROSCENIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310072474.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-12
Publication Date
2025-07-18
Estimated Expiration
2043-01-12

AI Technical Summary

Technical Problem

The prior art cannot handle exceptions in a targeted manner based on the reasons for the network failure event, resulting in a reduction in user experience.

Method used

By monitoring whether a failure event occurred in the distribution network operation process, an exception log is generated, and after receiving the exception handling instruction, a preset exception handling measure is obtained for processing.

Benefits of technology

It realizes precise handling of failed events in the distribution network and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112395B_ABST
    Figure CN116112395B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, client, and medium for processing abnormal network configuration operations of intelligent devices. The method includes: obtaining a network configuration instruction for an intelligent device, executing a network configuration operation process for the intelligent device, and monitoring whether a network configuration failure event occurs during the network configuration operation process; when a network configuration failure event occurs, exiting the network configuration operation process, generating an exception log according to the problem data corresponding to the network configuration failure event; monitoring whether an exception handling instruction is received; after receiving the exception handling instruction, obtaining a preset exception handling measure corresponding to the exception log, and handling the exception according to the preset exception handling measure. The present invention generates an exception log through the problem data corresponding to the network configuration failure event, and handles the exception according to the preset exception handling measure corresponding to the exception log, achieving precise processing of the network configuration failure event and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent devices, and in particular to a method, device, client and medium for processing abnormal network configuration operations of intelligent devices. Background Art

[0002] With the rapid development of the intelligent life Internet of Things industry, more and more intelligent devices can be controlled through application programs. And to control an intelligent device through an application program, network configuration connection of the intelligent device is an essential process. Since the success or failure of network configuration is closely related to specific situations such as the user's operation method, permission settings, the frequency band and settings of the router, and the number of connections to the router, no matter which network configuration method is used, a network configuration failure event may occur during the network configuration connection process. When a network configuration failure event occurs, it is often very difficult to determine the cause of the network configuration failure event, and it is also impossible to perform targeted abnormal processing on the network configuration failure event according to the cause of the network configuration failure event, greatly reducing the user experience. Summary of the Invention

[0003] Based on this, it is necessary to provide a method, device, client and medium for processing abnormal network configuration operations of intelligent devices for the above technical problems, so as to solve problems such as being unable to perform targeted abnormal processing on the network configuration failure event according to the cause of the network configuration failure event.

[0004] An intelligent device network configuration operation abnormal processing method, which is applied to a client, and the method includes:

[0005] Obtain a network configuration instruction for an intelligent device, execute a network configuration operation process on the intelligent device, and monitor whether a network configuration failure event occurs during the network configuration operation process;

[0006] When a network configuration failure event occurs, exit the network configuration operation process, and generate an exception log according to the problem data corresponding to the network configuration failure event;

[0007] Monitor whether an exception handling instruction is received;

[0008] After receiving the exception handling instruction, obtain a preset exception handling measure corresponding to the exception log, and handle the exception according to the preset exception handling measure.

[0009] An exception handling device, including:

[0010] A network configuration monitoring module, configured to obtain a network configuration instruction for an intelligent device, execute a network configuration operation process on the intelligent device, and monitor whether a network configuration failure event occurs during the network configuration operation process;

[0011] A log generation module, configured to exit the network configuration operation process when a network configuration failure event occurs, and generate an exception log according to problem data corresponding to the network configuration failure event;

[0012] An instruction monitoring module, configured to monitor whether an exception handling instruction is received;

[0013] An exception handling module, configured to, after receiving an exception handling instruction, obtain a preset exception handling measure corresponding to the exception log, and handle the exception according to the preset exception handling measure.

[0014] A client includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned method for handling exceptions in the network configuration operation of intelligent devices are implemented.

[0015] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned method for handling exceptions in the network configuration operation of intelligent devices are implemented.

[0016] In the present invention, by performing a network configuration operation process on an intelligent device, monitoring for a network configuration failure event in the network configuration operation process, when a network configuration failure event occurs, generating an exception log according to problem data corresponding to the network configuration failure event, and after receiving an exception handling instruction, obtaining a preset exception handling measure corresponding to the exception log, and handling the exception according to the preset exception handling measure. In the above process, an exception log is generated according to the problem data corresponding to the network configuration failure event, and the exception is handled according to the preset exception handling measure corresponding to the exception log, thereby achieving precise handling of the network configuration failure event and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0018] Figure 1 It is a flowchart of a method for handling exceptions in the network configuration operation of intelligent devices according to an embodiment of the present invention.

[0019] Figure 2 It is a flowchart of step S100 of a method for handling exceptions in the network configuration operation of intelligent devices according to an embodiment of the present invention.

[0020] Figure 3 It is a flowchart of step S100 of a method for handling exceptions in the network configuration operation of intelligent devices according to another embodiment of the present invention.

[0021] Figure 4 It is a schematic flowchart of step S100 of the method for processing abnormal network configuration operations of intelligent devices in another embodiment of the present invention.

[0022] Figure 5 It is a schematic flowchart of step S150 of the method for processing abnormal network configuration operations of intelligent devices in an embodiment of the present invention.

[0023] Figure 6 It is a schematic flowchart of step S130 of the method for processing abnormal network configuration operations of intelligent devices in an embodiment of the present invention.

[0024] Figure 7 It is a schematic structural diagram of an exception handling device in an embodiment of the present invention.

[0025] Figure 8 It is a schematic structural diagram of a client in an embodiment of the present invention. Detailed implementation manners

[0026] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0027] The method for processing abnormal network configuration operations of intelligent devices provided in this embodiment can be applied to a client as shown in Figure 8 The client includes, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices.

[0028] As shown in Figure 1 In one embodiment, a method for processing abnormal network configuration operations of intelligent devices is provided, including the following steps S100 - S400:

[0029] S100, obtain a network configuration instruction for the intelligent device, execute a network configuration operation process on the intelligent device, and monitor whether a network configuration failure event occurs in the network configuration operation process. It can be understood that the intelligent device includes, but is not limited to, devices such as a sweeping robot, a smart speaker, or a smart light that need to be network - configured to connect to a preset Internet of Things platform. In one embodiment, the client executes a network configuration operation process on the intelligent device through an application program installed in the client corresponding to the intelligent device, and monitors whether a network configuration failure event occurs in the network configuration operation process.

[0030] As shown in Figure 2As shown, in one embodiment, in the step S100, the process of performing network configuration operation on the intelligent device and monitoring whether a network configuration failure event occurs in the network configuration operation process includes steps S110 - S140:

[0031] S110. Detect whether the target router is connected via a wireless local area network (WLAN) and whether the satellite positioning function is turned on. Understandably, after the client establishes a WLAN connection with the target router, the application can directly obtain the first connection information of the target router's WLAN from the client. For example, the first connection information includes, but is not limited to, the Service Set Identifier (SSID) name, password, and other information. When the satellite positioning function of the client is turned on, the application can directly obtain the current geographical location of the client from the client. At the same time, since the intelligent device needs to be configured for network access in close proximity to the client, the geographical location of the intelligent device being configured for network access is the current geographical location of the client. In one embodiment, before detecting whether the target router is connected via a WLAN, it further includes: detecting whether the WLAN connection function is turned on; if the WLAN connection function of the client is not turned on, it is determined that the target router is not connected via a WLAN; at this time, it is confirmed that a network configuration failure event has occurred. If, during the process of configuring the intelligent device for network access, the connection method with the intelligent device is the WLAN connection method (abbreviation: AP connection method), due to the WLAN connection function of the client not being turned on, the network configuration operation process cannot continue, so the network configuration operation process is exited, and an exception log is generated based on the problem data corresponding to the network configuration failure event. In this embodiment, the network configuration failure event can be "the WLAN connection function is not turned on". At this time, the corresponding exception log can include, but is not limited to, the above network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined based on the above network configuration failure event. The exception type can be obtained by extracting keywords from the network configuration failure event "the WLAN connection function is not turned on" or performing other simplification processes (such as determining with a unique code or other identifiers). If it is detected that the WLAN connection function of the client is turned on, then execute the process in step S110 to detect whether the target router is connected via a WLAN. In another embodiment, if, during the process of configuring the intelligent device for network access, the connection method with the intelligent device is the Bluetooth connection method, at this time, the fact that the WLAN connection function is not turned on will not affect the connection between the client and the intelligent device via the Bluetooth connection method and the transmission of network configuration data. Therefore, an exception log can be generated based on the problem data corresponding to the network configuration failure event, and the network configuration operation process can continue. That is, at this time, the instruction to obtain a token can continue to be sent to the authentication server, and it is detected whether the token information feedback by the authentication server is obtained within a preset time period, and then enter step S130 and its subsequent steps mentioned later.

[0032] In one embodiment, after the step S110 of detecting whether the target router is connected via a wireless local area network (WLAN) and whether the satellite positioning function is turned on, the following steps are further included:

[0033] When it is detected that the target router is not connected via the WLAN or the satellite positioning function is not turned on, a network configuration failure event is confirmed, and then the network configuration operation process is exited, and an exception log is generated according to the problem data corresponding to the network configuration failure event. It can be understood that, in this embodiment, when it is detected that the target router is not connected via the WLAN or the satellite positioning function is not turned on, if the client is not connected to the target router via the WLAN, it means that the application cannot directly obtain the first connection information of the WLAN of the target router from the client. Therefore, a network configuration failure event is confirmed. The network configuration failure event can be "WLAN not connected". At this time, the corresponding exception log can include, but is not limited to, the above-mentioned network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above-mentioned network configuration failure event. The exception type can be obtained by extracting keywords from the network configuration failure event "WLAN not connected" or performing other simplification processes (such as using a unique code or other identifiers for determination). If the satellite positioning function of the client is not turned on, it means that the application cannot directly obtain the geographical location of the client from the client and determine the geographical location of the intelligent device for which the network configuration operation is performed. Therefore, a network configuration failure event is confirmed. The network configuration failure event can be "GPS not turned on". At this time, the corresponding exception log can include, but is not limited to, the above-mentioned network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above-mentioned network configuration failure event. The exception type can be obtained by extracting keywords from "GPS not turned on" or performing other simplification processes (such as using a unique code or other identifiers for determination). In another embodiment, if it is detected that the target router is not connected via the WLAN or the satellite positioning function is not turned on, a network configuration failure event is confirmed. Since not being connected to the target router via the WLAN only affects the application's direct acquisition of the first connection information of the WLAN of the target router from the client, the user can also enter the first connection information of the target router through the interactive interface of the application in the subsequent steps. And the satellite positioning function not being turned on only affects the application's direct acquisition of the geographical location of the client from the client and determination of the geographical location of the intelligent device for which the network configuration operation is performed. The above situations do not cause the network configuration operation process to be unable to continue. Therefore, the network configuration operation process can continue, that is, at this time, the instruction to obtain a token can be sent to the authentication server, and it is detected whether the token information feedback by the authentication server is obtained within a preset time period, and then the subsequent steps S130 and its subsequent steps mentioned later are entered.

[0034] S120. When it is detected that the target router has been connected via a wireless local area network and the satellite positioning function is turned on, send a token acquisition instruction to the authentication server and detect whether the token information feedback by the authentication server is acquired within a preset time period. Understandably, the token information is used for the security verification of the client. The authentication server is used to authenticate the client and feedback the token information to the authenticated client. The authentication server includes but is not limited to an OAuth2 authentication server. In one embodiment, the authentication of the client by the authentication server includes: the client sends an authentication request containing user information to the authentication server. The user information may be the username and password authorized by the user to the client through the client, and the user information also includes its unique identifier; the authentication server feedbacks the token information to the authenticated client.

[0035] In one embodiment, in step S120, after detecting whether the token information feedback by the authentication server is acquired within a preset time period, it further includes:

[0036] When the token information feedback by the authentication server is not acquired within the preset time period, confirm that a network configuration failure event has occurred. Understandably, if the token information feedback by the authentication server is not acquired within the preset time period, the client cannot verify its own identity on the corresponding preset Internet of Things platform. Therefore, confirm that a network configuration failure event has occurred, and then exit the network configuration operation process, and generate an exception log according to the problem data corresponding to the network configuration failure event. In this case, the network configuration failure event may be "token acquisition failure". At this time, the corresponding exception log may include but is not limited to the above network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above network configuration failure event. The exception type can be obtained by extracting keywords from "token acquisition failure" or performing other simplification processes (such as determining with a unique code, etc.).

[0037] S130. If the token information feedback by the authentication server is acquired within the preset time period, confirm whether it is connected to the intelligent device. Understandably, after the client acquires the token information feedback by the authentication server, that is, after successful authentication, it can send various information for network configuration to the intelligent device. Therefore, it is necessary to confirm whether it is connected to the intelligent device.

[0038] S140. When it is confirmed that it is not connected to the intelligent device, confirm that a network configuration failure event has occurred. Understandably, if the client is not connected to the intelligent device, it means that the client cannot send various information for network configuration to the intelligent device, and the intelligent device cannot continue to execute the network configuration operation process. Therefore, confirm that a network configuration failure event has occurred.

[0039] S200. When a distribution network failure event occurs, exit the distribution network operation process and generate an exception log based on the problem data corresponding to the distribution network failure event. Understandably, the exception log includes the problem data corresponding to the distribution network failure event. For example, when it is confirmed that there is no connection with the intelligent device, it is confirmed that a distribution network failure event has occurred. In this case, the distribution network failure event can be "not connected to the intelligent device". At this time, the corresponding exception log can include but is not limited to the above distribution network failure event, the problem data corresponding to the distribution network failure event, and the exception type determined according to the above distribution network failure event. The exception type can be obtained by extracting keywords from "not connected to the intelligent device" or performing other simplification processes (such as determining with a unique code or other identifiers). In one embodiment, in step S200, after generating the exception log based on the problem data corresponding to the distribution network failure event, it further includes sending the exception log to a statistical server (the statistical server can perform statistical data separately to reduce the computing load of the client. The statistical server can be a server independent of the client or a cloud server) for the statistical server to calculate the failure rate of various distribution network failure events and store its failure rate in association with its exception type.

[0040] S300. Monitor whether an exception handling instruction is received. Understandably, the exception handling instruction can be generated by the user through the application on the client after a distribution network failure event occurs. For example, after a distribution network failure event occurs, an exception handling instruction is generated after triggering the help button in the help interface of the application displayed on the client. At this time, the client will perform exception handling on the distribution network failure event. The exception handling instruction can also be generated by the statistical server after receiving the exception log generated from the problem data corresponding to the distribution network failure event and further calculating the exception type in the exception log or the failure rate calculated by the statistical server. For example, if the failure rate of a distribution network failure event corresponding to a certain exception type reaches a preset threshold, an exception handling instruction corresponding to this exception type is generated and sent by the statistical server to the client for the client to perform exception handling on the distribution network failure event whose failure rate reaches the preset threshold.

[0041] The S400, after receiving an exception handling instruction, obtains a preset exception handling measure corresponding to the exception log, and processes the exception according to the preset exception handling measure. It can be understood that for each exception type corresponding to the exception log of different network configuration failure events, at least one preset exception handling measure is associated (the exception handling measures associated with different exception types can be set according to requirements and can be the same or different). For example: If the network configuration failure event is "not connected to the intelligent device", the preset exception handling measure corresponding to the exception type of the network configuration failure event is: check whether the wireless local area network function is turned on. If it is found that the wireless local area network function is not turned on after the check, when the application has the permission for the wireless local area network function, the application can directly turn on the wireless local area network function; when the application does not have the permission for the wireless local area network function, remind the user to turn on the wireless local area network function by the user. It can be understood that the preset exception handling measures corresponding to different exception types can be preset and stored in the preset storage area of the client in a targeted manner, or stored in the cloud server, and retrieved by the client from the cloud server. The client can directly process the network configuration failure events of different exception types according to the exception handling measures. For example: If the preset exception handling measure corresponding to the exception type of the network configuration failure event is: notify the preset processing end to handle the exception; at this time, the client directly sends the network configuration failure event and its related problem data and other notification information to the preset processing end. The preset processing end is the terminal device of the operator who can perform manual processing on the network configuration failure event. Therefore, after receiving the notification information, the preset processing end will perform manual processing on the network configuration failure event. For example: If the preset exception handling measure corresponding to the exception type of the network configuration failure event is "turn on the wireless local area network function", directly turning on the wireless local area network function is regarded as executing the preset exception handling measure.

[0042] The intelligent device network configuration operation exception handling method provided by the present invention, by executing the network configuration operation process on the intelligent device, monitors the network configuration failure event in the network configuration operation process. When a network configuration failure event occurs, generates an exception log according to the problem data corresponding to the network configuration failure event, and after receiving an exception handling instruction, obtains a preset exception handling measure corresponding to the exception log, and processes the exception according to the preset exception handling measure. In the above process, by generating an exception log according to the problem data corresponding to the network configuration failure event and processing the exception according to the preset exception handling measure corresponding to the exception log, the precise handling of the network configuration failure event is realized, and the user experience is improved.

[0043] As Figure 3 shown, in an embodiment, after the step S130, that is, after confirming whether to connect to the intelligent device, it further includes:

[0044] S150. After confirming the connection with the smart device, send the first connection information of the target router and the token information to the smart device, so that the smart device can connect to the target router according to the first connection information and the token information, and then realize the matching connection between the smart device and the preset Internet of Things platform through the target router. Understandably, the first connection information includes, but is not limited to, information such as the SSID name and password for establishing a connection with the target router. The smart device connects to the target router through the first connection information to access the Internet; the smart device verifies its identity through the token information and then matches and connects with the preset Internet of Things platform.

[0045] As Figure 4 shown, in one embodiment, in step S150, after sending the first connection information of the target router and the token information to the smart device, it further includes:

[0046] S160. Detect whether the smart device is matched and connected with the preset Internet of Things platform. Understandably, after the client sends the first connection information of the target router and the token information to the smart device, the smart device may not be matched and connected with the preset Internet of Things platform for various reasons. Therefore, after the client sends the first connection information of the target router and the token information to the smart device, it is also necessary to detect whether the smart device is matched and connected with the preset Internet of Things platform. In one embodiment, detecting whether the smart device is matched and connected with the preset Internet of Things platform includes: detecting in real time whether the smart device is matched and connected with the preset Internet of Things platform.

[0047] S170. When the smart device is not matched and connected with the preset Internet of Things platform, confirm that a network configuration failure event has occurred. Understandably, if the smart device is not matched and connected with the preset Internet of Things platform, it means that the network configuration has failed, and confirm that a network configuration failure event has occurred. In this case, the network configuration failure event can be "not connected to the preset Internet of Things platform". At this time, the corresponding exception log can include, but is not limited to, the above-mentioned network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above-mentioned network configuration failure event. The exception type can be obtained by extracting keywords from "not connected to the preset Internet of Things platform" or performing other simplification processes (such as using a unique code or other identifiers for determination).

[0048] S180. When the intelligent device is successfully matched and connected to the preset Internet of Things platform, report a successful network configuration message to the statistics server. Understandably, if the intelligent device is successfully matched and connected to the preset Internet of Things platform, it means that the network configuration is successful, and the client can report the successful network configuration message to the statistics server for the statistics server to calculate the failure rate of various network configuration failure events. After the intelligent device is successfully matched and connected to the preset Internet of Things platform, the user can remotely control the intelligent device through the client or other control devices (such as smart speakers, etc.) that can control the intelligent device through the preset Internet of Things platform.

[0049] As Figure 5 shown, in one embodiment, step S150, after confirming the connection with the intelligent device, sending the first connection information of the target router and the token information to the intelligent device includes:

[0050] S151. After confirming the connection with the intelligent device, retrieve the first connection information of the target router from the preset storage area, or obtain the first connection information of the target router entered by the user through the interaction interface. Understandably, when the client has established a wireless local area network connection with the target router, at this time, the application program can directly retrieve the first connection information of the target router from the preset storage area of the client; if the client has not established a wireless local area network connection with the target router, at this time, the user can also enter the first connection information of the target router through the interaction interface, and the user can be directly prompted to enter the first connection information of the target router.

[0051] S152. After successfully obtaining the first connection information of the target router, send the first connection information of the target router and the token information to the intelligent device. Understandably, the intelligent device connects to the target router through the first connection information to access the Internet. Therefore, after the client successfully obtains the first connection information of the target router, it is necessary to send the first connection information of the target router to the intelligent device; in addition, the intelligent device needs to authenticate itself through the token information, so the client also needs to send the token information to the intelligent device.

[0052] S153. When the first connection information of the target router is not successfully obtained, it is confirmed that a network configuration failure event has occurred. It can be understood that if the first connection information of the target router is not successfully obtained (for example, when the client has established a wireless local area network connection with the target router and the application fails to retrieve the first connection information from the preset storage area of the client, it is considered that the first connection information of the target router is not successfully obtained; or when the client has not established a wireless local area network connection with the target router and after a preset time period for prompting the user to enter the first connection information of the target router, the user's entry of the first connection information is still not detected, it is considered that the first connection information of the target router is not successfully obtained), then it is confirmed that a network configuration failure event has occurred, and then the network configuration operation process is exited, and an exception log is generated according to the problem data corresponding to the network configuration failure event. In this case, the network configuration failure event can be "no wireless local area network information obtained". At this time, the corresponding exception log can include, but is not limited to, the above-mentioned network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above-mentioned network configuration failure event. The exception type can be obtained by extracting keywords from "no wireless local area network information obtained" or performing other simplification processes (such as determining with a unique code or other identifiers).

[0053] As Figure 6 shown, in one embodiment, in step S130, the confirmation of whether to connect to the smart device includes:

[0054] S131. Detect whether to connect to other devices through a preset wireless connection method. It can be understood that the preset wireless connection method includes a wireless local area network connection (abbreviation: AP connection) method or a Bluetooth connection method. Other devices refer to other devices except the client and the target router.

[0055] S132. When connected to other devices through a preset wireless connection method, if it is confirmed that the other device is the smart device, it is confirmed that the connection to the smart device has been established. It can be understood that when the other device is the smart device, that is, the device connected to the client through the preset wireless connection method is the device for which the network configuration operation process needs to be performed (that is, the smart device), at this time, it can be confirmed that the connection to the smart device has been established through the preset wireless connection method.

[0056] S133. When not connected to other devices via a preset wireless connection method, or when already connected to other devices via a preset wireless connection method but it is confirmed that the other devices are not the intelligent device, a network configuration failure event is confirmed. It can be understood that when the other devices are not the intelligent device, that is, the device connected to the client via the preset wireless connection method is not the device for which the network configuration operation process needs to be executed. At this time, it is confirmed that there is no connection to the intelligent device, and thus it can be confirmed that a network configuration failure event has occurred. Then, the network configuration operation process is exited, and an exception log is generated according to the problem data corresponding to the network configuration failure event. In this case, the network configuration failure event can be "not connected to the correct intelligent device". The corresponding exception log can include but is not limited to the above-mentioned network configuration failure event, the problem data corresponding to the network configuration failure event, and the exception type determined according to the above-mentioned network configuration failure event. The exception type can be obtained by extracting keywords from "not connected to the correct intelligent device" or performing other simplification processes (such as determining with a unique code or other identifiers).

[0057] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0058] As Figure 7 shown, in an embodiment, an exception handling device is further provided, including:

[0059] A network configuration monitoring module 100, configured to obtain a network configuration instruction for an intelligent device, execute a network configuration operation process for the intelligent device, and monitor whether a network configuration failure event occurs in the network configuration operation process;

[0060] A log generation module 200, configured to exit the network configuration operation process when a network configuration failure event occurs, and generate an exception log according to the problem data corresponding to the network configuration failure event;

[0061] An instruction monitoring module 300, configured to monitor whether an exception handling instruction is received;

[0062] An exception handling module 400, configured to obtain a preset exception handling measure corresponding to the exception log after receiving the exception handling instruction, and handle the exception according to the preset exception handling measure.

[0063] The execution functions of the device correspond one by one to the intelligent device network configuration operation exception handling method in the above embodiments. For the specific limitations of the device, reference can be made to the limitations on the intelligent device network configuration operation exception handling method in the foregoing text, which will not be elaborated here. Each sub-module in the above device can be implemented in whole or in part by software, hardware, and their combination. Each of the above sub-modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to each of the above sub-modules.

[0064] In one embodiment, a client is further provided. The internal structure diagram of the client can be a computer device as shown in Figure 8 The client includes a processor, a memory, a network interface, and a database connected by a system bus. Among them, the processor of the client is used to provide computing and control capabilities. The memory of the client includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the client is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps of the above intelligent device network configuration operation exception handling method are implemented.

[0065] In one embodiment, a computer-readable storage medium is further provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above intelligent device network configuration operation exception handling method are implemented.

[0066] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

[0068] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for handling abnormal network configuration operations of an intelligent device, characterized in that, Applied to a client, the method includes: Obtain a network configuration instruction for an intelligent device, execute a network configuration operation process on the intelligent device, and monitor whether a network configuration failure event occurs during the network configuration operation process; When a network configuration failure event occurs, exit the network configuration operation process, and generate an exception log according to the problem data corresponding to the network configuration failure event; Monitor whether an exception handling instruction is received; After receiving the exception handling instruction, obtain a preset exception handling measure corresponding to the exception log, and handle the exception according to the preset exception handling measure; The executing a network configuration operation process on the intelligent device and monitoring whether a network configuration failure event occurs during the network configuration operation process includes: Detect whether to connect to a target router through a wireless local area network, including: detecting whether the wireless local area network connection function is turned on; if the wireless local area network connection function of the client is not turned on, it is determined that the connection to the target router through the wireless local area network fails; when the connection to the target router through the wireless local area network fails, confirm that a network configuration failure event occurs; Detect whether the satellite positioning function is turned on, and when the satellite positioning function is not turned on, confirm that a network configuration failure event occurs; When it is detected that the connection to the target router through the wireless local area network is successful and the satellite positioning function is turned on, send a token acquisition instruction to the authentication server, and detect whether the token information feedback by the authentication server is obtained within a preset time period. When the token information feedback by the authentication server is not obtained within the preset time period, confirm that a network configuration failure event occurs; If it is detected that the connection to the target router through the wireless local area network fails, obtain the first connection information of the target router entered by the user through the interaction interface of the application; If the token information feedback by the authentication server is obtained within the preset time period, confirm whether to connect to the intelligent device; After confirming the connection to the intelligent device, retrieve the first connection information of the target router from a preset storage area, or obtain the first connection information of the target router entered by the user through the interaction interface; after successfully obtaining the first connection information of the target router, send the first connection information of the target router and the token information to the intelligent device for the intelligent device to connect to the target router according to the first connection information and the token information, and then realize the matching connection between the intelligent device and a preset Internet of Things platform through the target router; when the first connection information of the target router is not successfully obtained, confirm that a network configuration failure event occurs; When it is confirmed that the connection to the intelligent device fails, confirm that a network configuration failure event occurs; Detect whether the intelligent device is matched and connected to the preset Internet of Things platform; when the intelligent device is not matched and connected to the preset Internet of Things platform, confirm that a network configuration failure event occurs; when the intelligent device is matched and connected to the preset Internet of Things platform, report a network configuration success message to the statistical server.

2. The intelligent device network configuration operation exception handling method according to claim 1, wherein The confirming whether to connect to the intelligent device includes: Detect whether to connect to other devices through a preset wireless connection method; When connected to other devices via a preset wireless connection method, if it is confirmed that the other device is the smart device, it is confirmed that the connection to the smart device has been established; When not connected to other devices via a preset wireless connection method, or when connected to other devices via a preset wireless connection method but it is confirmed that the other device is not the smart device, it is confirmed that a network configuration failure event has occurred.

3. An exception handling device, characterized in that, Including: A network configuration monitoring module for obtaining a network configuration instruction for the smart device, performing a network configuration operation process on the smart device, and monitoring whether a network configuration failure event occurs during the network configuration operation process; A log generation module for, when a network configuration failure event occurs, exiting the network configuration operation process and generating an exception log based on the problem data corresponding to the network configuration failure event; An instruction monitoring module for monitoring whether an exception handling instruction is received; An exception handling module for, after receiving an exception handling instruction, obtaining a preset exception handling measure corresponding to the exception log and handling the exception according to the preset exception handling measure; The network configuration monitoring module is further configured to detect whether the target router is connected via a wireless local area network, including: detecting whether the wireless local area network connection function is turned on; if the wireless local area network connection function of the client is not turned on, it is determined that the target router is not connected via the wireless local area network; when the target router is not connected via the wireless local area network, it is confirmed that a network configuration failure event has occurred; Detecting whether the satellite positioning function is turned on, and when the satellite positioning function is not turned on, confirming that a network configuration failure event has occurred; When it is detected that the target router is connected via the wireless local area network and the satellite positioning function is turned on, sending a token acquisition instruction to the authentication server, and detecting whether the token information fed back by the authentication server is acquired within a preset time period. When the token information fed back by the authentication server is not acquired within the preset time period, it is confirmed that a network configuration failure event has occurred; If it is detected that the target router is not connected via the wireless local area network, obtaining the first connection information of the target router entered by the user through the interaction interface of the application; If the token information fed back by the authentication server is acquired within the preset time period, it is confirmed whether the connection to the smart device is established; After confirming the connection to the smart device, retrieving the first connection information of the target router from a preset storage area, or obtaining the first connection information of the target router entered by the user through the interaction interface; after successfully obtaining the first connection information of the target router, sending the first connection information of the target router and the token information to the smart device for the smart device to connect to the target router according to the first connection information and the token information, thereby realizing the matching connection between the smart device and the preset Internet of Things platform through the target router; when the first connection information of the target router is not successfully obtained, it is confirmed that a network configuration failure event has occurred; When it is confirmed that the connection to the smart device is not established, it is confirmed that a network configuration failure event has occurred; Detect whether the intelligent device is matched and connected to the preset Internet of Things platform; when the intelligent device is not matched and connected to the preset Internet of Things platform, confirm that a network configuration failure event has occurred; when the intelligent device is matched and connected to the preset Internet of Things platform, report a successful network configuration message to the statistical server.

4. A client, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method for handling abnormal network configuration operations of the intelligent device as described in claim 1 or 2 are implemented.

5. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method for handling abnormal network configuration operations of the intelligent device as described in claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Networking fault detection method for household appliances and related device

    CN110752954A

  • Network distribution method and system for intelligent equipment

    CN111010323A

  • After-sales service method and device, electronic equipment and storage medium

    CN115222429A