Home host repairing method and device, home host and medium

Through self-test policies, the home host abnormality is discovered and repaired in a timely manner, or requesting mirror files to other home hosts to restart, the instability of the smart home system caused by home host failure is solved, and the system reliability and user experience is improved.

CN120371604APending Publication Date: 2025-07-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510351271.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

After the home host fails, manual maintenance is required, resulting in low operating stability and reliability of the smart home system and poor user experience.

Method used

By obtaining the operation information of the home host, determining the self-test strategy and conducting self-test, discovering exceptions in a timely manner and performing repair processing; if the repair fails, sending a help signal to other home hosts, receiving the mirror file for system restart.

Benefits of technology

It improves the self-repair ability of home hosts, reduces system failures, enhances the stability and reliability of smart home systems, reduces the dependence of manual maintenance, and provides a stable and reliable user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371604A_ABST
    Figure CN120371604A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a home host repairing method and device, a home host and a computer readable storage medium, and the method comprises the steps: obtaining the operation information of a first home host, and determining a self-checking strategy according to the operation information; performing self-inspection according to the self-inspection strategy, and executing repair processing when detecting that the first home host is abnormal; if the repair processing fails to be executed, a help seeking signal is sent to the second home host; and receiving a mirror image file sent by the second home host in response to the help seeking signal, and restarting the system according to the mirror image file, so that the first home host returns to normal. According to the embodiment of the invention, by adopting different repairing means, the reliability of the system is improved, and more stable and reliable smart home experience is provided for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home, and particularly to a repair method, device, home host and computer-readable storage medium for a home host. Background Art

[0002] With the rapid development of information technology and the Internet of Things, smart home has gradually entered people's lives. The smart home system integrates home appliances, central control devices and home hosts to achieve all-round interaction of home appliances, aiming to provide users with higher comfort, convenience and safety performance.

[0003] Currently, the smart home system connects various home appliances through a home host and provides network services and supervision functions for various home appliances to ensure the normal operation of the smart home system. If the home host fails and the smart home system cannot operate, manual maintenance and restart are required to resume operation.

[0004] Since the home host stops running after a failure, manual fault diagnosis and repair are required, which takes a long time, resulting in low operating stability, low reliability and poor user experience of the smart home system. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a repair method, device, home host and computer-readable storage medium for a home host that overcome the above problems or at least partially solve the above problems.

[0006] On the one hand, an embodiment of the present invention provides a repair method for a home host, the method comprising:

[0007] Obtaining the running information of the first home host, and determining a self-check strategy according to the running information;

[0008] Performing a self-check according to the self-check strategy, and when an abnormality of the first home host is detected, performing a repair process;

[0009] If the repair process fails to execute, sending a help signal to the second home host;

[0010] Receiving the mirror file sent by the second home host in response to the help signal, and performing a system restart according to the mirror file to make the first home host return to normal.

[0011] Optionally, the self-check strategy is used to determine a self-check method and a self-check frequency; the self-check method includes a first self-check process and a second self-check process; the first self-check items included in the first self-check process are fewer than the second self-check items included in the second self-check process;

[0012] Performing self-check according to the self-check strategy includes:

[0013] Determining a first self-check frequency and a second self-check frequency according to the self-check strategy; the first self-check frequency is higher than the second self-check frequency;

[0014] Performing the first self-check process on the first home host at the first self-check frequency; and performing the second self-check process on the first home host at the second self-check frequency.

[0015] Optionally, determining the self-check strategy according to the operation information includes:

[0016] Determining a model according to the operation information and a pre-trained self-check strategy determination model, determining the first self-check frequency and the first self-check items of the first self-check process, and determining the second self-check frequency and the second self-check items of the second self-check process.

[0017] Optionally, the first home host is connected to home appliances;

[0018] The method further includes:

[0019] When the repair process fails to execute, the first home host shuts down the network service, so that the home appliances connected to the first home host switch to establish a connection with the second home host.

[0020] Optionally, the method further includes:

[0021] If the first home host receives the help signal sent by the second home host, it responds to the help signal and sends the mirror file to the second home host, so that the second home host performs a system restart according to the mirror file.

[0022] Optionally, the method further includes:

[0023] Periodically sending a heartbeat request to the second home host;

[0024] If the number of timeouts for the second home host to respond to the heartbeat request reaches the timeout threshold, send the mirror file to the second home host, so that the second home host performs a system restart according to the mirror file.

[0025] Optionally, performing self-check according to the self-check strategy further includes:

[0026] If, when performing the first self-check process on the first home host, it is detected that the first home host is abnormal, then perform the second self-check process on the first home host.

[0027] Optionally, when it is detected that there is an abnormality in the first home host, performing a repair process includes:

[0028] When it is detected that there is an abnormality in the first home host, determining the type of abnormality and the repair method corresponding to the type of abnormality according to the operation information and the pre-trained abnormality detection model;

[0029] Performing the repair method corresponding to the type of abnormality.

[0030] Optionally, after the system is restarted according to the mirror file to make the first home host return to normal, the method further includes:

[0031] Generating an operation record, where the operation record includes the operation of restarting the system of the first home host;

[0032] Storing the operation record in the blockchain.

[0033] On the other hand, an embodiment of the present invention provides a repair device for a home host, and the device includes:

[0034] A policy determination module, configured to obtain the operation information of the first home host and determine a self-check policy according to the operation information;

[0035] An abnormality detection module, configured to perform a self-check according to the self-check policy, and when it is detected that there is an abnormality in the first home host, perform a repair process;

[0036] A help request processing module, configured to send a help request signal to the second home host if the repair process fails to execute;

[0037] A recovery processing module, configured to receive the mirror file sent by the second home host in response to the help request signal, and restart the system according to the mirror file to make the first home host return to normal.

