Control method and device for smart home system, electronic device, smart home system

CN118759873BActive Publication Date: 2026-07-24QINGDAO HAIER TECH +3
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER TECH
Filing Date
2024-07-15
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

[0005]通常,语音交互设备只能根据指令进行简单的设备控制功能,并不能进行复杂的决策计算

Benefits of technology

[0020]本公开实施例相较于相关技术,能够执行与智能家居设备相对应的控制策略,并且,在智能家居系统运行时监控系统的运行状态。这样在智能家居设备运行时使得实时地检测系统是否出现异常。通过对异常情况进行诊断,智能家居系统可以根据诊断的结果对异常情况进行修复,使得智能家居系统在出现异常时仍然可以执行控制策略,从而提升了系统的稳定性。进一步地,在对系统进行修复后获得的修复反馈结果能够帮助智能家居系统对预设的修复操作进行更新,从而提升智能家居系统的异常修复能力,进一步提升系统的稳定性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118759873B_ABST
    Figure CN118759873B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of smart home, and discloses a control method for a smart home system, which comprises the following steps: monitoring the running state of the smart home system in the case that a smart home device of the smart home system executes a control strategy; in the case that the running state is abnormal, acquiring the type of the abnormality, the performance of the abnormality and the occurrence environment of the abnormality according to the running state, and determining the abnormality cause of the smart home system according to the type of the abnormality, the performance of the abnormality and the occurrence environment of the abnormality, so as to determine whether the smart home system can self-repair the abnormality; in the case that the smart home system can self-repair the abnormality, repairing the abnormality by using a preset repair operation in the smart home system, and obtaining a repair feedback result; and updating the repair operation of the smart home system according to the repair feedback result. The application can still execute the control strategy when the smart home system is abnormal, thereby improving the stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a control method and device, electronic device, and smart home system for a smart home system. Background Technology

[0002] Currently, with the development of IoT and AI technologies, smart homes are gradually becoming an important research field. The role of a smart home system is to automate the management and control of various devices in the home environment, thereby providing an intelligent lifestyle. However, as the number of smart home devices increases, effective control methods are needed to manage these devices.

[0003] To automate the management of smart home devices, related technologies utilize voice interaction devices to collect user voice commands and interact with them. These devices can pair with and control a wide range of third-party smart home devices based on user voice commands and interactions.

