Data recovery method and device, smart home system and storage medium

By setting tenant mode in the smart home system, backing up and restoring the device configuration, the problem of smart home devices need to be redistributed when replacing tenants in the rental house, achieving rapid recovery and information security effects.

CN119906636APending Publication Date: 2025-04-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411905562.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

When replacing tenants for rental houses, smart home devices need to be redistributed, resulting in complex and inconvenient operation.

Method used

Provides a data recovery method to avoid reconfiguring network configuration information by setting tenant mode in a smart home system, backing up the distribution network configuration information of the home host and sub-device, and downloading and restoring these configurations from the server when replacing tenants.

Benefits of technology

It realizes the rapid recovery of smart home devices when replacing tenants, eliminating complex distribution network operations, and respecting the privacy and information security of tenants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906636A_ABST
    Figure CN119906636A_ABST
Patent Text Reader

Abstract

The invention relates to a data recovery method and device, a smart home system and a storage medium. The data recovery method applied to the home host comprises the steps that in response to a mode setting instruction, a tenant mode is started, target data are backed up to a server, and the target data comprise configuration information after network distribution of the home host and sub-devices and do not comprise user use data; and in response to a data recovery instruction, downloading the target data from the server and issuing the target data to the corresponding sub-equipment, so that the home host and the sub-equipment are recovered to a state corresponding to the target data. According to the method, the target data is backed up in the tenant mode, when the house is replaced by the tenant, the home host and the sub-equipment can be quickly recovered to the state corresponding to the target data, network re-distribution is not needed, tenant use data cannot be stored, and the privacy and information security of the tenant cannot be respected; the problem that in the prior art, data are reset when rental houses replace tenants, so that intelligent home equipment needs to be subjected to network distribution again is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a data recovery method, device, smart home system and storage medium. Background Art

[0002] With the increasing popularity of the Internet of Things, smart homes have been widely used, and the rental market has a wide demand for whole-house intelligence. When a house changes tenants, there is almost no scenario of handing over IoT (Internet of Things) homes between tenants. Moreover, since whole-house intelligence involves user usage data, the data is generally reset before the IoT home is delivered to the new tenant, which requires the subsequent re-networking of all devices, which is complicated and inconvenient. Summary of the invention

[0003] The present application provides a data recovery method, device, smart home system and storage medium, so as to at least solve the problem in the prior art that when a rental house changes tenants, data is reset, resulting in the need to re-configure the network for smart home devices.

[0004] In a first aspect, the present application provides a data recovery method, which is applied to a home host in a smart home system, comprising:

[0005] In response to the mode setting instruction, the tenant mode is turned on and the target data is backed up to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include the user usage data;

[0006] In response to the data recovery instruction, the target data is downloaded from the server and sent to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0007] Optionally, in response to the mode setting instruction, starting the tenant mode and backing up the target data to the server includes:

[0008] In response to the mode setting instruction, collecting the target data and uploading the target data to the server;

[0009] Notify all sub-devices to enter tenant mode, and send data recovery trigger identifiers to all sub-devices, so that the sub-devices write the data recovery trigger identifiers into configuration files that will not be reset;

[0010] When the write completion messages returned by all the sub-devices are received, a tenant mode start success message is reported to the server and the user terminal.

[0011] Optionally, in response to the mode setting instruction, collecting the target data and uploading the target data to the server includes:

[0012] Receiving a mode setting instruction sent by the user terminal;

[0013] When a confirmation operation is detected, a tenant mode password is generated according to a preset rule and sent to the user terminal, so that the user terminal outputs the tenant mode password and reminds the user to remember the password;

[0014] The tenant mode password sent by the user terminal is received, and after the password is verified, the target data is collected and uploaded to the server.

[0015] Optionally, in response to the data recovery instruction, downloading the target data from the server and sending the target data to the corresponding sub-device includes:

[0016] In response to the data recovery instruction, downloading the target data from the server;

[0017] Restoring to a corresponding configuration according to the target data;

[0018] Broadcasting a data recovery trigger identifier to enable a sub-device that receives the data recovery trigger identifier to enter a data recovery mode;

[0019] Broadcasting communication information so that the sub-devices receiving the communication information establish a communication connection with the home host according to the communication information;

[0020] Sending the device data in the target data to the corresponding sub-devices respectively through the communication connection, so that the sub-devices are restored to the corresponding states according to their own device data;

[0021] When the data recovery completion message returned by all the sub-devices is received, a data recovery success message is reported to the server and the user terminal.

[0022] Optionally, in response to the data recovery instruction, downloading the target data from the server includes:

[0023] Receiving a data recovery instruction sent by the user terminal;

[0024] Sending a password verification request to the user terminal;

[0025] After receiving the tenant mode password sent by the user terminal, if the password verification is passed, enter the data recovery mode to download the target data from the server.

[0026] Optionally, in the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system, and data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

[0027] In a second aspect, the present application provides a data recovery method, which is applied to a user terminal in a smart home system, comprising:

