Network repair method, device and intelligent gateway for intelligent devices

Through the management of the network access whitelist and historical configuration information of the smart gateway, the network connection and configuration of smart home devices are automatically restored, solving the problems of disconnection and loss of device connections and improving the user experience.

CN113691404BActive Publication Date: 2024-11-15SHENZHEN OURUIBO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110970092.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-23
Publication Date
2024-11-15
Estimated Expiration
2041-08-23

AI Technical Summary

Technical Problem

After external attacks, power grid interference or user misoperation, smart home devices may cause the connection between the device and the smart gateway to be disconnected, and the configuration data is lost, which requires the user to manually reconnect and configure, which is cumbersome and time-consuming, affecting the user experience.

Method used

By implementing the management of network access whitelist and historical configuration information in the intelligent gateway, when receiving the network access request of the device to be connected, the network access whitelist is obtained and the device information is matched, the device is allowed to access, and automatically configure it based on the historical configuration information. Implement network repair and configuration recovery of devices.

Benefits of technology

With no user's sense, the network connection between the device and the smart gateway is quickly restored and configured according to the original configuration information, which improves the user experience and reduces the complexity and time of manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113691404B_ABST
    Figure CN113691404B_ABST
Patent Text Reader

Abstract

The present application discloses a network repair method, device and intelligent gateway for smart devices, and relates to the field of Internet of Things technology. The method includes: when receiving a network access request from a device to be connected to the network, obtaining a predetermined network access whitelist; if it is determined that there is device information matching the device information of the device to be connected to the network in the network access whitelist, allowing the device to be connected to access; obtaining the historical configuration information of the device to be connected to the network, and configuring the device to be connected to the network based on the historical configuration information. In this way, the smart device that is disconnected from the smart gateway can be quickly re-added to the network corresponding to the smart gateway, and automatically restored and configured based on the original historical configuration information of the smart device, so that the network repair of the smart device can be completed without the user noticing, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and more specifically, to a network repair method, device and intelligent gateway for intelligent devices. Background Art

[0002] With the development of Internet of Things technology, in the smart home system, smart home devices can be connected to the smart gateway and added to the network corresponding to the smart gateway, thereby realizing the control automation of the smart home.

[0003] However, in actual applications, the device may be attacked by external attacks, grid interference, unexpected power outages, etc., resulting in the accidental loss of network information and configuration data stored in the device, which may cause the device to be disconnected from the smart gateway. In addition, user misoperation / misdeletion will not only cause the device to be disconnected from the smart gateway, but also delete the original configuration data of the device. At this time, if the connection between the device and the smart gateway needs to be restored, the user needs to manually reconnect and configure the faulty device, which is cumbersome, time-consuming and labor-intensive, resulting in a poor user experience. Summary of the invention

[0004] In view of this, the present application proposes a network repair method, device and intelligent gateway for smart devices.

[0005] In a first aspect, an embodiment of the present application provides a network repair method for an intelligent device, the method comprising: when receiving a network access request issued by a device to be networked, obtaining a predetermined network access whitelist, the network access request including device information of the device to be networked, the network access whitelist including device information of designated devices, the designated devices including intelligent devices that have established a connection with the intelligent gateway before receiving the network access request; if it is determined that there is device information in the network access whitelist that matches the device information of the device to be networked, allowing the device to be networked to access; obtaining historical configuration information of the device to be networked, and configuring the device to be networked based on the historical configuration information, the historical configuration information including the configuration information of the device to be networked before the intelligent gateway is disconnected from the intelligent gateway when the intelligent gateway is in a network locked state.

[0006] In the second aspect, the embodiment of the present application provides a network repair device for an intelligent device, the device comprising: a request response module, a network access module and a configuration module. The request response module is used to obtain a predetermined network access whitelist when receiving a network access request from a device to be connected to the network, the network access request includes the device information of the device to be connected to the network, the network access whitelist includes the device information of the designated device, and the designated device includes the intelligent device that has established a connection with the intelligent gateway before receiving the network access request; the network access module is used to allow the device to be connected to access if it is determined that there is device information matching the device information of the device to be connected to the network in the network access whitelist; the configuration module is used to obtain the historical configuration information of the device to be connected to the network, and configure the device to be connected to the network based on the historical configuration information, the historical configuration information includes the configuration information of the device to be connected to the network before the intelligent gateway is disconnected from the intelligent gateway when the intelligent gateway is in a network locked state.

[0007] In a third aspect, an embodiment of the present application provides an intelligent gateway, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the network repair method of the intelligent device provided in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the network repair method of the smart device provided in the first aspect.

[0009] In the solution provided by the embodiment of the present application, when a network access request is received from a device to be connected to the network, a predetermined network access whitelist is obtained, wherein the network access request includes the device information of the device to be connected to the network, and the network access whitelist includes the device information of the specified device, and the specified device includes the smart device that has established a connection with the smart gateway before receiving the network access request; if it is determined that there is device information matching the device information of the device to be connected to the network in the network access whitelist, the device to be connected to the network is allowed to access; the historical configuration information of the device to be connected to the network is obtained, and the device to be connected to the network is configured based on the historical configuration information. In this way, the smart device that is disconnected from the smart gateway can be quickly re-added to the network corresponding to the smart gateway without the user noticing, and it can be configured based on the original historical configuration information of the smart device; that is, the smart gateway automatically completes the network repair and restoration configuration of the smart device that is disconnected from the network, without the user having to manually reconnect and configure, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.