[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:

[0005] Typically, voice-interactive devices can only perform simple device control functions based on commands and cannot perform complex decision-making calculations. Furthermore, voice-interactive devices lack sufficiently robust self-diagnostic and repair capabilities; when smart home devices malfunction or experience software problems during device control, they cannot automatically diagnose and repair them.

[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0008] This disclosure provides a control method and apparatus, electronic device, and smart home system for a smart home system, which can improve the stability of the smart home system.

[0009] In some embodiments, the control method for a smart home system includes: monitoring the operating status of the smart home system when the smart home devices in the smart home system execute a control strategy; if an abnormality occurs in the operating status, obtaining the type of the abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurs based on the operating status, and determining the cause of the abnormality in the smart home system based on the type of the abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurs, so as to determine whether the smart home system can self-repair the abnormality; if the smart home system can self-repair the abnormality, repairing the abnormality using a preset repair operation in the smart home system, and obtaining repair feedback results; and updating the repair operation of the smart home system based on the repair feedback results.

[0010] Optionally, if the smart home system is capable of self-repairing anomalies, the anomalies can be repaired using preset repair operations within the smart home system. This includes: if the smart home system is capable of self-repairing anomalies, performing repair operations corresponding to the causes of the anomalies based on a fault list; wherein the fault list includes various causes of anomalies and corresponding processing procedures.

[0011] Optionally, the control method for the smart home system further includes: when the smart home system cannot self-repair anomalies, selecting the highest priority backup device among the backup devices as the target backup device; and controlling the target backup device to execute the control strategy.

[0012] Optionally, the repair operations of the smart home system are updated based on the repair feedback results, including: rating the repair operations corresponding to the repair feedback results and obtaining rating results; sorting the repair operations according to the rating results; and selecting repair operations in sequence according to the sorting results to repair abnormalities in the operating status.

[0013] Optionally, the control strategy is obtained as follows: user request data and corresponding environmental data are obtained; the user request data and environmental data are input into a large model for calculation to obtain the control strategy corresponding to the user request data and environmental data; wherein, the control strategy can control the operation of smart home devices in the smart home system to meet the user's request.

[0014] Optionally, user request data and environmental data are input into a large model for calculation to obtain a control strategy corresponding to the user request data and environmental data. This includes: converting the user request data and environmental data into a data format that matches the input of the large model; inputting the converted user request data and environmental data into the large model for calculation; and using the calculation results output by the output of the large model as the control strategy.

[0015] Optionally, the control method for the smart home system further includes: reporting abnormal information when an abnormality occurs in the operating state; wherein the abnormal information includes one or more of the following: fault details, scope of impact, and repair operations that have been performed.

[0016] In some embodiments, the control device for a smart home system includes a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the control method for the smart home system described above through the computer program.

[0017] In some embodiments, the electronic device includes: an electronic device body; and the control device for a smart home system described above, which is installed on the electronic device body.

[0018] In some embodiments, the smart home system includes: smart home devices; a large model module configured to obtain control strategies corresponding to user request data and environmental data; wherein the control strategies can control the operation of smart home devices in the smart home system to meet user requests; a fault tolerance and recovery module configured to monitor the operating status of the smart home system when the smart home devices execute the control strategies; in the event of an abnormal operating status, to obtain the type, manifestation, and occurrence environment of the abnormality based on the operating status, and to determine the cause of the abnormality in the smart home system based on the type, manifestation, and occurrence environment of the abnormality, so as to determine whether the smart home system can self-repair the abnormality; if the smart home system can self-repair the abnormality, to repair the abnormality using preset repair operations in the smart home system and obtain repair feedback results; and to update the repair operations of the smart home system based on the repair feedback results.

[0019] The control method, apparatus, electronic device, and smart home system for smart home systems provided in this disclosure can achieve the following technical effects:

[0020] Compared to related technologies, the embodiments disclosed herein can execute control strategies corresponding to smart home devices and monitor the system's operating status during operation. This allows for real-time detection of system anomalies during smart home device operation. By diagnosing anomalies, the smart home system can repair them based on the diagnostic results, enabling the system to continue executing control strategies even when anomalies occur, thereby improving system stability. Furthermore, the repair feedback obtained after system repair can help the smart home system update preset repair operations, thereby enhancing the system's anomaly repair capabilities and further improving system stability.

[0021] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0022] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0023] Figure 1 This is a hardware environment diagram of a control method for a smart home system provided in an embodiment of this disclosure;

[0024] Figure 2 This is a schematic diagram of a control method for a smart home system provided in an embodiment of this disclosure;

[0025] Figure 3 This is a schematic diagram of another control method for a smart home system provided in an embodiment of this disclosure;

[0026] Figure 4 This is a schematic diagram of another control method for a smart home system provided in an embodiment of this disclosure;

[0027] Figure 5 This is a schematic diagram of a control device for a smart home system provided in an embodiment of this disclosure;

[0028] Figure 6 This is a schematic diagram of a smart home system provided in an embodiment of this disclosure. Detailed Implementation

[0029] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0030] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0031] Unless otherwise stated, the term "multiple" means two or more.

[0032] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0033] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0034] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0035] Currently, with the development of IoT and AI technologies, users rely on smart home systems to automatically manage and control various smart home devices in their home environment, thereby providing users with an intelligent lifestyle.