[0028] Sending a mode setting instruction to the home host to turn on the tenant mode and enable the home host to back up target data to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include user usage data;

[0029] After the lease period ends, a data recovery instruction is sent to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0030] Optionally, sending a mode setting instruction to the home host to enable the tenant mode and enable the home host to back up the target data to the server includes:

[0031] After establishing a communication connection with the home host, sending a mode setting instruction to the home host;

[0032] Receiving the tenant mode password sent by the home host, outputting the tenant mode password and reminding the user to remember the password;

[0033] After obtaining the tenant mode password input by the user, the password is sent to the home host, so that the home host collects the target data and uploads the target data to the server after the password verification is passed;

[0034] A tenant mode activation success message is received from the home host. In the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system. Data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

[0035] Optionally, after the lease expires, sending a data recovery instruction to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data, including:

[0036] Receive the lease end instruction;

[0037] Sending the data recovery instruction to the home host;

[0038] Receiving a password verification request sent by the home host;

[0039] After obtaining the tenant mode password input by the user, the password is sent to the home host for verification, so that the home host enters the data recovery mode and downloads the target data from the server for data recovery after the password verification is passed;

[0040] Receive a data recovery success message sent by the home host.

[0041] In a third aspect, the present application provides a data recovery device, which is applied to a home host in a smart home system, comprising:

[0042] A mode setting module, for responding to a mode setting instruction, turning on the tenant mode and backing up target data to a server, wherein the target data includes configuration information of the home host and sub-device after network configuration and does not include user usage data;

[0043] The data recovery module is used to respond to the data recovery instruction, download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0044] In a fourth aspect, the present application provides a data recovery device, which is applied to a user terminal in a smart home system, comprising:

[0045] A first sending module is used to send a mode setting instruction to the home host to turn on the tenant mode and enable the home host to back up target data to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include user usage data;

[0046] The second sending module is used to send a data recovery instruction to the home host after the lease period ends, so as to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0047] In a fifth aspect, the present application provides a smart home system, comprising: a server, a user terminal, a home host and multiple sub-devices, the home host comprising the data recovery device applied to the home host as described in an embodiment of the present application, and the user terminal comprising the data recovery device applied to the user terminal as described in an embodiment of the present application.

[0048] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data recovery method applied to a home host as described in an embodiment of the present application or the data recovery method applied to a user terminal as described in an embodiment of the present application is implemented.

[0049] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0050] The data recovery method provided in the embodiment of the present application sets a tenant mode for the smart home system, and backs up the target data of the smart home system through the tenant mode. When the tenant of the house is changed, regardless of whether the home host and the sub-device are reset, the home host and the sub-device can be quickly restored to the state corresponding to the target data, that is, the state with only the configuration information after network configuration and no user usage data, without the need for re-network configuration, eliminating the complicated network configuration operation, and will not save the tenant's usage data, respecting the tenant's privacy and information security, and solving the problem in the prior art that the smart home device needs to be re-networked due to resetting data when the tenant of the rental house is changed, and meeting the whole house smart information security and business needs when the tenant is changed. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0053] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0054] Figure 1 It is a flowchart of a data recovery method applied to a home host provided by an embodiment of the present application;

[0055] Figure 2 is a flow chart of a data recovery method applied to a user terminal provided in an embodiment of the present application;

[0056] Figure 3 It is an interactive schematic diagram of setting and starting the tenant mode provided in an embodiment of the present application;

[0057] Figure 4 This is an interactive diagram of executing tenant mode data recovery provided by an embodiment of the present application;

[0058] Figure 5 is a structural block diagram of a data recovery device applied to a home host provided by an embodiment of the present application;

[0059] Figure 6 is a structural block diagram of a data recovery device applied to a user terminal provided in an embodiment of the present application;

[0060] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0062] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0063] The smart home system includes: server, user terminal, home host and multiple sub-devices. The home host is a whole-house smart connection hub and data center device with the ability to connect various protocol devices and local storage computing capabilities. Users can issue control instructions to the home host through the user terminal, and the home host controls and manages the sub-devices in the smart home system. The user terminal is installed with an application for controlling the smart home system. Both the user terminal and the home host can communicate with the server, and the user terminal and the home host can communicate through the local area network. Sub-devices are smart home devices, such as air conditioners, air purifiers, fans, kitchen appliances, etc. Sub-devices can be equipped with WiFi and Bluetooth, support WiFi UDP, TCP, HTTP, Bluetooth BLE, Mesh and other protocols, and can transmit a certain amount of data.

[0064] In order to solve the technical problem in the prior art that data is reset when a rental house changes tenants, resulting in the need to re-configure the network for smart home devices, the present application provides a data recovery method, which is described below from the perspectives of a home host and a user terminal.

[0065] Figure 1 is a flow chart of a data recovery method provided by an embodiment of the present application, which is applied to a home host in a smart home system, such as Figure 1 As shown, the method comprises the following steps:

[0066] S101, in response to a mode setting instruction, turning on the tenant mode and backing up target data to a server, wherein the target data includes configuration information of the home host and sub-devices after network configuration and does not include user usage data.

