Control method and device for smart home system, electronic equipment and smart home system
By monitoring the operating status and performing self-diagnosis and repair operations in the smart home system, the problem of insufficient automatic repair capabilities for equipment failures and software problems is solved, and the stability and abnormality repair capabilities of the system are improved.
Patent Information
- Application Number
- CN202410942918.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Existing smart home systems cannot automatically diagnose and repair equipment failures or software problems, and voice interaction devices can only perform simple device control and lack complex decision-making calculations and self-diagnosis functions.
In the smart home system, by monitoring the operating status, the abnormality type, performance and environment are obtained, the cause of the abnormality is determined, and preset repair operations are performed according to the fault list or backup equipment is selected to realize self-healing and repair operation updates, and improve system stability.
It realizes real-time diagnosis and repair of smart home systems under abnormal conditions, improves system stability and abnormal repair capabilities, and ensures that the equipment continues to operate normally.
Smart Images

Figure CN118759873A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a control method and device for a smart home system, an electronic device, and a smart home system. Background Art
[0002] At present, with the development of Internet of Things and artificial intelligence technology, smart home has gradually become an important research field. The role of smart home system is to automatically manage and control various devices in the home environment, thereby providing an intelligent lifestyle. However, with the increasing number of smart home devices in the home environment, smart home systems need effective control methods to manage smart home devices.
[0003] In order to realize the automatic management of smart home devices, in the related technology, voice interaction devices are used to collect user's voice commands and interact with users. Voice interaction devices can be paired with a large number of third-party smart home devices according to the user's voice commands and interaction content, and control related smart home devices.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] Usually, voice interaction devices can only perform simple device control functions according to instructions, and cannot perform complex decision-making calculations. In addition, voice interaction devices do not have sufficiently powerful self-diagnosis and repair functions. When smart home devices fail or have software problems during device control, they cannot be automatically diagnosed and repaired.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a control method and device for a smart home system, an electronic device, and a smart home system, which can improve the stability of the smart home system.
[0009] In some embodiments, a control method for a smart home system includes: monitoring the operating status of the smart home system when smart home devices of the smart home system execute control strategies; in the event of an abnormality in the operating status, obtaining the type of 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 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; in the event that the smart home system can self-repair the abnormality, using a preset repair operation in the smart home system to repair the abnormality and obtain a repair feedback result; and updating the repair operation of the smart home system based on the repair feedback result.
[0010] Optionally, when the smart home system is capable of self-repairing the abnormality, the abnormality is repaired using a preset repair operation in the smart home system, including: when the smart home system is capable of self-repairing the abnormality, according to a fault list, executing a repair operation corresponding to the cause of the abnormality; wherein the fault list includes multiple causes of the abnormality and processing flows corresponding to the causes of the abnormality.
[0011] Optionally, the control method for the smart home system also includes: when the smart home system cannot self-repair the abnormality, selecting a backup device with the highest priority among the backup devices as the target backup device; and controlling the target backup device to execute the control strategy.
[0012] Optionally, updating the repair operation of the smart home system according to the repair feedback result includes: rating the repair operation corresponding to the repair feedback result according to the repair feedback result to obtain a rating result; sorting the repair operations according to the rating result; and in the event that an abnormality occurs in the operating status, selecting the repair operations in turn for repair according to the sorting result.
[0013] Optionally, the control strategy is obtained in the following manner: obtaining user request data and environmental data corresponding to the user request data; inputting the user request data and the environmental data into a large model for calculation, and obtaining a control strategy corresponding to the user request data and the 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 the large model for calculation to obtain a control strategy corresponding to the user request data and environmental data, including: converting the user request data and environmental data into a data format that matches the input end of the large model; inputting the converted user request data and environmental data into the large model for calculation; and using the calculation result outputted from the output end 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 fault details, impact scope, and repair operations that have been performed.
[0016] In some embodiments, the control device for the smart home system includes: a memory and a processor, the memory stores a computer program, and the processor is configured to execute the above-mentioned control method of the smart home system through the computer program.
[0017] In some embodiments, the electronic device includes: an electronic device body; and the above-mentioned control device for the smart home system, 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 a control strategy corresponding to 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; a fault-tolerant and recovery module, configured to monitor the operating status of the smart home system when the smart home devices execute the control strategy; in the case of an abnormality in the operating status, obtain the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs according to the operating status, and determine the cause of the abnormality of the smart home system according to the type of 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; in the case that the smart home system can self-repair the abnormality, use the preset repair operation in the smart home system to repair the abnormality and obtain the repair feedback result; update the repair operation of the smart home system according to the repair feedback result.
[0019] The control method and device for a smart home system, electronic device, and smart home system provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] Compared with the related art, the disclosed embodiment can execute the control strategy corresponding to the smart home device, and monitor the operating status of the system when the smart home system is running. In this way, when the smart home device is running, it is possible to detect in real time whether the system has an abnormality. By diagnosing the abnormal situation, the smart home system can repair the abnormal situation according to the diagnosis result, so that the smart home system can still execute the control strategy when an abnormality occurs, thereby improving the stability of the system. Furthermore, the repair feedback result obtained after repairing the system can help the smart home system update the preset repair operation, thereby improving the abnormal repair capability of the smart home system and further improving the stability of the system.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0023] Figure 1 is a hardware environment diagram of a control method for a smart home system provided by an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a control method for a smart home system provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of another control method for a smart home system provided by an embodiment of the present disclosure;
[0026] Figure 4 is a schematic diagram of another control method for a smart home system provided by an embodiment of the present disclosure;
[0027] Figure 5 is a schematic diagram of a control device for a smart home system provided by an embodiment of the present disclosure;
[0028] Figure 6 It is a schematic diagram of a smart home system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0030] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0031] Unless otherwise stated, the term "plurality" means two or more.
[0032] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0033] The term "and / or" is a description of the association relationship 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" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0035] At present, with the development of the Internet of Things and artificial intelligence technologies, users rely on smart home systems to automatically manage and control various smart home devices in their home environments, thereby providing users with an intelligent lifestyle.
[0036] According to one aspect of an embodiment of the present application, a control method for a smart home system is provided. The control method for a smart home system is widely used in smart home (Smart Home), smart home, smart home equipment ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the control method for a smart home system can be applied to Figure 1 In the hardware environment composed of the smart home device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the smart home device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0037] In the embodiment of the present disclosure, the smart home device 102 refers to a home appliance product formed by introducing a microprocessor, sensor technology, and network communication technology into home appliances. It has the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of the smart home device 102 often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, the smart home device 102 can be connected to electronic devices to enable users to remotely control and manage the smart home device 102.
[0038] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The smart home device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0039] Combination Figure 2 As shown, the embodiment of the present disclosure provides a control method for a smart home system, including:
[0040] S01, the server monitors the operation status of the smart home system when the smart home devices of the smart home system execute the control strategy.
[0041] S02, when an abnormality occurs in the running state of the server, the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs are obtained according to the running state, and the cause of the abnormality of the smart home system is determined according to the type of 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.
[0042] S03, when the smart home system is capable of self-repairing the abnormality, the abnormality is repaired using a preset repair operation in the smart home system, and a repair feedback result is obtained.
[0043] S04: The server updates the repair operation of the smart home system according to the repair feedback result.
[0044] By adopting the control method for the smart home system provided by the embodiment of the present disclosure, the smart home system can execute the control strategy corresponding to the smart home device, and monitor the operating status of the system when the smart home system is running. In this way, when the smart home device is running, it is possible to detect in real time whether the system has an abnormality. By diagnosing the abnormal situation, the smart home system can repair the abnormal situation according to the diagnosis result, so that the smart home system can still execute the control strategy when the abnormality occurs, thereby reducing the situation where the smart home device is interrupted due to the abnormality, thereby improving the stability of the system. Furthermore, the repair feedback result obtained after repairing the system can help the smart home system to update the preset repair operation, thereby improving the abnormality repair capability of the smart home system and further improving the stability of the system.
[0045] When an abnormality occurs in the operating state, the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs can all be recorded. The smart home system can determine the cause of the abnormality based on the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs. Usually, the causes of the abnormality include software problems and hardware problems. In practical applications, the rules for determining that the cause of the abnormality is a software problem include system or application crashes or freezes, the system runs slowly or is unresponsive, the system has abnormal error messages or warnings, application functions fail or behaves abnormally, and the system fails to start or restarts frequently. The rules for determining that the cause of the abnormality is a hardware problem include the device not turning on or automatically shutting down, the device overheating, the display color is abnormal or no display at all, startup error prompts, and peripheral devices (such as mouse, keyboard) are unresponsive.
[0046] In actual applications, the operating status of the system can be monitored in real time. The operating status needs to be kept within the normal range to ensure the normal operation of the system. The operating status includes the type of equipment, the operating performance of the equipment, and the relationship between the equipment. In the event of an abnormality in the system, the type of equipment with the abnormality, the current operating status of the abnormal equipment, and the execution of the current control strategy can be learned from the monitored operating status. The system determines whether the cause of the abnormality is a software problem or a hardware problem based on the type of equipment with the abnormality, the current operating status of the abnormal equipment, and the execution of the current control strategy.
[0047] Optionally, the method of monitoring the operating status of the smart home system includes collecting logs, heartbeat checks, collecting abnormality reports, and collecting operating indicators.
[0048] When monitoring the smart home system by collecting logs, all components or devices will generate operation logs (operation type, time, results, etc.), and regularly send operation logs to the fault tolerance and recovery module. By parsing the operation 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 through a heartbeat check, a heartbeat check is often used in network programming to detect whether two machines are connected. Specifically applied to a smart home system, a "heartbeat" message can be sent regularly by the smart home device to the fault tolerance and recovery module to prove that the smart home device is operating normally.
[0050] When monitoring the smart home system by collecting exception reports, when an abnormal condition occurs in a smart home device or functional module (such as hardware failure, execution error), an exception report will be immediately sent to the fault tolerance and recovery module to monitor the operating status of the smart home system.
[0051] When monitoring the smart home system by collecting operating indicators, the hardware may periodically report key performance indicators, such as CPU (Central Processing Unit) occupancy, memory usage, network connectivity, etc., to the fault tolerance and recovery module.
[0052] Optionally, when the smart home system is capable of self-repairing the abnormality, repairing the abnormality using a preset repair operation in the smart home system includes: when the smart home system is capable of self-repairing the abnormality, executing a repair operation corresponding to the abnormal cause according to the fault list. The fault list includes multiple abnormal causes and processing flows corresponding to the abnormal causes.
[0053] In the disclosed embodiment, the smart home system can diagnose the anomaly according to the acquired running state. First, when an abnormal situation occurs, the functional module or smart home device usually generates an error log, which records the process of causing the abnormality in detail. By analyzing the error log, the source of the error and the state of each key parameter when the abnormality occurs can be traced. Secondly, the system checks the running state of the functional module or smart home device where the abnormality occurs. For example, CPU usage, memory usage, disk space, etc. If any abnormal state is found (such as excessive memory usage), it may be that these abnormal states caused the failure. Thirdly, the system may need to reproduce the failure to further understand the cause of the abnormality. It is usually necessary to repeat the operation steps that cause the failure in a controlled environment, and observe and record the results in detail. Finally, the smart home system can also run more complex diagnostic tools (such as memory detectors), analyze core dump files or other low-level system logs, and even debug at the source code level.
[0054] After diagnosis, the smart home system can collect enough information to build some hypotheses based on the collected information to explain why the error occurred, and then verify each hypothesis until the most likely cause of the problem is found.
[0055] After diagnosing the cause of the abnormality, the system can judge the abnormal situation based on the cause of the abnormality and determine whether the smart home system can self-repair according to the different causes of the abnormality. During the system design phase, a fault list and corresponding processing flow are preset. The fault list contains a variety of abnormal situations that can be automatically repaired. For example, when the cause of the abnormality is a configuration error, the corresponding processing flow is to try to roll back to the last normal configuration. When the cause of the abnormality is a memory leak, the corresponding processing flow is to release the memory by restarting the service. When the cause of the abnormality is a server connection failure, the corresponding processing flow is to try to re-establish the connection or switch to a backup service, etc.
[0056] Optionally, the method further includes: when the smart home system cannot self-repair the abnormality, selecting a backup device with the highest priority from the backup devices as the target backup device, and controlling the target backup device to execute the control strategy.
[0057] In the disclosed embodiment, after the abnormal situation is diagnosed, if the abnormal situation cannot be self-repaired, it is necessary to ensure that the system can continue to operate. Therefore, the system can start the backup device in time and transmit the relevant data to the backup device, so that the backup device can continue to execute the control strategy to provide services to users, thereby improving the stability of the system.
[0058] During the operation of the smart home system, the smart home devices in idle state can be used as backup devices, and multiple backup devices are arranged according to priority. Among them, the higher the computing power, the higher the priority. In the case that the smart home system cannot self-repair the abnormality, the target backup device with higher computing power continues to execute the control strategy to ensure that the system can continue to provide services to users.
[0059] Optionally, the smart home system cannot self-repair abnormal situations including hardware failures, which are difficult to recover in real time, especially for serious hardware problems, such as physical damage to smart home devices, device overheating, etc. Since hardware failures usually require physical operations to repair (such as replacing hardware devices, cleaning cooling systems, etc.), they can only be replaced in the short term by spare devices.
[0060] Optionally, the smart home system cannot self-repair abnormal situations including unconventional software problems, and some unconventional software problems, such as system crashes, serious system errors, etc., may not be able to be recovered in real time. Serious software errors need to be checked and repaired by professionals.
[0061] Optionally, the smart home system cannot self-repair abnormal situations including some foreseeable problems that seriously affect the use, and some foreseeable problems that seriously affect the use experience and system functions may also be difficult to repair in real time, such as strong attacks causing system instability or continuous high load on the server.
[0062] When it is determined that the cause of the abnormality cannot be self-repaired, it is necessary to make full use of various types of information such as log records, status checks, and abnormal reports, and combine professional knowledge for in-depth analysis and judgment. For example, if you continue to capture device overheating warnings, you need to be cautious about possible serious hardware failures and take action in advance. For example, discovering abnormally frequent requests through access logs may indicate a network attack and should be responded to immediately. When relevant situations occur or abnormal situations are found during inspections or feedback, data and services will be switched to backup devices to ensure that the system can provide uninterrupted services to users.
[0063] Optionally, the backup device can be any device or service that can replace the main system or main device. When the backup device starts working, the main system or main device cannot operate normally, such as due to hardware failure or software problems. For different functional modules and smart home devices, the backup device may have different specific forms. For hardware devices such as sensors, controllers, servers, etc., the corresponding backup devices are usually physical devices of the same model or compatible models. Physical devices of the same model or compatible models can be configured and synchronized in advance. Once the main device has a problem or failure, it can quickly switch to the backup device to work. For software services and modules, backup devices usually exist in the form of redundant services or systems. For example, multiple servers can deploy the same service in a cluster form and share the load. When some servers have problems, other normal servers can be relied on to provide users with interrupted services. For example, by regularly updating or incrementally updating the data to obtain new data as a backup device, the system can be allowed to recover from the next latest version when data loss occurs. For model calculation tasks, the processing tasks may be distributed to other available computing nodes for execution.
[0064] Optionally, updating the repair operation of the smart home system according to the repair feedback result includes: rating the repair operation corresponding to the repair feedback result according to the repair feedback result to obtain a rating result. Sorting the repair operations according to the rating result. When an abnormality occurs in the running state, selecting the repair operations in turn according to the sorting result for repair.
[0065] In the disclosed embodiment, the repair feedback result can reflect the repair effect of the repair operation on the abnormal situation. The system can evaluate the preset repair operation according to the repair effect, thereby optimizing the self-repair strategy. For example, if a repair operation performs well, it will be used preferentially in similar abnormal situations in the future. Conversely, a repair operation with poor effect may be downgraded. This learning ability will enable 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 in the following manner: user request data and environmental data corresponding to the user request data are obtained. The user request data and environmental data are input into the large model for calculation to obtain a 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.
[0067] Combination Figure 3 As shown, the embodiment of the present disclosure provides another control method for a smart home system, including:
[0068] S11, the server obtains user request data and environment data corresponding to the user request data.
[0069] S12, the server inputs the user request data and the environmental data into the large model for calculation, and obtains a control strategy corresponding to the user request data and the environmental data, wherein the control strategy can control the operation of the 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 of the smart home system execute the control strategy.
[0071] S14, when an abnormality occurs in the running state of the server, the server obtains the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs according to the running state, and determines the cause of the abnormality of the smart home system according to the type of 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.
[0072] S15, when the smart home system is capable of self-repairing the abnormality, the abnormality is repaired using a preset repair operation in the smart home system, and a repair feedback result is obtained.
[0073] S16: The server updates the repair operation of the smart home system according to the repair feedback result.
[0074] In the disclosed embodiment, based on user request data and environmental data, a control strategy can be obtained by calculating using a large model. When a user needs a service provided by the smart home system, the user's request can be input into the smart home system. The system obtains the request data based on the user's input. In addition, the request data is classified, the classification results are matched with the environmental data, and the environmental data corresponding to the user request data is selected. During the calculation process of the large model, machine learning, model optimization, and model prediction may be required. The control strategy can perform daily routine tasks and preset rules, and can also respond to user instructions. In the process of calculating the control strategy, when encountering a situation that requires advanced analysis or complex mathematical operations, the data can be transferred to the large model, and the control strategy obtained by the large model calculation can be obtained. During the calculation process of the large model, machine learning, model optimization, and model prediction may be required.
[0075] Optionally, the user request data and the environment data are input into the large model for calculation to obtain a control strategy corresponding to the user request data and the environment data, including: converting the user request data and the environment data into a data format matching the input end of the large model, inputting the converted user request data and environment data into the large model for calculation, and using the calculation result outputted from the output end of the large model as the control strategy.
[0076] In the disclosed embodiment, the user request data and environment data are formatted so that the data format input to the large model better matches the input end, so that the large model can more easily understand the user's request and output a more accurate control strategy.
[0077] Optionally, the converted user request data and environment data are input into the big model through an API for calculation.
[0078] API is a programming interface that can send processed data to the big model for calculation. The big model can output calculation results through calculation, and the system can collect and analyze the calculation results. The obtained analysis results can be used as control strategies. It can also be combined with relevant data and rules to transform the analysis results into executable control strategies.
[0079] Optionally, converting the user request data and the environment data into a data format that matches the input end of the large model includes: vectorizing the user request data to obtain the user input vector. According to the natural language processing algorithm, obtaining the text in the environment data; converting the text into a numerical vector. Concatenating the user input vector with the numerical vector in the environment data, or performing a weighted summation on the user input vector and the numerical vector of the background information, or mixing the user input vector with the numerical vector of the background information.
[0080] Furthermore, after the calculation results outputted from the output end of the large model are used as the control strategy, user feedback can be obtained to update the large model. The control strategy can be evaluated based on the user feedback to obtain evaluation results. The evaluation results are input into the large language model to obtain correction data, and the correction data is 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 instructions or requests in a variety of ways (such as voice, text, touch, etc.). Then, the user's original input is parsed into a format that the system can understand and process. For example, voice is converted into text, or natural language commands are converted into specific control instructions. Finally, the user input is validated to ensure that the user request 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 convert the raw data into a format that the system can understand. In addition, based on the system's decision results, the system can send specific commands to control the status of various environmental devices and handle communication protocol conversion between devices. According to the protocol used by the device, the received information can be parsed and converted into a format that can be understood by the system or a protocol acceptable to other devices.
[0084] Optionally, the user's original input data may be preprocessed to include removing duplicate values, filling missing values, and performing standardization operations to ensure data quality. In addition, the user input may be verified and filtered to remove invalid or erroneous instructions.
[0085] Optionally, the method further includes: reporting abnormal information when an abnormality occurs in the running state, wherein the abnormal information includes one or more of the fault details, the impact range, and the repair operation that has been executed.
[0086] Combination Figure 4 As shown, the embodiment of the present 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 of the smart home system execute the control strategy.
[0088] S22, when an abnormality occurs in the running state of the server, the server obtains the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs according to the running state, and determines the cause of the abnormality of the smart home system according to the type of 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.
[0089] S23, when the smart home system is capable of self-repairing the abnormality, the abnormality is repaired using a preset repair operation in the smart home system, and a repair feedback result is obtained.
[0090] S24, the server updates the repair operation of the smart home system according to the repair feedback result.
[0091] S25, when an abnormality occurs in the running state of the server, the server reports the abnormality information, wherein the abnormality information includes one or more of the fault details, the impact scope and the repair operation that has been executed.
[0092] In the disclosed embodiment, when a failure or problem occurs in the system, the relevant information is notified to the system administrator or maintenance personnel. These abnormal information may contain information such as the details of the failure, the scope of impact, and the actions that have been taken. These notifications can be sent through various channels, such as email, text messages, push notifications, etc. In addition, the system will also provide some operational suggestions to the maintenance personnel to help them find the root cause of the problem faster and more accurately and repair it. Therefore, reporting abnormal information is an active notification mechanism, and its main purpose is to let relevant personnel know about the abnormal situation as soon as possible when the problem occurs. In this way, the exception can be handled in a timely manner, and the repair operation of the exception handling can be optimized to improve the stability of the system.
[0093] Combination Figure 5 As shown, the embodiment of the present disclosure provides a control device 50 for a smart home system, including a processor 500 and a memory 501. Optionally, the device 50 may also include a communication interface 502 and a bus 503. The processor 500, the communication interface 502, and the memory 501 may communicate with each other through the bus 503. The communication interface 502 may be used for information transmission. The processor 500 may call the logic instructions in the memory 501 to execute the control method for the smart home system of the above embodiment.
[0094] In addition, the logic instructions in the memory 501 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0095] The memory 501 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 500 executes functional applications and data processing by running the program instructions / modules stored in the memory 501, that is, implementing the control method for the smart home system in the above-mentioned embodiment.
[0096] The memory 501 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0097] The disclosed embodiment provides an electronic device, including: an electronic device body, and the above-mentioned control device 50 for the smart home system. The control device 50 for the smart home system is installed on the product body. The installation relationship described here is not limited to placement inside the electronic device body, but also includes installation connections with other components of the electronic device, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the control device 50 for the smart home system can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.
[0098] Combination Figure 6 As shown, the embodiment of the present 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. Among them, the control strategy can control 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 operation state of the smart home system 60 when the smart home device 102 executes the control strategy. In the case of an abnormality in the operation state, the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs are obtained according to the operation state, and the cause of the abnormality of the smart home system 60 is determined according to the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs, so as to determine whether the smart home system 60 can self-repair the abnormality; in the case that the smart home system 60 can self-repair the abnormality, the abnormality is repaired using the repair operation preset in the smart home system 60, and the repair feedback result is obtained. The repair operation of the smart home system 60 is updated according to the repair feedback result.
[0099] The smart home system 60 provided by the embodiment of the present disclosure can execute the control strategy corresponding to the smart home device 102, and monitor the operating status of the system when the smart home system 60 is running. In this way, when the smart home device 102 is running, it is possible to detect in real time whether the system is abnormal. By diagnosing the abnormal situation, the smart home system 60 can repair the abnormal situation according to the diagnosis result, so that the smart home system 60 can still execute the control strategy when the abnormal situation occurs, thereby improving the stability of the system. Furthermore, the repair feedback result obtained after repairing the system can help the smart home system 60 to update the preset repair operation, thereby improving the abnormal repair capability of the smart home system 60 and further improving the stability of the system.
[0100] Optionally, when an abnormality occurs in the running state, the fault tolerance and recovery module determines the abnormality cause of the smart home system according to the running state to determine whether the smart home system can self-repair the abnormality. When the smart home system can self-repair the abnormality, a repair operation corresponding to the abnormality cause is performed according to the fault list. The fault list includes multiple abnormal causes and processing flows corresponding to the abnormal causes.
[0101] Optionally, the fault tolerance and recovery module obtains the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs according to the operating state, and determines the cause of the abnormality of the smart home system according to the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs.
[0102] Optionally, when the smart home system cannot self-repair the abnormality, the fault-tolerant and recovery module selects a backup device with the highest priority from the backup devices as the target backup device; and controls the target backup device to execute the control strategy.
[0103] Optionally, the fault tolerance and recovery module rates the repair operations corresponding to the repair feedback results according to the repair feedback results to obtain rating results. The repair operations are sorted according to the rating results. When an abnormality occurs in the running state, the repair operations are selected in sequence according to the sorting results for repair.
[0104] Optionally, the large model module obtains the control strategy in the following manner: obtain user request data and environmental data corresponding to the user request data. Input 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.
[0105] Optionally, the large model module converts the user request data and the environment data into a data format that matches the input end of the large model. The converted user request data and the environment data are input into the large model through the API for calculation. The calculation result outputted from the output end of the large model is used as the control strategy.
[0106] Optionally, the fault tolerance and recovery module reports abnormal information when an abnormality occurs in the running state, wherein the abnormal information includes one or more of the fault details, the impact scope and the repair operation that has been executed.
[0107] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A control method for a smart home system, characterized in that: include: monitoring the operating status of the smart home system when the smart home devices of the smart home system execute the control strategy; In the case of an abnormality in the operating state, the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs are obtained according to the operating state, and the cause of the abnormality of the smart home system is determined according to the type of 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; In the case where the smart home system is capable of self-repairing the abnormality, the abnormality is repaired using the repair operation preset in the smart home system, and a repair feedback result is obtained; Update the repair operations of the smart home system based on the repair feedback 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 the abnormality, the abnormality is repaired using the preset repair operations in the smart home system, including: In the case where the smart home system is capable of self-repairing the abnormality, a repair operation corresponding to the abnormal cause is performed according to the fault list; wherein the fault list includes multiple abnormal causes and processing flows corresponding to the abnormal causes.
3. The control method for a smart home system according to claim 1, characterized in that: Also includes: In the case where the smart home system cannot self-repair the abnormality, a backup device with the highest priority is selected from the backup devices as the target backup device; Control the target standby device to execute the control strategy.
4. The control method for a smart home system according to claim 1, characterized in that: Update the repair operations of the smart home system based on the repair feedback results, including: According to the repair feedback result, the repair operation corresponding to the repair feedback result is rated to obtain a rating result; According to the rating results, the repair operations are ranked; In case of abnormal operation, select repair operations in sequence according to the sorting results.
5. The control method for a smart home system according to claim 1, characterized in that: The control strategy is obtained as follows: Obtaining user request data and environment data corresponding to the user request data; Inputting user request data and environmental data into the large model for calculation, and obtaining a control strategy corresponding to the user request data and environmental data; Among them, the control strategy can control the operation of smart home devices in the smart home system to meet the user's request.
6. The control method for a smart home system according to claim 5, characterized in that: The user request data and environmental data are input into the large model for calculation to obtain the control strategy corresponding to the user request data and environmental data, including: Convert user request data and environment data into a data format that matches the input end of the large model; Input the converted user request data and environmental data into the big model for calculation; The calculation results outputted from the output end of the large model are used as the control strategy.
7. The control method for a smart home system according to any one of claims 1 to 6, characterized in that: Also includes: In the event of an abnormality in the operating state, the abnormal information will be reported; wherein the abnormal information includes one or more of the fault details, the scope of impact, and the repair operations that have been performed.
8. 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 7 through the computer program.
9. An electronic device, characterized in that: include: Electronic device body; and, The control device for a smart home system as described in claim 8 is installed on the electronic device body.
10. A smart home system, characterized in that: include: Smart home devices; The large model module is configured to obtain a control strategy corresponding to the user request data and the environmental data; wherein the control strategy can control the operation of the smart home devices in the smart home system to meet the user's request; The fault-tolerant and recovery module is configured to monitor the operating status of the smart home system when the smart home device executes the control strategy; when an abnormality occurs in the operating status, obtain the type of abnormality, the manifestation of the abnormality and the environment in which the abnormality occurs according to the operating status, and determine the cause of the abnormality of the smart home system according to the type of 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; when the smart home system can self-repair the abnormality, use the preset repair operation in the smart home system to repair the abnormality and obtain the repair feedback result; and update the repair operation of the smart home system according to the repair feedback result.
Citation Information
Patent Citations
Exception handling method and device for smart home terminal
CN104951377A
Method and system for automatically diagnosing and repairing receiver faults by management platform
CN111162944A
Intelligent household appliance, maintenance method, maintenance device and storage medium
CN112613624A
Exception handling method and device for smart home equipment, processor and electronic device
CN112671585A
Intelligent control method of air conditioner and intelligent control equipment of air conditioner
CN113375300A
Cited By
Multi-device cooperative control method and system based on virtual-real fusion of intelligent Internet of Things and element universe
CN120103769A
Home system anomaly detection method and device, electronic equipment and medium
CN121704216A