[0036] According to one aspect of the embodiments of this application, a control method for a smart home system is provided. This control method for a smart home system is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, smart home device ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-described control method for a smart home system can be applied to, for example... Figure 1 The hardware environment shown consists of smart home device 102 and server 104. Figure 1 As shown, server 104 is connected to smart home device 102 via a network and can be used to provide services (such as application services) to terminals or clients installed on terminals. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0037] In this embodiment of the disclosure, smart home device 102 refers to a home appliance product formed by introducing microprocessor, sensor technology and network communication technology into home appliances. It has the characteristics of intelligent control, intelligent sensing and intelligent application. The operation of smart home device 102 often relies on the application and processing of modern technologies such as Internet of Things, Internet and electronic chips. For example, smart home device 102 can be connected to electronic devices to realize remote control and management of smart home device 102 by users.

[0038] The aforementioned networks may include, but are not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. Smart home devices 102 may not be limited to PCs, mobile phones, tablets, smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.

[0039] Combination Figure 2 As shown, this disclosure provides a control method for a smart home system, including:

[0040] S01, the server monitors the operating status of the smart home system when the smart home devices in the smart home system execute the control policy.

[0041] S02, when the server encounters an abnormality in its operating status, it obtains the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred based on the operating status. Based on the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred, it determines the cause of the abnormality in the smart home system, so as to determine whether the smart home system can self-repair the abnormality.

[0042] S03, when the smart home system is capable of self-repairing anomalies, use the preset repair operations in the smart home system to repair the anomalies and obtain repair feedback results.

[0043] S04, the server updates the repair operation of the smart home system based on the repair feedback results.

[0044] The control method for smart home systems provided in this disclosure enables the smart home system to execute control strategies corresponding to smart home devices and monitor the system's operating status during operation. This allows for real-time detection of system anomalies during smart home device operation. By diagnosing anomalies, the smart home system can repair them based on the diagnostic results, ensuring that control strategies can still be executed even when anomalies occur. This reduces the likelihood of smart home devices interrupting operation due to anomalies, thereby improving system stability. Furthermore, the repair feedback obtained after system repair helps the smart home system update preset repair operations, enhancing its anomaly repair capabilities and further improving system stability.

[0045] When an anomaly occurs during operation, the type of the anomaly, its manifestation, and the environment in which it occurs can all be recorded. The smart home system can determine the cause of the anomaly based on these factors. Typically, the causes of anomalies include software problems and hardware problems. In practical applications, rules for determining anomalies as software problems include system or application crashes or freezes, slow or sluggish system operation, abnormal error messages or warnings from the system, application malfunctions or abnormal behavior, and system startup failures or frequent restarts. Rules for determining anomalies as hardware problems include devices failing to power on or automatically shutting down, devices overheating, abnormal display colors or no display at all, startup error messages, and unresponsive peripheral devices (such as mice and keyboards).

[0046] In practical applications, the system's operational status can be monitored in real time. This operational status needs to remain within a normal range to ensure normal system operation. The operational status includes the type of equipment, its operational performance, and the relationships between devices. In the event of a system anomaly, the monitored operational status reveals the type of equipment malfunctioning, its current operational status, and the execution status of the current control strategy. Based on the type of equipment malfunctioning, its current operational status, and the execution status of the current control strategy, the system can determine whether the anomaly is due to a software or hardware problem.

[0047] Optionally, the operational status of a smart home system can be monitored by collecting logs, heartbeat checks, collecting anomaly reports, and collecting operational metrics.

[0048] When monitoring a smart home system by collecting logs, all components or devices generate operation logs (operation type, time, result, etc.) and periodically send these logs to the fault tolerance and recovery module. By parsing these logs, the fault tolerance and recovery module can understand the current operating status of the smart home system.

[0049] When monitoring a smart home system via heartbeat checks, heartbeat checks are commonly used in network programming to detect whether two machines maintain a connection. Specifically applied to a smart home system, smart home devices can periodically send "heartbeat" messages to a fault tolerance and recovery module to demonstrate that the smart home devices are functioning correctly.

[0050] When monitoring a smart home system by collecting anomaly reports, an anomaly report will be immediately sent to the fault tolerance and recovery module when a smart home device or functional module experiences an anomaly (such as hardware failure or execution error), in order to monitor the operating status of the smart home system.