[0012] Figure 2 A schematic flow chart of a network repair method for a smart device provided in an embodiment of the present application is shown.

[0013] Figure 3 A schematic flow chart of a network repair method for a smart device provided in another embodiment of the present application is shown.

[0014] Figure 4 A schematic flow chart of a network repair method for a smart device provided in another embodiment of the present application is shown.

[0015] Figure 5 A schematic flow chart of a network repair method for a smart device provided in another embodiment of the present application is shown.

[0016] Figure 6 Shows Figure 5 The flowchart of sub-steps of step S570 in one implementation is shown.

[0017] Figure 7 A schematic flow chart of a network repair method for a smart device provided in another embodiment of the present application is shown.

[0018] Figure 8 It is a block diagram of a network repair device for a smart device provided according to an embodiment of the present application.

[0019] Fig. 9 It is a block diagram of an intelligent gateway according to an embodiment of the present application for executing a network repair method for an intelligent device according to an embodiment of the present application.

[0020] Fig.10 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a network repair method for a smart device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0022] In related technologies, devices connected to smart gateways may be subject to external attacks, grid interference, unexpected power outages, etc., resulting in the accidental loss of network information and configuration data stored in the device, which may cause the device to be disconnected from the smart gateway. In addition, user misoperation / misdeletion will not only cause the device to be disconnected from the smart gateway, but also delete the original configuration data of the device. At this time, if the connection between the device and the smart gateway needs to be restored, the user needs to manually connect and configure the device to the network, which is cumbersome, time-consuming and labor-intensive, resulting in a poor user experience.

[0023] In response to the above problems, the inventor proposes a network repair method, device and intelligent gateway for intelligent devices. When receiving a network access request from a device to be connected to the network, a predetermined network access whitelist is obtained; if it is determined that there is device information matching the device information of the device to be connected to the network in the network access whitelist, the device to be connected to the network is allowed to access; the historical configuration information of the device to be connected to the network is obtained, and the device to be connected to the network is configured based on the historical configuration information. The content is described in detail below.

[0024] The following introduces the application environment of the network repair method for smart devices provided in the embodiments of the present application.

[0025] Please refer to Figure 1 , Figure 1 A network structure diagram of an application scenario of an embodiment of the present application is shown, and the application scenario may include a network repair system 10 for smart devices, and the network repair system 10 for smart devices may include a smart gateway 100 and multiple smart devices 200, wherein the smart device 200 may be a smart control panel, a smart home device, a smart phone or a tablet computer, etc., and this embodiment does not limit this. The smart device 200 may be connected to the smart gateway 100 to join the network corresponding to the smart gateway 100, and perform data interaction with the smart gateway 100 based on the network, wherein the network corresponding to the smart gateway 100 may be a short-distance communication network, such as a ZigBee network, or a local area network or a wide area network, etc., and this embodiment does not limit this.

[0026] Please refer to Figure 2 , Figure 2 A flowchart of a network repair method for a smart device provided in an embodiment of the present application is shown below. Figure 2 The network repair method of the smart device provided in the embodiment of the present application is described in detail. The network repair method of the smart device is applied to the smart gateway and may include the following steps:

[0027] Step S210: When a network access request is received from a device to be networked, a predetermined network access whitelist is obtained, wherein the network access request includes device information of the device to be networked, and the network access whitelist includes device information of designated devices, wherein the designated devices include smart devices that have established a connection with the smart gateway before receiving the network access request.

[0028] In this embodiment, the smart device may fail and be disconnected from the smart gateway due to some external reasons, such as external attacks, grid interference, unexpected power outages, etc. Based on this, the smart device disconnected from the smart gateway may issue a network access request to request to re-establish a connection with the smart gateway and rejoin the network corresponding to the smart gateway. Therefore, when the smart gateway receives a network access request from a device to be connected to the network, it determines whether the device to be connected to the network is a smart device that has established a connection with itself through the network access whitelist. If so, the device to be connected to the network is allowed to access the network, and the network connection with the offline faulty device is automatically repaired.

[0029] Specifically, when the intelligent gateway receives a network access request from a device to be networked, a predetermined network access whitelist may be obtained to determine the network access devices that are allowed to establish a connection with the intelligent gateway when the intelligent gateway is in a whitelist network access mode. The network access whitelist includes device information of intelligent devices that have established a connection with the intelligent gateway before receiving the network access request, and the network access request includes device information of the device to be networked. The device information may be unique identification information that characterizes the identity of the intelligent device, such as a Media Access Control Address (MAC address), a Universally Unique Identifier (UUID), a Serial Number (SN), etc. This embodiment does not limit this.

[0030] There are many ways to obtain a network access whitelist. The smart gateway can obtain historical connection records, wherein the historical connection records may include device information of smart devices that have been connected to the smart gateway. Based on this, the smart gateway can generate a network access whitelist according to the device information of smart devices that have been connected to itself; the smart gateway can also obtain historical disconnection records, wherein the historical disconnection records may include device information of smart devices that have established a connection with the smart gateway but are currently disconnected from the smart gateway. Based on this, the smart gateway can also generate a network access whitelist according to the device information of smart devices that have established a connection with itself but are currently disconnected. This embodiment does not limit this.