[0038] On the other hand, an embodiment of the present invention provides a home host, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the repair method of the home host as described above are implemented.

[0039] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the repair method of the home host as described above are implemented.

[0040] The embodiments of the present invention have the following advantages:

[0041] In an embodiment of the present invention, a self-checking strategy is determined based on the operating information of the first home host, and then self-checking is performed according to the self-checking strategy. When an abnormality is detected in the first home host, repair processing is executed. By determining the self-checking strategy based on the operating conditions of the system and performing daily self-checking, abnormal conditions of the home host can be detected more timely, and self-repair can be performed at a stage where the degree of the fault is relatively light, thereby reducing the probability that the problems of the home host deteriorate to the point where it cannot operate. When the repair processing fails, a help signal is sent to the second home host, causing the second home host to send an image file, and the system is restarted according to the received image file to make the first home host return to normal. That is, when the home host fails severely and cannot be repaired by itself, by requesting help from other home hosts and restarting the system according to the image file sent by other home hosts, the normal operation of the system can be quickly restored. The reliability of the system is improved, a more stable and reliable smart home experience is provided for users, and at the same time, the dependence on manual labor for system maintenance is reduced, saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 is a flowchart of the steps of a method for repairing a home host provided by an embodiment of the present invention;

[0044] Figure 2 is an application flowchart of a method for repairing a home host provided by an embodiment of the present invention;

[0045] Figure 3 is a block diagram of the structure of a device for repairing a home host provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the drawings and specific embodiments.

[0047] Currently, a smart home system connects various home appliances through a home host and provides network services and supervision functions for various home appliances to ensure the normal operation of the smart home system. If the home host fails and causes the smart home system to stop operating, manual maintenance and restart are required to resume operation. Since the home host stops operating after a failure and manual fault diagnosis and repair processing are required, it takes a long time, resulting in low operating stability and reliability of the smart home system and poor user experience.

[0048] In the embodiments of the present invention, a self-checking strategy is determined according to the operating conditions of the system and daily self-checking is performed, which can detect the abnormal conditions of the home host in a relatively timely manner and repair them by itself, thereby reducing the probability that the home host cannot operate. If the home host cannot repair itself, it requests help from other home hosts and restarts the system according to the mirror image file sent by other home hosts, so as to quickly restore the normal operation of the system. By adopting different repair means, the situation that the home host cannot operate can be effectively reduced, thereby ensuring the stable operation of the smart home system and improving the reliability of the system.

[0049] Figure 1 It is a flowchart of the steps of a repair method for a home host provided by the embodiments of the present invention.

[0050] As Figure 1 shown, the method may specifically include the following steps:

[0051] Step 101, obtain the operation information of the first home host and determine the self-checking strategy according to the operation information.

[0052] In the smart home system, home appliances, central control devices, and home hosts are interconnected. Home appliances can be air conditioners, table lamps, humidifiers, floor sweepers, surveillance cameras, electric curtains, etc.; central control devices can be central control screens, tablets, laptop computers, etc.; home hosts can be central control boxes, smart home gateways, embedded devices, etc.

[0053] Among them, home appliances are used to perform specific tasks, such as temperature adjustment, lighting, etc.; central control devices are used to provide an interaction interface for users to control home appliances through the central control devices; and the home host, as the core, is used for data processing and device management.

[0054] In some embodiments, the self-checking strategy is determined according to the operation information of the home host.

[0055] To ensure the stable operation of the home host, the home host needs to perform self-checking so that problems can be discovered and processed in a timely manner. However, considering that self-checking will consume the computing resources consumed by the normal operation of the system, it is necessary to determine the self-checking strategy to detect abnormal problems in a timely manner without causing too much impact on the normal operation of the system.

[0056] For the above considerations, the self-checking strategy is set. The self-checking strategy is used to determine the self-checking method and self-checking frequency. The self-checking method is set as the first self-checking process and the second self-checking process; the first self-checking matters included in the first self-checking process are fewer than the second self-checking matters included in the second self-checking process. And according to the self-checking strategy, different self-checking methods and self-checking frequencies are determined in different situations.

[0057] In some embodiments, step 101 specifically includes the following sub-steps:

[0058] Sub-step S11: Determine a model based on the operation information and a pre-trained self-check strategy, determine the first self-check frequency and the first self-check items of the first self-check process, and determine the second self-check frequency and the second self-check items of the second self-check process.

[0059] The self-check strategy determination model is trained based on historical operation information, such as CPU usage patterns, hard disk read / write patterns, memory usage rules, etc., through machine learning and historical data analysis. The self-check strategy determination model can determine the warning threshold according to historical operation information, and combine the current operation information to predict the probability of system anomalies, and dynamically determine the self-check frequency. For example, when the probability of predicting system anomalies is lower than the warning threshold for a long time, the failure risk is relatively small, so the self-check frequency is reduced to save system resources. When the probability of predicting system anomalies reaches the warning threshold, the failure risk is relatively high, so the self-check frequency is increased. In addition, when the self-check strategy determination model determines that the home host is in the critical task execution period according to the current operation information, such as large-scale data processing, etc., the self-check frequency will also be temporarily reduced to ensure the smooth progress of critical tasks.

[0060] The self-check strategy determination model can also combine historical operation information and current operation information, and dynamically determine specific self-check items by comparing and analyzing the differences between the two. For example, when it is detected that there is a deviation between the current operation information and the historical operation mode, corresponding self-check items will be added for the software and hardware components associated with these abnormal indicators (such as CPU, memory, hard disk, operating system processes, etc.).