[0051] When monitoring a smart home system by collecting operational metrics, the hardware may periodically report key performance indicators, such as CPU (Central Processing Unit) utilization, memory usage, and network connectivity, to the fault tolerance and recovery module.

[0052] Optionally, if the smart home system is capable of self-repairing anomalies, the anomaly can be repaired using preset repair operations within the smart home system. This includes: if the smart home system is capable of self-repairing anomalies, executing repair operations corresponding to the causes of the anomalies based on a fault list. The fault list includes various causes of anomalies and corresponding processing procedures.

[0053] In this embodiment, the smart home system can diagnose anomalies based on the acquired operating status. First, when an anomaly occurs, the functional module or smart home device typically generates an error log, which details the process that triggered the anomaly. By analyzing the error log, the source of the error can be traced, as well as the status of various key parameters at the time of the anomaly. Second, the system checks the operating status of the functional module or smart home device that malfunctioned, such as CPU usage, memory consumption, and disk space. If any abnormal status is found (e.g., excessively high memory consumption), these abnormal states may have caused the failure. Third, the system may need to reproduce the failure to further understand the cause of the anomaly. This typically requires repeating the steps that caused the failure in a controlled environment and observing and recording the results in detail. Finally, the smart home system can also run more complex diagnostic tools (e.g., memory detectors), analyze core dump files or other low-level system logs, and even perform debugging at the source code level.

[0054] After diagnosing the smart home system, enough information can be collected to build hypotheses to explain why the error occurred. Then, each hypothesis is verified until the most likely cause of the problem is found.

[0055] After diagnosing the cause of the anomaly, the system can assess the situation based on the cause and determine whether the smart home system can self-repair. During the system design phase, a fault list and corresponding handling procedures are pre-defined. The fault list includes various anomalies that can be automatically resolved. For example, if the anomaly is a configuration error, the corresponding procedure is to attempt to roll back to the previous normal configuration. If the anomaly is a memory leak, the corresponding procedure is to restart the service to release the memory. If the anomaly is a server connection failure, the corresponding procedure is to attempt to re-establish the connection or switch to a backup service, etc.

[0056] Optionally, the method further includes: in the event that the smart home system cannot self-repair anomalies, selecting the highest-priority backup device from the backup devices as the target backup device; and controlling the target backup device to execute control strategies.

[0057] In this embodiment, after diagnosing the abnormal situation, if the system cannot self-repair the abnormality, it is necessary to ensure that the system can continue to operate. Therefore, the system can promptly activate the backup device and transmit relevant data to the backup device. In this way, the backup device can continue to execute the control strategy to provide services to the user, thereby improving the stability of the system.

[0058] During the operation of a smart home system, idle smart home devices can serve as backup devices, with multiple backup devices arranged according to priority. The higher the computing power, the higher the priority. If the smart home system cannot self-correct anomalies, the target backup device with higher computing power continues to execute control strategies to ensure the system can continue to provide services to users.

[0059] Alternatively, situations where smart home systems cannot self-repair anomalies include hardware failures. Hardware failures are difficult to recover from in real time, especially serious hardware problems such as physical damage to smart home devices or overheating. Since hardware failures usually require physical repairs (such as replacing hardware devices or cleaning the cooling system), only short-term replacements with backup devices are possible.

[0060] Optionally, situations where smart home systems cannot self-repair include uncommon software issues. For some uncommon software problems, such as system crashes or serious system errors, real-time recovery may not be possible. Serious software errors require professional investigation and repair.

[0061] Optionally, situations where smart home systems cannot self-correct include some foreseeable problems that severely impact usability, and some anticipated problems that significantly affect user experience and system functionality that may be difficult to fix in real time. Examples include strong attacks causing system instability or sustained high server load.