[0031] Based on this, the device information of the device to be networked in the network access request can be matched with the device information contained in the network access whitelist. If there is device information in the network access whitelist that matches the device information of the device to be networked, it is determined that the device to be networked is an offline device disconnected from the smart gateway; if there is no device information in the network access whitelist that matches the device information of the device to be networked, it is determined that the device to be networked is a smart device that has newly requested network access.

[0032] Step S220: If it is determined that the network access whitelist contains device information that matches the device information of the device to be networked, the device to be networked is allowed to access.

[0033] It should be noted that the smart gateway may currently open the whitelist network access mode, or open the normal network access mode and the whitelist network access mode at the same time. When there is device information in the network access whitelist that matches the device information of the device to be connected, it means that the device to be connected is an offline device disconnected from the smart gateway. The smart gateway allows the device to be connected to access its corresponding network, so that the smart gateway and the device to be connected can re-establish the connection.

[0034] Step S230: Obtain historical configuration information of the device to be connected to the network, and configure the device to be connected to the network based on the historical configuration information, wherein the historical configuration information includes configuration information of the device to be connected to the network before disconnecting from the smart gateway when the smart gateway is in a network locked state.

[0035] In this embodiment, after allowing the device to be connected to the network to reconnect to the network corresponding to the intelligent gateway, the historical configuration information of the device to be connected to the network can also be obtained, and the device to be connected to the network can be configured according to the historical configuration information, so that the device to be connected to the network can be restored to the device state before being disconnected from the intelligent gateway immediately after rejoining the network corresponding to the intelligent gateway. Among them, the historical configuration information can be the configuration information of the device to be connected to the network before being disconnected from the intelligent gateway when the intelligent gateway is in a network locked state. That is to say, when the intelligent gateway is in a network locked state, the intelligent gateway can store the configuration information of the intelligent device connected at this time. If there is an intelligent device disconnected from the intelligent gateway when the intelligent gateway is in a network locked state, the stored configuration information is used as the historical configuration information of the intelligent device; the historical configuration information can include the network configuration information of the intelligent device, such as the Internet Protocol Address (IP address), and can also include the name of the intelligent device, the room it is in, the management authority, and the scene configuration parameters, etc., which are not limited in this embodiment.

[0036] For example, if the historical configuration information includes the first IP address, administrator authority, and the first scene configuration parameter; the intelligent gateway can send the historical configuration information to the device to be connected to the network. Specifically, the intelligent gateway assigns the first IP address to the device to be connected to the network, and the device to be connected to the network uses the first IP address as its own IP address; the intelligent gateway sets the operation authority of the device to be connected to the network as the administrator authority, that is, only the administrator can operate the device to be connected to the network, wherein the user can be judged as an administrator by obtaining the biometric information of the operating user (such as voiceprint features, facial features or fingerprint features, etc.) or the input account verification information (such as login password, etc.), and when the biometric information of the operating user matches the preset biometric information or the account verification information matches the preset verification information, the user is determined to be an administrator. In addition, the intelligent gateway can send the first scene configuration parameter to the device to be connected to the network, and the device to be connected to the network can configure itself according to the first scene configuration parameter to realize scene linkage control with other smart devices in the first scene, wherein the first scene can be a sleeping scene, a home scene, an audio and video scene, a going out scene, etc., and this embodiment does not limit this.

[0037] In some embodiments, the network access whitelist may also include the disconnection time of the offline device disconnected from the intelligent gateway. After determining that the device to be connected to the network is an offline device disconnected from the intelligent gateway and allowing the device to be connected to the network, it can be determined whether the disconnection time is less than the disconnection time threshold. If the disconnection time is less than the disconnection time threshold, the historical configuration information of the device to be connected to the network is obtained, and the device to be connected to the network is configured based on the historical configuration information; if the disconnection time is greater than or equal to the disconnection time threshold, it means that the user himself may want to reconfigure the device to be connected to the network. Therefore, the device to be connected to the network can be configured according to the new configuration information input by the user. If the new configuration information input by the user is not received within the specified time, a prompt message is sent to the user to prompt the user to enter the new configuration information, or prompt the user whether the device to be connected to the network needs to be configured according to the historical configuration information. Among them, the disconnection time threshold can be pre-set, such as 1 hour, and can also be adjusted according to different application scenarios. This embodiment does not limit this. In this way, if the device to be connected to the network reconnects to the smart gateway within the disconnection time threshold after being disconnected from the smart gateway, the smart gateway can configure the device to be connected to the network according to the historical configuration information, and promptly restore the device state of the device to be connected to the network before the disconnection. In addition, when the device to be connected to the network is connected to the smart gateway a long time after being disconnected from the smart gateway, it is configured according to the new configuration information input by the user, thereby ensuring that the device to be connected to the network after connecting to the network can be in a device state that meets the user's current needs, thereby improving the user experience.

[0038] In this embodiment, when the smart gateway receives a network access request from a device to be connected to the network, it obtains a predetermined network access whitelist. If it is determined that there is device information matching the device information of the device to be connected to the network in the network access whitelist, the device to be connected to the network is allowed to access, and the historical configuration information of the device to be connected to the network is obtained, and the device to be connected to the network is configured based on the historical configuration information. In this way, the smart device that is disconnected from the smart gateway can be quickly re-added to the network corresponding to the smart gateway without the user noticing, and it can be configured based on the original historical configuration information of the smart device; that is, the smart gateway automatically completes the network repair and configuration of the smart device that is disconnected from the network, without the user having to manually reconnect and configure, thereby improving the user experience.