[0067] S102, in response to a data recovery instruction, downloading the target data from the server and sending the target data to a corresponding sub-device, so that the home host and the sub-device are restored to a state corresponding to the target data.

[0068] The mode setting instruction is used to instruct the home host to set and enable the tenant mode. After enabling the tenant mode, the target data of the smart home system can be backed up to the server, and the target data serves as the basis for subsequent data recovery of the smart home system. The landlord can send the mode setting instruction to the home host through his user terminal.

[0069] The data recovery instruction is used to instruct the home host to recover the data. When the tenant's lease ends, the landlord can send a data recovery instruction to the home host through his user terminal.

[0070] The target data includes the configuration information of the home host and sub-devices after network configuration and does not include user usage data. User usage data refers to the specific records of the user's use of each sub-device. For example, tenant A uses the bedroom air conditioner for heating from 9:00 to 12:00 on December 1st and the target temperature is 25°C. Exemplarily, the target data includes: the program version and network configuration information of the home host, IoT home, room list, device list, scene list, etc. Among them, the device list includes: device attribute information, device personalized configuration and device network configuration information. The device attribute information includes the device name, model, MAC address, function, etc. The device personalized configuration includes general configurations such as timing (i.e., functional configurations that may be used by different users). The device network configuration information includes the communication method, communication address, communication protocol, communication key, etc. for establishing a connection with the home host. The scene list refers to the scene configuration that may be used by different users, which can include automated scenes and manual scenes. The manual scene means that the set scene needs to be manually triggered by the user, and the automated scene means that the scene is automatically triggered when the preset conditions are met to perform the corresponding action.

[0071] That is to say, if the home host and sub-device are restored to the state corresponding to the target data, there will be no usage data of the smart home system by the previous tenant in the home host and sub-device, and the network configuration and basic configuration of the home host and sub-device will be restored, without the need for re-network configuration.

[0072] In tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. Before delivery to the tenant, the landlord has all permissions. After delivery to the tenant, the landlord's permissions are used to manage the tenant period of the smart home system. After the lease period ends, data recovery is allowed. The tenant's permissions are used to manage and use the smart home system during the lease period. If the house is no longer rented out, the tenant mode can be turned off or canceled to restore to the normal smart home management mode.

[0073] The data recovery method provided in the embodiment of the present application sets a tenant mode for the smart home system, and backs up the target data of the smart home system through the tenant mode. When the tenant of the house is changed, regardless of whether the home host and the sub-device are reset, the home host and the sub-device can be quickly restored to the state corresponding to the target data, that is, the state with only the configuration information after network configuration and no user usage data, without the need for re-network configuration, eliminating the complicated network configuration operation, and will not save the tenant's usage data, respecting the tenant's privacy and information security, and solving the problem in the prior art that the smart home device needs to be re-networked due to resetting data when the tenant of the rental house is changed, and meeting the whole house smart information security and business needs when the tenant is changed.

[0074] In an optional embodiment, in response to a mode setting instruction, tenant mode is enabled and target data is backed up to a server, including: in response to the mode setting instruction, the target data is collected and the target data is uploaded to the server; all sub-devices are notified to enter tenant mode, and a data recovery trigger identifier is issued to all sub-devices so that the sub-devices write the data recovery trigger identifier into a configuration file that will not be reset; when a write completion message is received from all sub-devices, a tenant mode enablement success message is reported to the server and user terminal.

[0075] In this embodiment, when the tenant mode is turned on, the home host sends a data recovery trigger identifier to all sub-devices, and can agree with the sub-device on the way to enter the data recovery mode, which is conducive to quickly recovering the data of the sub-device at the end of the lease period, and the sub-device writes the data recovery trigger identifier to a configuration file that will not be reset. Even if the sub-device is reset, it will not affect the execution of subsequent data recovery. The data recovery trigger identifier is used to instruct the sub-device to enter the data recovery mode in the tenant mode. In the tenant mode, when the sub-device receives a data recovery trigger identifier that matches the configuration file, it can enter the data recovery mode to recover data.

[0076] Furthermore, in response to the mode setting instruction, collecting the target data and uploading the target data to the server includes: receiving the mode setting instruction sent by the user terminal; when a confirmation operation is detected, generating a tenant mode password according to preset rules and sending it to the user terminal, so that the user terminal outputs the tenant mode password and reminds the user to remember the password; receiving the tenant mode password sent by the user terminal, and after the password verification is passed, collecting the target data and uploading the target data to the server.

[0077] The confirmation operation is an operation performed on the home host, for example, the landlord can confirm by pressing a button on the home host. The preset rule is a specific password generation rule, which is not limited in this application. For example, a preset algorithm is executed on the MAC address of the home host to generate a tenant mode password.

[0078] This embodiment can avoid misoperation of the user terminal through the confirmation operation of the home host. Setting a tenant mode password and using the password when turning on or off the tenant mode and starting data recovery in the tenant mode can avoid arbitrary operations by unrelated users and ensure the security of the tenant mode and data recovery of the smart home system.

