Control system, method, device, intelligent gateway and storage medium for intelligent equipment
Through the collaborative work of intelligent gateways and sensors, the intelligent device control system solves the problems of low control accuracy, low efficiency and conflicts between devices in the existing technology, and realizes high-precision and high-efficiency joint control of intelligent devices.
Patent Information
- Application Number
- CN202010019530.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-08
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-01-08
AI Technical Summary
The existing intelligent device control system has problems of low control accuracy, low efficiency and conflicts between devices when controlling multiple devices.
A control system for intelligent devices is designed, including intelligent gateways, sensors and terminal devices. The sensors continuously collect monitoring data. The intelligent gateway determines the trigger conditions and sends execution instructions. According to the real-time monitoring data, the execution effect is monitored and conflicts between action resources are resolved.
Joint control of intelligent devices based on action effects is realized, which improves control accuracy and efficiency and reduces conflicts between devices.
Smart Images

Figure CN113093557B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent devices. Specifically, the present application relates to a control system, method, device, intelligent gateway and storage medium for intelligent devices. Background Art
[0002] Smart devices have been widely used. At present, when controlling multiple smart devices in the same control system, each smart device is controlled without taking other devices into consideration. The existing control methods can easily lead to problems such as low control accuracy and low control efficiency of the entire control system or conflicts in the execution of actions between devices. Summary of the invention
[0003] In view of the shortcomings of the existing methods, the present application proposes a control system, method, device, intelligent gateway and storage medium for intelligent devices to solve the technical problems of low control accuracy, low control efficiency or easy conflict in the existing technology.
[0004] In a first aspect, an embodiment of the present application provides a control system for an intelligent device, including: an intelligent gateway, a sensor, and a terminal device;
[0005] The sensor is communicatively connected to the intelligent gateway, and is used to continuously collect monitoring data and provide the monitoring data to the intelligent gateway;
[0006] The smart device is connected to the smart gateway for providing a trigger instruction to the smart gateway, wherein the trigger instruction includes a target detection value of the same type as the monitoring data;
[0007] The intelligent gateway is used to determine the trigger conditions satisfied by the initial monitoring data and the target monitoring value, and determine the first action resource to which the trigger condition belongs; determine the execution instruction under the first action resource, and send the execution instruction to the first intelligent device corresponding to the first action resource; monitor the first execution effect corresponding to the first action resource according to the real-time monitoring data, and turn on the second intelligent device associated with the first intelligent device or turn off the first intelligent device according to the monitoring result of the first execution effect; and / or, according to the real-time monitoring data, resolve the conflict between the second action resource triggered later and the first action resource.
[0008] In a second aspect, an embodiment of the present application provides a method for controlling a smart device, including:
[0009] Receiving monitoring data provided by sensors;
[0010] Receiving a trigger instruction from a terminal device, wherein the trigger instruction includes a target detection value of the same type as the monitoring data;
[0011] Determine a trigger condition satisfied by the real-time monitoring data and the target monitoring value, and determine a first action resource to which the trigger condition belongs;
[0012] Determine an execution instruction under the first action resource, and send the execution instruction to a first smart device corresponding to the first action resource;
[0013] Monitor the first execution effect corresponding to the first action resource according to the real-time monitoring data, and turn on the second smart device associated with the first smart device or turn off the first smart device according to the monitoring result of the first execution effect; and / or, according to the real-time monitoring data, resolve the conflict between the triggered second action resource and the first action resource.
[0014] In a third aspect, an embodiment of the present application provides a control device for a smart device, comprising:
[0015] A data receiving module, used to receive monitoring data provided by a sensor; receive a trigger instruction sent by a terminal device, wherein the trigger instruction includes a target detection value of the same type as the monitoring data;
[0016] an action resource determination module, configured to determine the trigger conditions satisfied by the real-time monitoring data and the target monitoring value, and determine the first action resource to which the trigger condition belongs; determine the execution instruction under the first action resource, and send the execution instruction to the first smart device corresponding to the first action resource;
[0017] A monitoring module is used to monitor the first execution effect corresponding to the first action resource according to the real-time monitoring data, and to turn on the second smart device associated with the first smart device or turn off the first smart device according to the monitoring result of the first execution effect; and / or, according to the real-time monitoring data, resolve the conflict between the second action resource triggered later and the first action resource.
[0018] In a fourth aspect, an embodiment of the present application provides an intelligent gateway, including:
[0019] Processor and memory;
[0020] At least one program is stored in the memory and is configured to be used to implement the control method of the smart device as described in the first aspect of the present application when executed by the processor.
[0021] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the smart device as described in the first aspect of the present application.
[0022] The beneficial technical effects brought about by the technical solution provided by the embodiment of the present application are:
[0023] In an embodiment of the present application, the first action resource includes an identifier of the first intelligent device, a trigger condition of the first intelligent device, an execution instruction of the first intelligent device, and a first action effect resource recording a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second intelligent device; monitoring of the execution effect of the first intelligent device corresponding to the first action resource is introduced, and according to the monitoring result of the execution effect, the first intelligent device or the associated second intelligent device is controlled, or the conflict between the action resources is resolved, which is equivalent to realizing joint control of intelligent devices based on action effects. Compared with traditional control methods, before each intelligent device is controlled, other devices are considered to determine the control strategy.
[0024] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 A schematic diagram of the architecture of a control system of an intelligent device provided in an embodiment of the present application;
[0027] Figure 2 A flowchart of a control method for a smart device provided in an embodiment of the present application;
[0028] Figure 3a A signaling diagram of a registration method for each device provided in an embodiment of the present application;
[0029] Figure 3b A schematic diagram of a framework of association relationships among various resources provided in an embodiment of the present application;
[0030] Figure 4a A signaling diagram for providing data to the sensor of an embodiment of the present application;
[0031] Figure 4b A schematic diagram of the framework of container resources and container instances of an embodiment of the present application;
[0032] Figure 5 A schematic diagram of a framework of an example of a first action resource and a second action resource in an embodiment of the present application;
[0033] Figure 6a A flowchart of a control method of an intelligent device based on action resources according to an embodiment of the present application;
[0034] Figure 6b A flowchart of a specific method for monitoring action effects based on real-time monitoring data according to an embodiment of the present application;
[0035] Figure 6c A signaling diagram of an example of a control method for an intelligent device based on action resources according to an embodiment of the present application;
[0036] Figure 7a A flowchart of another control method of an intelligent device based on action resources according to an embodiment of the present application;
[0037] Figure 7b A schematic diagram of the principle of the average cooling power out of control of the air conditioner in the embodiment of the present application;
[0038] Figure 7c A signaling diagram of an example of another control method of an intelligent device based on action resources according to an embodiment of the present application;
[0039] Figure 8a A flowchart of another control method of an intelligent device based on action resources according to an embodiment of the present application;
[0040] Figure 8b A signaling diagram of an example of another control method for an intelligent device based on action resources according to an embodiment of the present application;
[0041] Figure 9a A flowchart of another control method of an intelligent device based on action resources according to an embodiment of the present application;
[0042] Figure 9b A signaling diagram of an example of another control method for an intelligent device based on action resources according to an embodiment of the present application;
[0043] Fig.10 A schematic diagram of the structural framework of a control device for an intelligent device provided in an embodiment of the present application;
[0044] Fig.11 A schematic diagram of the structure of an intelligent gateway provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The present application is described in detail below, and examples of embodiments of the present application are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar components or components with the same or similar functions. In addition, if the detailed description of the known technology is unnecessary for the features of the present application shown, it will be omitted. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0046] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0047] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0048] The control system, method, device, intelligent gateway and storage medium of the smart device provided in this application are intended to solve the technical problems of the prior art.
[0049] The invention of the present application is described below with specific examples, but is not limited to the following examples.
[0050] An embodiment of the present invention provides a control system for an intelligent device. Figure 1 As shown, it includes: an intelligent gateway, at least one sensor, at least one intelligent device and at least one terminal device.
[0051] The sensor may be a sensor for detecting external environmental parameters for the user, or a sensor for detecting internal environmental parameters of the device, or a sensor for monitoring the operating status of the device. Such as: temperature sensor, humidity sensor, pressure sensor, gas concentration sensor, light intensity sensor, particle sensor, refrigeration power sensor, etc. The at least one sensor may be a sensor of the same type, or sensors of at least two types. The number of sensors of each type may be one or more.
[0052] Each type of sensor is used to continuously collect monitoring data in the internal or external environment of the device and report it to the intelligent gateway. Optionally, the monitoring data may include at least one of the following: actual temperature value in the environment, actual cooling power value of the air conditioner, actual humidity value, actual brightness value, actual particle density value, switch data of the intelligent lighting device, moving speed or position data of the sweeping robot, etc.
[0053] Smart devices can be smart homes, smart industrial equipment, or other types of equipment. For example, they can be smart air conditioning equipment, smart cooling fans, smart door magnetic equipment, smart window magnetic equipment, smart humidifiers, smart lighting equipment, smart air evaporators, sweeping robots, etc. in smart home scenarios. The number of each type of smart device is at least one. The at least one smart device can be a type of smart device (such as multiple cooling fans) or multiple types of smart devices (such as smart air conditioning equipment and smart cooling fans). Each smart device can be either a smart function itself or a combination of an ordinary non-smart device and an electrically connected smart switch. For this combination, the communication connection between the following smart device and the smart gateway is actually a communication connection between the smart gateway and the smart switch. For example, the smart gateway is connected to the smart air conditioning switch, and the smart air conditioning switch is connected to the non-smart air conditioning; for another example, the smart gateway is connected to the smart cooling fan switch, and the smart air conditioning switch is connected to the non-smart cooling fan.
[0054] The communication connection in this application includes wired connection and wireless connection. The smart device can be connected to the smart gateway wirelessly. The wireless connection method may include at least one of the following: wireless local area network, mobile communication network, NFC (Near Field Communication) connection, Bluetooth connection. The wireless local area network may be a WiFi (Wireless Fidelity) local area network, etc. The mobile communication network may be a 3G (3rd-Generation wireless telephone technology) network or an LTE (Long Term Evolution) network, etc.
[0055] The terminal device in the embodiment of the present application may be one, two or more. The terminal device has a communication function, a display function and a human-computer interaction function. The terminal device may be one of the following: a smart phone, a tablet computer, a two-in-one computer, a laptop computer, a PDA (Personal Digital Assistant), etc.
[0056] The smart device is connected to the smart gateway in communication. Optionally, the terminal device can be connected to the smart gateway wirelessly. The wireless connection method can include at least one of the following: wireless local area network, mobile communication network, NFC connection, Bluetooth connection. The smart device is used to send the trigger instruction to the smart gateway after receiving it.
[0057] The intelligent gateway in the embodiment of the present invention is mainly used to determine the trigger conditions satisfied by the real-time monitoring data and the target monitoring values in the trigger instruction, and to determine the first action resource to which the trigger condition belongs; determine the execution instruction under the first action resource, and send it to the first intelligent device corresponding to the first action resource; monitor the first execution effect corresponding to the first action resource according to the real-time monitoring data, and turn on the second intelligent device associated with the first intelligent device or turn off the first intelligent device according to the monitoring result of the first execution effect; or, according to subsequent real-time monitoring data, resolve the conflict between the second action resource triggered later and the first action resource.
[0058] Optionally, another sensor in the embodiment of the present invention is used to continuously collect another type of monitoring data and provide it to the intelligent gateway.
[0059] Optionally, the intelligent gateway is also used to receive registrations of various sensors, intelligent devices and terminal devices, receive and save data provided by various sensors, create various action resources (action) and various action effect resources (actionDesiredEffect) involving intelligent devices, etc. The specific content will be introduced in detail later and will not be repeated here.
[0060] Based on the same inventive concept, the embodiment of the present application provides a control method for an intelligent device, which can be executed by a control device on the network side, such as a network device such as a processor, a server or a gateway. The flow chart of the method is as follows: Figure 2 As shown, the method includes S201 to S204:
[0061] S201: receiving monitoring data provided by a sensor; receiving a trigger instruction from a terminal device, wherein the trigger instruction includes a target detection value of the same type as the monitoring data.
[0062] The target detection value of the same type as the monitoring data refers to data of the same data type as the monitoring data, and the data is the target detection data. In other words, the target detection value of the same type as the monitoring data refers to the target detection value corresponding to the monitoring data.
[0063] For example, the monitoring data is the temperature data of the surrounding environment, and the target detection value is the target temperature value that the user expects to achieve.
[0064] S202: Determine the trigger conditions satisfied by the real-time monitoring data and the target monitoring value, and determine the first action resource to which the trigger conditions belong.
[0065] S203: Determine an execution instruction under the first action resource, and send the execution instruction to the first smart device corresponding to the first action resource.
[0066] S204: Monitor the first execution effect corresponding to the first action resource according to the real-time monitoring data, and turn on the second smart device associated with the first smart device or turn off the first smart device according to the monitoring result of the first execution effect; and / or, according to the real-time monitoring data, resolve the conflict between the second action resource triggered later and the action resource.
[0067] In an embodiment of the present application, the first action resource includes an identifier of the first intelligent device, a trigger condition of the first intelligent device, an execution instruction of the first intelligent device, and a first action effect resource recording a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second intelligent device; monitoring of the execution effect of the first intelligent device corresponding to the first action resource is introduced, and according to the monitoring result of the execution effect, the first intelligent device or the associated second intelligent device is controlled, or the conflict between the action resources is resolved, which is equivalent to realizing joint control of intelligent devices based on the execution effect of the action resources. Compared with the traditional control method, before each intelligent device is controlled, other devices are considered to determine the control strategy.
[0068] The above execution method is described below using a gateway as an example.
[0069] Device registration is required before executing the above steps. The following describes the registration method of sensors, smart devices and terminal devices in the embodiments of the present application. The creation method and content of action resources and the control method of smart devices based on action resources are further described.
[0070] Optionally, the registration method of the sensor, smart device and terminal device includes:
[0071] Each sensor sends a registration request containing the identification of the sensor to the intelligent gateway; each smart device sends a registration request containing the identification of the smart device to the intelligent gateway; each terminal device sends a registration request containing the identification of the terminal device to the intelligent gateway. In other words, the sensor, smart device and terminal device send a registration request to the intelligent gateway respectively, and the registration request contains their own identification information.
[0072] When the intelligent gateway receives each registration request, it parses the identification of each sensor, the identification of each smart device and the identification of each terminal device from each registration request, and stores the identification of each sensor, the identification of each smart device and the identification of each terminal device under the identification name of the intelligent gateway, which is equivalent to establishing a subordinate relationship between the identification of each sensor and the identification of the intelligent gateway, establishing a subordinate relationship between the identification of each smart device and the identification of the intelligent gateway, and establishing a subordinate relationship between the identification of each terminal device and the identification of the intelligent gateway, thereby establishing an association relationship (i.e., binding) between the identification of each sensor, the identification of each smart device and the identification of each terminal device through the identification that is subordinate to the intelligent gateway.
[0073] The device identification can be used as a unique identification of the device in the system. Optionally, the sensor identification and the smart device identification include a unique identification code. For example, the unique identification code of the smart device can be a UUID (Universally Unique Identifier) or a MAC (Media Access Control) address. The sensor identification and the smart device identification can also include at least one of the following: installation location information, device type, device model, manufacturer information, factory date, etc.
[0074] Optionally, the terminal device identification may include: a unique identification code of the terminal device and / or an IMEI (International Mobile Equipment Identity) communication number, etc. Optionally, if the terminal device is provided with a mobile communication card or a device capable of storing a communication number, such as a SIM (Subscriber Identity Module) card, a nano-SIM card or a micro-SIM card, etc., the terminal device identification may also include a communication number.
[0075] The following is an example to introduce the registration method of each device in the embodiment of the present application. The signaling diagram of the method is as follows: Figure 3a As shown, including:
[0076] The temperature sensor sends a registration request containing the identifier of the temperature sensor to the smart gateway (the identifier of the smart gateway is CSE); the smart air-conditioning switch sends a registration request containing the identifier of the smart air-conditioning switch to the smart gateway; the smart refrigeration fan switch sends a registration request containing the identifier of the smart refrigeration fan switch to the smart gateway; the mobile phone sends a registration request containing the identifier of the mobile phone to the smart gateway.
[0077] When the intelligent gateway receives each registration request, it parses the temperature sensor identifier, the intelligent air conditioning switch identifier, the intelligent cooling fan switch identifier, and the mobile phone identifier from each registration request; creates temperature sensor resource AE1 according to the temperature sensor identifier, creates intelligent air conditioning switch resource AE2 according to the intelligent air conditioning switch identifier, creates intelligent cooling fan switch resource AE4 according to the intelligent cooling fan switch identifier, creates mobile phone resource AE3 according to the mobile phone identifier, and stores the respective identifiers in the respective resources. Create intelligent gateway basic resource CSEBase, and associate temperature sensor resource AE1, intelligent air conditioning switch resource AE2, intelligent cooling fan switch resource AE4, and mobile phone resource AE3 as subordinate resources with intelligent gateway basic resource CSEBase, such as Figure 3b That is, the temperature sensor resource AE1, the intelligent air conditioning switch resource AE2, the intelligent cooling fan switch resource AE4 and the mobile phone resource AE3 are associated together (ie, bound) through the intelligent gateway basic resource CSEBase.
[0078] The following describes the method for creating action resources and the content of action resources in an embodiment of the present application.
[0079] The smart gateway can create N action resources, such as action1 to actionN, where N is a positive integer.
[0080] Action resources include action resource parameters and action effect (actionDesiredEffect) resources.
[0081] Action resource parameters include the triggering conditions, execution instructions, and execution objects of the action resource.
[0082] The action effect resource includes at least one of the following: effect resource identifier effectResourceID, effect initial value effectInitialValue, effect current value effectCurrentValue, effect target value effectTargetValue, effect monitoring period effectMornitorPeriod, effect prediction period effectPredictedTime, nonlinear effect parameter nonLinearParameter, effect control parameter effectControlParameter, effect control trend effectControlStatus, related device intervention switch relatedDeviceInvolved or called related action intervention switch relatedActionInvolved, related device intervention list relatedDeviceList or called related action intervention list relatedActionList, related device intervention setting relatedDeviceOption or called related action intervention setting relatedActionOption, reverse action switch relatedReverseActionInvolved, and effective time effectTime. The reverse action in this application refers to the operation opposite to the operation corresponding to the execution instruction.
[0083] Optionally, the action resource may also include a verification dpendency resource.
[0084] In the embodiment of the present application, the intelligent gateway creates action resources and can set various contents of action resources according to experimental data, empirical data, historical operation data and / or user input data to generate action resources. Optionally, each action resource can be created and generated at the same time or at intervals, and the interval time is not limited, for example, it can be a few minutes, a few hours, a few days, a few weeks, a few months or a few years. The present application supports the continuous addition or update of action resources.
[0085] Optionally, in an embodiment of the present application, the action effect resource is stored as a sub-resource of the action resource, or is stored as a parameter of the action resource; the trigger condition is stored as a parameter of the action resource.
[0086] Optionally, in an embodiment of the present application, the verification resource is stored as a sub-resource of the action resource.
[0087] The following is an illustrative introduction to action resources, their parameters, and sub-resources with reference to the accompanying drawings.
[0088] like Figure 4aAs shown in the figure, the temperature sensor installed in the living room continuously collects the actual living room temperature value and continuously provides it to the smart gateway. When the smart gateway receives the first actual living room temperature value, it creates a container resource under the identifier of the temperature sensor and creates N container instances under the container resource, such as containerinstance1 to containerinstanceN, where N is a positive integer. Figure 4b As shown. The smart gateway stores the N real-time actual living room temperature values received successively into N container instances respectively. Optionally, when the actual living room temperature values exceed N, the container instance is overwritten and stored, for example, N+i actual living room temperature values are overwritten and stored into the i-th container instance, where i is a positive integer not greater than N.
[0089] like Figure 5 As shown, the intelligent gateway creates a first action (action1) resource and a second action (action2) resource.
[0090] The first action resource includes a first verification (dependency1) resource and a first action effect (action1DesiredEffect1) resource.
[0091] The parameters of the first action resource include a trigger condition subject, an execution instruction input, and an execution object object. The trigger condition subject, the execution instruction input, and the execution object object are respectively set to temperature greater than 30 degrees, cooling on, and smart air conditioning switch.
[0092] The first action effect (action1DesiredEffect1) resource of the first action resource includes the following parameters: effect resource identifier effectResourceID, effect starting value effectInitialValue, effect current value effectCurrentValue, effect target value effectTargetValue, effect monitoring period effectMornitorPeriod, effect prediction period effectPredictedTime, effect control parameter effectControlParameter, effect control trend effectControlStatus, related device intervention switch relatedDeviceInvolved and effective time effectTime.
[0093] Optionally, the status value of the effect resource identifier effectResourceID refers to a unique identifier that distinguishes an action effect resource from other action effect resources;
[0094] The status value of the effect initial value effectInitialValue refers to the monitoring data at the starting moment of the execution effect state corresponding to the monitoring action effect resource;
[0095] The status value of the effect current value effectCurrentValue refers to the real-time monitoring data at the current moment under the execution effect status corresponding to the monitoring action effect resource;
[0096] The state value of the effect target value effectTargetValue refers to the target monitoring value in the touch command;
[0097] The status value of the effect monitoring period effectMornitorPeriod refers to the total monitoring duration of the execution effect corresponding to the action effect resource.
[0098] The status value of the effect prediction achievement period effectPredictedTime refers to the duration of each monitoring period in the total monitoring duration. The total monitoring duration includes at least one monitoring period.
[0099] The status value of the effect control parameter effectControlParameter refers to an adjustable parameter value.
[0100] The status value of the effect control trend effectControlStatus is controlled or out of control, which reflects whether the difference between the current value of the effect and the target value of the effect meets the controlled condition of the execution effect corresponding to the corresponding action effect resource within the total monitoring time.
[0101] The associated device intervention switch relatedDeviceInvolved reflects whether the second smart device associated with the first smart device needs to intervene. If necessary, the state value of the associated device intervention switch is true True; if not, the state value of the associated device intervention switch is false False.
[0102] The status value of the effective time effectTime refers to the time period during which the execution effect corresponding to the action effect resource needs to be monitored. If the current time falls within the time period, it is determined that the execution effect corresponding to the action effect resource needs to be monitored; if the current time does not fall within the time period, it is determined that the execution effect corresponding to the action effect resource does not need to be monitored.
[0103] The corresponding values of the above parameters in the first action effect (action1DesiredEffect1) resource of the first action resource are: living room temperature sensor container, latest data of living room temperature sensor when action is triggered, status value, 26 degrees Celsius, 5 minutes, 30 minutes, 20%, status value, True, 2019 / 06 / 01 / 00:00:00-2019 / 09 / 15 / 23:59:59. Among them, the relevant content of the status value of the effect current value effectCurrentValue and the relevant content of the status value of the effect control trend effectControlStatus will be described in detail later and will not be repeated here.
[0104] Optionally, the second action resource has a first action effect (action2DesiredEffect1) resource. No verification resource is configured. The parameters of the second action resource include a trigger condition subject, an execution instruction input, and an execution object object. The trigger condition subject, the execution instruction input, and the execution object object are respectively set to the temperature is less than 18 degrees, the heating is turned on, and the smart air conditioner is switched on.
[0105] The first action effect (action2DesiredEffect1) resource of the second action resource includes the following parameters: effect resource identifier effectResourceID, effect starting value effectInitialValue, effect current value effectCurrentValue, effect target value effectTargetValue, effect monitoring period effectMornitorPeriod, effect prediction period effectPredictedTime, effect control parameter effectControlParameter, effect control trend effectControlStatus, related device intervention switch relatedDeviceInvolved and effective time effectTime.
[0106] The corresponding values of the above parameters in the first action effect (action1DesiredEffect1) resource of the second action resource are: living room temperature sensor container, latest data of the living room temperature sensor when the action is triggered, status value, 27 degrees Celsius, 5min, 2h (hours), 30%, status value, True, 2019 / 12 / 01 / 00:00:00-2020 / 01 / 15 / 23:59:59.
[0107] The following introduces the control method of intelligent devices based on action resources.
[0108] A flow chart of a control method for intelligent devices based on action resources is shown in Figure 6a As shown, the following steps S601-S607 are included:
[0109] S601: The sensor provides real-time monitoring data.
[0110] Step S601 is executed before S602 and continues until after S607, when a shutdown instruction sent by the intelligent gateway is received.
[0111] Sensors can provide values in a variety of ways.
[0112] Optionally, a providing method is to provide the collected values in the form of time intervals;
[0113] Optionally, another providing method is to provide when the change of the value collected by the sensor exceeds a preset threshold.
[0114] Another subsequent sensor may also provide values in a variety of ways, which will not be described in detail.
[0115] S602: When the terminal device receives the target monitoring value input by the user, it generates a trigger instruction and sends it to the intelligent gateway. The trigger instruction includes the target detection value of the same type as the monitoring data.
[0116] Optionally, when the terminal device receives the target monitoring value input by the user, it creates a trigger instruction, carries the target monitoring value in the trigger instruction, and then sends the trigger instruction carrying the target monitoring value to the intelligent gateway.
[0117] For example, when the terminal device receives the target temperature value input by the user, it creates a trigger instruction, carries the target temperature value in the trigger instruction, and then sends the trigger instruction carrying the target temperature value to the smart gateway.
[0118] S603: The intelligent gateway receives monitoring data provided by the sensor; and receives a trigger instruction sent by the terminal device.
[0119] S604: The intelligent gateway determines the trigger conditions satisfied by the real-time monitoring data and the target monitoring values in the trigger instruction, and determines the action resources to which the trigger conditions belong.
[0120] S605: The intelligent gateway performs verification according to the verification resource of the first action resource. If the verification fails, it jumps to step S603; otherwise, if the verification passes, it executes step S606.
[0121] Optionally, the intelligent gateway performs verification based on the verification resources of the action resources, including: determining whether the counter-effect intelligent device of the first intelligent device is being executed; if so, the verification fails, and terminates sending the execution instruction to the first intelligent device of the action resource, ends the present process or jumps to step S603; otherwise, the verification passes, and step S606 is executed.
[0122] For example, the first smart device is a smart air conditioner, and the opposite smart device is a smart window magnetic device or a smart door magnetic device. After the action resource of the smart air conditioner is triggered, the smart gateway performs verification according to the verification resource of the action resource, including: determining whether the smart window magnetic device or the smart door magnetic device with the opposite effect of the smart air conditioner is being executed. If so, it means that the window corresponding to the smart window magnetic device is opened, or the door corresponding to the smart door magnetic device is opened, and the verification fails. The execution instruction is terminated to the smart air conditioner of the action resource, and the current process ends or jumps to step S603. If the verification passes otherwise, step S606 is executed.
[0123] S606: The intelligent gateway determines an execution instruction under the first action resource, and sends the execution instruction to the first intelligent device corresponding to the first action resource.
[0124] S607: The intelligent gateway monitors the execution effect corresponding to the first action resource according to the real-time monitoring data, and starts the second intelligent device associated with the first intelligent device according to the monitoring result of the execution effect.
[0125] Optionally, the execution effect corresponding to the action resource in this application mainly includes: after the smart device corresponding to the action resource executes the execution instruction under the action resource, the degree of conformity between the real-time monitoring data collected and provided by the sensor and the target monitoring value. Optionally, within a preset time period, whether the real-time monitoring data and the target monitoring value can meet the preset conditions.
[0126] Optionally, if within a preset time period, the real-time monitoring data and the target monitoring value can meet preset conditions, the monitoring result in this application is confirmed to be under control, otherwise the monitoring result is confirmed to be out of control.
[0127] Optionally, monitoring a first execution effect corresponding to the first action resource according to real-time monitoring data includes:
[0128] According to the real-time monitoring data when the first action resource is executed, the effect starting value in the first action effect resource corresponding to the first execution effect is updated; according to the target monitoring value, the effect target value in the first action effect resource is updated;
[0129] Perform periodic detection according to the effect monitoring cycle in the first action effect resource; each periodic detection includes: when the current effect monitoring cycle is reached, update the current value of the effect in the first action effect resource according to the received real-time monitoring data; determine the value expected to be achieved at the current moment according to the effect starting value and the effect target value; judge whether the first execution effect is out of control according to the updated current value of the effect and the value expected to be achieved at the current moment, and update the judgment result to the state value of the effect control trend in the first action effect resource; if the execution effect is under control, continue the detection of the next cycle; if the first execution effect is out of control, determine whether the associated second smart device or associated action resource needs to intervene.
[0130] Optionally, after the above step S607, when the terminal device receives a shutdown instruction input by the user, it provides it to the smart gateway; the smart gateway sends the shutdown instruction to each related smart device and each sensor; the related smart devices and each sensor execute the shutdown operation according to the shutdown instruction.
[0131] Optionally, in the above step S607, a flowchart of a specific method for monitoring the first execution effect corresponding to the first action resource according to the real-time monitoring data is as follows: Figure 6b As shown, the following steps are included:
[0132] S6071: The intelligent gateway confirms whether the current time is within the effective time effectTime range of the first action effect resource of the first action resource; if so, execute step S6072; otherwise, end the monitoring process of the first execution effect corresponding to the first action effect resource.
[0133] In this application, when the first smart device is turned on according to the execution instruction, the real-time monitoring data received by the corresponding sensor is stored as action effect data and updated to the first action effect resource. At this time, the real-time monitoring data is still stored or overwritten in the container instance of the container resource of the sensor.
[0134] Optionally, if the action effect data is stored as a parameter of the first action resource, the action effect data under the first action resource is directly accessed.
[0135] Optionally, if the first action effect resource is stored as a sub-resource under the first action resource, the action effect data in the first action effect resource under the first action resource is directly accessed.
[0136] Optionally, the intelligent gateway reads the effective time effect from the first action effect resource of the first action resource; and confirms whether the current time is within the effective time range of the first action resource; if so, executes step S6072; otherwise, ends the monitoring process of the first execution effect.
[0137] S6072: The intelligent gateway updates the effect initial value effectinitialValue in the first action effect resource according to the real-time monitoring data when executing the first action resource; and updates the effect target value effectTargetValue in the first action effect resource according to the target monitoring value.
[0138] S6073: The intelligent gateway detects whether the current effect monitoring period is reached according to the effect monitoring period EffectMornitorPeriod in the first action effect resource; if so, execute S6075; otherwise, continue to execute this step.
[0139] S6074: The intelligent gateway updates the effect current value effectCurrentValue in the first action effect resource according to the received real-time monitoring data; and determines the value expected to be achieved at the current moment according to the effect start value and the effect target value.
[0140] Optionally, the value expected to be achieved at the current moment is determined based on the effect starting value and the effect target value, including: determining the expected numerical effect to be achieved at each time interval based on the effect starting value, the effect target value, the effect prediction achievement period, the effect monitoring period, and the time difference between the current moment and the initial moment; the initial moment is the starting moment of executing the action resource; determining the expected numerical effect to be achieved at the current moment based on the time difference, the effect monitoring period, and the expected numerical effect to be achieved at each time interval.
[0141] Optionally, for ease of understanding and ease of presentation with formulas,
[0142] Set the effect initial value effectInitialValue to V0; set the effect current value effectCurrentValue to Vc;
[0143] Set the effect target value effectTargetValue to Vt;
[0144] Set the effect monitoring period effectMornitorPeriod to △t;
[0145] Set the effect prediction period effectPredictedTime to Tp (relative value);
[0146] Set the initial time to t0, which is the starting time for monitoring the action effect;
[0147] Set the current time to tc, and the current time is the current moment.
[0148] The expected numerical effect of each time interval is e=(Vt-V0) / (Tp / △t)
[0149] The current estimated value V = int((tc-t0) / △t)*e
[0150] S6075: The intelligent gateway determines whether the first execution effect corresponding to the first action effect resource is out of control based on the updated current value of the effect and the expected value at the current moment, and updates the judgment result to the effect control trend effcetControlStatus in the first action effect resource; if it is controlled, continue the detection of the next cycle and jump to step S6073; if it is out of control, execute S6076.
[0151] Optionally, judging whether the first execution effect is out of control is based on the updated current value of the effect Vc and the value expected to be achieved at the current moment, including: determining the upper limit of the value expected to be achieved at the current moment and the lower limit of the value expected to be achieved at the current moment based on the effect control parameter effectControlParameter in the first action effect resource and the value expected to be achieved at the current moment; judging whether the first execution effect is out of control is based on the upper limit of the value expected to be achieved at the current moment, the lower limit of the value expected to be achieved at the current moment, and the updated current value of the effect Vc.
[0152] Optionally, the updated current value of the effect is Vc, the effect control parameter effectControlParameter is set to ec, and ec is a percentage type. The upper limit of the value expected to be achieved at the current moment is V*(1+ec), and the lower limit of the value expected to be achieved at the current moment is V*(1-ec). Determine whether Vc satisfies Vc<V*(1+ec)and Vc> V*(1-ec); If so, it is determined that the first execution effect is under control, and the effect control trend effcetControlStatus is updated to underControl; otherwise, it is determined that the first execution effect is out of control, and the effect control trend effcetControlStatus is updated to out of control outOfControl.
[0153] Optionally, when the judgment result or effect control trend is controlled, the intelligent gateway detects the difference between the current time and the monitoring revelation time to see whether the effect prediction period effectPredictedTime of the first action effect resource is reached; if so, the monitoring is ended; otherwise, the detection of the next period is continued and jumps to step S6073.
[0154] S6076: The intelligent gateway determines whether the associated second intelligent device needs to intervene according to the associated device intervention switch relatedDeviceInvolved in the first action effect resource, or determines whether the associated action resource needs to intervene according to the associated action intervention switch relatedActionInvolved.
[0155] Optionally, the intelligent gateway reads the status value of the related device intervention switch relatedDeviceInvolved in the first action effect resource. If the read status value is true, the related device intervention is required; if the read status value is false, the related device intervention is not required.
[0156] Alternatively, the intelligent gateway reads the status value of the relatedActionInvolved switch of the related action intervention. If the read status value is true, the related action intervention is required; if the read status value is false, the related action intervention is not required.
[0157] Optionally, when the smart gateway determines that the second associated smart device needs to intervene, the second smart device associated with the first smart device is turned on according to the monitoring result of the action effect in the above S607, including: the smart gateway performs operations according to the related device intervention setting relatedDeviceOption or the related action intervention setting relatedActionOption in the first action effect resource of the action resource; reads the related device intervention list relatedDeviceList or the related action intervention list relatedActionList in the first action effect resource, and selects an identifier of a smart device therefrom as the identifier of the associated second smart device; generates a startup instruction according to the identifier of the associated second smart device and sends it to the associated second smart device. The associated second smart device performs a startup operation according to the received startup instruction.
[0158] An example of a control method for an intelligent device based on motion resources is introduced below in conjunction with the accompanying drawings.
[0159] like Figure 6c As shown, the temperature sensor continuously collects the real-time actual temperature value and continuously provides it to the intelligent gateway. The monitoring data is embodied as the actual temperature value in this example.
[0160] The mobile phone sends a trigger instruction containing the target monitoring temperature to the smart gateway.
[0161] When the intelligent gateway receives the trigger instruction, it determines that the trigger condition of the first action resource action1 is met according to the latest actual temperature value provided, and the first action resource action1 is triggered.
[0162] The intelligent gateway verifies the dependency of the first action resource, and if the verification passes, sends a cooling start instruction to the intelligent air-conditioning switch.
[0163] The intelligent air conditioner switch turns on the air conditioner for cooling according to the cooling start instruction. The temperature sensor collects and provides the real-time actual temperature value as the current value of the effect.
[0164] The intelligent gateway updates the first action effect resource of the first action resource according to the current value of the effect, and monitors the first action effect resource action1DesiredEffect1 of the first action resource. When the action effect of the first action effect resource is out of control, read the status value of the associated device intervention switch relatedDeviceInvolved or the associated action intervention switch relatedActionInvolved of the first action effect resource, and determine whether the associated second intelligent device needs to intervene based on the read status value. When it is determined that the associated second intelligent device needs to intervene, read the attribute value of the associated device intervention list relatedDeviceList or the associated action intervention list relatedActionList in the action effect resource, select an associated intelligent cooling fan switch based on the attribute value, and send a cooling trigger instruction to the associated intelligent cooling fan switch.
[0165] The intelligent cooling fan switch starts the cooling fan or the intelligent cooling fan for cooling according to the received cooling trigger instruction.
[0166] In an embodiment of the present application, the first action resource includes an identifier of the first intelligent device, a trigger condition of the first intelligent device, an execution instruction of the first intelligent device, and a first action effect resource that records a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second intelligent device; monitoring of the execution effect of the first intelligent device corresponding to the first action resource is introduced. When the monitoring result of the execution effect is out of control, it indicates that the preset target monitoring value cannot be achieved within the predetermined time by operating the first intelligent device alone. Therefore, the associated second intelligent device with the same function (such as refrigeration) is controlled to be turned on to perform joint operations with the first intelligent device, which is equivalent to realizing joint control of intelligent devices based on action effects. Compared with the traditional method of controlling each intelligent device separately and the action effects often conflict, the control is more precise and more efficient.
[0167] Another control method for an intelligent device based on motion resources is introduced below, and the differences from the above-mentioned control method for an intelligent device based on motion resources are emphasized, and the similarities are omitted as much as possible.
[0168] Optionally, after determining the execution instruction under the first action resource in the above step S203 and sending the execution instruction to the first smart device corresponding to the first action resource, the method further includes:
[0169] receiving another monitoring data provided by another sensor;
[0170] And, monitoring the execution effect of the first action resource according to the real-time monitoring data, and shutting down the first smart device according to the monitoring result of the execution effect, including:
[0171] According to another real-time monitoring data, monitor the second execution effect corresponding to the first action resource, and update the second action effect resource corresponding to the second execution effect;
[0172] When the monitoring result of the second execution effect is out of control, it is determined that the first smart device needs to be shut down, and an operation instruction opposite to the execution instruction is executed.
[0173] Optionally, a flow chart of another control method of an intelligent device based on action resources is as follows: Figure 7a As shown, the following steps S701-S709 are included:
[0174] S701: Sensors provide real-time monitoring data.
[0175] Optionally, the specific method of S701 is consistent with the specific method of S601 and is not described again.
[0176] Step S701 is executed before S702 and continues until after S709, when a shutdown instruction sent by the intelligent gateway is received.
[0177] S702: When the terminal device receives the target monitoring value input by the user, it generates a trigger instruction and sends it to the intelligent gateway. The trigger instruction includes the target detection value of the same type as the monitoring data.
[0178] Optionally, the specific method of S702 is consistent with the specific method of S602 and is not described again.
[0179] S703: The intelligent gateway receives monitoring data provided by a sensor; and receives a trigger instruction sent by a terminal device.
[0180] Optionally, the specific method of S703 is consistent with the specific method of S603 and is not described again.
[0181] S704: The intelligent gateway determines the trigger conditions satisfied by the real-time monitoring data and the target monitoring value in the trigger instruction, and determines the first action resource to which the trigger condition belongs.
[0182] Optionally, the specific method of S704 is consistent with the specific method of S604 and is not described again.
[0183] S705: The intelligent gateway performs verification according to the verification resource of the first action resource. If the verification fails, it jumps to step S703; otherwise, if the verification passes, it executes step S706.
[0184] Optionally, the intelligent gateway performs verification according to the verification resource of the first action resource, including: determining whether the counter-effect intelligent device of the first intelligent device is being executed; if so, the verification fails, and terminates sending the execution instruction to the first intelligent device corresponding to the first action resource, ends this process or jumps to step S703; otherwise, the verification passes, and step S706 is executed.
[0185] Optionally, the specific method of S705 is consistent with the specific method of S605 and is not described in detail.
[0186] S706: The intelligent gateway determines an execution instruction under the first action resource, and sends the execution instruction to the first intelligent device corresponding to the first action resource.
[0187] Optionally, the specific method of S706 is consistent with the specific method of S606 and is not described again.
[0188] Optionally, one sensor is a temperature sensor in the living room, and the first action effect (action1DesiredEffect1) resource of the first action resource includes the following parameters: effect resource identifier effectResourceID, effect starting value effectInitialValue, effect current value effectCurrentValue, effect target value effectTargetValue, effect monitoring period effectMornitorPeriod, effect prediction period effectPredictedTime, effect control parameter effectControlParameter, effect control trend effectControlStatus, related device intervention switch relatedDeviceInvolved and effective time effectTime.
[0189] The corresponding values of the above parameters in the first action effect (action1DesiredEffect1) resource of the first action resource are: living room temperature sensor container, latest data of the living room temperature sensor when the action is triggered, status value, 26 degrees Celsius, 5 minutes, 30 minutes, 20%, status value, True, 2019 / 06 / 01 / 00:00:00-2019 / 09 / 15 / 23:59:59.
[0190] Optionally, the intelligent gateway determines an execution instruction of the action resource, and sends it to a first intelligent device corresponding to the first action resource, and the first intelligent device performs an activation operation according to the execution instruction.
[0191] After the first smart device is turned on, the real-time actual temperature value continuously collected and provided by the living room temperature sensor is actually stored as the effect current value in the action effect data. Therefore, according to the real-time actual temperature value continuously collected and provided by the living room temperature sensor, the state value of the effect current value effectCurrentValue is updated.
[0192] S707: The intelligent gateway receives another monitoring data provided by another sensor.
[0193] Optionally, another sensor may be a cooling average power sensor. The first action resource also includes the second action effect (action1DesiredEffect2) resource including the following parameters: effect resource identifier effectResourceID, effect initial value effectInitialValue, effect current value effectCurrentValue, effect target value effectTargetValue, effect monitoring period effectMornitorPeriod, effect prediction period effectPredictedTime, effect control parameter effectControlParameter, effect control trend effectControlStatus, related device intervention switch relatedDeviceInvolved and effective time effectTime.
[0194] The corresponding values of the above parameters in the second action effect (action1DesiredEffect1) resource of the first action resource are: cooling average power sensor container, latest data of the living room temperature sensor when the action is triggered, status value, 100W, 5min, 12h, 50%, status value, True, 2019 / 06 / 01 / 00:00:00-2019 / 09 / 15 / 23:59:59.
[0195] S708: The intelligent gateway monitors the second execution effect corresponding to the first action resource according to another real-time monitoring data, and updates the second action effect resource corresponding to the second execution effect.
[0196] Optionally, the specific method of S708 is consistent with the specific method of monitoring the first execution effect according to real-time monitoring data in step S607, except that the original monitoring data is replaced by another monitoring data, or two execution effects corresponding to two monitoring data need to be monitored in S708, which will not be repeated.
[0197] S709: When the monitoring result of the second execution effect is out of control, the intelligent gateway determines that the first intelligent device needs to be shut down, and executes an operation instruction opposite to the execution instruction.
[0198] Optionally, when the monitoring result of the second execution effect corresponding to the second action effect resource is out of control, the intelligent gateway determines that a reverse action needs to be performed on the first intelligent device, and the reverse action is an operation opposite to the operation corresponding to the execution instruction. An operation instruction opposite to the execution instruction is sent to the first intelligent device; the first intelligent device performs a shutdown operation according to the received operation instruction opposite to the execution instruction.
[0199] For example, when the average cooling power monitoring result of the second execution effect of the intelligent air conditioner switch starting the air conditioner for cooling is out of control, it means that the cooling has reached the predetermined target temperature value (belonging to the effect target value), and if Figure 7b The average cooling power of the air conditioner shown is already low, far lower than the ideal effect. The difference between the ideal average cooling power and the current actual average cooling power has exceeded the control range represented by the dotted horizontal line, that is, out of control, indicating that the smart air conditioner switch and the air conditioner have achieved the cooling task and can be temporarily turned off.
[0200] Optionally, if the monitoring result of the first execution effect corresponding to the first action effect resource is controlled, and the monitoring result of the second execution effect corresponding to the second action effect resource is out of control, the intelligent gateway determines that a counter-action needs to be performed on the first intelligent device, and sends an operation instruction opposite to the execution instruction to the first intelligent device; the first intelligent device performs a shutdown operation according to the received operation instruction opposite to the execution instruction.
[0201] For example, after executing the first action resource so that the smart air conditioner switch starts the air conditioner for cooling, when the monitoring result of the first execution effect related to temperature is controlled, and the monitoring result of the second execution effect related to the average cooling power is out of control, it means that the cooling has reached the predetermined target temperature value (belonging to the effect target value), and if Figure 7bThe average cooling power of the air conditioner is already low, far below the ideal effect. The difference between the ideal cooling power and the current actual cooling power has exceeded the control range indicated by the dashed horizontal line, i.e., out of control. This indicates that the intelligent air conditioner switch and the air conditioner have achieved the cooling task and can be temporarily turned off. Alternatively, this indicates that when the associated second intelligent device is turned on, the cooling task has been achieved and the intelligent air conditioner switch and the air conditioner can be temporarily turned off.
[0202] An example of another control method of an intelligent device based on motion resources is introduced below in conjunction with the accompanying drawings.
[0203] like Figure 7c As shown, the temperature sensor continuously collects the real-time actual temperature value and continuously provides it to the intelligent gateway. The monitoring data is embodied as the actual temperature value in this example.
[0204] The mobile phone sends a trigger instruction containing the target temperature to the smart gateway.
[0205] When the intelligent gateway receives the trigger instruction, it determines that the trigger condition of the first action action1 resource is met according to the latest actual temperature value provided, and the first action action1 resource is triggered.
[0206] The intelligent gateway verifies the dependency of the first action resource, and if the verification passes, sends a cooling start instruction to the intelligent air-conditioning switch.
[0207] The intelligent air conditioner switch turns on the air conditioner for cooling according to the cooling start instruction. The temperature sensor continues to collect and provide real-time actual temperature values.
[0208] The cooling power sensor starts working, continuously collecting and providing real-time average cooling power values.
[0209] When the intelligent gateway receives the average cooling power value, it confirms the monitoring of the second execution effect corresponding to the second action effect resource that triggers the first action resource. Specifically, the intelligent gateway uses the received real-time average cooling power value as the current value of the effect, updates the second action effect resource action1DesiredEffect2 of the first action resource according to the current value of the effect, and monitors the second execution effect corresponding to the second action effect resource. When the second execution effect corresponding to the second action effect resource is out of control, read the attribute value of the related reverse action switch relatedReverseActionInvolved of the second action effect resource, execute the reverse action (referring to shut down) of the intelligent air-conditioning switch according to the attribute value, and send a cooling shut-down instruction to the intelligent air-conditioning switch.
[0210] The intelligent air-conditioning switch turns off the cooling function of the air-conditioning according to the received cooling off instruction; optionally, the entire air-conditioning is directly turned off.
[0211] In an embodiment of the present application, the first action resource includes an identifier of the first smart device, a trigger condition of the first smart device, an execution instruction of the first smart device, and a first action effect resource recording a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second smart device; monitoring of the execution effects corresponding to the two action effect resources of the first smart device corresponding to the first action resource is introduced. When the monitoring result of the second execution effect corresponding to the second action effect resource is out of control, it indicates that the first smart device has achieved a preset target monitoring value. Therefore, the first smart device can be controlled to be temporarily shut down, and the control is more precise and efficient, which is conducive to energy saving.
[0212] Another control method of an intelligent device based on motion resources is introduced below, and the differences from the above-mentioned control method of an intelligent device based on motion resources are emphasized, and the similarities are omitted as much as possible.
[0213] Optionally, in the above step S204, the conflict between the second action resource triggered later and the first action resource is resolved according to the real-time monitoring data, including: when the real-time monitoring data subsequently provided by the sensor triggers the second action resource, determining the effect time under the second action resource and the effect time under the first action resource; when the effect time under the first action resource includes the current moment, continuing to execute the first action resource and ignoring the second action resource; when the effect time under the second action resource includes the current moment, executing the second action resource and terminating the execution of the first action resource.
[0214] Optionally, a flow chart of another control method of an intelligent device based on action resources is as follows: Figure 8a As shown, the following steps S801-S809 are included:
[0215] S801: Sensors provide real-time monitoring data.
[0216] Optionally, the specific method of S801 is consistent with the specific method of S601 and is not described again.
[0217] Step S801 is executed before S802 and continues until after S809, when a shutdown instruction sent by the intelligent gateway is received.
[0218] S802: When the terminal device receives the target monitoring value input by the user, it generates a trigger instruction and sends it to the intelligent gateway. The trigger instruction includes the target detection value of the same type as the monitoring data.
[0219] Optionally, the specific method of S802 is consistent with the specific method of S602 and is not described again.
[0220] S803: The intelligent gateway receives monitoring data provided by the sensor; and receives a trigger instruction sent by the terminal device.
[0221] Optionally, the specific method of S803 is consistent with the specific method of S603 and is not described again.
[0222] S804: The intelligent gateway determines the trigger conditions satisfied by the real-time monitoring data and the target monitoring value in the trigger instruction, and determines the first action resource to which the trigger condition belongs.
[0223] Optionally, the specific method of S804 is consistent with the specific method of S604 and is not described again.
[0224] S805: The intelligent gateway performs verification according to the verification resource of the first action resource. If the verification fails, it jumps to step S803; otherwise, if the verification passes, it executes step S806.
[0225] Optionally, the intelligent gateway performs verification according to the verification resource of the first action resource, including: determining whether the counter-effect intelligent device of the first intelligent device is being executed; if so, the verification fails, and terminates sending the execution instruction to the first intelligent device of the first action resource, ends the present process or jumps to step S803; otherwise, the verification passes, and step S806 is executed.
[0226] Optionally, the specific method of S805 is consistent with the specific method of S605 and is not described in detail.
[0227] S806: The intelligent gateway determines an execution instruction under the first action resource, and sends the execution instruction to the first intelligent device corresponding to the first action resource.
[0228] Optionally, the specific method of S706 is consistent with the specific method of S606 and is not described again.
[0229] For example, the sensor is a temperature sensor in the living room, and the parameters of the first action resource include the trigger condition subject, the execution instruction input, and the execution object object. The trigger condition subject, the execution instruction input, and the execution object object are set to temperature greater than 30 degrees, cooling on, and smart air conditioning switch, respectively. The first action effect (action1DesiredEffect1) resource of the first action resource includes the following parameters: effective time effectTime. The corresponding value of the effective time effectTime is: 2019 / 06 / 01 / 00:00:00-2019 / 09 / 15 / 23:59:59.
[0230] Optionally, the intelligent gateway determines an execution instruction of the first action resource, and sends the execution instruction to a first intelligent device corresponding to the first action resource, and the first intelligent device performs an activation operation according to the execution instruction.
[0231] S807: When the real-time monitoring data provided by the sensor continues to trigger the second action resource, the intelligent gateway determines the effect time of the second action resource and the effect time of the first action resource, and then executes S808 or S809.
[0232] Optionally, after the first smart device is turned on in the above step, this step begins, the living room temperature sensor continues to collect and provide real-time actual temperature values, triggering the second action resource, and determining the effect time in the first action effect (action2DesiredEffect1) resource of the second action resource and the effect time in the first action effect (action1DesiredEffect1) resource of the first action resource.
[0233] For example, the second action resource has a first action effect (action2DesiredEffect1) resource. No verification resource is configured. The parameters of the second action resource include the trigger condition subject, the execution instruction input, and the execution object object. The trigger condition subject, the execution instruction input, and the execution object object are respectively set to the temperature less than 18 degrees, the heating is on, and the smart air conditioning switch. The first action effect (action2DesiredEffect1) resource of the second action resource includes the following parameters: effective time effectTime. The corresponding setting value of the effective time effectTime is: 2019 / 12 / 01 / 00:00:00-2020 / 01 / 15 / 23:59:59.
[0234] S808: When the effect time of the first action resource includes the current time, the intelligent gateway determines to continue executing the first action resource and ignores the second action resource.
[0235] Optionally, the intelligent gateway obtains the current time; when it is determined that the current time falls within the effect time of the first action effect resource of the first action resource and does not fall within the effect time of the first action effect resource of the second action resource, it is determined to continue executing the first action resource and ignore the second action resource.
[0236] S809: When the effect time of the second action resource includes the current time, the intelligent gateway determines to execute the second action resource and terminates the execution of the first action resource.
[0237] Optionally, the intelligent gateway obtains the current time; when it is determined that the current time falls within the effect time of the first action effect resource of the second action resource and does not fall within the effect time of the first action effect resource of the first action resource, it determines to execute the second action resource and terminates the execution of the first action resource.
[0238] In conjunction with the accompanying drawings, an example of another control method for an intelligent device based on motion resources is introduced below.
[0239] like Figure 8b As shown, the temperature sensor continuously collects real-time monitoring temperature values and continuously provides them to the smart gateway.
[0240] The mobile phone sends a trigger instruction containing the target monitoring temperature to the smart gateway.
[0241] When the intelligent gateway receives the trigger instruction, it determines that the trigger condition for the first action action1 resource is met according to the latest real-time actual temperature value provided, and the first action action1 resource is triggered.
[0242] The intelligent gateway verifies the dependency of the first action resource, and if the verification passes, sends a cooling start instruction to the intelligent air-conditioning switch.
[0243] The intelligent air conditioning switch turns on the air conditioning for cooling according to the cooling start instruction.
[0244] The temperature sensor subsequently continues to collect and provide real-time actual temperature values as the current value of the numerical effect.
[0245] When the smart gateway receives the real-time actual temperature value provided subsequently, it confirms triggering the second action resource.
[0246] The intelligent gateway finds that there is no verification dependency resource in the resource structure of the second action action2 resource, so no verification is performed.
[0247] The intelligent gateway reads the effective time effectTime in the first action effect resource action2DesiredEffect1 of the second action resource and the effective time effectTime in the first action effect resource action1DesiredEffect1 of the first action resource.
[0248] When the intelligent gateway finds that there is a conflict between the effective time effectTime in action2DesiredEffect1 and the effective time effectTime in action1DesiredEffect1, and the current time falls within the effective time effectTime in action1DesiredEffect1, it determines to continue executing action1 and does not execute the second action action2 resource triggered later.
[0249] In an embodiment of the present application, the first action resource includes an identifier of a first smart device, a trigger condition of the first smart device, an execution instruction of the first smart device, and a first action effect resource recording a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second smart device; monitoring of two action resources of the first smart device corresponding to the first action resource is introduced. When the second action resource is triggered, it is checked whether there is a conflict in the effective time of the action effect resources in the two action resources. If there is a conflict, an action resource belonging to the effective time that matches the current moment is selected for execution. Therefore, the conflict between action resources can be resolved based on the effective time in the action effect resource, and the control is more precise and efficient, which is conducive to energy saving.
[0250] Another control method for an intelligent device based on motion resources is introduced below, and the differences from the above-mentioned control method for an intelligent device based on motion resources are emphasized, and the similarities are omitted as much as possible.
[0251] Optionally, in the above step S204, the conflict between the second action resource triggered later and the first action resource is resolved according to the real-time monitoring data, including: when the real-time monitoring data subsequently provided by the sensor triggers the second action resource, the effect trend corresponding to the first action resource is determined according to the triggering conditions and action effect resources under the first action resource; the effect trend corresponding to the second action resource is determined according to the triggering conditions and action effect resources under the second action resource; when the effect trend corresponding to the first action resource is opposite to the effect trend corresponding to the second action resource, determine whether the state value of no identical effect parameters in the exclusion standard attribute under the second action resource is true, and whether the state value of no opposite effect parameters is false; when the state value of no identical effect parameters is true and the state value of no opposite effect parameters is false, determine whether the object resource under the first action resource is the same as the object resource under the second action resource; if so, continue to execute the first action resource and ignore the second action resource; if not, continue to execute the first action resource and start executing the second action resource.
[0252] Optionally, a flow chart of another control method of an intelligent device based on action resources is as follows: Figure 9aAs shown, the following steps S901-S911 are included:
[0253] S901: Sensors provide real-time monitoring data.
[0254] Optionally, the specific method of S901 is consistent with the specific method of S601 and is not described again.
[0255] Step S901 is executed before S902 and continues until after S908, when a shutdown instruction sent by the intelligent gateway is received.
[0256] S902: When the terminal device receives the target monitoring value input by the user, it generates a trigger instruction and sends it to the intelligent gateway. The trigger instruction includes the target detection value of the same type as the monitoring data.
[0257] Optionally, the specific method of S902 is consistent with the specific method of S602 and is not described again.
[0258] S903: The intelligent gateway receives monitoring data provided by the sensor; and receives a trigger instruction sent by the terminal device.
[0259] Optionally, the specific method of S903 is consistent with the specific method of S603 and is not described again.
[0260] S904: The intelligent gateway determines the trigger conditions satisfied by the real-time monitoring data and the target monitoring value in the trigger instruction, and determines the first action resource to which the trigger condition belongs.
[0261] Optionally, the specific method of S904 is consistent with the specific method of S604 and is not described again.
[0262] S905: The intelligent gateway performs verification according to the verification resource of the first action resource. If the verification fails, it jumps to step S903; otherwise, if the verification passes, it executes step S906.
[0263] Optionally, the intelligent gateway performs verification according to the verification resources of the action resources, including: determining whether the counter-effect intelligent device of the first intelligent device is being executed; if so, the verification fails, and terminates sending the execution instruction to the first intelligent device corresponding to the first action resource, ends the present process or jumps to step S903; otherwise, the verification passes, and step S906 is executed.
[0264] Optionally, the specific method of S905 is consistent with the specific method of S605 and is not described in detail.
[0265] S906: The intelligent gateway determines an execution instruction of the first action resource, and sends the execution instruction to the first intelligent device corresponding to the first action resource.
[0266] Optionally, the specific method of S906 is consistent with the specific method of S606 and is not described again.
[0267] For example, the sensor is a temperature sensor in the living room, and the parameters of the first action resource include the trigger condition subject, the execution instruction input, and the execution object object. The trigger condition subject, the execution instruction input, and the execution object object are respectively set to the temperature greater than 30 degrees, the cooling is turned on, and the smart air conditioner is switched on. The first action effect (action1DesiredEffect1) resource of the first action resource includes the following parameters: effect target value effectTargetValue. The corresponding setting value of the effect target value effectTargetValue is 26 degrees Celsius.
[0268] Optionally, the intelligent gateway determines an execution instruction of the first action resource, and sends the execution instruction to a first intelligent device corresponding to the first action resource, and the first intelligent device performs an activation operation according to the execution instruction.
[0269] S907: When the real-time monitoring data continued to be provided by the sensor triggers the second action resource, the intelligent gateway determines the effect trend corresponding to the first action resource based on the trigger conditions under the first action resource and the first action effect resource; and determines the effect trend corresponding to the second action resource based on the trigger conditions under the second action resource and the first action effect resource.
[0270] Optionally, after the first smart device is turned on in the above step, this step starts, the living room temperature sensor continues to collect and provide real-time actual temperature values, triggering the second action resource, and determining the effect target value in the first action effect action2DesiredEffect1 resource of the second action resource and the effect target value in the first action effect action1DesiredEffect1 resource of the first action resource.
[0271] The effect trend of the second action action2 resource is determined according to the triggering condition of the second action resource and the effect target value in the first action effect action2DesiredEffect1 resource of the second action resource.
[0272] The effect trend of the first action action1 resource is determined according to the triggering condition of the first action resource and the effect target value in the first action effect action1DesiredEffect1 resource of the first action resource.
[0273] For example, the second action resource has a first action effect action2DesiredEffect1 resource. No verification resources are configured. The parameters of the second action resource include the trigger condition subject, the execution instruction input, and the execution object object. The trigger condition subject, the execution instruction input, and the execution object object are respectively set to the temperature less than 18 degrees, the heating is on, and the smart air conditioning switch. The first action effect action2DesiredEffect1 resource of the second action resource includes the following parameters: effect target value effectTargetValue. The corresponding setting value of the effect target value effectTargetValue is: 27 degrees Celsius. The smart gateway determines that the trigger condition temperature of action2 is less than 18 degrees to the effect target value 27 degrees, and the effect trend is warming. The trigger condition temperature of Action1 is greater than 30 degrees to the effect target value 26 degrees, and the effect trend is cooling.
[0274] Optionally, the action resource further includes an exclusionCriteria attribute, and the exclusionCriteria attribute includes at least one of the following parameters: no same effect noSameEffect, no opposite effect noOppositeEffect, and no same object noSameObject.
[0275] Optionally, the status value of the noSameEffect parameter, the status value of the noOppositeEffect parameter, and the status value of the noSameObject parameter in each exclusion criteria attribute can be set and updated based on experimental data, experience data, historical operation data and / or user input data.
[0276] Optionally, each parameter in each exclusion criteria attribute can be updated during the historical use of each action resource. Specifically, during the historical use process, when the intelligent gateway determines that the effect trend of an executed action resource (such as the first action resource) is cooling, and the effect trend of another action resource (such as the second action resource) triggered later is heating, the state value of the noSameEffect parameter in the exclusion criteria attribute of the other action resource triggered later is updated to true, and the state value of the noOppositeEffect parameter is updated to false. The intelligent gateway updates the state value of the noSameObject parameter according to the execution object object in the triggering condition of the executed action resource and the execution object object in the triggering condition of another action resource triggered later.
[0277] For example, when the first action resource action1 was run last year, the second action resource action2 was subsequently triggered. When the smart gateway determined that the effect trend of the first action resource action1 was cooling, and the effect trend of the second action resource action2 was heating, the state value of the noSameEffect parameter in the exclusion standard attribute of the second action resource that was triggered later was updated to true, and the state value of the noOppositeEffect parameter that was no opposite effect was updated to false. The smart gateway reads the state value of the execution object object in the trigger condition of the first action resource action1 as smart air conditioning switch, and reads the state value of the execution object object in the trigger condition of the second action resource that was triggered later as smart air conditioning switch, and updates the state value of the noSameObject parameter that was noSameObject to false.
[0278] S908: When the effect trend corresponding to the first action resource is opposite to the effect trend corresponding to the second action resource, the intelligent gateway determines whether the status value of the noSameEffect parameter in the exclusion standard attribute under the second action resource is true, and whether the status value of the noOppositeEffect parameter is false; if both are yes, execute step S909; if no, execute step S911.
[0279] Optionally, the intelligent gateway reads the status value of the noSameEffect parameter in the exclusion standard attributes of the second action resource triggered later, and the status value of the noOppositeEffect parameter; when the status value of the noSameEffect parameter is true, and the status value of the noOppositeEffect parameter is false, it indicates from another dimension that the effect trend of the first action resource is opposite to the effect trend of the second action resource, and step S909 is executed.
[0280] When the state value of the noSameEffect parameter is false, or the state value of the noOppositeEffect parameter is true, it indicates from another dimension that the effect trend of the first action resource is not opposite to the effect trend of the second action resource, and then step S911 is executed.
[0281] S909: The intelligent gateway determines whether the object resource under the first action resource is the same as the object resource under the second action resource; if so, execute S910; otherwise, execute S911.
[0282] Optionally, when the status value of the noSameEffect parameter of the second action resource triggered later is true and the status value of the noOppositeEffect parameter of the noOppositeEffect is false, the intelligent gateway reads the status value of the noSameObject parameter in the exclusion standard attribute of the second action resource triggered later, and determines whether the status value of the read noSameObject status is false; if it is false, it means that the executed first action resource and the second action resource triggered later have the same object, and an object conflict occurs, and S910 is executed; if it is true, it means that the execution objects of the executed first action resource and the second action resource triggered later are different, and there is no object conflict, and S911 is executed.
[0283] For example, the intelligent gateway reads the status value of the noSameObject parameter in the exclusion standard attribute of the second action resource action2 triggered later. Since the read status value of the noSameObject parameter is false, it means that the executed first action resource action1 and the second action resource action2 triggered later have the same object, and an object conflict occurs, and S909 is executed.
[0284] S910: The intelligent gateway continues to execute the first action resource and ignores the second action resource.
[0285] Optionally, when the effect trend of the subsequent second action resource is opposite to the effect trend of the existing first action resource, the intelligent gateway determines to continue to execute the first action action1 resource and ignores the second action action2 resource.
[0286] S911: The intelligent gateway continues to execute the first action resource, and starts to execute the second action resource.
[0287] An example of another control method for an intelligent device based on motion resources is introduced below in conjunction with the accompanying drawings.
[0288] like Figure 9b As shown, the temperature sensor continuously collects the real-time actual temperature value and continuously provides it to the smart gateway.
[0289] The mobile phone sends a trigger instruction containing the target monitoring temperature to the smart gateway.
[0290] When the intelligent gateway receives the trigger instruction, it determines that the trigger condition of the first action action1 resource is met according to the latest actual temperature value provided, and the first action action1 resource is triggered.
[0291] The intelligent gateway verifies the dependency of the first action resource, and if the verification passes, sends a cooling start instruction to the intelligent air-conditioning switch.
[0292] The intelligent air conditioning switch turns on the air conditioning for cooling according to the cooling start instruction.
[0293] The temperature sensor subsequently continues to collect and provide real-time actual temperature values as the current value of the numerical effect.
[0294] When the smart gateway receives the real-time actual temperature value provided subsequently, it confirms triggering the second action action2 resource.
[0295] The intelligent gateway finds that there is no verification dependency resource in the resource structure of the second action action2 resource, so no verification is performed.
[0296] The intelligent gateway reads the effect target value effectTargetValue in the first action effect resource action2DesiredEffect1 of the second action resource and the trigger condition of the second action resource, and then determines the effect trend of action2DesiredEffect1 based on the effect target value of the first action effect resource of the second action resource and the trigger condition of the second action resource.
[0297] The intelligent gateway reads the effect target value effectTargetValue in the first action effect resource action1DesiredEffect1 of the first action resource, and the trigger condition of the first action resource, and determines the effect trend of action1DesiredEffect1 based on the effect target value of the first action effect resource of the first action resource and the trigger condition of the first action resource.
[0298] The intelligent gateway finds that the effect trend of action2DesiredEffect1 conflicts with the effect trend of action1DesiredEffect1, and determines to continue to execute action1, and does not execute the second action action2 resource triggered later.
[0299] In an embodiment of the present application, the first action resource includes an identifier of the first intelligent device, a trigger condition of the first intelligent device, an execution instruction of the first intelligent device, and a first action effect resource that records a first execution effect of the first action resource, etc. The first action effect resource includes an identifier of an associated second intelligent device; monitoring of two action resources of the first intelligent device corresponding to the first action resource is introduced. When the second action resource is triggered, it is checked whether there is a conflict in the trend effects of the action effect resources of the two action resources. If there is a conflict, the current first action resource continues to be executed and the subsequently triggered second action resource is ignored. Therefore, the conflict between the action resources can be resolved based on the effect trend of the action effect resource, and the control is more precise and efficient, which is conducive to energy saving.
[0300] Based on the same inventive concept, the present application provides a control device for a smart device, the structural framework diagram of the device is as follows: Fig.10 As shown, it includes: a data receiving module 1001, an action resource determination module 1002 and a monitoring module 1003.
[0301] The data receiving module 1001 is used to receive monitoring data provided by the sensor; receive a trigger instruction sent by the terminal device, the trigger instruction includes a target detection value of the same type as the monitoring data;
[0302] The action resource determination module 1002 is used to determine the trigger conditions satisfied by the real-time monitoring data and the target monitoring values, and to determine the first action resource to which the trigger conditions belong; determine the execution instructions under the first action resource, and send the execution instructions to the first smart device corresponding to the first action resource.
[0303] The monitoring module 1003 is used to monitor the first execution effect corresponding to the first action resource according to real-time monitoring data, and turn on the second smart device associated with the first smart device or turn off the first smart device according to the monitoring result of the first execution effect; and / or, according to the real-time monitoring data, resolve the conflict between the second action resource triggered later and the first action resource.
[0304] Optionally, the monitoring module 1003 is specifically used to update the effect starting value in the first action effect resource corresponding to the first execution effect according to the real-time monitoring data when executing the first action resource; update the effect target value in the first action effect resource according to the target monitoring value; perform periodic detection according to the effect monitoring cycle in the first action effect resource; each periodic detection includes: when the current effect monitoring cycle is reached, the current effect value in the first action effect resource is updated according to the received real-time monitoring data; the expected value to be achieved at the current moment is determined according to the effect starting value and the effect target value; based on the updated current effect value and the expected value to be achieved at the current moment, determine whether the first execution effect is out of control, and update the judgment result to the state value of the effect control trend in the first action effect resource; if the execution effect is controlled, continue the detection of the next cycle; if the first execution effect is out of control, determine whether the associated second smart device or associated action resource needs to intervene.
[0305] Optionally, the monitoring module 1003 is specifically used to determine the numerical effect expected to be achieved at each time interval based on the effect starting value, effect target value, effect prediction achievement period, effect monitoring period, and the time difference between the current moment and the initial moment; the initial moment is the time when the execution instruction under the first action resource is sent; based on the time difference, the effect monitoring period, and the numerical effect expected to be achieved at each time interval, the numerical value expected to be achieved at the current moment is determined.
[0306] Optionally, the monitoring module 1003 is specifically used to determine the upper limit of the numerical value expected to be achieved at the current moment and the lower limit of the numerical value expected to be achieved at the current moment based on the effect control parameters in the first action effect resource and the numerical value expected to be achieved at the current moment; and judge whether the first execution effect is out of control based on the upper limit of the numerical value expected to be achieved at the current moment, the lower limit of the numerical value expected to be achieved at the current moment, and the updated current numerical value of the effect.
[0307] Optionally, the data receiving module 1001 is further configured to determine an execution instruction under a first action resource, send the execution instruction to a first smart device corresponding to the first action resource, and then receive another monitoring data provided by another sensor.
[0308] In addition, the monitoring module 1003 is also used to monitor the second execution effect corresponding to the first action resource based on another real-time monitoring data, and update the second action effect resource corresponding to the second execution effect; when the monitoring result of the second execution effect is out of control, it is determined that the first smart device needs to be shut down and an operation instruction opposite to the execution instruction needs to be executed.
[0309] Optionally, the monitoring module 1003 is specifically used to determine the effect time under the second action resource and the effect time under the first action resource when the real-time monitoring data subsequently provided by the sensor triggers the second action resource; when the effect time under the first action resource includes the current moment, continue to execute the first action resource and ignore the second action resource; when the effect time under the second action resource includes the current moment, execute the second action resource and terminate the execution of the first action resource.
[0310] Optionally, the monitoring module 1003 is specifically used to determine the effect trend corresponding to the first action resource according to the trigger conditions and action effect resources under the first action resource when the real-time monitoring data subsequently provided by the sensor triggers the second action resource; determine the effect trend corresponding to the second action resource according to the trigger conditions and action effect resources under the second action resource; when the effect trend corresponding to the first action resource is opposite to the effect trend corresponding to the second action resource, determine whether the state value of no identical effect parameters in the exclusion standard attribute under the second action resource is true, and whether the state value of no opposite effect parameters is false; when the state value of no identical effect parameters is true and the state value of no opposite effect parameters is false, determine whether the object resource under the first action resource is the same as the object resource under the second action resource; if so, continue to execute the first action resource and ignore the second action resource; if not, continue to execute the first action resource and start executing the second action resource.
[0311] Optionally, the action resource determination module 1002 is also used to determine the execution instruction of the action resource, and before sending it to the first smart device of the action resource, perform verification according to the verification resource of the first action resource, including: determining whether the counter-effect smart device of the first smart device is executing it, if so, the verification fails, and the sending of the execution instruction to the first smart device corresponding to the first action resource is terminated; otherwise, the verification passes.
[0312] The control device of the smart device of this embodiment can execute any smart device control method provided in the embodiments of the present application, and the implementation principles are similar and will not be repeated here.
[0313] Based on the same inventive concept, an embodiment of the present application provides an intelligent gateway, including:
[0314] a processor and memory in communication connection;
[0315] At least one program is stored in the memory and configured to be used to implement any of the control methods of the smart device described above in the present application when executed by the processor.
[0316] Optionally, the intelligent gateway provided in the embodiment of the present application is as follows: Fig.11 As shown, Fig.11The electronic device 1100 shown includes: a processor 1101 and a memory 1103. The processor 1101 and the memory 1103 are electrically connected, such as connected via a bus 1102. Optionally, the structure of the electronic device 1100 does not constitute a limitation on the embodiments of the present application.
[0317] The processor 1101 is used in the embodiment of the present application to implement Fig.11 The functionality of the AA module is shown.
[0318] Processor 1101 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1101 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0319] The bus 1102 may include a path to transmit information between the above components. The bus 1102 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1102 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0320] The memory 1103 can be a ROM (Read-Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (random access memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read-Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0321] Optionally, the memory 1103 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 1101. The processor 1101 is used to execute the application code stored in the memory 1103 to implement any control method of a smart device provided in the present application.
[0322] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control method of any smart device provided above in the present application is implemented.
[0323] The present application embodiment provides a computer-readable storage medium applicable to various optional implementations of the control method of any of the above-mentioned smart devices, which will not be described in detail here.
[0324] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.
[0325] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0326] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0327] In the description of this specification, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.
[0328] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0329] The above description is only a partial implementation method 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 system for an intelligent device, characterized in that: include: Smart gateways, sensors and terminal devices; The sensor is communicatively connected to the intelligent gateway, and is used to continuously collect monitoring data and provide the monitoring data to the intelligent gateway; The smart device is communicatively connected to the smart gateway, and is used to provide a trigger instruction to the smart gateway, wherein the trigger instruction includes a target monitoring value of the same type as the monitoring data; The intelligent gateway is used to determine the trigger conditions satisfied by the initial monitoring data and the target monitoring value, and determine the first action resource to which the trigger condition belongs; Determine an execution instruction under the first action resource, and send the execution instruction to a first smart device corresponding to the first action resource; monitoring a first execution effect corresponding to the first action resource according to the real-time monitoring data, and turning on a second smart device associated with the first smart device or turning off the first smart device according to a monitoring result of the first execution effect; and / or, resolving the conflict between the second action resource triggered later and the first action resource according to the real-time monitoring data; The first action resource includes an identifier of the first smart device, a trigger condition of the first smart device, an execution instruction of the first smart device, and a first action effect resource recording a first execution effect of the first action resource, and the first action effect resource includes an identifier of an associated second smart device; The intelligent gateway is specifically used to update the effect starting value in the first action effect resource corresponding to the first execution effect according to the real-time monitoring data when executing the first action resource; update the effect target value in the first action effect resource according to the target monitoring value; perform periodic detection according to the effect monitoring cycle in the first action effect resource; each periodic detection includes: when the current effect monitoring cycle is reached, update the effect current value in the first action effect resource according to the received real-time monitoring data; determine the value expected to be achieved at the current moment according to the effect starting value and the effect target value; judge the first execution effect according to the updated effect current value and the value expected to be achieved at the current moment Whether the effect is out of control, and update the judgment result to the state value of the effect control trend in the first action effect resource; if the execution effect is under control, continue the detection of the next cycle; if the first execution effect is out of control, determine whether the associated second smart device or associated action resource needs to intervene; and when the real-time monitoring data subsequently provided by the sensor triggers the second action resource, determine the effect time under the second action resource and the effect time under the first action resource; when the effect time under the first action resource includes the current moment, continue to execute the first action resource and ignore the second action resource; when the effect time under the second action resource includes the current moment, execute the second action resource and terminate the execution of the first action resource.
2. A control method for an intelligent device, characterized in that: include: Receiving monitoring data provided by sensors; Receiving a trigger instruction from a terminal device, wherein the trigger instruction includes a target monitoring value of the same type as the monitoring data; Determine a trigger condition satisfied by the real-time monitoring data and the target monitoring value, and determine a first action resource to which the trigger condition belongs; Determine an execution instruction under the first action resource, and send the execution instruction to a first smart device corresponding to the first action resource; monitoring a first execution effect corresponding to the first action resource according to the real-time monitoring data, and turning on a second smart device associated with the first smart device or turning off the first smart device according to a monitoring result of the first execution effect; and / or, resolving the conflict between the second action resource triggered later and the first action resource according to the real-time monitoring data; The first action resource includes an identifier of the first smart device, a trigger condition of the first smart device, an execution instruction of the first smart device, and a first action effect resource recording a first execution effect of the first action resource, and the first action effect resource includes an identifier of an associated second smart device; The step of monitoring the first execution effect corresponding to the first action resource according to the real-time monitoring data includes: According to the real-time monitoring data when the first action resource is executed, the effect starting value in the first action effect resource corresponding to the first execution effect is updated; according to the target monitoring value, the effect target value in the first action effect resource is updated; Perform periodic detection according to the effect monitoring cycle in the first action effect resource; each periodic detection includes: when the current effect monitoring cycle is reached, update the current value of the effect in the first action effect resource according to the received real-time monitoring data; determine the value expected to be achieved at the current moment according to the effect starting value and the effect target value; determine whether the first execution effect is out of control according to the updated current value of the effect and the value expected to be achieved at the current moment, and update the judgment result to the state value of the effect control trend in the first action effect resource; if the execution effect is controlled, continue the detection of the next cycle; if the first execution effect is out of control, determine whether the associated second smart device or associated action resource needs to intervene; The resolving the conflict between the second action resource triggered later and the first action resource according to the real-time monitoring data includes: When the real-time monitoring data subsequently provided by the sensor triggers a second action resource, determining an effect time under the second action resource and an effect time under the first action resource; When the effect time of the first action resource includes the current time, continue to execute the first action resource and ignore the second action resource; When the effect time of the second action resource includes the current time, the second action resource is executed, and the execution of the first action resource is terminated.
3. The control method of the intelligent device according to claim 2, characterized in that: According to the effect starting value and the effect target value, the estimated value to be achieved at the current moment is determined, including: Determine the expected numerical effect to be achieved at each time interval according to the effect starting value, the effect target value, the effect prediction achievement period, the effect monitoring period, and the time difference between the current moment and the initial moment; the initial moment is the sending moment of the execution instruction under the first action resource; The expected numerical value to be achieved at the current moment is determined based on the time difference, the effect monitoring period, and the expected numerical effect to be achieved at each time interval.
4. The control method of the intelligent device according to claim 2, characterized in that: The determining whether the first execution effect is out of control according to the updated current value of the effect and the value expected to be achieved at the current moment includes: Determine an upper limit of the value expected to be achieved at the current moment and a lower limit of the value expected to be achieved at the current moment according to the effect control parameter in the first action effect resource and the value expected to be achieved at the current moment; Whether the first execution effect is out of control is determined based on the upper limit of the value expected to be achieved at the current moment, the lower limit of the value expected to be achieved at the current moment, and the updated current value of the effect.
5. The control method of the intelligent device according to claim 2, characterized in that: After determining the execution instruction under the first action resource and sending the execution instruction to the first smart device corresponding to the first action resource, the method further includes: receiving another monitoring data provided by another sensor; And, monitoring the execution effect of the first action resource according to the real-time monitoring data, and shutting down the first smart device according to the monitoring result of the execution effect, includes: According to the real-time another monitoring data, monitor the second execution effect corresponding to the first action resource, and update the second action effect resource corresponding to the second execution effect; When the monitoring result of the second execution effect is out of control, it is determined that the first smart device needs to be shut down, and an operation instruction opposite to the execution instruction is executed.
6. The control method of the intelligent device according to claim 2, characterized in that: The resolving the conflict between the second action resource triggered later and the first action resource according to the real-time monitoring data includes: When the real-time monitoring data subsequently provided by the sensor triggers a second action resource, the effect trend corresponding to the first action resource is determined according to the triggering condition and the action effect resource under the first action resource; the effect trend corresponding to the second action resource is determined according to the triggering condition and the action effect resource under the second action resource; When the effect trend corresponding to the first action resource is opposite to the effect trend corresponding to the second action resource, determining whether the state value of no identical effect parameter in the exclusion standard attribute under the second action resource is true, and whether the state value of no opposite effect parameter is false; When the state value of the no identical effect parameter is true and the state value of the no opposite effect parameter is false, determine whether the object resource under the first action resource is the same as the object resource under the second action resource; if so, continue to execute the first action resource and ignore the second action resource; if not, continue to execute the first action resource and start executing the second action resource.
7. The control method of the intelligent device according to claim 2, characterized in that: The action effect resource is stored as a sub-resource of the action resource, or is stored as a parameter of the action resource; The trigger condition is stored as a parameter of the action resource.
8. The control method of the smart device according to claim 7, characterized in that: The action resource further includes a verification resource, and the verification resource is stored as a sub-resource of the action resource.
9. A control device for an intelligent device, characterized in that: include: A data receiving module, used for receiving monitoring data provided by the sensor; Receiving a trigger instruction sent by a terminal device, wherein the trigger instruction includes a target monitoring value of the same type as the monitoring data; An action resource determination module, used to determine the trigger conditions satisfied by the real-time monitoring data and the target monitoring value, and to determine the first action resource to which the trigger condition belongs; Determine an execution instruction under the first action resource, and send the execution instruction to a first smart device corresponding to the first action resource; a monitoring module, configured to monitor a first execution effect corresponding to the first action resource according to the real-time monitoring data, and to enable a second smart device associated with the first smart device or disable the first smart device according to the monitoring result of the first execution effect; and / or, resolving the conflict between the second action resource triggered later and the first action resource according to the real-time monitoring data; The first action resource includes an identifier of the first smart device, a trigger condition of the first smart device, an execution instruction of the first smart device, and a first action effect resource recording a first execution effect of the first action resource, and the first action effect resource includes an identifier of an associated second smart device; The monitoring module is specifically used to update the effect starting value in the first action effect resource corresponding to the first execution effect according to the real-time monitoring data when executing the first action resource; update the effect target value in the first action effect resource according to the target monitoring value; perform periodic detection according to the effect monitoring cycle in the first action effect resource; each periodic detection includes: when the current effect monitoring cycle is reached, update the effect current value in the first action effect resource according to the received real-time monitoring data; determine the value expected to be achieved at the current moment according to the effect starting value and the effect target value; judge the first execution effect according to the updated effect current value and the value expected to be achieved at the current moment Whether the effect is out of control, and update the judgment result to the state value of the effect control trend in the first action effect resource; if the execution effect is under control, continue the detection of the next cycle; if the first execution effect is out of control, determine whether the associated second smart device or associated action resource needs to intervene; and when the real-time monitoring data subsequently provided by the sensor triggers the second action resource, determine the effect time under the second action resource and the effect time under the first action resource; when the effect time under the first action resource includes the current moment, continue to execute the first action resource and ignore the second action resource; when the effect time under the second action resource includes the current moment, execute the second action resource and terminate the execution of the first action resource.
10. An intelligent gateway, characterized in that: include: Processor and memory; At least one program is stored in the memory and configured to be used to implement the control method of the smart device according to any one of claims 2 to 8 when executed by the processor.
11. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium is characterized in that when the computer program is executed by a processor, the control method of the intelligent device according to any one of claims 2 to 8 is implemented.
Citation Information
Patent Citations
Voice control method, smart home system, storage medium and computer equipment
CN107808669A
Gateway control method and intelligent gateway
CN108768724A