[0039] Please refer to Figure 3 , Figure 3 A flowchart of a network repair method for a smart device provided in another embodiment of the present application is shown below. Figure 3 The network repair method of the smart device provided in the embodiment of the present application is described in detail. The network repair method of the smart device is applied to the smart gateway. Based on the previous embodiment, the following steps may be further included before step S210:

[0040] Step S310: receiving a network locking instruction for the intelligent gateway.

[0041] In actual applications, when a smart device connected to a smart gateway loses the connection with the smart gateway, that is, the smart device becomes offline, the smart gateway generally clears the configuration information of the offline smart device to prevent the configuration information of the offline smart device from occupying storage space; or, the smart device is accidentally reset due to power failure or user misoperation, which causes the smart gateway to directly delete the configuration information of the accidentally reset device. If the accidentally reset device or offline device needs to be rejoined to the network corresponding to the smart gateway, the user needs to reconfigure the offline device, which is cumbersome, time-consuming and labor-intensive.

[0042] Based on this, in this embodiment, in order to prevent the user from resetting the smart device due to misoperation, the user can send a network lock command to the smart gateway. Correspondingly, when the smart gateway receives the network lock command, the smart gateway turns on the network protection function, that is, it is in a network lock state. The smart gateway in the network lock state can lock and store the relevant configuration information of the smart device under the current network to ensure that the relevant configuration information of the smart device will not be cleared after the smart device goes offline, which is convenient for configuring the offline device that rejoins the smart gateway. Among them, the user can send the network lock command through an electronic terminal (such as a mobile phone, tablet computer and other devices), or input the network lock command for the smart gateway through a physical button / virtual button on the smart gateway, and this embodiment does not limit this.

[0043] Step S320: backing up and saving the configuration information of all the smart devices that have established a connection with the smart gateway, or setting the configuration information of the smart devices that have established a connection with the smart gateway to an undeletable state.

[0044] In some embodiments, when the smart gateway receives a network lock instruction, it enters a corresponding network lock state. At this time, the smart gateway can back up and save the configuration information of all smart devices that have established connections with the smart gateway. The backup information can be saved to the smart gateway or sent to a cloud server for backup and storage. This embodiment does not limit this.

[0045] In other embodiments, when the intelligent gateway receives the network lock instruction and enters the corresponding network lock state, the intelligent gateway may also set the read and write operation permissions of the configuration information of the intelligent device that has established a connection with the intelligent gateway to an undeletable state, wherein the user cannot delete the configuration information in the undeletable state. Furthermore, when the configuration information is in the undeletable state, the user's read and write operation restrictions on the configuration information also include the inability to modify and add.

[0046] In other embodiments, when the intelligent gateway receives the network lock instruction, it enters the corresponding network lock state, and the intelligent gateway can back up and save the configuration information of all intelligent devices that have established a connection with the intelligent gateway, and set the configuration information of the intelligent devices that have established a connection with the intelligent gateway to an undeletable state. As another embodiment, in order to avoid the amount of data occupying too much storage space, the intelligent gateway can also only back up and save the configuration information of the intelligent device currently connected to the intelligent gateway, and set the configuration information to an undeletable state.

[0047] In the embodiment of the present application, the contents of step S330 to step S350 can refer to the contents of step S210 to step S230 in the aforementioned embodiment, which will not be repeated here.

[0048] In the above embodiment, when the smart gateway receives the network lock instruction, it can ensure that the configuration information of the smart device is not arbitrarily tampered with, deleted or added by backing up and saving the configuration information of all smart devices that have established connections with itself or setting it to an undeletable state. After the offline smart device rejoins the smart gateway, the smart device can be quickly configured according to the backup and saved or the configuration information set to an undeletable state, thereby realizing the rapid restoration of the smart device to the state before it went offline without the user noticing.

[0049] Please refer to Figure 4 , Figure 4 A flowchart of a network repair method for a smart device provided in another embodiment of the present application is shown below. Figure 4 The network repair method of the smart device provided in the embodiment of the present application is described in detail. The network repair method of the smart device is applied to the smart gateway, and on the basis of the previous embodiment, it can also include the following steps:

[0050] In the embodiment of the present application, the contents of step S410 to step S420 can refer to the contents of step S310 to step S320 in the aforementioned embodiment, which will not be repeated here.

[0051] Step S430: monitor an offline event corresponding to the intelligent gateway, wherein the offline event includes a device identifier and a device connection status of the offline device.

[0052] In this embodiment, whether the smart device cannot work normally due to external attack, grid interference or unexpected power failure, or the reset of the smart device due to the user's misoperation, the smart device may be disconnected from the smart gateway and become offline. Based on this, when the smart gateway receives the network lock instruction, the smart gateway can monitor the offline event corresponding to the smart gateway in real time, wherein the offline event can include the device identification and device connection status of the offline device; the offline event corresponding to the smart gateway can be monitored by sending a data packet, and all online smart devices can send a heartbeat data packet to the smart gateway every first preset time to indicate that it is online, wherein the first preset time can be preset, such as 5 minutes, and can also be adjusted according to different application scenarios; if the smart gateway does not receive the heartbeat data packet sent by the smart device within the specified time, it is determined that the smart device is offline, and the device identification and device connection status of the offline device are used as the monitored offline event, wherein the specified time can also be preset, for example, the specified time can be the first preset time, or an integer multiple of the first preset time, such as 10 minutes, and can also be adjusted according to different application scenarios.