[0079] In an optional embodiment, in response to a data recovery instruction, the target data is downloaded from the server and sent to the corresponding sub-device, including: in response to the data recovery instruction, the target data is downloaded from the server; the target data is restored to the corresponding configuration according to the target data; a data recovery trigger identifier is broadcast so that the sub-device receiving the data recovery trigger identifier enters a data recovery mode; communication information is broadcast so that the sub-device receiving the communication information establishes a communication connection with the home host according to the communication information; the device data in the target data is sent to the corresponding sub-device through the communication connection, so that the sub-device is restored to the corresponding state according to its own device data; when the data recovery completion message returned by all sub-devices is received, a data recovery success message is reported to the server and the user terminal.

[0080] In this embodiment, the home host responds to the data recovery instruction by first restoring itself to the corresponding configuration, and then broadcasts relevant information to enable the sub-device to enter the data recovery mode and establish a communication connection with the home host, so that the sub-device can receive its own device data through the established communication connection to complete data recovery according to the device data, thereby achieving rapid data recovery of the home host and the sub-device.

[0081] In actual applications, the home host can broadcast via a communication protocol that the sub-device also supports, such as broadcasting via Bluetooth Mesh. The communication information broadcast by the home host can include the communication address of the home host, such as a Bluetooth short address and WiFi information.

[0082] Further, in response to the data recovery instruction, downloading the target data from the server includes: receiving the data recovery instruction sent by the user terminal; sending a password verification request to the user terminal; after receiving the tenant mode password sent by the user terminal, if the password verification passes, entering the data recovery mode to download the target data from the server.

[0083] In this embodiment, after the home host receives a data recovery instruction in tenant mode, it can enter data recovery mode only after the tenant mode password entered by the user is verified. This can prevent unauthorized operations by irrelevant users and ensure the security of the smart home system tenant mode and data recovery.

[0084] When the home host uploads target data to the server, if there is no network and the home host cannot communicate with the server, the home host can upload the target data through the local area network with the help of the user terminal. Similarly, when the home host downloads target data from the server, if there is no network and the home host cannot communicate with the server, the home host can send a download request to the user terminal through the local area network, and the user terminal downloads the target data from the server through the mobile network and then forwards it to the home host through the local area network. In this way, the normal upload and download of the target data is guaranteed through the communication between the user terminal and the local area network.

[0085] Figure 2 This is a flow chart of another data recovery method provided in an embodiment of the present application, which is applied to a user terminal in a smart home system. The same or corresponding terms as those in the above-mentioned data recovery method embodiment applied to a home host are explained in detail in this embodiment. Figure 2 As shown, the method comprises the following steps:

[0086] S201, sending a mode setting instruction to a home host to enable a tenant mode and enable the home host to back up target data to a server, wherein the target data includes configuration information of the home host and sub-devices after network configuration and does not include user usage data.

[0087] S202, after the lease period ends, sending a data recovery instruction to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0088] The data recovery method provided in the embodiment of the present application sets a tenant mode for the smart home system, and backs up the target data of the smart home system through the tenant mode. When the tenant of the house is changed, regardless of whether the home host and the sub-device are reset, the home host and the sub-device can be quickly restored to the state corresponding to the target data, that is, the state with only the configuration information after network configuration and no user usage data, without the need for re-network configuration, eliminating the complicated network configuration operation, and will not save the tenant's usage data, respecting the tenant's privacy and information security, and solving the problem in the prior art that the smart home device needs to be re-networked due to resetting data when the tenant of the rental house is changed, and meeting the whole house smart information security and business needs when the tenant is changed.

[0089] In an optional embodiment, a mode setting instruction is sent to a home host to enable tenant mode and enable the home host to back up target data to a server, including: after establishing a communication connection with the home host, sending a mode setting instruction to the home host; receiving a tenant mode password sent by the home host, outputting the tenant mode password and reminding the user to remember the password; after obtaining the tenant mode password entered by the user, sending the password to the home host, so that the home host collects the target data and uploads the target data to the server after the password verification is passed; receiving a tenant mode activation success message sent by the home host, in which the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system, and data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

[0090] In this embodiment, when the tenant mode needs to be turned on, the user terminal sends a mode setting instruction to the home host, so that the home host sets the tenant mode password and uploads the target data. The tenant mode password is used when turning the tenant mode on or off and starting data recovery in the tenant mode, which can avoid arbitrary operations by unrelated users and ensure the security of the tenant mode and data recovery of the smart home system.

[0091] In an optional embodiment, after the lease ends, a data recovery instruction is sent to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data, including: receiving a lease end instruction; sending the data recovery instruction to the home host; receiving a password verification request sent by the home host; after obtaining the tenant mode password entered by the user, sending it to the home host for verification, so that the home host enters the data recovery mode and downloads the target data from the server for data recovery after the password verification is passed; receiving a data recovery success message sent by the home host.