[0062] If the cause of the anomaly cannot be self-corrected, it is necessary to fully utilize various information such as log records, status checks, and anomaly reports, and combine this with professional knowledge for in-depth analysis and judgment. For example, continuously detecting device overheating warnings requires caution as it may indicate a serious hardware failure, and proactive action should be taken. Similarly, abnormally frequent requests detected through access logs may indicate a network attack, requiring immediate response. When relevant situations occur or anomalies are discovered during checks or feedback, data and services will be switched to backup devices to ensure the system can provide uninterrupted service to users.

[0063] Optionally, a backup device can be any device or service that can replace the primary system or device. When the backup device starts working, the primary system or device may be malfunctioning, such as due to hardware failure or software issues. Backup devices may take different forms depending on the functional modules and smart home devices. For hardware devices such as sensors, controllers, and servers, the corresponding backup device is typically a physical device of the same or compatible model. These same or compatible physical devices can be pre-configured and synchronized, allowing for rapid switching to the backup device if the primary device encounters a problem or failure. For software services and modules, backup devices typically exist as redundant services or systems. For example, multiple servers can be deployed in a cluster to provide the same service and share the load; if some servers fail, other operating servers can provide uninterrupted service to users. Another example is using a backup device that periodically performs full or incremental updates to obtain new data, allowing the system to recover from the next latest version in case of data loss. For model computation tasks, the processing tasks may be distributed across other available computing nodes.

[0064] Optionally, the repair operations of the smart home system are updated based on the repair feedback results, including: rating the repair operations corresponding to the repair feedback results to obtain rating results; sorting the repair operations according to the rating results; and selecting repair operations sequentially according to the sorting results to perform repairs when an abnormality occurs in the operating status.

[0065] In this embodiment, the repair feedback result reflects the effectiveness of the repair operation in addressing abnormal situations. The system can evaluate preset repair operations based on the repair effect, thereby optimizing its self-repair strategy. For example, if a repair operation performs well, it will be prioritized for use in similar abnormal situations in the future. Conversely, a poorly performing repair operation may be downgraded. This learning capability enables the fault tolerance and recovery module to make more accurate and effective repair operations when facing new or unknown faults.

[0066] Optionally, the control strategy is obtained as follows: User request data and corresponding environmental data are obtained. The user request data and environmental data are input into a large model for calculation to obtain the control strategy corresponding to the user request data and environmental data. This control strategy enables the operation of smart home devices in the smart home system to meet the user's requests.

[0067] Combination Figure 3 As shown, this disclosure provides another control method for a smart home system, including:

[0068] S11, the server obtains the user-requested data and the corresponding environmental data.

[0069] S12, the server inputs the user request data and environmental data into the large model for calculation to obtain the control strategy corresponding to the user request data and environmental data. The control strategy can control the operation of smart home devices in the smart home system to meet the user's request.

[0070] S13, the server monitors the operating status of the smart home system when the smart home devices in the smart home system execute the control policy.

[0071] S14. When the server encounters an abnormality in its operating status, it obtains the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred based on the operating status. Based on the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred, it determines the cause of the abnormality in the smart home system, so as to determine whether the smart home system can self-repair the abnormality.

[0072] S15: When the smart home system is capable of self-repairing anomalies, the system uses preset repair operations to repair the anomalies and obtains repair feedback results.

[0073] S16, the server updates the repair operation of the smart home system based on the repair feedback results.

[0074] In this embodiment, a control strategy can be calculated using a large model based on user request data and environmental data. When a user needs services from the smart home system, they can input their request into the system. The system obtains the request data based on the user's input. Furthermore, the system categorizes the request data, matches the categorization results with environmental data, and selects the environmental data corresponding to the user's request data. The calculation of the large model may involve machine learning, model optimization, and model prediction. The control strategy can execute routine tasks and preset rules, and can also respond to user commands. During the calculation of the control strategy, when encountering situations requiring advanced analysis or complex mathematical operations, data can be transmitted to the large model, and the control strategy obtained through the large model's calculation can be used. The calculation of the large model may involve machine learning, model optimization, and model prediction.