[0053] Step S440: Determine the network access whitelist based on the offline event, wherein the network access whitelist includes a device identifier corresponding to the offline device.

[0054] After an offline event corresponding to the smart gateway is detected, the device identifier of the offline device in the offline event is added to the network access whitelist of the smart gateway, that is, the network access whitelist can include the device identifiers corresponding to all offline devices. At the same time, the smart gateway is controlled to turn on the whitelist network access mode, so that the smart gateway verifies the network access device that issues a network access request based on the network access whitelist. It should be noted that after the smart gateway turns on the whitelist network access mode, it also supports the normal network access mode, that is, the password verification mode, which will not be described here.

[0055] Step S450: when receiving a network access request sent by a device to be networked, obtaining a network access whitelist.

[0056] Step S460: If it is determined that the network access whitelist contains device information that matches the device information of the device to be networked, the device to be networked is allowed to access.

[0057] Step S470: Obtain historical configuration information of the device to be connected to the network, and configure the device to be connected to the network based on the historical configuration information, wherein the historical configuration information includes the configuration information of the device to be connected to the network before being disconnected from the smart gateway when the smart gateway is in a network locked state.

[0058] In the embodiment of the present application, steps S450 to S470 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0059] In some embodiments, after the device to be connected is configured based on the historical configuration information, it indicates that the device to be connected has changed from an offline state to an online state and the configuration is completed. Therefore, the device identifier of the device to be connected can be deleted from the network access whitelist to achieve dynamic adjustment of the network access whitelist.

[0060] In the above embodiment, after receiving the network lock instruction, the device identification and device connection status of the monitored offline device are added to the network access whitelist, so that when a network access request of the device to be connected is received, it can be quickly determined whether to allow the device to be connected to access based on the device identification of the device to be connected and the device identification in the network access whitelist, thereby further improving the response speed of the intelligent gateway to the network access request, thereby improving the user experience.

[0061] Please refer to Figure 5 , Figure 5 A flowchart of a network repair method for a smart device provided in another embodiment of the present application is shown below. Figure 5The network repair method of the smart device provided in the embodiment of the present application is described in detail. The network repair method of the smart device is applied to the smart gateway, and on the basis of the previous embodiment, it can also include the following steps:

[0062] In the embodiment of the present application, step S510 to step S520 can refer to the contents of step S310 to step S320 in the aforementioned embodiment, which will not be repeated here.

[0063] Step S530: Add the device identifications of all smart devices that have established connections with the smart gateway to the network access whitelist.

[0064] Step S540: Obtain the device connection status between each smart device among all the smart devices and the smart gateway.

[0065] Step S550: Add the device connection status between each smart device and the smart gateway to the network access whitelist.

[0066] In this embodiment, after the smart gateway receives the network lock instruction, the device identification of all smart devices that have established a connection with the smart gateway can be added to the network access whitelist, wherein the smart gateway can record the device identification of all smart devices that have been connected to itself, and all smart devices include smart devices that are disconnected from the smart gateway (i.e., offline devices) and smart devices that are connected to the smart gateway (i.e., online devices); and the device connection status of each smart device in all smart devices and the smart gateway can also be obtained, and the device connection status of each smart device and the smart gateway is added to the network access whitelist. Therefore, the network access whitelist contains the device identification of offline devices and online devices that have been connected to the smart gateway, as well as the device connection status of each smart device.

[0067] In some embodiments, after the device connection status of each smart device and the smart gateway is added to the network access whitelist, the connection status between the smart device added to the network access whitelist and the smart gateway may also change. Therefore, the smart gateway can monitor the device connection status of each smart device in the network access whitelist in real time, and update the device connection status corresponding to the device identifier of the smart device whose device connection status has changed in the network access whitelist. Specifically, the smart gateway can monitor the offline events corresponding to the smart gateway, wherein the offline events include the device identifier and the device connection status; based on the offline events, the device connection status corresponding to the device identifier in the network access whitelist is updated, that is, the real-time update of the device connection status of each smart device in the network access whitelist is realized.

[0068] Step S560: When a network access request is received from a device to be networked, a network access whitelist is obtained, wherein the network access request includes device information of the device to be networked, and the network access whitelist includes device information of designated devices, wherein the designated devices include smart devices that have established a connection with the smart gateway before receiving the network access request.

[0069] In the embodiment of the present application, step S560 can refer to the content of the aforementioned embodiment and will not be repeated here.

[0070] Step S570: If it is determined that the network access whitelist contains device information that matches the device information of the device to be networked, the device to be networked is allowed to access.

[0071] In some embodiments, see Figure 6 Step S570 may specifically include the following steps:

[0072] Step S571: determining a target whitelist from the network access whitelist, wherein the target whitelist includes device information of smart devices that are disconnected from the smart gateway when the smart gateway is in a network locked state.

[0073] In this embodiment, since the network access whitelist contains the device identifications of both offline devices and online devices, in order to quickly determine whether the device to be connected to the network is an offline device that has established a connection with the smart gateway, after obtaining the network access whitelist, the target whitelist in the network access whitelist can be obtained first, where the target whitelist is the device information of the smart devices that are disconnected from the smart gateway when the smart gateway is in the network locked state.

[0074] Step S572: If the target whitelist contains device information that matches the device information of the device to be connected to the network, it is determined that the network access whitelist contains device information that matches the device information of the device to be connected to the network.

