Device linkage control method and system, electronic device, and storage medium
Patent Information
- Application Number
- CN202210244313.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-03-11
AI Technical Summary
[0004]本发明的主要目的在于提供一种设备联动控制方法、系统、电子设备及存储介质,旨在解决对家电设备进行联动控制的过程中,控制规则验证难的问题
[0040]This invention obtains a whole-house model configuration file, establishes a whole-house environment model based on scene factors and their relationships, generates a linkage control rule file based on the whole-house environment model, and generates whole-house environment simulation data in automatic scene triggering mode. This simulation data triggers the linkage rules to generate linkage control strategies, which are then used to simulate the linkage control effects of devices. Engineers who write the conditional rules can determine the effectiveness of the linkage control strategies based on the device linkage control effects within the whole-house environment, and further modify or write new linkage control rules. This process achieves a closed-loop logic of whole-house environment modeling, linkage control rule writing, and linkage control rule effect verification, thereby helping engineers quickly simulate smart home appliance scenarios and verify the effectiveness of linkage control rules.
Smart Images

Figure CN116774593B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart homes, and more particularly to a device linkage control method, system, electronic device, and storage medium. Background Technology
[0002] The emergence of smart home products has met people's demands for a higher quality of life at home. In recent years, smart home products integrating IoT technology have developed rapidly, and with the support of various communication protocols, the problem of home appliance connectivity and communication has been largely solved. Through the "cloud-to-cloud interconnection" model, smart home cloud platforms can solve the problem of interconnection and interoperability between smart home appliances across different ecosystems. Currently, the smart home industry is evolving towards whole-house intelligence.
[0003] After home appliances are connected to the cloud platform, they can operate in conjunction with the rules and conditions set up on the platform. These rules are typically written by professionals and can be modified and adjusted according to user needs. However, when a large number of home appliances are connected throughout the house, the rules that need to be written become extremely complex, and validating the rules becomes incredibly difficult. Summary of the Invention
[0004] The main objective of this invention is to provide a device linkage control method, system, electronic device, and storage medium, aiming to solve the problem of difficulty in verifying control rules during the linkage control of home appliances.
[0005] To achieve the above objectives, the present invention provides a device linkage control method, the method comprising:
[0006] Obtain the whole-house model configuration file and build a whole-house environment model;
[0007] Based on the whole-house environment model, generate a linkage control rule file;
[0008] The whole-house environment model is simulated to generate whole-house environment simulation data;
[0009] A linkage control strategy is generated based on the whole-house environment simulation data and linkage control rule file.
[0010] The devices in the whole-house environment model are controlled according to the linkage control strategy to verify whether the linkage control strategy is effective.
[0011] Optionally, the steps of obtaining the whole-house model configuration file and establishing the whole-house environment model include:
[0012] Obtain the whole house model configuration file and instantiate the scene factors in the whole house model configuration file;
[0013] Obtain the correlation between the scene factors, and combine the instantiated scene factors to generate a whole-house environment model based on the correlation.
[0014] Optionally, the step of generating the linkage control rule file based on the whole-house environment model includes:
[0015] Check whether the whole-house environment model contains historical data on device linkage;
[0016] If this is detected, the linkage rules in the device linkage history data are extracted and the linkage rules are converted into a linkage control rule file.
[0017] If no detection is found, the linkage rules provided by experts are obtained based on the whole-house environment model, and the linkage rules are converted into linkage control rule files.
[0018] Optionally, before the step of performing data simulation on the whole-house environment model to generate whole-house environment simulation data, the method further includes:
[0019] Detect whether the scene is in automatic trigger mode;
[0020] If this is detected, then the step of performing data simulation on the whole-house environment model and generating whole-house environment simulation data is executed;
[0021] If no response is detected, the system receives a scene command initiated by the user and generates a linkage control strategy based on the scene command and the linkage control rule file.
[0022] Optionally, the step of performing data simulation on the whole-house environment model to generate whole-house environment simulation data includes:
[0023] Detect whether a simulation data generator is being used;
[0024] If the above is detected, the range of values for the parameter to be simulated is determined, and the simulation data generator is used to generate whole-house environment simulation data within the range of values.
[0025] If no detection is found, a preset simulation dataset is obtained, and whole-house environment simulation data is read from the simulation dataset.
[0026] Optionally, the step of generating a linkage control strategy based on the whole-house environment simulation data and the linkage control rule file includes:
[0027] Start the preset whole-house simulation program to send the whole-house environment simulation data to the preset service response interface;
[0028] The service response interface obtains environmental status information from the whole-house environment simulation data, and generates a linkage control strategy based on the environmental status information. The service response interface contains a linkage control rule file.
[0029] Optionally, the step of controlling the devices in the whole-house environment model according to the linkage control strategy to verify the effectiveness of the linkage control strategy includes:
[0030] The linkage control strategy is applied to the whole-house environment model to control the devices in the whole-house environment model;
[0031] The device's operating parameters after being controlled are obtained, and the operating effect of the device's operating parameters is displayed graphically so that knowledge engineers can judge whether the linkage control strategy is effective based on the operating effect.
[0032] Furthermore, to achieve the above objectives, the present invention also provides a device linkage control system, the device linkage control system comprising:
[0033] The environmental modeling and data simulation module is used to obtain the whole-house model configuration file and build the whole-house environment model;
[0034] The linkage control expert system module is used to generate linkage control rule files based on the whole-house environment model;
[0035] The environmental modeling and data simulation module is also used to perform data simulation on the whole-house environment model and generate whole-house environment simulation data.
[0036] The linkage control expert system module is also used to generate linkage control strategies based on the whole-house environment simulation data and linkage control rule files;
[0037] The user-side effect display module is used to control the devices in the whole-house environment model according to the linkage control strategy, so as to verify whether the linkage control strategy is effective.
[0038] In addition, to achieve the above objectives, the present invention also provides an electronic device, the electronic device comprising: a memory, a processor, and a device linkage control program stored in the memory and executable on the processor, the device linkage control program being configured to implement the steps of the device linkage control method as described above.
[0039] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a device linkage control program, which, when executed by a processor, implements the steps of the device linkage control method described above.
[0040] This invention obtains a whole-house model configuration file, establishes a whole-house environment model based on scene factors and their relationships, generates a linkage control rule file based on the whole-house environment model, and generates whole-house environment simulation data in automatic scene triggering mode. This simulation data triggers the linkage rules to generate linkage control strategies, which are then used to simulate the linkage control effects of devices. Engineers who write the conditional rules can determine the effectiveness of the linkage control strategies based on the device linkage control effects within the whole-house environment, and further modify or write new linkage control rules. This process achieves a closed-loop logic of whole-house environment modeling, linkage control rule writing, and linkage control rule effect verification, thereby helping engineers quickly simulate smart home appliance scenarios and verify the effectiveness of linkage control rules. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of the structure of an electronic device in the hardware operating environment involved in the embodiments of the present invention;
[0042] Figure 2 This is a flowchart illustrating the first embodiment of the equipment linkage control method of the present invention;
[0043] Figure 3 This is a flowchart illustrating the second embodiment of the device linkage control method of the present invention;
[0044] Figure 4 This is a flowchart illustrating the third embodiment of the equipment linkage control method of the present invention;
[0045] Figure 5 This is a flowchart illustrating the fourth embodiment of the equipment linkage control method of the present invention;
[0046] Figure 6 This is a flowchart illustrating the fifth embodiment of the device linkage control method of the present invention;
[0047] Figure 7 This is a schematic diagram of the equipment linkage control system involved in the embodiment of the present invention.
[0048] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0049] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0050] The main technical solution of this invention is as follows: obtaining a whole-house model configuration file and establishing a whole-house environment model; generating a linkage control rule file based on the whole-house environment model; performing data simulation on the whole-house environment model to generate whole-house environment simulation data; generating a linkage control strategy based on the whole-house environment simulation data and the linkage control rule file; and controlling the devices in the whole-house environment model according to the linkage control strategy to verify whether the linkage control strategy is effective.
[0051] Reference Figure 1 , Figure 1 This is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present invention.
[0052] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0054] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a device linkage control program.
[0055] exist Figure 1In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the device linkage control program stored in the memory 1005 through the processor 1001 and executes the steps of the device linkage control method.
[0056] This invention provides a device linkage control method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a device linkage control method according to the present invention.
[0057] In this embodiment, the device linkage control method includes:
[0058] Step S10: Obtain the whole house model configuration file and establish the whole house environment model;
[0059] In the smart home field, many manufacturers have developed smart home cloud platforms, enabling various types of smart home network services. After home appliances are connected to the cloud platform, they can achieve interconnection and interoperability. However, under current conditions, most users' home appliances lack the physical conditions for whole-house appliance linkage control, such as the deployment and integration of multiple types of sensors throughout the house. Under these conditions, we can initially bypass the physical limitations of whole-house appliance linkage control and establish a whole-house environment model. A whole-house environment model is a relatively ideal model; based on this model, the user can be the central focus, and linkage control rules can be written.
[0060] A whole-house environment model includes scene factors and the relationships between them. When building a whole-house environment model, the principle can be followed: placing smart home appliances and environmental sensors in a room, and having people in the room, constitutes a scene. The room, devices, sensors, and people are integrated into a whole, ultimately generating a model configuration file in YAML (YAML Ain't a Markup Language or Yet Another Markup Language, a data-centric markup language) or JSON (JavaScript Object Notation) format. During the whole-house environment modeling process, it is best to construct the room layout based on actual floor plans to more closely reflect the user's living environment.
[0061] Step S20: Generate a linkage control rule file based on the whole-house environment model;
[0062] Linkage control rule files are the foundation for realizing the linkage control of all home appliances. In a preferred embodiment, a rule-based expert system is used to implement linkage control. An expert system is a computer model or a set of computer models that can solve problems in a specific domain using expert reasoning methods. Since the implementation of an expert system mainly relies on a large amount of knowledge, which is stored in a knowledge base, it can deduce better and more suitable problem-solving methods based on the stored knowledge and experience, thus simulating expert thinking.
[0063] Rule-based expert systems utilize a series of logical rules to represent expert knowledge, offering advantages such as natural language expression, unified structure, separation of knowledge and processing, and the ability to handle incomplete and uncertain knowledge. A rule is a reasoning statement consisting of conditions and conclusions, which can be represented in IF-THEN form. IF stands for the condition part (Left Hand Side), and THEN for the result part (Right Hand Side). The condition part typically combines several facts using AND / OR operations, with each fact represented by an object-attribute-value triple.
[0064] Step S30: Perform data simulation on the whole-house environment model to generate whole-house environment simulation data;
[0065] Once the linkage control rules are prepared, the rule files can be integrated into the rule engine. Through integration with the application framework, an external service response interface can be built to wait for external events to be passed in and respond accordingly, thereby generating the corresponding linkage control strategy.
[0066] As an example, before the step of performing data simulation on the whole-house environment model and generating whole-house environment simulation data, the following may also be included:
[0067] Step C1: Check if the system is in automatic scene trigger mode. The methods for triggering the linkage control system to generate linkage control strategies can be divided into user-initiated trigger mode and automatic scene trigger mode.
[0068] Step C2: If the condition is met, then the step of performing data simulation on the whole-house environment model to generate whole-house environment simulation data is executed. In the automatically triggered scenario mode, the whole-house environment simulation data is used to transmit environmental status information to the service response interface, triggering the linkage control strategy corresponding to the environmental status information.
[0069] Step C3: If no response is detected, receive the user-triggered scene command and generate a linkage control strategy based on the scene command and the linkage control rule file. In the user-triggered mode, the user can actively trigger the corresponding scene function on a terminal connected to the device linkage control system service, such as a smart TV, air conditioner, smart speaker, or computer, according to their own subjective will. The terminal sends the scene trigger command to the service response interface, and the service response interface returns the linkage control strategy triggered by the scene trigger command to the terminal.
[0070] In some feasible implementations, the rule engine can be Drools, and the application framework can be Spring Boot. Drools is an open-source rule engine written in Java that uses the Rete algorithm to evaluate the written rules. The linkage control expert system module can include an interface layer to respond to whole-house environment simulation data and generate linkage control strategies. The interface layer can use WebSocket to communicate with other modules.
[0071] Step S40: Generate a linkage control strategy based on the whole-house environment simulation data and linkage control rule file;
[0072] The method of generating linkage control strategies based on whole-house environment simulation data can be regarded as an automatic scene triggering mode. The whole-house environment simulation data transmits environmental status information to the linkage control expert system module, which then responds to the environmental status information and generates linkage control strategies.
[0073] Step S50: Control the devices in the whole-house environment model according to the linkage control strategy to verify whether the linkage control strategy is effective.
[0074] The equipment linkage control system may include a user-end effect display module. This module can receive whole-house environment simulation data and linkage control strategies sent by the linkage control expert system module via WebSocket. Based on the whole-house environment simulation data and linkage control strategies, it displays the equipment linkage operation status when the linkage control strategies are executed in the whole-house environment model.
[0075] Simulated device interaction effects can be achieved through a browser or WebView (an embedded browser) within the effect demonstration module. The user interface can be built using Vue (a progressive JavaScript framework) for easy user operation. The user-side effect demonstration module can display simulated data and device execution effects.
[0076] In this embodiment, a whole-house model configuration file is obtained, a whole-house environment model is established, and a linkage control rule file is generated based on the whole-house environment model. In automatic scene triggering mode, whole-house environment simulation data is generated, and the whole-house environment simulation data triggers the linkage control strategy. The user-end effect display module simulates the linkage control effect of the devices. Engineers who write conditional rules can judge whether the linkage control strategy is effective based on the linkage control effect of the devices in the whole-house environment, and further take actions to modify the linkage control rules or write new linkage control rules. In this process, a closed-loop logic of whole-house environment modeling, linkage control rule writing, and linkage control rule effect verification is realized, helping engineers to quickly simulate smart home appliance scenarios and verify the effectiveness of linkage control rules.
[0077] Furthermore, in the second embodiment of the device linkage control method of the present invention, referring to Figure 3 The method includes:
[0078] Step S11: Obtain the whole house model configuration file and instantiate the scene factors in the whole house model configuration file;
[0079] Knowledge engineers can write model configuration files based on room layouts, appliance arrangements, and user needs within a user's living scenario. Scene factors refer to information about dimensions such as environment, devices, sensors, and the human body. These devices can be smart home appliances, and in practical applications, other dimensions can be added as needed to build the whole-house environment model. Instantiation of scene factors can be done using the Factory Pattern design pattern. The Factory Pattern is one of the most commonly used design patterns in Java, providing an optimal way to create objects; the caller only needs to know the object name to create it. For example, after instantiation, the scene factors can be transformed from text in the model configuration file into part of the whole-house simulation program, used in the whole-house modeling process.
[0080] Step S12: Obtain the correlation between the scene factors, and combine the instantiated scene factors to generate a whole-house environment model based on the correlation.
[0081] Scene factors are interconnected. For example, a master bedroom may contain equipment such as an air conditioner. The relationships between scene factors can be described based on the room's purpose. During whole-house modeling, instantiated scene factors can also be linked and combined through these relationships to organize rooms, equipment, sensors, and human bodies, forming a complete floor plan and generating a whole-house environment model.
[0082] In this embodiment, the whole-house modeling process is defined through a whole-house model configuration file, which can dynamically support the modeling process of different whole-house environments. Only one program needs to be written, and the whole-house environment model can be modified conveniently and quickly, making it widely adaptable.
[0083] Furthermore, in the third embodiment of the device linkage control method of the present invention, referring to Figure 4 The method includes:
[0084] Step S21: Detect whether the whole-house environment model contains historical data on device linkage;
[0085] Once the devices in the whole house environment are turned on and running, it can be considered that the devices have begun to accumulate historical data related to their interaction.
[0086] Step S22: If the detection is positive, extract the linkage rules from the device linkage history data and convert the linkage rules into a linkage control rule file.
[0087] If historical data on device linkage is accumulated, implicit linkage rules can be discovered from this data using data mining methods. Data mining methods include decision tree algorithms ID3 and C4.5, the CART algorithm based on Gini indexes, and association rule mining algorithms such as FP-Growth. After the linkage rules are discovered, they are converted into linkage control rule files.
[0088] Step S23: If no is detected, obtain the linkage rules provided by the expert based on the whole-house environment model, and convert the linkage rules into a linkage control rule file.
[0089] If there is no historical data on the linkage of all home appliances, for example, if newly purchased appliances have not yet been turned on, experts can discuss and derive the linkage control logic, which can then be expressed as IF-THEN linkage rules. The expert system module can include a text editor or Business Central (a web application for customizing business rules and processes), allowing human experts to write linkage rules. After modifying and testing the linkage rules, they are converted into linkage control rule files. In cases where historical data on the linkage of all home appliances is insufficient, such as when newly purchased appliances have only been running for a short time, making it impossible to discover linkage rules, the method of obtaining linkage rules written by experts can also be used.
[0090] In this embodiment, different methods can be selected to generate linkage control rule files based on the data accumulation of user devices. Even under conditions of insufficient data accumulation, smart home linkage control can be achieved, reducing the physical limitations of device linkage control.
[0091] Furthermore, in the fourth embodiment of the device linkage control method of the present invention, referring to Figure 5 The method includes:
[0092] Step S31: Detect whether a simulation data generator is used;
[0093] Whole-house environment simulation data can be generated using data simulation programs. The generation of whole-house environment simulation data can be categorized into two methods: based on manual coding and generated by simulation data generators.
[0094] Step S32: If yes, determine the range of values for the parameter to be simulated, and use the simulation data generator to generate whole-house environment simulation data within the range of values.
[0095] If a simulation data generator is used, the range of values for the parameters to be simulated can be determined first. These parameters can be determined based on the overall environmental conditions of the house, such as temperature, humidity, or light intensity. The simulation data generator continuously and randomly generates values for each parameter according to a certain sequence logic, and then combines the generated data into time-series data.
[0096] Step S33: If no is detected, obtain a preset simulation dataset and read whole-house environment simulation data from the simulation dataset.
[0097] The pre-defined simulation dataset can be manually created by knowledge engineers according to specific application scenarios. After the simulation dataset is saved as a simulation data file, the data simulation program reads the simulation data from the simulation data file, and the data sequence and order are fixed.
[0098] In this embodiment, there are various ways to generate whole-house environment simulation data. Manually writing simulation datasets is suitable for generating and verifying high-precision small-scale control rules and has good reentrancy. Simulation data generators can simulate a large range of data combinations, which are closer to user scenarios and more efficient. They can be used to verify the effectiveness of room models, as well as to verify large-scale linkage control rules and implement chaos engineering.
[0099] Furthermore, in the fifth embodiment of the device linkage control method of the present invention, referring to Figure 6 The method includes:
[0100] Step S41: Start the preset whole-house simulation program to send the whole-house environment simulation data to the preset service response interface;
[0101] The whole-house simulation program can read the whole-house model configuration file to realize the whole-house environment modeling process. The whole-house environment simulation data can describe the environmental state information. By sending the whole-house environment simulation data through the whole-house simulation program, the environmental state information and the whole-house environment model can be combined to form a complete scene, enabling the linkage control expert system to better respond and return control strategies.
[0102] Step S42: Obtain environmental status information from the whole-house environment simulation data through the service response interface, and generate a linkage control strategy based on the environmental status information, wherein the service response interface contains a linkage control rule file;
[0103] The linkage control expert module can include a service response interface for responding to external events and generating linkage control strategies. This service response interface can contain a JAR-formatted linkage control rule file package. When whole-house environment simulation data is input, the linkage rules associated with the environmental status information in the linkage control rule file package are triggered, generating the linkage control strategy.
[0104] Step S43: Apply the linkage control strategy to the whole-house environment model to control the devices in the whole-house environment model.
[0105] Controlling devices within a whole-house environment model can be considered a form of virtual control, meaning that the effects of control can be displayed on the user's device without physically controlling the appliances. After the linkage control expert system module generates a linkage control strategy, it can send this strategy to the user-side effect display module. The user-side effect display module then simulates the device's execution based on the linkage control strategy and displays the simulated execution effect visually. In a preferred embodiment, both the whole-house environment simulation data and the linkage control strategy are sent to the user-side effect display module, allowing the module to display both the simulation data and the execution effect.
[0106] Step S44: Obtain the device operating parameters after the device is controlled, and display the operating effect of the device operating parameters in a graphical manner so that knowledge engineers can judge whether the linkage control strategy is effective based on the operating effect.
[0107] After the equipment executes the linkage control strategy, its effectiveness can be determined by the equipment's operating status. Operating status can be characterized by equipment operating parameters, such as the temperature and fan speed of an air conditioner, or the power on / off status of a television. The system interface can construct a floor plan of the user's house, placing different types of equipment graphics on the plan to visually demonstrate the equipment's operational effects.
[0108] In a preferred embodiment, the user-side effect display module can not only display whole-house environment simulation data and equipment operating parameters, but also display user information, such as the user's age, gender, blood pressure, heart rate, and body temperature.
[0109] In this embodiment, the actual operating effect of the whole-house linkage control rules can be seen intuitively through the user-end effect display module. If the linkage control strategy is effective, other linkage control strategies can be continuously tested. If the linkage control strategy is ineffective, the linkage control rules can be modified and adjusted according to the actual operating effect, and then repeated testing can be carried out to ultimately achieve the goal of generating high-quality linkage control rules.
[0110] Furthermore, embodiments of the present invention also provide a device linkage control system, such as... Figure 7 As shown, the equipment linkage control system includes:
[0111] The environmental modeling and data simulation module 101 is used to obtain the whole house model configuration file and establish the whole house environment model.
[0112] The linkage control expert system module 102 is used to generate linkage control rule files based on the whole-house environment model;
[0113] The environmental modeling and data simulation module 101 is also used to perform data simulation on the whole-house environment model and generate whole-house environment simulation data.
[0114] The linkage control expert system module 102 is also used to generate linkage control strategies based on the whole-house environment simulation data and linkage control rule files;
[0115] The user-side effect display module 103 is used to control the devices in the whole-house environment model according to the linkage control strategy, so as to verify whether the linkage control strategy is effective.
[0116] Optionally, the environment modeling and data simulation module 101 is also used for:
[0117] Obtain the whole house model configuration file and instantiate the scene factors in the whole house model configuration file;
[0118] Obtain the correlation between the scene factors, and combine the instantiated scene factors to generate a whole-house environment model based on the correlation.
[0119] Optionally, the linkage control expert system module 102 is also used for:
[0120] Check whether the whole-house environment model contains historical data on device linkage;
[0121] If this is detected, the linkage rules in the device linkage history data are extracted and the linkage rules are converted into a linkage control rule file.
[0122] If no detection is found, the linkage rules provided by experts are obtained based on the whole-house environment model, and the linkage rules are converted into linkage control rule files.
[0123] Optionally, the environment modeling and data simulation module 101 is also used for:
[0124] Detect whether the scene is in automatic trigger mode;
[0125] If this is detected, then the step of performing data simulation on the whole-house environment model and generating whole-house environment simulation data is executed;
[0126] If no response is detected, the system receives a scene command initiated by the user and generates a linkage control strategy based on the scene command and the linkage control rule file.
[0127] Optionally, the environment modeling and data simulation module 101 is also used for:
[0128] Detect whether a simulation data generator is being used;
[0129] If the above is detected, the range of values for the parameter to be simulated is determined, and the simulation data generator is used to generate whole-house environment simulation data within the range of values.
[0130] If no detection is found, a preset simulation dataset is obtained, and whole-house environment simulation data is read from the simulation dataset.
[0131] Optionally, the linkage control expert system module 102 is also used for:
[0132] Start the preset whole-house simulation program to send the whole-house environment simulation data to the preset service response interface;
[0133] The service response interface obtains environmental status information from the whole-house environment simulation data, and generates a linkage control strategy based on the environmental status information. The service response interface contains a linkage control rule file.
[0134] Optionally, the user-side effect display module 103 is also used for:
[0135] The linkage control strategy is applied to the whole-house environment model to control the devices in the whole-house environment model;
[0136] The device's operating parameters after being controlled are obtained, and the operating effect of the device's operating parameters is displayed graphically so that knowledge engineers can judge whether the linkage control strategy is effective based on the operating effect.
[0137] Furthermore, embodiments of the present invention also provide an electronic device, the electronic device comprising: a memory, a processor, and a device linkage control program stored in the memory and executable on the processor, the device linkage control program being configured to implement the steps of the device linkage control method described above.
[0138] Furthermore, embodiments of the present invention also provide a computer-readable storage medium storing a device linkage control program, which, when executed by a processor, implements the steps of the device linkage control method described above.
[0139] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0140] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0141] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0142] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for equipment linkage control, characterized in that, The equipment linkage control method includes the following steps: The process of obtaining a whole-house model configuration file and establishing a whole-house environment model includes: obtaining the whole-house model configuration file; instantiating the scene factors in the whole-house model configuration file to convert the text of the scene factors in the whole-house model configuration file into a whole-house simulation program, wherein the scene factors include environment, equipment, sensors, and human body; obtaining the correlation between the scene factors; and combining the instantiated scene factors according to the correlation to generate a whole-house environment model, wherein the correlation includes an inclusion relationship. Based on the whole-house environment model, generate a linkage control rule file; The whole-house environment model is simulated to generate whole-house environment simulation data; A linkage control strategy is generated based on the whole-house environment simulation data and linkage control rule file. The steps of controlling the devices in the whole-house environment model according to the linkage control strategy to verify the effectiveness of the linkage control strategy include: applying the linkage control strategy to the whole-house environment model to control the devices in the whole-house environment model, wherein the control of the devices in the whole-house environment model is virtual control, which does not require control of physical home appliances, and the effect after control is displayed through the user terminal; obtaining the device operating parameters after the device is controlled, and displaying the operating effect of the device operating parameters in a graphical manner, so that knowledge engineers can judge whether the linkage control strategy is effective based on the operating effect; wherein, if the linkage control strategy is effective, other linkage control strategies are continuously tested; if the linkage control strategy is ineffective, the linkage rules are modified and adjusted according to the operating effect.
2. The equipment linkage control method as described in claim 1, characterized in that, The step of generating the linkage control rule file based on the whole-house environment model includes: Check whether the whole-house environment model contains historical data on device linkage; If this is detected, the linkage rules in the device linkage history data are extracted and the linkage rules are converted into a linkage control rule file. If no detection is found, the linkage rules provided by experts are obtained based on the whole-house environment model, and the linkage rules are converted into linkage control rule files.
3. The equipment linkage control method as described in claim 1, characterized in that, Before the step of performing data simulation on the whole-house environment model to generate whole-house environment simulation data, the method further includes: Detect whether the scene is in automatic trigger mode; If this is detected, then the step of performing data simulation on the whole-house environment model and generating whole-house environment simulation data is executed; If no response is detected, the system receives a scene command triggered by the user and generates a linkage control strategy based on the scene command and the linkage control rule file.
4. The equipment linkage control method as described in claim 1, characterized in that, The step of performing data simulation on the whole-house environment model to generate whole-house environment simulation data includes: Detect whether a simulation data generator is being used; If the above is detected, the range of values for the parameter to be simulated is determined, and the simulation data generator is used to generate whole-house environment simulation data within the range of values. If no detection is found, a preset simulation dataset is obtained, and whole-house environment simulation data is read from the simulation dataset.
5. The equipment linkage control method as described in claim 1, characterized in that, The step of generating the linkage control strategy based on the whole-house environment simulation data and linkage control rule file includes: Start the preset whole-house simulation program to send the whole-house environment simulation data to the preset service response interface; The service response interface obtains environmental status information from the whole-house environment simulation data, and generates a linkage control strategy based on the environmental status information. The service response interface contains a linkage control rule file.
6. A device linkage control system, characterized in that, The equipment linkage control system includes: The environment modeling and data simulation module is used to obtain a whole-house model configuration file and establish a whole-house environment model. This module is also used to obtain the whole-house model configuration file, instantiate the scene factors in the configuration file, and convert the text of the scene factors in the configuration file into a whole-house simulation program. The scene factors include environment, equipment, sensors, and human body. The module also obtains the relationships between the scene factors and combines the instantiated scene factors according to these relationships to generate a whole-house environment model. The linkage control expert system module is used to generate linkage control rule files based on the whole-house environment model; The environmental modeling and data simulation module is also used to perform data simulation on the whole-house environment model and generate whole-house environment simulation data. The linkage control expert system module is also used to generate linkage control strategies based on the whole-house environment simulation data and linkage control rule files; The user-side effect display module is used to control devices in the whole-house environment model according to the linkage control strategy to verify the effectiveness of the linkage control strategy. The user-side effect display module is also used to apply the linkage control strategy to the whole-house environment model to control devices in the whole-house environment model. This control of devices in the whole-house environment model is virtual control, requiring no physical control of the appliances. The effect after control is displayed on the user-side. The module also acquires the device operating parameters after control and displays the operating effect of these parameters graphically, allowing knowledge engineers to determine the effectiveness of the linkage control strategy based on the operating effect. If the linkage control strategy is effective, other linkage control strategies are continuously tested; if the linkage control strategy is ineffective, the linkage rules are modified and adjusted based on the operating effect.
7. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a device linkage control program stored in the memory and executable on the processor, the device linkage control program being configured to implement the steps of the device linkage control method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device linkage control program, which, when executed by a processor, implements the steps of the device linkage control method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Internet of Things linkage control method and system based on expert system
CN111787064A