[0075] Optionally, user request data and environmental data are input into a large model for calculation to obtain a control strategy corresponding to the user request data and environmental data. This includes: converting the user request data and environmental data into a data format that matches the input of the large model; inputting the converted user request data and environmental data into the large model for calculation; and using the calculation results output from the large model as the control strategy.

[0076] In this embodiment of the disclosure, the user request data and environmental data are format-converted to make the data format of the input large model more compatible with the input terminal, so that the large model can more easily understand the user's request and output a more accurate control strategy.

[0077] Optionally, the transformed user request data and environmental data can be input into the large model for calculation via API.

[0078] The API, acting as a programming interface, allows processed data to be fed into a large model for computation. The large model then outputs computation results, which the system can collect and parse. These results can be used as control strategies. Alternatively, they can be combined with relevant data and rules to transform the parse results into executable control strategies.

[0079] Optionally, the user request data and environmental data are converted into a data format that matches the input of the large model, including: vectorizing the user request data to obtain the user's input vector; extracting text from the environmental data according to a natural language processing algorithm; converting the text into a numerical vector; concatenating the user's input vector with the numerical vector in the environmental data, or performing a weighted summation of the user's input vector and the numerical vector of the background information, or mixing the user's input vector with the numerical vector of the background information.

[0080] Furthermore, by using the computational results output from the large model as a control strategy, user feedback can be obtained to update the large model. Based on user feedback, the control strategy can be evaluated, yielding evaluation results. These evaluation results are then input into the large language model to obtain corrected data, which is then used to update the large model.

[0081] Optionally, obtaining user request data and environmental data includes receiving and processing user instructions and collecting and processing environmental data.

[0082] The system can receive user commands or requests in various ways (such as voice, text, touch, etc.). It then parses the user's raw input into a format that the system can understand and process. For example, it converts speech to text or natural language commands into specific control instructions. Finally, it validates the user input to ensure that the requested data conforms to the expected format and rules. If there are any errors or ambiguities, it may be necessary to request more information or clarification from the user.

[0083] The system can collect data from various environmental devices (such as sensors) and transform the raw data into a format that the system can understand. Furthermore, based on the system's decision-making, it can send specific commands to control the state of various environmental devices and handle communication protocol conversions between devices. Depending on the protocol used by the device, the received information can be parsed and converted into a format that the system can understand or a protocol acceptable to other devices.

[0084] Optionally, preprocessing the user's raw input data, including removing duplicate values, filling in missing values, and standardizing, can ensure data quality. Furthermore, user input can be validated and filtered to remove invalid or erroneous commands.

[0085] Optionally, the method further includes reporting abnormal information when an abnormality occurs in the operating state. The abnormal information includes one or more of the following: fault details, scope of impact, and repair operations already performed.

[0086] Combination Figure 4 As shown, this disclosure provides another control method for a smart home system, including:

[0087] S21, The server monitors the operating status of the smart home system when the smart home devices in the smart home system execute the control policy.

[0088] S22, when the server encounters an abnormality in its operating state, it obtains the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred based on the operating state. Based on the type of abnormality, the manifestation of the abnormality, and the environment in which the abnormality occurred, it determines the cause of the abnormality in the smart home system, so as to determine whether the smart home system can self-repair the abnormality.

[0089] S23, when the smart home system is capable of self-repairing anomalies, use the preset repair operations in the smart home system to repair the anomalies and obtain repair feedback results.

[0090] S24, the server updates the repair operation of the smart home system based on the repair feedback results.

[0091] S25. If the server encounters an abnormal operating status, it will report the abnormal information, which includes one or more of the following: fault details, scope of impact, and repair operations that have been performed.

[0092] In this embodiment, when a system malfunctions or encounters a problem, relevant information is notified to the system administrator or maintenance personnel. This anomaly information may include details of the malfunction, the scope of impact, and actions already taken. These notifications can be sent through various means, such as email, SMS, and push notifications. Additionally, the system provides operational suggestions to maintenance personnel to help them find the root cause of the problem and fix it more quickly and accurately. Therefore, reporting anomaly information is a proactive notification mechanism, primarily aimed at informing relevant personnel of the anomaly as soon as it occurs. This allows for timely handling of anomalies, optimizes the troubleshooting process, and improves system stability.