[0075] Based on this, after obtaining the target whitelist, the device information of the device to be connected in the network access request is matched with the device information contained in the target whitelist. If there is device information matching the device information of the device to be connected in the target whitelist, it can be determined that the device to be connected is an offline device disconnected from the smart gateway; if there is no device information matching the device information of the device to be connected in the target whitelist, it is determined that there is no device information matching the device information of the device to be connected in the network access whitelist, and then it is determined that the device to be connected is a smart device that has newly requested network access.

[0076] In the embodiment of the present application, step S580 can refer to the content of step S230 in the aforementioned embodiment, which will not be repeated here.

[0077] In some embodiments, after the smart device is disconnected from the smart gateway and powered on again, the smart device can continuously send network access requests to the smart gateway to re-establish a connection with the smart gateway so that the smart gateway can re-add the offline device to the network. Therefore, if the smart gateway does not receive a network access request sent by the offline device within the second preset time, the offline device is regarded as a faulty device; and a prompt message is output to prompt the user to debug the faulty device. Among them, the second preset time can be pre-set, such as 5 minutes, and can also be adjusted according to different application scenarios, which is not limited in this embodiment; the faulty device can be caused by hardware damage of the smart device, or it can be caused by external power failure or failure to connect to the power supply, etc. The prompt message can be used to prompt the user to check and debug the faulty device, so that the user can check the cause of the faulty device and debug the faulty device in time; the prompt message can prompt the user with management authority through the mobile terminal, or it can remind the user through the smart control panel; the prompt method can be voice, message, etc., which is not limited here.

[0078] In this embodiment, after receiving the network lock instruction, the smart gateway adds the device identification of all smart devices that have established a connection with the smart gateway and the device connection status corresponding to each smart device to the network access whitelist. In this way, the network access whitelist can include more comprehensive device information of smart devices that have been connected to the smart gateway; and when no network access request is received from an offline device in the network access whitelist within the second preset time, the user can be prompted to check the offline device, so as to timely find out whether the offline device is a faulty device and realize timely repair of the faulty device.

[0079] Please refer to Figure 7 , Figure 7 A flowchart of a network repair method for a smart device provided in another embodiment of the present application is shown below. Figure 7 The network repair method of the smart device provided in the embodiment of the present application is described in detail. The network repair method of the smart device is applied to the smart gateway and may include the following steps:

[0080] In the embodiment of the present application, step S610 may refer to the content of step S560 in the aforementioned embodiment, which will not be repeated here.

[0081] Step S620: If it is determined that there is no device information matching the device information of the device to be networked in the network access whitelist, the device to be networked is treated as a new device, and verification information of the new device is obtained.

[0082] In this embodiment, after obtaining a predetermined network access whitelist, the device information of the device to be connected in the network access request can be matched with the device information included in the network access whitelist. If it is determined that there is no device information matching the device information of the device to be connected in the network access whitelist, the device to be connected is treated as a new device. In other words, the device to be connected has not been connected to the smart gateway before, that is, it has not joined the network corresponding to the smart gateway. Therefore, after receiving the network access request of the new device, the verification information included in the network access request of the new device can be obtained, and the new device can be verified for network access based on the verification information. The verification information can be a login password.

[0083] Step S630: When it is determined that the authentication information of the new device matches the authentication information pre-stored in the intelligent gateway, the new device is allowed to access.

[0084] After obtaining the verification information of the new device, the smart gateway can match the verification information of the new device with its own pre-stored verification information. If they match, it means that the network access verification of the new device has passed and the new device is allowed to access. If they do not match, it means that the network access verification of the new device has failed and the new device is not allowed to access. A prompt message can be sent to the new device, where the prompt message is used to prompt the user that the current verification information is incorrect and the verification information needs to be re-entered.

[0085] Step S640: Add the device information of the new device to the network access whitelist, and back up and save the configuration information of the new device or set it to an undeletable state.

[0086] In this embodiment, after allowing a new device to access, the intelligent gateway can add the device information of the new device to the network access whitelist, and at the same time back up and save the configuration information of the new device or set it to an undeletable state, that is, ensure timely updating of the device information in the network access whitelist.

[0087] In the above embodiment, the device information of the new device can be added to the network access whitelist, and the configuration information of the new device can be backed up and saved or set to an undeletable state, thereby realizing timely updating of the device information in the network access whitelist and timely backup of the configuration information of the new device, thereby improving the accuracy of the subsequent network repair and configuration of the smart device disconnected from the network automatically completed by the smart gateway according to the network access whitelist.

[0088] Please refer to Figure 8 , which shows a structural block diagram of a network repair device 700 for a smart device provided in an embodiment of the present application. The device 700 may include: a request response module 710, a network access module 720 and a configuration module 730.

[0089] The request response module 710 is used to obtain a predetermined network access whitelist when receiving a network access request issued by a device to be networked, wherein the network access request includes device information of the device to be networked, and the network access whitelist includes device information of a specified device, and the specified device includes a smart device that has established a connection with the smart gateway before receiving the network access request.

[0090] The network access module 720 is used to allow the network access device to access if it is determined that there is device information matching the device information of the network access device in the network access whitelist.

[0091] The configuration module 730 is used to obtain the historical configuration information of the device to be connected to the network, and configure the device to be connected to the network based on the historical configuration information. The historical configuration information includes the configuration information of the device to be connected to the network before it is disconnected from the smart gateway when the smart gateway is in a network locked state.