[0061] By the self-check strategy determination model, dynamically adjust the self-check frequency and self-check items of the self-check method, and to a large extent improve the coverage rate and accuracy of self-check under the premise of ensuring performance, so as to ensure the stable operation of the system.

[0062] In this embodiment, the operation information includes CPU usage patterns, hard disk read / write patterns, memory usage rules, etc. In other embodiments, the operation information may also include other home host operation data, and the embodiments of the present invention do not limit this.

[0063] Step 102: Perform a self-check according to the self-check strategy, and when an anomaly is detected in the first home host, execute a repair process.

[0064] Determine the self-check method and self-check frequency through the self-check strategy obtained in step 101 to balance the stability of system performance and the timeliness of anomaly detection. The self-check method includes a first self-check process and a second self-check process, and the first self-check items included in the first self-check process are fewer than the second self-check items included in the second self-check process.

[0065] It can be understood that the first self-checking process is a simple and lightweight checking method, including fewer self-checking items, which can quickly identify obvious anomalies while minimizing the impact on system performance. The second self-checking process is a comprehensive and in-depth checking method, including more self-checking items, which can deeply detect potential problems but will consume more system resources.

[0066] As an example, the first self-checking items included in the first self-checking process are to detect relatively conventional software and hardware information such as CPU temperature, memory usage, remaining hard disk space, and connection status with other external devices. The second self-checking items included in the second self-checking process are to detect more complex software and hardware information such as system pressure, file system integrity, driver compatibility, application running logs, and data synchronization status with other home hosts.

[0067] In other embodiments, the first self-checking items and the second self-checking items can also be other checking items, and the specific checking items of the first self-checking items and the second self-checking items in the embodiments of the present invention are not limited.

[0068] Performing self-checking according to the self-checking strategy can accurately locate the cause and type of anomalies, so as to efficiently handle the anomaly problems. After the anomaly handling is completed, the subsequent self-checking strategy will also be dynamically adjusted according to the anomaly handling result to strengthen the monitoring of the anomaly source.

[0069] In some embodiments, step 102 specifically includes the following sub-steps:

[0070] Sub-step S21, determining a first self-checking frequency and a second self-checking frequency according to the self-checking strategy; the first self-checking frequency is higher than the second self-checking frequency.

[0071] Determining the self-checking frequency according to the self-checking strategy, including the first self-checking frequency of the first self-checking process and the second self-checking frequency of the second self-checking process. The first self-checking frequency is higher than the second self-checking frequency, that is, the basic and simple first self-checking process will be executed at a higher frequency, while the in-depth and comprehensive second self-checking process will be executed at a lower frequency.

[0072] Sub-step S22, performing the first self-checking process on the first home host at the first self-checking frequency; and performing the second self-checking process on the first home host at the second self-checking frequency.

[0073] It can be understood that, compared with the second self-checking process, the first self-checking process consumes less computing resources and takes less processing time. Therefore, the first self-checking process is suitable for being set at a higher frequency as a cost-effective daily maintenance means. The second self-checking process checks more items, with more comprehensive and in-depth detection content, and consumes more resources at the same time. Therefore, it is suitable for being set at a lower frequency to ensure that the home host remains in good condition after running for a long time.

[0074] In addition, the self-checking strategy can also dynamically adjust the self-checking frequency according to the real-time running state of the system. For example, when the system is under high load or performing critical tasks, the first frequency can be temporarily reduced, or even the second self-checking process can be suspended to ensure smooth task operation. When the system is in an idle or low-load state, the second frequency can be appropriately increased, and the processing items of the second self-checking process can be increased to increase the inspection depth and make full use of idle resources for comprehensive inspection.

[0075] Through the above hierarchical and dynamic self-checking strategy, it is possible to achieve comprehensive monitoring of the home host status on the premise of ensuring system performance, thereby improving the reliability of the system.

[0076] In some embodiments, step 102 specifically includes the following sub-steps:

[0077] Sub-step S31, if the first self-checking process is performed on the first home host and an abnormality is detected in the first home host, then the second self-checking process is performed on the first home host.

[0078] If an abnormality is detected in the first home host during the first self-checking process on the first home host, for example, the CPU temperature is too high, the network connection is unstable, etc., the first self-checking process also includes using relevant repair tools for simple repair. And after the simple repair, the second self-checking process is automatically triggered, and through more in-depth self-checking items, the abnormal problem is more accurately investigated, and the root cause of the problem is further located and processed.

[0079] In some embodiments, step 102 specifically includes the following sub-steps:

[0080] Sub-step S41, when an abnormality is detected in the first home host, determine the abnormality type and the repair method corresponding to the abnormality type according to the running information and the pre-trained abnormality detection model;

[0081] The anomaly detection model is trained by continuously optimizing parameters through machine learning algorithms using historical fault handling data, and can finally determine the most likely anomaly type and the corresponding repair method according to different conditions. When detecting that the first home host has an anomaly, the real-time log and metric data are input into the anomaly detection model according to the current running information, so as to obtain the anomaly type and the corresponding repair method output by the anomaly detection model.

[0082] Precisely locating the anomaly type through the anomaly detection model and performing effective repair processing can reduce the impact of anomalies on system operation and improve the stability of the system.

[0083] Sub-step S42: Execute the repair method corresponding to the anomaly type.

[0084] As an example, Table 1 below is a correspondence table of some anomaly types and their repair methods.

[0085] Table 1

[0086] Exception Type First-level repair (millisecond level) Second level repair (seconds) Level 3 repair (minute level) CPU Overload Dynamic frequency reduction + task migration Close non-core processes Physical cooling system activated Memory Leaks Memory Page Isolation Process micro restart Memory Defragmentation Tool Hard disk pre-failure Read-only mode switch Hot data migration RAID reconstruction trigger Network link abnormality Traffic rerouting NIC soft restart Physical port switching File system corruption Log Rollback Bad Block Isolation File system repair tools Process resource deadlock Forced release of resources Process tree restart Dependency service chain reconstruction Data synchronization delay Force cache refresh Clock synchronization protocol execution Arbitration Node Intervention