[0092] In this embodiment, when data recovery is required at the end of the lease period, the user terminal sends a data recovery instruction to the home host. The data recovery mode can be entered only after the tenant mode password entered by the user is verified. This can prevent unauthorized operations by irrelevant users and ensure the security of the tenant mode and data recovery of the smart home system.

[0093] It should be noted that the home host can upload the tenant mode password together with the target data to the server. When data recovery is needed at the end of the lease, when the landlord triggers the data recovery function through the user terminal, the server can first perform password verification. Only after the verification is passed, the user terminal is allowed to establish a connection with the home host, further ensuring the security of data recovery.

[0094] The data recovery method is described below in conjunction with a specific embodiment. However, it is worth noting that the specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application. The explanation of terms that are the same or corresponding to the above embodiment will not be repeated in this embodiment.

[0095] In actual applications, the application used to control the smart home system has a tenant mode function. Users can set the tenant mode according to actual needs. For example, when the house needs to be rented out, users can set and turn on the tenant mode, where setting the tenant mode mainly involves uploading the tenant mode password and target data. Users can also cancel or turn off the tenant mode according to actual needs and return to the normal smart home control mode. For example, when the house is no longer rented out, users can turn off the tenant mode after the password verification is passed, or cancel the tenant mode after the password verification is passed (that is, clear the configuration related to the tenant mode).

[0096] After tenant mode is turned on, IoT family permissions are separated, allowing daily family permissions to be delivered to tenant accounts, and landlord accounts are only allowed to manage the tenant period of IoT families. After tenant mode is turned on, the home host will back up the target data to the server for subsequent data recovery, and the home host will notify the child device to enter tenant mode. Data recovery can only be performed after tenant mode is turned on, and the data will be restored to the state corresponding to the target data backed up when tenant mode is turned on.

[0097] Before renting out a house, the landlord uses his user terminal (i.e., mobile APP) to set up and enable tenant mode for the home host and sub-devices. Figure 3 The following is an interactive diagram of setting up and enabling tenant mode, including the following steps:

[0098] S301, the network configuration of the home host 30 and the sub-device 40 is completed.

[0099] S302, the mobile APP 20 searches for the home host 30 through the local area network and establishes a connection.

[0100] S303, the tenant mode is set for the first time, and the mobile APP 20 notifies the home host 30 through the local area network.

[0101] S304, confirm the setting by pressing a button on the home host 30, for example, short pressing the whole device button three times. The home host 30 uses the device MAC address as basic data and compiles a specific algorithm program to obtain the tenant mode password of the home.

[0102] S305, the home host 30 replies the tenant mode password to the mobile APP 20.

[0103] S306, after receiving the tenant mode password, the mobile terminal APP 20 prompts the user to remember the password. The user enters the tenant mode password in the mobile terminal APP 20 to trigger the tenant mode.

[0104] S307, after receiving the tenant mode password input by the user, the home host 30 verifies the password. If the password verification is successful (i.e., the tenant mode password input by the user is the same as the tenant mode password stored locally on the home host 30), the home host 30 uploads the target data to the server 10. If the current WiFi is not connected, the home host 30 can send the target data to the mobile terminal APP 20 through the local area network, and the mobile terminal APP 20 uploads the target data to the server 10 through the mobile phone network. The home host 30 can upload the tenant mode password and the target data to the server 10 together.

[0105] S308, after the home host 30 completes the backup, it notifies all sub-devices 40 to enter the tenant mode through Bluetooth Mesh broadcast, and agrees on a method for entering the data recovery mode, such as a scene ID with a special identifier.

[0106] S309, after receiving the notification, the sub-device 40 writes the way to enter the data recovery mode into the configuration table to avoid losing the setting after the sub-device is reset.

[0107] S310 , after writing is completed, the sub-device 40 reports a writing completion message to the home host 30 .

[0108] S311 , the home host 30 reports a tenant mode activation success message to the server 10 .

[0109] S312, the server 10 pushes a tenant mode activation success message to the mobile APP 20.

[0110] Steps S311 and S312 are mainly about the home host 30 reporting the tenant mode activation success message to the mobile APP 20 and the server 10. In addition to the method shown in the figure, the home host 30 can also report the tenant mode activation success message to the mobile APP 20 and the server 10 at the same time.

[0111] S313, tenant mode is successfully enabled. After tenant mode is enabled, IoT home permissions are separated into landlord permissions and tenant permissions. Before delivery, the landlord has all permissions. After delivery to the tenant, the landlord account is only allowed to manage the tenant period of the IoT home. Data recovery is allowed only after the lease period ends. The tenant account is only allowed to manage and use the IoT home internally.

[0112] When the tenant of a house changes, the landlord uses the mobile APP to restore the data of the home host and sub-devices in tenant mode. Figure 4 As shown in the figure, it is an interactive diagram for executing tenant mode data recovery, which includes the following steps:

[0113] S401, terminate the previous tenant's tenant term through the mobile APP 20, and trigger the tenant mode for the IoT home to restore data.

[0114] S402, when triggered, the landlord needs to enter the tenant mode password of the household on the mobile APP 20, and the mobile APP 20 sends the password to the server 10 for verification.