[0092] In some embodiments, the network repair device 700 of the smart device may include: an instruction receiving module and an information locking module. The instruction receiving module may be used to receive a network locking instruction for the smart gateway before obtaining a predetermined network access whitelist when receiving a network access request from a device to be connected to the network. The information locking module may be used to back up and save the configuration information of all smart devices that have established a connection with the smart gateway, or to set the configuration information of smart devices that have established a connection with the smart gateway to an undeletable state.

[0093] In this manner, the network repair device 700 of the smart device may include: a first monitoring module and a first determination module. The first monitoring module may be used to monitor an offline event corresponding to the smart gateway after receiving a network lock instruction for the smart gateway, wherein the offline event includes a device identifier and a device connection status of the offline device. The first determination module may be used to determine the network access whitelist based on the offline event, wherein the network access whitelist includes a device identifier corresponding to the offline device.

[0094] In some implementations, the network repair apparatus 700 of the smart device may include: a deletion module. The deletion module may be used to delete the device identifier of the device to be networked from the network access whitelist after configuring the device to be networked based on the historical configuration information.

[0095] In other embodiments, the device information in the network access whitelist includes a device identifier and a device connection status, and the network repair device 700 for the smart device may include: an identifier adding module, a status acquisition module, and an adding module. Among them, the identifier adding module can be used to add the device identifiers of all smart devices that have established connections with the smart gateway to the network access whitelist after receiving the network lock instruction for the smart gateway. The status acquisition module can be used to obtain the device connection status of each smart device among all the smart devices and the smart gateway. The adding module can be used to add the device connection status of each smart device and the smart gateway to the network access whitelist.

[0096] In this manner, the network repair device 700 of the smart device may include: a second monitoring module and an updating module. The second monitoring module may be used to monitor an offline event corresponding to the smart gateway after adding the device connection status of each smart device to the network access whitelist, wherein the offline event includes a device identifier and a device connection status. The updating module may be used to update the device connection status corresponding to the device identifier in the network access whitelist based on the offline event.

[0097] In this manner, the network access module 720 may include: a list acquisition unit and a matching unit. The list acquisition unit may be used to determine a target whitelist from the network access whitelist, wherein the target whitelist includes device information of smart devices that are disconnected from the smart gateway when the smart gateway is in a network locked state. The matching unit may be used to determine that there is device information in the network access whitelist that matches the device information of the device to be accessed if there is device information in the target whitelist that matches the device information of the device to be accessed.

[0098] In some embodiments, the network repair device 700 of the smart device may include: an information matching module and a device adding module. Among them, the information matching module can be used to, when receiving a network access request from a device to be connected to the network, after obtaining a predetermined network access whitelist, if it is determined that there is no device information matching the device information of the device to be connected to the network in the network access whitelist, then the device to be connected to the network is treated as a new device and the verification information of the new device is obtained; when it is determined that the verification information of the new device matches the verification information pre-stored in the smart gateway, the new device is allowed to access. The device adding module can be used to add the device information of the new device to the network access whitelist, and back up and save the configuration information of the new device or set it to an undeletable state.

[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0100] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0101] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0102] The following is an explanation of an intelligent gateway provided by the present application with reference to the figures.

[0103] Reference Fig. 9 , Fig. 9 A structural block diagram of an intelligent gateway 800 provided in an embodiment of the present application is shown. The network repair method of the intelligent device provided in the embodiment of the present application can be executed by the intelligent gateway 800.

[0104] The intelligent gateway 800 in the embodiment of the present application may include only one or more of the following components: a processor 801, a memory 802, and one or more applications, wherein the one or more applications may be stored in the memory 802 and configured to be executed by one or more processors 801, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0105] The processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect the various parts of the entire intelligent gateway 800, and executes various functions and processes data of the intelligent gateway 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 802, and calling data stored in the memory 802. Optionally, the processor 801 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 801 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem can also be integrated into the processor 801 and implemented separately through a communication chip.

[0106] The memory 802 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). The memory 802 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the intelligent gateway 800 during use (such as the above-mentioned historical configuration information and a network access whitelist), etc.

[0107] In other embodiments, the intelligent gateway 800 may further include a physical button 803. The physical button 803 may be used to adjust the working state of the intelligent gateway 800, and a network lock instruction for the intelligent gateway 800 may be input through the physical button 803, wherein the network lock instruction may be input by pressing the physical button 803 once or multiple times, and this embodiment does not limit this. After the intelligent gateway 800 receives the network lock instruction input through the physical button 803, it switches to the network lock state, at which time the memory 802 locks and stores the relevant configuration information of the intelligent device under the current network.

[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0109] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.