[0087] The above table lists the hierarchical repair methods for some anomaly types of the system. Each anomaly type corresponds to different levels of repair methods in milliseconds, seconds, and minutes. By setting three-level repair methods, it can quickly respond to anomalies and gradually locate complex anomalies to complete the repair process, which can greatly improve the anomaly repair efficiency.

[0088] Step 103: If the repair process fails, send a help signal to the second home host.

[0089] The first home host is communicatively connected to the second home host. When the anomaly of the first home host is relatively serious and the repair process fails, for example, the repair process fails to solve the anomaly problem or cannot perform the repair, a help signal is sent to the second home host, and important data is backed up at the same time.

[0090] In some embodiments, the first home host sends a help signal through an independent hardware channel, such as the Intelligent Platform Management Interface (IPMI) or the Baseboard Management Controller (BMC). The independent hardware channel can still transmit in the case of an operating system crash.

[0091] It should be noted that the naming of the first home host and the second home host is only used to distinguish the two home hosts that perform different operations during the repair process. The functional structures of the first home host and the second home host are the same, and both have the ability of self-check and repair and the ability to help other home hosts for repair.

[0092] Step 104, receive the mirror file sent by the second home host in response to the help signal, and perform a system restart according to the mirror file, so that the first home host resumes normal operation.

[0093] As an example, when the first home host has a system exception, such as crashing and being unable to perform normal functions, it will automatically switch to the recovery mode driven by the firmware. In the recovery mode, it does not need to rely on the operating system and can handle basic hardware operations.

[0094] After receiving the help signal from the first home host, the second home host wakes up the recovery interface of the first home host and then sends the mirror file to the first home host.

[0095] After the recovery interface of the first home host is woken up, it receives the mirror file sent by the second home host and stores it in the temporary storage area. After receiving it, the system recovery function of the first home host is woken up, so as to burn the mirror file into the system partition to obtain a new mirror partition. After obtaining the new mirror partition, the integrity of the new mirror is verified. Specifically, the second home host attaches the SHA-256 hash value when transmitting the mirror file. The first home host calculates the hash value of the current system mirror (new mirror) and compares it with the hash value during transmission to ensure that the mirror file has not been tampered with or damaged during transmission.

[0096] At the same time, the first home host adopts a dual mirror partition backup mechanism, and retains the old mirror as a backup during the process of writing the new mirror, ensuring that there are both a new mirror partition and an old mirror partition. When the verification of the new mirror fails, it can quickly roll back to the old mirror partition, thus ensuring the integrity and security of the system.

[0097] The first home host verifies the mirror file, switches to the new mirror partition for system restart after confirming its availability, and completes the system update. Then, through the second self-check process, the first home host is deeply checked to determine that the first home host has resumed normal operation.

[0098] In some embodiments, the method further includes:

[0099] If the first home host receives the help signal sent by the second home host, it responds to the help signal and sends the mirror file to the second home host, so that the second home host performs a system restart according to the mirror file.

[0100] The functional structures of the first home host and the second home host are the same, and both have the ability of self-check and repair, as well as the ability to help other home hosts for repair. When the second home host encounters an abnormality and sends a help signal to the first home host, the first home host will also send an image file to the second home host to assist the second home host in restarting the system, thus restoring the normal operation of the system.

[0101] As an example, after receiving the help signal sent by the second home host, the first home host remotely wakes up the recovery interface of the second home host by sending an IPMI signal, so that the second home host can receive the image file, and then sends the image file to the second home host.

[0102] The first home host divides the image file into data blocks and encrypts them, and then sends them to the temporary storage area of the second home host. Each data block undergoes integrity verification after the transmission is completed to ensure that the data is not missing. If an interruption occurs during the transmission, the first home host records the breakpoint for resuming the transmission to ensure the integrity of the image file. After the transmission is completed, the system recovery function of the second home host is triggered, so that the second home host burns the image file into the system partition to restore the normal operation of the system.

[0103] During the process of transmitting the image file, a real-time data compression algorithm, such as LZ4 or Zstd, is adopted to reduce the occupancy of network bandwidth. At the same time, in order to ensure the security of the compressed transmission process, a strategy of combining encryption and compression is implemented: end-to-end encryption, that is, AES-256 encryption is applied throughout the data transmission process. After determining that the image burning is completed, the burning process and results are recorded on the blockchain to generate a unique hash identifier as proof of successful burning, preventing man-in-the-middle attacks during the transmission process and improving the security of the image file transmission.

[0104] In some embodiments, the method further includes:

[0105] Regularly sending a heartbeat request to the second home host;

[0106] If the timeout count of the second home host's response to the heartbeat request reaches the timeout threshold, then send the image file to the second home host, so that the second home host restarts the system according to the image file.

[0107] It can be understood that the first home host and the second home host regularly send heartbeat requests to each other. If the receiving party experiences a system exception and is unable to respond to the heartbeat request from the sending party, it will cause the response to the heartbeat request to time out. When the number of timeouts for the response to the heartbeat request reaches the timeout threshold, the sending party confirms that the receiving party has a system exception and sends an image file to the receiving party to help the receiving party restart the system. That is, the first home host and the second home host implement mutual supervision and mutual assistance repair functions based on heartbeat packet exchange.

[0108] In this embodiment, the first home host and the second home host further confirm whether the other party has an exception through HTTP / ICMP request verification. In other embodiments, other protocol request verification methods may also be adopted, and the embodiments of the present invention do not limit this.