[0115] S403, after the password verification is successful, the server 10 notifies the mobile terminal APP 20.

[0116] S404, the mobile terminal APP 20 discovers the home host 30 through the local area network UBind, verifies the host MAC and notifies the home host 30 to enter the data recovery mode.

[0117] S405, the home host 30 requests verification of the tenant mode password.

[0118] S406, the landlord enters the tenant mode password on the mobile APP 20.

[0119] S407, the home host 30 verifies the password input by the landlord, and informs the mobile APP 20 after the password verification is passed.

[0120] S408, the home host 30 enters a data recovery mode.

[0121] S409 , the home host 30 requests the server 10 for the target data backed up in the tenant mode.

[0122] S410, the server 10 sends the target data to the home host 30. If there is no network, the home host 30 sends a target data download request to the mobile terminal APP 20 through the local area network, and the mobile terminal APP 20 downloads the target data from the server 10 through the mobile network and forwards it to the home host 30.

[0123] S411, after receiving the target data, the home host 30 restores to the initial configuration of the tenant mode according to the target data. The home host 30 broadcasts the agreed ID (i.e. Figure 3 The agreed way of entering the data recovery mode, such as a certain scene ID) is used to instruct the sub-device 40 to enter the data recovery mode.

[0124] S412, after receiving the broadcast ID, the sub-device 40 parses it successfully and enters the data recovery mode.

[0125] S413, the home host 30 broadcasts the Bluetooth short address and WiFi information via Bluetooth Mesh.

[0126] S414, after receiving the information, the sub-device 40 establishes Bluetooth and WiFi communication with the home host 30, and if there is a communication key, it also needs to obtain the communication key. The home host 30 sends the scene, timing and other device data to the sub-device 40 through the established communication connection.

[0127] S415, after receiving the device data, the sub-device 40 performs data recovery and reports a data recovery completion message.

[0128] S416 , the home host 30 reports a data recovery success message to the server 10 .

[0129] S417, the server 10 pushes a data recovery success message to the mobile APP 20.

[0130] Steps S416 and S417 are mainly about the home host 30 reporting a data recovery success message to the mobile APP 20 and the server 10. In addition to the method shown in the figure, the home host 30 can also report a data recovery success message to the mobile APP 20 and the server 10 at the same time.

[0131] S418, completing the restoration of the home host 30 and the sub-device 40 to the data status backed up in the tenant mode.

[0132] This specific embodiment provides a solution for the tenant mode of a home host and sub-devices for the use of a smart home system in the case of renting a house. The target data of the smart home system is backed up through the tenant mode. When the tenant of the house is changed, regardless of whether the home host and sub-devices are reset and whether the IoT home is deleted, the home host and sub-devices can be quickly restored to the state corresponding to the target data, that is, the state with only the configuration information after network configuration and no user usage data. There is no need to re-configure the network, which saves complicated network configuration operations, and the tenant's usage data will not be saved. The tenant's privacy and information security are respected, and the problem of resetting data when changing tenants in the prior art of a rental house causes the smart home devices to need to be re-configured is solved, and the whole house smart information security and business needs when the tenant is changed are met.

[0133] The present application also provides a data recovery device, which is applied to a home host in a smart home system and can be used to implement the data recovery method applied to the home host described in the above embodiment. The data recovery device can be implemented by software and / or hardware.

[0134] Figure 5 is a structural block diagram of a data recovery device applied to a home host provided by an embodiment of the present application, such as Figure 5 As shown, the data recovery device includes:

[0135] A mode setting module 501, for responding to a mode setting instruction, turning on the tenant mode and backing up target data to a server, wherein the target data includes configuration information of the home host and sub-device after network configuration and does not include user usage data;

[0136] The data recovery module 502 is used to respond to the data recovery instruction, download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0137] Optionally, the mode setting module 501 includes:

[0138] an uploading unit, configured to collect the target data and upload the target data to the server in response to the mode setting instruction;

[0139] A first issuing unit, configured to notify all sub-devices to enter tenant mode, and issue a data recovery trigger flag to all sub-devices, so that the sub-devices write the data recovery trigger flag into a configuration file that will not be reset;

[0140] The first reporting unit is used to report a tenant mode startup success message to the server and the user terminal when receiving the write completion message returned by all the sub-devices.

[0141] Optionally, the uploading unit includes:

[0142] A first receiving subunit, configured to receive a mode setting instruction sent by the user terminal;

[0143] a generating subunit, for generating a tenant mode password according to a preset rule and sending the password to the user terminal when a confirmation operation is detected, so that the user terminal outputs the tenant mode password and reminds the user to remember the password;

[0144] The uploading subunit is used to receive the tenant mode password sent by the user terminal, collect the target data and upload the target data to the server after the password is verified.

[0145] Optionally, the data recovery module 502 includes:

[0146] a downloading unit, configured to download the target data from the server in response to the data recovery instruction;

[0147] A recovery unit, used for recovering to a corresponding configuration according to the target data;