[0093] Combination Figure 5 As shown, this disclosure provides a control device 50 for a smart home system, including a processor 500 and a memory 501. Optionally, the device 50 may further include a communication interface 502 and a bus 503. The processor 500, communication interface 502, and memory 501 can communicate with each other via the bus 503. The communication interface 502 can be used for information transmission. The processor 500 can call logical instructions in the memory 501 to execute the control method for a smart home system described in the above embodiment.

[0094] Furthermore, the logic instructions in the aforementioned memory 501 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0095] The memory 501, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 500 executes functional applications and data processing by running the program instructions / modules stored in the memory 501, thereby implementing the control method for the smart home system described above.

[0096] The memory 501 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the terminal device. Furthermore, the memory 101 may include high-speed random access memory and may also include non-volatile memory.

[0097] This disclosure provides an electronic device, including: an electronic device body, and the aforementioned control device 50 for a smart home system. The control device 50 for the smart home system is mounted on the electronic device body. The mounting relationship described herein is not limited to placement within the electronic device body, but also includes mounting connections with other components of the electronic device, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the control device 50 for the smart home system can be adapted to suitable electronic device bodies to achieve other feasible embodiments.

[0098] Combination Figure 6 As shown, this embodiment of the disclosure provides a smart home system 60, including a smart home device 102, a large model module 62, and a fault tolerance and recovery module 63. The large model module 62 is configured to obtain a control strategy corresponding to user request data and environmental data. The control strategy controls the operation of the smart home device 102 in the smart home system 60 to meet the user's request. The fault tolerance and recovery module 63 is configured to monitor the operating status of the smart home system 60 when the smart home device 102 executes the control strategy. In the event of an abnormal operating status, the module obtains the type, manifestation, and environment of the abnormality based on the operating status, and determines the cause of the abnormality in the smart home system 60 based on these factors to determine whether the smart home system 60 can self-repair the abnormality. If the smart home system 60 can self-repair the abnormality, it uses preset repair operations in the smart home system 60 to repair the abnormality and obtains repair feedback results. The repair operations of the smart home system 60 are updated based on the repair feedback results.

[0099] The smart home system 60 provided in this embodiment can execute control strategies corresponding to the smart home device 102, and monitor the system's operating status during operation. This allows for real-time detection of system anomalies during the operation of the smart home device 102. By diagnosing anomalies, the smart home system 60 can repair them based on the diagnostic results, ensuring that the system can still execute control strategies even when anomalies occur, thereby improving system stability. Furthermore, the repair feedback obtained after system repair can help the smart home system 60 update preset repair operations, thereby enhancing the system's anomaly repair capabilities and further improving system stability.

[0100] Optionally, in the event of an anomaly during operation, the fault tolerance and recovery module determines the cause of the anomaly based on the operating status, thereby determining whether the smart home system can self-repair the anomaly. If the smart home system can self-repair the anomaly, it executes the repair operation corresponding to the cause of the anomaly according to the fault list. The fault list includes various causes of anomalies and corresponding processing procedures.

[0101] Optionally, the fault tolerance and recovery module obtains the type, manifestation, and environment of the anomaly based on the operating status. Based on the type, manifestation, and environment of the anomaly, it determines the cause of the anomaly in the smart home system.

[0102] Optionally, if the smart home system cannot repair itself from an anomaly, the fault tolerance and recovery module selects the highest priority backup device from the backup devices as the target backup device and controls the target backup device to execute control strategies.

[0103] Optionally, the fault tolerance and recovery module rates the repair operations corresponding to the repair feedback results, obtaining a rating result. Based on the rating result, the repair operations are sorted. In the event of an anomaly in the operational status, repair operations are selected sequentially according to the sorting result for repair.