[0109] In some embodiments, the first home host is connected to home appliances, and the method further includes:

[0110] When the repair process fails to execute, the first home host shuts down the network service, so that the home appliances connected to the first home host switch to establish a connection with the second home host.

[0111] The first home host, as the core of the smart home system, is communicatively connected to home appliances to ensure the normal operation of the home appliances.

[0112] If the repair process of the first home host fails to execute, it indicates that the first home host has a serious exception, and at this time, it is impossible to ensure the stable operation of the home appliances. If the home appliances stop running, it will affect the user experience. Moreover, for key home appliances such as surveillance cameras and thermostats, if they stop running, it will also affect the environmental safety.

[0113] Therefore, a software load balancer is set between the first home host and the second home host. When the repair process of the first home host fails to execute, the software load balancer detects that the first home host is unavailable, then stops allocating network traffic to the first home host and automatically allocates the network traffic to the second home host. Thus, the first home host shuts down the network service and is taken over by the second home host, that is, the home appliances originally connected to the first home host switch to establish a connection with the second home host.

[0114] As an example, after allocating network traffic to the second home host, the second home host manages the network traffic through HAProxy configuration updates and progressive traffic migration, taking over basic network services of the first home host, including Wi-Fi network supply, DNS resolution, and IP allocation, so as to keep the network connections of the home devices originally connected to the first home host stable. At the same time, the second home host can also continuously monitor the status of the home devices through lightweight services, ensuring that the home devices can still operate normally during the abnormal period of the first home host.

[0115] In this embodiment, HAProxy is adopted as the software load balancer. HAProxy has high concurrent processing capabilities and rich functional features, and can be applied to various Web sites and applications that require high load and high availability, meeting the requirements of different application scenarios.

[0116] In other embodiments, other software load balancers can also be adopted, and the embodiments of the present invention do not limit this.

[0117] In some embodiments, after the first home host returns to normal, the method further includes:

[0118] The first home host restarts the network service so that the home devices connected to the second home host switch back to establish connections with the first home host.

[0119] After the first home host returns to normal, when the software load balancer detects that the first home host becomes available, it adopts a progressive service loading strategy to gradually redirect the network traffic back to the first home host. That is, the first home host restarts the network service so that the home devices connected to the second home host switch back to establish connections with the first home host.

[0120] By allocating network traffic according to the status of the home host, it is ensured that the home devices can still operate normally when the home host is abnormal, improving the user experience.

[0121] In some embodiments, the method further includes:

[0122] Generating an operation record, where the operation record includes the operation of the first home host for system restart;

[0123] Storing the operation record in the blockchain.

[0124] The first home host generates an operation record according to the entire recovery process of receiving the mirror file, burning, and system restart. The operation record includes the operation of the first home host for system restart.

[0125] Encrypt the operation record, calculate the hash value of the operation record, then package the encrypted operation record and the hash value into a transaction, and send it to the blockchain network. Finally, store the operation record in the blockchain. Subsequently, the administrator can check the operation status and data integrity at that time by tracing back the blockchain record. By generating and storing the operation record in the blockchain, the integrity and credibility of the data can be ensured, further enhancing the transparency and security of the home host mutual repair.

[0126] In the embodiment of the present invention, the self-checking strategy is determined according to the operation information of the first home host, and then self-checking is performed according to the self-checking strategy. When it is detected that the first home host has an abnormality, repair processing is executed. By determining the self-checking strategy based on the operation of the system and performing daily self-checking, the abnormality of the home host can be detected more timely, and self-repair can be performed at a stage where the degree of the fault is relatively light, thereby reducing the probability that the problem of the home host deteriorates to the point where it cannot run. When the repair processing fails, a help signal is sent to the second home host, so that the second home host sends an image file, and the system is restarted according to the received image file, so that the first home host returns to normal. That is, when the home host fails severely and cannot be repaired by itself, by requesting help from other home hosts and restarting the system according to the image file sent by other home hosts, the normal operation of the system can be quickly restored.

[0127] By adopting different repair means for different states of the home host, the situation where the home host cannot run can be effectively reduced, thereby ensuring the stable operation of the smart home system, improving the reliability of the system, reducing the dependence on manual labor for system maintenance at the same time, saving labor costs, and providing a more stable and reliable smart home experience for users.

[0128] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0129] Figure 2 It is the application flow chart of a repair method for a home host provided by an embodiment of the present invention.

[0130] To enable those skilled in the art to better understand the embodiments of the present invention, refer to Figure 2 , and illustrate the embodiments of the present invention through an example:

[0131] 1) Perform self-checking according to the self-checking strategy

[0132] During the daily operation of the first home host, a model is determined according to the operation information and the self-check strategy obtained through pre-training, the self-check strategy is determined, and self-check is performed according to the hierarchical and dynamic self-check strategy, including performing the first self-check process at the first self-check frequency, performing the second self-check process at the second self-check frequency, etc. It can achieve comprehensive monitoring of the home host status on the premise of ensuring system performance, thereby improving the reliability of the system. The determination of the self-check strategy is as described in step 101 and will not be elaborated here.

[0133] When the self-check detects an abnormality in the first home host, a repair process is executed.

[0134] 2) Execute the repair process

[0135] After the first home host detects an abnormality, first determine the abnormality type and the repair method corresponding to the abnormality type according to the operation information and the abnormality detection model obtained through pre-training, and then execute the repair method corresponding to the determined abnormality type. Accurately locate the abnormality type through the abnormality detection model and perform effective repair processing, thereby reducing the impact of abnormal situations on system operation and improving the stability of the system.