[0148] A first broadcast unit, used for broadcasting a data recovery trigger identifier, so that a sub-device receiving the data recovery trigger identifier enters a data recovery mode;

[0149] A second broadcasting unit, configured to broadcast communication information so that a sub-device receiving the communication information can establish a communication connection with the home host according to the communication information;

[0150] A second sending unit is used to send the device data in the target data to the corresponding sub-devices respectively through the communication connection, so that the sub-devices are restored to the corresponding states according to their own device data;

[0151] The second reporting unit is used to report a data recovery success message to the server and the user terminal when receiving the data recovery completion message returned by all the sub-devices.

[0152] Optionally, the downloading unit includes:

[0153] A second receiving subunit, configured to receive a data recovery instruction sent by the user terminal;

[0154] A sending subunit, used for sending a password verification request to the user terminal;

[0155] The download subunit is used to enter the data recovery mode after receiving the tenant mode password sent by the user terminal, if the password verification is passed, to download the target data from the server.

[0156] Optionally, in the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system, and data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

[0157] The above data recovery device can execute the data recovery method on the home host side provided by the above embodiment, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in this embodiment, please refer to the data recovery method on the home host side provided by the above embodiment.

[0158] The present application also provides a data recovery device, which is applied to a user terminal in a smart home system and can be used to implement the data recovery method applied to the user terminal described in the above embodiment. The data recovery device can be implemented by software and / or hardware.

[0159] Figure 6 is a structural block diagram of a data recovery device applied to a user terminal provided in an embodiment of the present application, such as Figure 6 As shown, the data recovery device includes:

[0160] The first sending module 601 is used to send a mode setting instruction to the home host to turn on the tenant mode and enable the home host to back up target data to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include user usage data;

[0161] The second sending module 602 is used to send a data recovery instruction to the home host after the lease period ends, so as to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

[0162] Optionally, the first sending module 601 includes:

[0163] A first sending unit, configured to send a mode setting instruction to the home host after establishing a communication connection with the home host;

[0164] An output unit, used to receive the tenant mode password sent by the home host, output the tenant mode password and remind the user to remember the password;

[0165] A second sending unit, configured to obtain a tenant mode password input by a user and send the password to the home host, so that the home host collects the target data and uploads the target data to the server after the password is verified;

[0166] The first receiving unit is used to receive a tenant mode activation success message sent by the home host. In the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system. Data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

[0167] Optionally, the second sending module 602 includes:

[0168] A second receiving unit, configured to receive a lease end instruction;

[0169] A third sending unit, used for sending the data recovery instruction to the home host;

[0170] A third receiving unit, configured to receive a password verification request sent by the home host;

[0171] A fourth sending unit is used to obtain the tenant mode password input by the user and send it to the home host for verification, so that the home host enters the data recovery mode and downloads the target data from the server for data recovery after the password verification is passed;

[0172] The fourth receiving unit is used to receive a data recovery success message sent by the home host.

[0173] The above data recovery device can execute the data recovery method on the user terminal side provided by the above embodiment, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in this embodiment, please refer to the data recovery method on the user terminal side provided by the above embodiment.

[0174] The present application also provides a smart home system, including: a server, a user terminal, a home host and multiple sub-devices, the home host includes the data recovery device on the home host side described in the above embodiment, and the user terminal includes the data recovery device on the user terminal side described in the above embodiment.

[0175] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data recovery method applied to a home host described in the above embodiment or the data recovery method applied to a user terminal described in the above embodiment is implemented.

[0176] The present application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the data recovery method applied to a home host as described in the above embodiment is implemented, or the data recovery method applied to a user terminal as described in the above embodiment is implemented.

[0177] like Figure 7 As shown, it is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0178] In some embodiments, the processor 111 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 111 is generally used to control the overall operation of the electronic device, such as performing control and processing related to data interaction or communication. In this embodiment, the processor 111 is used to run the program code stored in the memory 113 or process data, such as running a data recovery program code.

[0179] The communication interface 112 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and the communication interface 112 may also be used to establish a communication connection between the electronic device and other electronic devices.

[0180] The memory 113 is used to store computer programs, such as data recovery programs. The memory 113 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 113 can be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory 113 can also be an external storage device of the electronic device, such as a plug-in hard disk equipped with the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Of course, the memory 113 can also include both the internal storage unit of the electronic device and its external storage device. In this embodiment, the memory 113 is generally used to store the operating system and various computer programs installed in the electronic device, such as data recovery program code, etc. In addition, the memory 113 can also be used to temporarily store various types of data that have been output or are to be output.

[0181] Figure 7Only an electronic device having components 111 - 114 is shown, but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0182] In one embodiment of the present application, the processor 111 is used to implement the data recovery method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.

[0183] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0185] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0186] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data recovery method, applied to a home host in a smart home system, characterized in that: include: In response to the mode setting instruction, the tenant mode is turned on and the target data is backed up to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include the user usage data; In response to the data recovery instruction, the target data is downloaded from the server and sent to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