[0110] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0111] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0112] The computer readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 900 has storage space for program code 910 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A network repair method for an intelligent device, characterized in that: Applied to an intelligent gateway, the method comprises: Receiving a network locking instruction for the intelligent gateway; Backing up and saving the configuration information of all smart devices that have established a connection with the smart gateway, and setting the configuration information of the smart devices that have established a connection with the smart gateway to a non-deletable state, a non-modifiable state, and a non-addable state; When receiving a network access request from a device to be networked, obtaining a predetermined network access whitelist, wherein the network access request includes device information of the device to be networked, and the network access whitelist includes device information of a designated device, wherein the designated device includes a smart device that has established a connection with the smart gateway before receiving the network access request; If it is determined that the network access whitelist contains device information that matches the device information of the device to be networked, then the device to be networked is allowed to access; If the disconnection time of the device to be connected to the network and the intelligent gateway is less than the disconnection time threshold, the historical configuration information of the device to be connected to the network is obtained, and the device to be connected to the network is configured based on the historical configuration information, wherein the historical configuration information includes the configuration information of the device to be connected to the network before the intelligent gateway is disconnected from the intelligent gateway when the intelligent gateway is in a network locked state, and the configuration information at least includes the name of the intelligent device, the room it is in, the management authority, and the scene configuration parameters. The device to be connected to the network after being configured based on the scene configuration parameters can realize scene linkage with other intelligent devices; If the disconnection time between the device to be connected to the network and the intelligent gateway is greater than or equal to the disconnection time threshold, and new configuration information is received within the specified time, the device to be connected to the network is configured according to the new configuration information; If the disconnection time between the device to be connected to the network and the intelligent gateway is greater than or equal to the disconnection time threshold, and no new configuration information is received within the specified time, a prompt message is output to prompt the user to input new configuration information or to prompt the user whether to configure the device to be connected to the network according to the historical configuration information; If it is determined that there is no device information matching the device information of the device to be networked in the network access whitelist, the device to be networked is treated as a new device, and verification information of the new device is obtained; When it is determined that the authentication information of the new device matches the authentication information pre-stored in the intelligent gateway, allowing the new device to access; The device information of the new device is added to the network access whitelist, and the configuration information of the new device is backed up and saved or set to an undeletable state.

2. The method according to claim 1, characterized in that After receiving the network locking instruction for the intelligent gateway, the method further includes: Monitoring an offline event corresponding to the intelligent gateway, wherein the offline event includes a device identifier and a device connection status of the offline device; The network access whitelist is determined based on the offline event, wherein the network access whitelist includes a device identifier corresponding to the offline device.

3. The method according to claim 2, characterized in that After configuring the device to be networked based on the historical configuration information, the method further includes: The device identification of the device to be networked is deleted from the network access whitelist.

4. The method according to claim 1, characterized in that: The device information in the network access whitelist includes a device identifier and a device connection status. After receiving a network lock instruction for the smart gateway, the method further includes: Add the device identifications of all smart devices that have established connections with the smart gateway to the network access whitelist; Obtaining a device connection status between each smart device among all the smart devices and the smart gateway; The device connection status of each smart device and the smart gateway is added to the network access whitelist.

5. The method according to claim 4, characterized in that After adding the device connection status of each smart device and the smart gateway to the network access whitelist, the method further includes: Monitoring an offline event corresponding to the intelligent gateway, wherein the offline event includes a device identifier and a device connection status; The device connection status corresponding to the device identifier in the network access whitelist is updated based on the offline event.

6. The method according to claim 4, characterized in that The determining that there is device information in the network access whitelist that matches the device information of the device to be networked includes: Determine a target whitelist from the network access whitelist, wherein the target whitelist includes device information of smart devices that are disconnected from the smart gateway when the smart gateway is in a network locked state; If the target whitelist contains device information that matches the device information of the device to be networked, it is determined that the network access whitelist contains device information that matches the device information of the device to be networked.

7. A network repair device for an intelligent device, characterized in that: Applied to an intelligent gateway, the device comprises: An instruction receiving module, used for receiving a network locking instruction for the intelligent gateway; An information locking module, used to back up and save the configuration information of all smart devices that have established a connection with the smart gateway, and to set the configuration information of the smart devices that have established a connection with the smart gateway to a non-deletable state, a non-modifiable state, and a non-addable state; A request response module, configured to obtain a predetermined network access whitelist when receiving a network access request from a device to be networked, wherein the network access request includes device information of the device to be networked, and the network access whitelist includes device information of a designated device, wherein the designated device includes a smart device that has established a connection with the smart gateway before receiving the network access request; A network access module, configured to allow the device to access the network if it is determined that the device information matching the device information of the device to be accessed exists in the network access whitelist; a configuration module, for obtaining historical configuration information of the device to be connected to the network if the disconnection time of the device to be connected to the network is less than a disconnection time threshold, and configuring the device to be connected to the network based on the historical configuration information, wherein the historical configuration information includes the configuration information of the device to be connected to the network before the device to be connected to the network is disconnected from the smart gateway when the smart gateway is in a network locked state, and the configuration information at least includes the name of the smart device, the room it is in, the management authority, and the scene configuration parameters, and the device to be connected to the network after being configured based on the scene configuration parameters can realize scene linkage with other smart devices; if the disconnection time of the device to be connected to the network is greater than or equal to the disconnection time threshold, and new configuration information is received within a specified time, the device to be connected to the network is configured according to the new configuration information; The device to be connected to the network is configured; if the disconnection time of the device to be connected to the network and the intelligent gateway is greater than or equal to the disconnection time threshold, and no new configuration information is received within the specified time, a prompt message is output to prompt the user to input new configuration information or prompt the user whether to configure the device to be connected to the network according to the historical configuration information; if it is determined that there is no device information matching the device information of the device to be connected to the network in the network access whitelist, the device to be connected to the network is treated as a new device and the verification information of the new device is obtained; when it is determined that the verification information of the new device matches the verification information pre-stored in the intelligent gateway, the new device is allowed to access; the device information of the new device is added to the network access whitelist, and the configuration information of the new device is backed up and saved or set to an undeletable state.

8. An intelligent gateway, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 6.