[0136] If the repair process is executed successfully, the first home host continues to run normally. At the same time, continue to optimize the self-check strategy determination model and the abnormality detection model according to the repair process results.

[0137] 3) If the repair process fails to execute, there may be two situations:

[0138] If the first home host can still send a help signal after an abnormality occurs, send a help signal to the second home host to request the second home host to send an image file to restore normalcy.

[0139] If the second home host detects an abnormality in the first home host based on heartbeat packet exchange, if the second home host actively sends an image file to the first home host to help the first home host return to normal.

[0140] In addition, after the repair process of the first home host fails to execute, the load balancer will distribute the network traffic to the second home host, that is, switch the home devices connected to the first home host to establish a connection with the second home host, and the second home host takes over these home devices to ensure their normal operation.

[0141] 4) Receive the image file of the second home host

[0142] The first home host receives the image file sent by the second home host and stores it in the temporary storage area. After receiving it completely, the image file is burned into the system partition to obtain a new image partition. After obtaining the new image partition, the integrity of the new image is verified to ensure that the image file has not been tampered with or damaged during transmission.

[0143] 5) Restart the system according to the image file

[0144] The first home host verifies the image file. After confirming its availability, it switches to the new image partition to restart the system and complete the system update. Then, through the second self-check process, a deep check is performed on the first home host to determine that the first home host has returned to normal.

[0145] In addition, after determining that the first home host has returned to normal, the load balancer will gradually redirect the network traffic back to the first home host, that is, switch the home devices that were taken over by the second home host and connected to the second home host back to be connected to the first home host, so as to ensure the stable operation of the home devices during the repair process of the first home host.

[0146] Figure 3 It is the structural block diagram of a repair device for a home host provided by an embodiment of the present invention.

[0147] As Figure 3 shown, a repair device for a home host provided by an embodiment of the present invention may specifically include the following modules:

[0148] The policy determination module 301 is used to obtain the operation information of the first home host and determine the self-check policy according to the operation information;

[0149] To ensure the stable operation of the home host, the home host needs to perform self-checks so that problems can be detected and processed in a timely manner. However, considering that self-checks will consume the computing resources required for the normal operation of the system, it is necessary to determine the self-check policy to detect abnormal problems in a timely manner without causing too much impact on the normal operation of the system.

[0150] For the above considerations, a self-check policy is set, and the self-check policy is used to determine the self-check method and self-check frequency.

[0151] In some embodiments, the policy determination module 301 includes the following sub-modules:

[0152] The first self-check processing sub-module is used to determine the first self-check frequency and the first self-check items of the first self-check processing, and determine the second self-check frequency and the second self-check items of the second self-check processing according to the operation information and the self-check policy determination model obtained by pre-training.

[0153] The self - inspection strategy determination model can determine the warning threshold based on historical operation information, and combine the current operation information to predict the probability of system anomalies, and dynamically determine the self - inspection frequency. For example, when the probability of predicting system anomalies is lower than the warning threshold for a long time, the fault risk is relatively small, so the self - inspection frequency is reduced to save system resources. When the probability of predicting system anomalies reaches the warning threshold, the fault risk is relatively high, so the self - inspection frequency is increased.

[0154] The self - inspection strategy determination model can also combine historical operation information and current operation information, and dynamically determine specific self - inspection items by comparing and analyzing the differences between the two. For example, when a deviation between the current operation information and the historical operation mode is detected, corresponding self - inspection items will be added for the software and hardware components associated with these abnormal indicators (such as CPU, memory, hard disk, operating system processes, etc.).

[0155] Through the self - inspection strategy determination model, the self - inspection frequency and self - inspection items of the self - inspection method are dynamically adjusted. On the premise of ensuring performance, the self - inspection coverage rate and accuracy are greatly improved, thus ensuring the stable operation of the system.

[0156] The anomaly detection module 302 is used to perform self - inspection according to the self - inspection strategy, and when an anomaly of the first home host is detected, perform repair processing;

[0157] Based on the self - inspection strategy obtained by the strategy determination module 301, determine the self - inspection method and self - inspection frequency, and perform self - inspection. When an anomaly of the first home host is detected, perform repair processing.

[0158] Performing self - inspection according to the self - inspection strategy can accurately locate the cause and type of anomalies, so as to efficiently handle anomaly problems. After the anomaly is processed, the subsequent self - inspection strategy will also be dynamically adjusted according to the anomaly processing result to strengthen the monitoring of the anomaly source.

[0159] In some embodiments, the anomaly detection module 302 includes the following sub - modules:

[0160] The self - inspection frequency determination sub - module is used to determine a first self - inspection frequency and a second self - inspection frequency according to the self - inspection strategy; the first self - inspection frequency is higher than the second self - inspection frequency.

[0161] Determine the self - inspection frequency according to the self - inspection strategy, including the first self - inspection frequency of the first self - inspection process and the second self - inspection frequency of the second self - inspection process. The first self - inspection frequency is higher than the second self - inspection frequency, that is, the basic and simple first self - inspection process will be executed at a higher frequency, while the in - depth and comprehensive second self - inspection process will be executed at a lower frequency.

[0162] The second self-check processing sub-module is used to perform the first self-check processing on the first home host at the first self-check frequency; and perform the second self-check processing on the first home host at the second self-check frequency.

[0163] It can be understood that, compared with the second self-check processing, the first self-check processing consumes less computing resources and takes less processing time. Therefore, the first self-check processing is suitable for being set at a higher frequency as a cost-effective daily maintenance means. The second self-check processing checks more items, the detected content is more comprehensive and in-depth, and at the same time consumes more resources. Therefore, it is suitable for being set at a lower frequency to ensure that the home host remains in good condition after running for a long time.