2. The method according to claim 1, characterized in that In response to the mode setting instruction, the tenant mode is enabled and the target data is backed up to the server, including: In response to the mode setting instruction, collecting the target data and uploading the target data to the server; Notify all sub-devices to enter tenant mode, and send data recovery trigger identifiers to all sub-devices, so that the sub-devices write the data recovery trigger identifiers into configuration files that will not be reset; When the write completion messages returned by all the sub-devices are received, a tenant mode start success message is reported to the server and the user terminal.

3. The method according to claim 2, characterized in that In response to the mode setting instruction, collecting the target data and uploading the target data to the server includes: Receiving a mode setting instruction sent by the user terminal; When a confirmation operation is detected, a tenant mode password is generated according to a preset rule and sent to the user terminal, so that the user terminal outputs the tenant mode password and reminds the user to remember the password; The tenant mode password sent by the user terminal is received, and after the password is verified, the target data is collected and uploaded to the server.

4. The method according to claim 1, characterized in that: In response to the data recovery instruction, downloading the target data from the server and sending the target data to the corresponding sub-device includes: In response to the data recovery instruction, downloading the target data from the server; Restoring to a corresponding configuration according to the target data; Broadcasting a data recovery trigger identifier to enable a sub-device that receives the data recovery trigger identifier to enter a data recovery mode; Broadcasting communication information so that the sub-devices receiving the communication information establish a communication connection with the home host according to the communication information; Sending the device data in the target data to the corresponding sub-devices respectively through the communication connection, so that the sub-devices are restored to the corresponding states according to their own device data; When the data recovery completion message returned by all the sub-devices is received, a data recovery success message is reported to the server and the user terminal.

5. The method according to claim 4, characterized in that In response to the data recovery instruction, downloading the target data from the server includes: Receiving a data recovery instruction sent by the user terminal; Sending a password verification request to the user terminal; After receiving the tenant mode password sent by the user terminal, if the password verification is passed, enter the data recovery mode to download the target data from the server.

6. The method according to any one of claims 1 to 5, characterized in that In the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system, and data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

7. A data recovery method, applied to a user terminal in a smart home system, characterized in that: include: Sending a mode setting instruction to the home host to turn on the tenant mode and enable the home host to back up target data to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include user usage data; After the lease period ends, a data recovery instruction is sent to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

8. The method according to claim 7, characterized in that Sending a mode setting instruction to a home host to enable a tenant mode and enable the home host to back up target data to a server includes: After establishing a communication connection with the home host, sending a mode setting instruction to the home host; Receiving the tenant mode password sent by the home host, outputting the tenant mode password and reminding the user to remember the password; After obtaining the tenant mode password input by the user, the password is sent to the home host, so that the home host collects the target data and uploads the target data to the server after the password verification is passed; A tenant mode activation success message is received from the home host. In the tenant mode, the permissions of the smart home system are separated into landlord permissions and tenant permissions. After being delivered to the tenant, the landlord permissions are used to manage the tenant period of the smart home system. Data recovery is allowed after the lease period ends. The tenant permissions are used to manage and use the smart home system during the lease period.

9. The method according to claim 7, characterized in that: After the lease period ends, a data recovery instruction is sent to the home host to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data, including: Receive the lease end instruction; Sending the data recovery instruction to the home host; Receiving a password verification request sent by the home host; After obtaining the tenant mode password input by the user, the password is sent to the home host for verification, so that the home host enters the data recovery mode and downloads the target data from the server for data recovery after the password verification is passed; Receive a data recovery success message sent by the home host.

10. A data recovery device, applied to a home host in a smart home system, characterized in that: include: A mode setting module, for responding to a mode setting instruction, turning on the tenant mode and backing up target data to a server, wherein the target data includes configuration information of the home host and sub-device after network configuration and does not include user usage data; The data recovery module is used to respond to the data recovery instruction, download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

11. A data recovery device, applied to a user terminal in a smart home system, characterized in that: include: A first sending module is used to send a mode setting instruction to the home host to turn on the tenant mode and enable the home host to back up target data to the server, wherein the target data includes the configuration information of the home host and the sub-device after network configuration and does not include user usage data; The second sending module is used to send a data recovery instruction to the home host after the lease period ends, so as to instruct the home host to download the target data from the server and send the target data to the corresponding sub-device, so that the home host and the sub-device are restored to the state corresponding to the target data.

12. A smart home system, characterized in that: include: A server, a user terminal, a home host and a plurality of sub-devices, wherein the home host comprises the data recovery device according to claim 10, and the user terminal comprises the data recovery device according to claim 11.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the data recovery method according to any one of claims 1 to 6 or the data recovery method according to any one of claims 7 to 9.

Citation Information

Patent Citations

  • Method and device for recovering lessee data under multi-lessee environment, and database system

    CN102693169A

  • System and method for security mode-based authorization for data management operations in a multi-tenant protection storage system

    US10038694B1

  • Storage system data recovery using data recovery as a service

    US11042452B1

  • Backup and / or restore as a service

    US11704043B1

  • Online system and method for property rental transactions, property management, and assessing performance of landlords and tenants

    US20090240565A1