[0104] Optionally, the large model module obtains the control strategy as follows: It obtains user request data and corresponding environmental data. The user request data and environmental data are then input into the large model for calculation to obtain the corresponding control strategy. This control strategy controls the operation of smart home devices in the smart home system to meet the user's requests.

[0105] Optionally, the large model module converts user request data and environmental data into a data format that matches the input of the large model. The converted user request data and environmental data are then input into the large model for computation via the API. The computation results output by the large model are used as control strategies.

[0106] Optionally, the fault tolerance and recovery module may report anomaly information if an abnormality occurs during operation. This anomaly information may include one or more of the following: fault details, scope of impact, and repair operations already performed.

[0107] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A control method for a smart home system, characterized in that, include: Obtain user request data and corresponding environmental data; Convert user request data and environmental data into a data format that matches the input of the large model; The transformed user request data and environmental data are input into the large model for calculation; The calculation results output from the output end of the large model are used as the control strategy; Among them, the control strategy can control the operation of smart home devices in the smart home system to meet the user's requests; The calculation results output from the large model are used as the control strategy, and user feedback is obtained to update the large model. Monitor the operating status of the smart home system when the smart home devices execute the control policy; In the event of an abnormality in the operating status, the type, manifestation, and environment of the abnormality are obtained based on the operating status. Based on the type, manifestation, and environment of the abnormality, the cause of the abnormality in the smart home system is determined to determine whether the smart home system can self-repair the abnormality. If the smart home system is capable of self-repairing malfunctions, use the preset repair operations in the smart home system to repair the malfunctions and obtain repair feedback results; Based on the repair feedback results, the repair operations corresponding to the repair feedback results are rated, and a rating result is obtained; The repair operations are ranked according to the rating results; If an abnormality occurs during operation, repair operations will be selected sequentially according to the sorting results.

2. The control method for a smart home system according to claim 1, characterized in that, When the smart home system is capable of self-repairing malfunctions, the malfunctions are repaired using the preset repair operations within the smart home system, including: When the smart home system is capable of self-repairing anomalies, it executes repair operations corresponding to the causes of the anomalies based on the fault list; the fault list includes various causes of anomalies and corresponding handling procedures.

3. The control method for a smart home system according to claim 1, characterized in that, Also includes: In the event that the smart home system cannot self-repair its malfunction, select the highest priority backup device from the backup devices as the target backup device. Control the target backup equipment to execute control strategies.

4. The control method for a smart home system according to any one of claims 1 to 3, characterized in that, Also includes: In the event of an abnormal operation, the abnormal information will be reported; the abnormal information includes one or more of the following: fault details, scope of impact, and repair operations that have been performed.

5. A control device for a smart home system, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the control method of the smart home system according to any one of claims 1 to 4 through the computer program.

6. An electronic device, characterized in that, include: The electronic device itself; and, The control device for a smart home system as described in claim 5 is installed on the electronic device body.

7. A smart home system, characterized in that, include: Smart home devices; The large model module is configured to obtain user request data and corresponding environmental data. The user request data and environmental data are converted into a data format that matches the input of the large model; the converted user request data and environmental data are input into the large model for calculation; the calculation results output by the large model are used as control strategies; the control strategies can control the operation of smart home devices in the smart home system to meet user requests; after using the calculation results output by the large model as control strategies, user feedback is obtained to update the large model. The fault tolerance and recovery module is configured to monitor the operational status of the smart home system when the smart home devices execute control strategies; in the event of an anomaly in the operational status, it obtains the type, manifestation, and environment of the anomaly based on the operational status, and determines the cause of the anomaly to determine whether the smart home system can self-repair the anomaly; if the smart home system can self-repair the anomaly, it uses preset repair operations in the smart home system to repair the anomaly and obtains repair feedback results; based on the repair feedback results, it rates the repair operations corresponding to the repair feedback results and obtains rating results; based on the rating results, it sorts the repair operations; and in the event of an anomaly in the operational status, it selects repair operations sequentially according to the sorting results for repair.