[0164] Through the above hierarchical and dynamic self-check strategies, it is possible to comprehensively monitor the status of the home host while ensuring system performance, thereby improving the reliability of the system.

[0165] In some embodiments, the anomaly detection module 302 includes the following sub-modules:

[0166] The third self-check processing sub-module is used to, if an anomaly is detected in the first home host during the first self-check processing of the first home host, perform the second self-check processing on the first home host.

[0167] If an anomaly is detected in the first home host during the first self-check processing of the first home host, for example, the CPU temperature is too high, the network connection is unstable, etc., the first self-check processing also includes using relevant repair tools for simplicity. And automatically trigger the second self-check processing, and through more in-depth self-check items, more accurately check the anomaly problem, further locate the root cause of the problem and process it.

[0168] In some embodiments, the anomaly detection module 302 includes the following sub-modules:

[0169] The anomaly determination module is used to, when an anomaly is detected in the first home host, determine the anomaly type and the repair method corresponding to the anomaly type according to the running information and the pre-trained anomaly detection model;

[0170] The anomaly detection model can decide the most likely anomaly type and the repair method corresponding to the anomaly type according to different conditions. When an anomaly is detected in the first home host, according to the current running information, the real-time log and metric data are input into the anomaly detection model, so as to obtain the anomaly type and the corresponding repair method output by the anomaly detection model.

[0171] Precisely locating the abnormal type through the anomaly detection model and performing effective repair processing can reduce the impact of abnormal situations on the system operation and improve the stability of the system.

[0172] A repair execution module for executing the repair method corresponding to the abnormal type.

[0173] Each abnormal type corresponds to repair methods at different levels of milliseconds, seconds, and minutes. By setting the three-level repair method, it can quickly respond to abnormal situations and gradually locate complex abnormal situations to complete the repair processing, which can greatly improve the efficiency of anomaly repair.

[0174] A help request processing module 303 for sending a help signal to the second home host if the repair processing fails.

[0175] The first home host and the second home host are communicatively connected. When the anomaly of the first home host is relatively serious and the repair processing fails, for example, the repair processing fails to solve the abnormal problem or cannot be repaired, a help signal is sent to the second home host, and at the same time, important data is backed up.

[0176] A recovery processing module 304 for receiving the image file sent by the second home host in response to the help signal and restarting the system according to the image file to make the first home host return to normal.

[0177] As an example, when the first home host has a system anomaly, such as a crash and is unable to perform normal functions, it will automatically switch to the recovery mode driven by the firmware. In the recovery mode, it does not rely on the operating system and can handle basic hardware operations.

[0178] After receiving the help signal from the first home host, the second home host wakes up the recovery interface of the first home host and then sends an image file to the first home host.

[0179] After the recovery interface of the first home host is awakened, it receives the image file sent by the second home host and stores it in the temporary storage area. After receiving it, the system recovery function of the first home host is awakened, so as to burn the image file into the system partition to obtain a new image partition. After obtaining the new image partition, the image file is verified. After confirming its availability, it switches to the new image partition for system restart to complete the system update. Then, through the second self-check processing, the first home host is deeply checked to determine that the first home host has returned to normal.

[0180] In some embodiments, the device further includes the following sub-modules:

[0181] A connection switching module, which is used to close the network service of the first home host when the repair process fails, so that the home devices connected to the first home host are switched to establish a connection with the second home host.

[0182] As the core of the smart home system, the first home host is communicatively connected to home devices to ensure the normal operation of the home devices.

[0183] If the repair process of the first home host fails, it indicates that the first home host is seriously abnormal, and at this time, it is impossible to ensure the stable operation of home devices. Therefore, a software load balancer is set between the first home host and the second home host. When the repair process of the first home host fails and the software load balancer detects that the first home host is unavailable, it will no longer allocate network traffic to the first home host and automatically allocate the network traffic to the second home host. Thus, the first home host closes the network service, which is taken over by the second home host, that is, the home devices originally connected to the first home host are switched to establish a connection with the second home host.

[0184] In some embodiments, the device further includes the following sub-modules:

[0185] A first mirror file sending module, which is used to, if the first home host receives the help signal sent by the second home host, respond to the help signal and send the mirror file to the second home host, so that the second home host can perform a system restart according to the mirror file.

[0186] The first home host and the second home host have the same functional structure and both have the ability of self-check and repair and helping other home hosts for repair. When the second home host has an abnormality and sends a help signal to the first home host, the first home host will also send a mirror file to the second home host to help the second home host perform a system restart, so as to restore the system to normal.

[0187] The first home host divides the mirror file into data blocks and encrypts them, and then sends them to the temporary storage area of the second home host. After the transmission is completed, the system recovery function of the second home host is triggered, so that the second home host can burn the mirror file into the system partition to restore the system to normal.

[0188] In some embodiments, the device further includes the following sub-modules:

[0189] A heartbeat request sending module, which is used to regularly send heartbeat requests to the second home host;

[0190] The second image file sending module is configured to send the image file to the second home host if the number of timeouts for the second home host to respond to the heartbeat request reaches the timeout threshold, so that the second home host can restart the system according to the image file.

[0191] It can be understood that the first home host and the second home host regularly send heartbeat requests to each other. If the receiving party has a system exception and is unable to respond to the heartbeat request from the sending party, it will cause the timeout of the response to the heartbeat request. When the number of timeouts for the response to the heartbeat request reaches the timeout threshold, the sending party confirms that the receiving party has a system exception and sends the image file to the receiving party to help the receiving party restart the system. That is, based on the heartbeat packet exchange between the first home host and the second home host, the functions of mutual supervision and mutual assistance repair are realized.

[0192] In some embodiments, the device further includes the following sub-modules:

[0193] The operation record generation module is configured to generate an operation record, and the operation record includes the operation of the first home host to restart the system;

[0194] The operation record storage module is configured to store the operation record in the blockchain.

[0195] The first home host generates an operation record according to the entire recovery process of receiving the image file, burning, and system restart. The operation record includes the operation of the first home host to restart the system.

[0196] The operation record is encrypted, and the hash value of the operation record is calculated. Then, the encrypted operation record and the hash value are packaged into a transaction and sent to the blockchain network. Finally, the operation record is stored in the blockchain. Subsequently, the administrator can check the operation status and data integrity at that time by tracing back the blockchain record. By generating the operation record and storing it in the blockchain, the integrity and credibility of the data can be ensured, and the transparency and security of the mutual assistance repair of the home host are further improved.

[0197] In an embodiment of the present invention, a self-checking strategy is determined based on the operation information of the first home host, and then self-checking is performed according to the self-checking strategy. When an abnormality of the first home host is detected, a repair process is executed. By determining the self-checking strategy based on the operation status of the system and performing daily self-checking, abnormal conditions of the home host can be detected more timely, and self-repair can be performed at a stage where the degree of the fault is relatively light, thereby reducing the probability that the problems of the home host deteriorate to the point where it cannot operate. When the repair process fails, a help signal is sent to the second home host, so that the second home host sends an image file, and the system is restarted according to the received image file, so that the first home host returns to normal. That is, when the home host fails severely and cannot be repaired by itself, help is requested from other home hosts, and the system is restarted according to the image file sent by other home hosts, so as to quickly restore the normal operation of the system. The reliability of the system is improved, a more stable and reliable smart home experience is provided for users, and at the same time, the dependence of system maintenance on manual labor is reduced, saving labor costs.

[0198] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For related parts, please refer to the partial description of the method embodiment.

[0199] An embodiment of the present invention also provides a home host, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements each process of the above-mentioned repair method embodiment of the home host and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0200] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, it implements each process of the above-mentioned repair method embodiment of the home host and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0201] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.

[0202] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0203] Embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0204] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or multiple blocks.

[0206] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.

[0207] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

[0208] The above has introduced in detail a repair method, device, home host and computer-readable storage medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A repair method for a home host, characterized in that, The method includes: Obtaining the running information of the first home host, and determining a self-checking strategy according to the running information; Performing a self-check according to the self-checking strategy, and when an abnormality of the first home host is detected, performing a repair process; If the repair process fails to execute, sending a help signal to the second home host; Receiving the mirror file sent by the second home host in response to the help signal, and performing a system restart according to the mirror file, so that the first home host returns to normal.

2. The repair method of the home host according to claim 1, characterized in that The self-checking strategy is used to determine the self-checking method and the self-checking frequency; the self-checking method includes a first self-checking process and a second self-checking process; the first self-checking items included in the first self-checking process are fewer than the second self-checking items included in the second self-checking process; The performing a self-check according to the self-checking strategy includes: Determining a first self-checking frequency and a second self-checking frequency according to the self-checking strategy; the first self-checking frequency is higher than the second self-checking frequency; Performing the first self-checking process on the first home host at the first self-checking frequency; and performing the second self-checking process on the first home host at the second self-checking frequency.

3. The repair method of the home host according to claim 2, wherein The determining a self-checking strategy according to the running information includes: Determining a self-checking strategy determination model obtained by pre-training according to the running information, determining the first self-checking frequency and the first self-checking items of the first self-checking process, and determining the second self-checking frequency and the second self-checking items of the second self-checking process.

4. The repair method of the home host according to claim 1, characterized in that, The first home host is connected to home appliances; The method further includes: When the repair process fails to execute, the first home host shuts down the network service, so that the home appliances connected to the first home host are switched to establish a connection with the second home host.

5. The repair method of the home host according to claim 1, characterized in that, The method further includes: If the first home host receives the help signal sent by the second home host, responding to the help signal and sending the mirror file to the second home host, so that the second home host performs a system restart according to the mirror file.

6. The repair method of the home host according to claim 1, characterized in that, The method further includes: Regularly sending a heartbeat request to the second home host; If the number of timeouts for the second home host to respond to the heartbeat request reaches the timeout threshold, sending the mirror file to the second home host, so that the second home host performs a system restart according to the mirror file.

7. The repair method of the home host according to claim 2, characterized in that, The performing a self-check according to the self-checking strategy further includes: If an abnormality of the first home host is detected during the first self-checking process on the first home host, performing the second self-checking process on the first home host.

8. The repair method of the home host according to claim 1, characterized in that, The performing a repair process when an abnormality of the first home host is detected includes: When an abnormality of the first home host is detected, determining the abnormality type and the repair method corresponding to the abnormality type according to the running information and an abnormality detection model obtained by pre-training; Executing the repair method corresponding to the abnormality type.

9. The repair method of the home host according to claim 1, wherein After performing a system restart according to the mirror file to make the first home host return to normal, the method further includes: Generate an operation record, where the operation record includes the operation of the first home host for system restart; Store the operation record in the blockchain.

10. A repair device for a home host, characterized in that, The device includes: A policy determination module, configured to obtain the running information of the first home host and determine a self-check policy according to the running information; An anomaly detection module, configured to perform a self-check according to the self-check policy, and perform a repair process when it detects that the first home host has an anomaly; A help request processing module, configured to send a help request signal to the second home host if the repair process fails to execute; A recovery processing module, configured to receive the image file sent by the second home host in response to the help request signal, and perform a system restart according to the image file to make the first home host return to normal.

11. A home host, characterized in that, Includes: A processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the repair method of the home host according to any one of claims 1-9 are implemented.

12. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps of the repair method of the home host according to any one of claims 1-9 are implemented.