Equipment control method and device, equipment and computer readable storage medium

By selecting multiple candidate judgment conditions and actions on the cloud platform, building an action scenario, and receiving device parameters to determine the conditions are established, the problem of coupling judgment conditions and actions in the prior art is solved, and flexible equipment control and improvement of freedom are achieved.

CN119854345AActive Publication Date: 2025-04-18ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202411754112.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-18
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

In the prior art, the determination conditions and actions of the device control are coupled with each other. Users can only use preset actions provided by the cloud platform, with low freedom, and it is more troublesome to modify the previous code when updating the determination conditions or actions.

Method used

A device control method is provided, allowing selection among multiple candidate decision conditions and actions, constructing an action scene, and receiving judgment parameters sent by the device to determine that the conditions are true, and sending control instructions to execute the action.

Benefits of technology

It realizes a flexible combination of device control logic, improves the user's freedom of control over device, allows independent update of judgment conditions and actions, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854345A_ABST
    Figure CN119854345A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, in particular to an equipment control method and device, equipment and a computer readable storage medium. The method is executed by a cloud platform and comprises the following steps: selecting at least one judgment condition from a plurality of candidate judgment conditions, selecting a first action from a plurality of candidate actions, and selecting first equipment from a plurality of candidate equipment; receiving a determination parameter corresponding to the determination condition sent by at least one device; determining whether the at least one judgment condition is established or not according to the judgment parameters corresponding to the at least one judgment condition; under the condition that the at least one judgment condition is met, a control instruction is sent to the first equipment, and the control instruction is used for instructing the first equipment to execute the first action.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, device and computer-readable storage medium. Background Art

[0002] With the development of Internet of Things technology, more and more devices are connected and controlled through the Internet. Related technologies can control devices through cloud platforms.

[0003] However, in the related art, the judgment conditions for controlling the device to execute the preset action are generally fixed, and the user can only use the preset actions provided by the cloud platform, which has a relatively low degree of freedom. In addition, in this way, the judgment condition and the action are coupled with each other. If the judgment condition or action is to be updated, the code of the previously preset judgment condition needs to be modified, which is more troublesome and is not conducive to meeting the diverse needs of users for device control. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a device control method, apparatus, device and computer-readable storage medium, which can solve the above problems.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a device control method, which is executed by a cloud platform, and the method includes: selecting at least one determination condition from multiple candidate determination conditions, selecting a first action from multiple candidate actions, and selecting a first device from multiple candidate devices; receiving determination parameters corresponding to the determination condition sent by at least one device; determining whether the at least one determination condition is met based on the determination parameters respectively corresponding to the at least one determination condition; and sending a control instruction to the first device when the at least one determination condition is met, the control instruction being used to instruct the first device to perform the first action.

[0006] According to a second aspect of an embodiment of the present disclosure, there is provided a device control apparatus, which is configured on a cloud platform, and the apparatus comprises: a selection unit, configured to select at least one determination condition from a plurality of candidate determination conditions, select a first action from a plurality of candidate actions, and select a first device from a plurality of candidate devices; a receiving unit, configured to receive a determination parameter corresponding to the determination condition sent by at least one device; a determination unit, configured to determine whether the at least one determination condition is satisfied based on the determination parameters respectively corresponding to the at least one determination condition; and a sending unit, configured to send a control instruction to the first device when the at least one determination condition is satisfied, the control instruction being used to instruct the first device to perform the first action.

[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the device control method as described in the first aspect by calling the computer program.

[0008] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the device control method as described in the first aspect is implemented.

[0009] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0010] The present disclosure can select at least one determination condition from a plurality of candidate determination conditions, select a first action from a plurality of candidate actions, select a first device from a plurality of candidate devices, and construct control logic for the first device with this combination. When a determination parameter is received, it is determined whether at least one determination condition is established according to the determination parameter, and when it is established, a control instruction is sent to the first device to instruct it to execute the first action. Through the method proposed in the present disclosure, the determination condition and the first action are not bound together, and different determination conditions can be selected for the first action according to different needs, so that it can be adjusted relatively flexibly. On the other hand, since there is no coupling between the candidate determination condition and the candidate action, the candidate determination condition and the candidate action can be updated independently, which is more convenient to implement. In the embodiment of the present disclosure, the selection of at least one determination condition and the selection of the first action can be preset by the cloud platform or executed by the user, so the degree of freedom is relatively high.

[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0013] Figure 1 It is a schematic flow chart of a device control method according to an exemplary embodiment of the present disclosure.

[0014] Figure 2 It is a schematic flow chart of a device control method according to an exemplary embodiment of the present disclosure.

[0015] Figure 3 It is a schematic flow chart of a triggering condition of a device control method according to an exemplary embodiment of the present disclosure.

[0016] Figure 4It is a schematic flow chart of a triggering condition of a device control method according to an exemplary embodiment of the present disclosure.

[0017] Figure 5 It is a schematic flow chart of a triggering condition of a device control method according to an exemplary embodiment of the present disclosure.

[0018] Figure 6 It is a schematic flow chart of a triggering condition of a device control method according to an exemplary embodiment of the present disclosure.

[0019] Figure 7 It is a schematic flow chart of sending a control instruction according to an exemplary embodiment of the present disclosure.

[0020] Figure 8 The present invention is a block diagram of a device control apparatus according to an exemplary embodiment of the present invention.

[0021] Fig. 9 It is a schematic block diagram of a device for controlling a device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0023] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0024] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0025] With the development of Internet of Things technology, more and more devices are connected and controlled through the Internet. The widespread application of these devices has brought changes in many fields such as smart homes, industrial automation, and smart cities. Similarly, these smart devices can also be used in vehicles, turning vehicles into carriers of devices.

[0026] In some embodiments, a typical action scenario may include: a user triggers a one-key start command to start multiple different devices, such as a light and a humidifier, with one key.

[0027] In some embodiments, a typical action scenario may also include: automatically starting the air conditioner when the temperature rises to be greater than a first temperature threshold.

[0028] In some embodiments, the above two action scenarios can be controlled and executed by a local control device. In this way, the local control device can issue control instructions to other associated devices to enable other devices to perform corresponding actions. However, although this method does not require each device to be connected to the network, it is applicable to fewer scenarios, and the functions that can be realized by the local control device are also limited.

[0029] In some embodiments, the above two action scenes can also be controlled and executed through a cloud platform. Controlling networked smart devices through a cloud platform is more universal in application scenarios, and can support more devices and realize more functions.

[0030] However, in some embodiments, the execution logic of an action scene on the cloud platform is determined and the code is written. Based on the complete code, the corresponding action scene is executed when the corresponding conditions are met. This is clear and difficult to change. Users can only use the preset actions provided by the cloud platform, with relatively low freedom. The conditions and action codes are coupled with each other, which is not conducive to subsequent updates of judgment conditions or actions.

[0031] In order to solve the above technical problems, the present disclosure proposes a device control method.

[0032] Figure 1 This is a schematic flow chart of a device control method according to an embodiment of the present disclosure, which can be executed by a cloud platform. The device control method can be used to control smart devices in the Internet of Things, including but not limited to smart furniture such as air conditioners and humidifiers, as well as communication devices such as mobile phones, tablet computers, wearable devices, sensors, and Internet of Things devices.

[0033] In some embodiments, the smart device may be provided in a vehicle as an in-vehicle device.

[0034] like Figure 1 As shown, the device control method includes:

[0035] In step S101, at least one determination condition is selected from a plurality of candidate determination conditions, a first action is selected from a plurality of candidate actions, and a first device is selected from a plurality of candidate devices;

[0036] In step S102, receiving a determination parameter corresponding to the determination condition sent by at least one device;

[0037] In step S103, determining whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition;

[0038] In step S104, when the at least one determination condition is satisfied, a control instruction is sent to the first device, where the control instruction is used to instruct the first device to perform the first action.

[0039] In some embodiments, a decision condition is used to determine whether the device performs a candidate action.

[0040] When at least one of the selected determination conditions is met, the device may execute the selected candidate action.

[0041] In some embodiments, the candidate judgment conditions can be determined based on the candidate device. For example, if the candidate device is a device controlled based on environmental parameters, the candidate judgment conditions may include judgment conditions related to environmental parameters, such as judgment conditions generated based on parameters such as temperature, humidity, and brightness; for example, if the candidate device is a device controlled based on device parameters, the candidate judgment conditions may also include judgment conditions related to device parameters, such as judgment conditions related to parameters such as voltage, current, and startup duration.

[0042] It should be noted that the candidate determination conditions may not be determined based on the candidate device. For example, the candidate device is a device controlled based on environmental parameters. The candidate determination conditions may include time-related determination conditions. The present disclosure does not limit the method for determining the candidate determination conditions.

[0043] There is no influence between the multiple candidate judgment conditions, and each judgment condition is relatively independent. Any judgment condition can be selected as the judgment condition for the first action, or at least one associated judgment condition (such as the association between environmental parameters, such as the association between device parameters) can be selected as the judgment condition for the first action, or at least one unrelated judgment condition (such as a judgment condition based on temperature and a judgment condition related to current) can be selected as the judgment condition for the first action.

[0044] In some embodiments, any of the candidate determination conditions is optional, and any of the candidate actions is also optional. An action scene can be constructed by selecting at least one determination condition and a first action.

[0045] For example, a user may construct an action scene by selecting judgment conditions and actions. For example, action scenes may be pre-constructed in a cloud platform, and the conditions of each action scene are selected from candidate judgment conditions, and the actions of each action scene are selected from candidate actions.

[0046] In some embodiments, a determination parameter corresponding to the determination condition sent by at least one device is received.

[0047] At least one device may be the first device, or may be another device among the multiple candidate devices, or may be a device other than the candidate devices. Among the candidate devices for performing the first action, some or all of the devices may provide determination parameters corresponding to some determination conditions. For example, the candidate devices include air conditioners. For example, the air conditioner may provide temperature information as a determination parameter to the cloud platform based on an internal temperature sensor.

[0048] After selecting at least one determination condition and selecting a first action to determine an action scene, the determination parameters corresponding to the at least one determination condition may be provided by the first device that executes the first action, or may be provided by other devices.

[0049] For example, the temperature is greater than the first temperature threshold and the humidity is greater than the first humidity threshold as the judgment condition of the action scene. The first device corresponding to the action scene is an air conditioner, and the action is to start the air conditioner for cooling. The judgment parameters required for the judgment condition of the action scene include temperature and humidity, wherein the temperature can be provided by a temperature sensor in the first device air conditioner, and the humidity can be provided by another humidity sensor. In this example, the action scene includes two judgment conditions, and the judgment parameters required for the two judgment conditions include the judgment parameters provided by the first device and the judgment parameters provided by other devices other than the first device.

[0050] In some embodiments, whether the at least one determination condition is satisfied is determined according to determination parameters respectively corresponding to the at least one determination condition.

[0051] After the action scene is determined in step S101, the cloud platform can determine whether to execute the action scene based on the trigger condition. The trigger condition will be described in detail later. After the cloud platform determines to execute the action scene, it needs to determine whether the judgment condition of the action scene is met, so as to determine whether to execute the corresponding action.

[0052] In some embodiments, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: determining whether each of the determination conditions is met according to the determination parameters corresponding to each of the determination conditions, and when each of the determination conditions is met, the at least one determination condition is met; or, determining whether any of the determination conditions is met according to the determination parameters corresponding to any of the determination conditions, and when any of the determination conditions is met, the at least one determination condition is met.

[0053] If the constructed action scenario has only a single judgment condition (single), whether to execute the first action is determined based on whether the single judgment condition is met; if the constructed action scenario includes multiple judgment conditions: and logic (and) can be used to determine whether each judgment condition is met, so as to determine whether to execute the first action, or, or logic (or) can be used to determine whether any judgment condition is met, so as to determine whether to execute the first action.

[0054] In some embodiments, when the at least one determination condition is met, a control instruction is sent to the first device, where the control instruction is used to instruct the first device to perform the first action.

[0055] For example, the first action may be a function that can be realized by the first device, such as turning on air conditioning and refrigeration, starting the atmosphere light, etc. After the action scene is constructed, the action scene is triggered by the trigger condition, and then it is determined whether the judgment condition of the action scene is met according to the received judgment parameter, and finally, when the judgment condition is met, the corresponding action is executed, thereby completing a complete action scene.

[0056] Through the embodiments of the present disclosure, the judgment condition and the first action can be selected from multiple candidate judgment conditions and multiple candidate actions, and then the action scene can be constructed. Since the judgment condition and the first action of the constructed action scene are independently selected from the candidate judgment conditions and the candidate actions, there is no strong coupling relationship between the judgment condition and the action of the action scene, and the relative degree of freedom is relatively high. The embodiments of the present disclosure can improve the flexibility of constructing action scenes so as to meet the diverse needs of users for device control. The cloud platform can update the candidate judgment conditions by adding new candidate judgment conditions to the candidate judgment conditions, thereby completing the update of the candidate judgment conditions without affecting the constructed action scenes and candidate actions. The cloud platform can also update the candidate actions. Since the candidate judgment conditions and the candidate actions are decoupled from each other, updating the candidate actions will not affect the candidate judgment conditions and the constructed action scenes.

[0057] After constructing the action scene, the embodiment of the present disclosure can determine whether the determination condition of the action scene is satisfied based on the received determination parameters, and if satisfied, execute the corresponding first action to complete the action scene.

[0058] Figure 2 It is a schematic flow chart of a device control method according to an embodiment of the present disclosure.

[0059] like Figure 2 As shown, after constructing the action scene, the device control method further includes:

[0060] In step S201, an action scene may be triggered by a trigger condition;

[0061] In step S202, at least one determination condition of the action scene is determined, and whether the at least one determination condition is satisfied is determined according to corresponding determination parameters;

[0062] In step S203, when at least one determination condition is satisfied, the device is instructed to perform a corresponding action.

[0063] It should be noted that step S102 of receiving a determination parameter corresponding to a determination condition sent by at least one device may be performed before step S201 or after step S201.

[0064] In some embodiments, at least one device may send status information to the cloud platform at fixed time intervals, and the status information may include determination parameters corresponding to the determination conditions of the action scene.

[0065] At least one device may send status information to the cloud platform at fixed intervals. When the action scene is not triggered, the status information is used to inform the cloud platform of the status of at least one device, and after the action scene is triggered, the cloud platform may determine the judgment parameter based on the received status information.

[0066] In some embodiments, after the action scene is triggered, the cloud platform can determine the action scene judgment condition and send an upload instruction to at least one device that can send judgment parameters corresponding to the judgment condition, so that these devices send the required judgment parameters.

[0067] In this example, the cloud platform can first determine the judgment conditions of the triggered action scene, and determine the required judgment parameters based on the judgment conditions, and then issue an upload instruction to the device that can provide these judgment parameters. The amount of data interaction in this example is small, but the timeliness is slightly weaker.

[0068] In some embodiments, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: when the trigger condition is met, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition.

[0069] When the trigger condition is met, step S103 may be triggered, and it is determined whether at least one determination condition is met according to step S103.

[0070] After completing the construction of the action scene, based on the triggering conditions, the process of the action scene can be divided into three parts: triggering the action scene, determining whether the judgment condition is met, and executing the first action.

[0071] The trigger condition can be used to start the action scene process, determine whether the judgment condition is met to determine whether the current judgment parameter meets the execution condition of the action scene, and finally, the first action can be executed when at least one judgment condition of the action scene is met.

[0072] It should be added that executing the first action does not mean executing only one action. The first action may be a plurality of continuous actions executed in sequence, or a combined action formed by combining a plurality of actions.

[0073] Figure 3 , Figure 4 , Figure 5 , Figure 6 It is a schematic flow chart of triggering conditions of a device control method according to an embodiment of the present disclosure.

[0074] In some embodiments, the trigger condition being met includes: a specific determination condition being met, and the specific determination condition is any one of the at least one determination condition.

[0075] like Figure 3 As shown, in step S301, the device can send status information (also called shadow data) to the cloud platform at fixed time intervals; in step S302, after receiving the status information, the cloud platform can determine whether a specific judgment condition is met based on the status information; if not, the process ends; if so, it determines whether to execute the action scene, as in step S103, determining whether at least one judgment condition is met based on judgment parameters corresponding to at least one judgment condition.

[0076] It should be noted that a constructed action scene includes at least one judgment condition, and any of the at least one judgment condition can be selected as a specific judgment condition to trigger. When the cloud platform determines that the status information uploaded by a device meets the configured specific judgment condition, it triggers the judgment of whether the action scene is executed.

[0077] The following is an explanation using a specific example.

[0078] For example, an action scenario constructed may be: when the temperature is greater than the first temperature threshold and the humidity is greater than the first humidity threshold, start the air conditioner for cooling. Among them, "temperature is greater than the first temperature threshold" and "humidity is greater than the first humidity threshold" are two judgment conditions for this action scenario, and "start the air conditioner for cooling" is the action corresponding to the action scenario. For this action scenario, you can select "temperature is greater than the first temperature threshold" as a specific judgment condition, or you can select "humidity is greater than the first humidity threshold" as a specific judgment condition. Of course, both can also be used as specific judgment conditions.

[0079] The temperature sensor in the Internet of Things can periodically report shadow data to the cloud platform. The temperature sensor can report the status information of its own device through the shadow data, where the status information includes the ambient temperature detected by the temperature sensor. When the cloud platform receives the shadow data of the temperature sensor, if it is determined that the ambient temperature is greater than the first temperature threshold and meets the specific judgment conditions, the above action scenario can be triggered.

[0080] After the above action scene is triggered, it is necessary to determine whether at least one judgment condition of the action scene is met. Therefore, it is necessary to determine whether "temperature is greater than the first temperature threshold" and "humidity is greater than the first humidity threshold" are met, and if so, execute the action of "starting the air conditioner for cooling".

[0081] In some embodiments, when a specific determination condition is met, the determination condition for determining whether the action scene is met may be at least one determination condition that does not include the specific determination condition.

[0082] In the case where an action scene is triggered by a specific judgment condition being met as a trigger condition, repeated judgment of a specific judgment condition in at least one judgment condition can be omitted, and whether to execute the action of the action scene is determined by determining whether other judgment conditions except the specific judgment condition in at least one judgment condition are met.

[0083] In some embodiments, when the trigger condition includes the establishment of a specific judgment condition, the method further includes: after the trigger condition is established and determining whether the at least one judgment condition is established according to the judgment parameters respectively corresponding to the at least one judgment condition, stopping after the specific judgment condition is established, determining whether the at least one judgment condition is established according to the judgment parameters respectively corresponding to the at least one judgment condition, until the specific judgment condition is not established.

[0084] When the device reports status information, the cloud platform can determine whether a specific determination condition is met based on the determination parameters in the status information. If the specific determination condition is met, the action scene is triggered.

[0085] However, regardless of whether the action scene is triggered or not, and whether the action scene executes an action, the device can report status information. If the triggering condition is not restricted, after uploading the first status information, the device may trigger the action scene based on the specific judgment condition of the first status information. The subsequent status information uploaded by the device also meets the specific judgment condition, resulting in repeated and multiple triggering of the action scene, which may cause the action execution to fail or cause problems caused by repeated execution of the action.

[0086] Therefore, in this embodiment, when the status information uploaded by the device meets the specific judgment condition and triggers the action scene, other status information subsequently uploaded by the device will no longer trigger the action scene even if it meets the specific judgment condition, until the status information subsequently uploaded by the device does not meet the specific judgment condition, then the trigger condition is reset, so that the action scene can be triggered after the next status information that meets the specific judgment condition is uploaded.

[0087] In some embodiments, at least one determination condition includes: whether the first action has not been performed.

[0088] If the first action has been executed, the judgment condition is not met, and the action scene will not execute the first action, thereby avoiding repeated execution of the first action when the first action has been executed; if the first action has not been executed, the judgment condition is met, and the action scene can execute the first action when other judgment conditions are met.

[0089] In some embodiments, the trigger condition is satisfied when a preset time occurs.

[0090] like Figure 4 As shown, in step S401, the cloud platform can determine whether there is a scheduled task. Only when there is a scheduled task, the trigger condition needs to be considered; in step S402, when there is a scheduled task, the cloud platform can determine whether it is at a preset time; if it is not at the preset time, the action scene is terminated; if it is at the preset time, step S103 is executed to determine whether to execute the action of the action scene through at least one judgment condition.

[0091] On the cloud platform, scheduled tasks can be scheduled through the distributed scheduled task framework. The cloud platform can determine whether a scheduled task exists, and when a scheduled task exists, trigger the corresponding action scene at the preset time of the scheduled task.

[0092] For example, an action scene constructed may be: between 8 pm and midnight, when the temperature in the water heater is less than the second temperature threshold, the heating function of the water heater is started. For this action scene, when the current moment is not at the preset moment, it is not necessary to determine whether the temperature in the water heater is less than the second temperature threshold, and when the current moment is in the preset time interval, the trigger condition is met, triggering the action scene. In this case, based on the judgment condition required by the action scene, determine whether the temperature in the water heater is less than the second temperature threshold. If it is not less than the second temperature threshold, then end. If at any time between 8 pm and midnight, the temperature in the water heater is less than the second temperature threshold, and the judgment condition is met, then the action corresponding to the action scene is executed.

[0093] The cloud platform needs to obtain the current time to determine whether it is at the preset time. The time information can be information uploaded by a clock device in the Internet of Things, or it can be information from the cloud platform's own clock.

[0094] In some embodiments, the trigger condition includes: whether there is a second scenario with the end of the first scenario as a trigger condition, wherein the first scenario includes controlling the first device to perform the first action, and the second scenario includes controlling the second device to perform the second action.

[0095] like Figure 5 As shown, in step S501, the first scene ends; in step S502, determine whether there is a second scene with the end of the first scene as a trigger condition; if not, end; if so, execute step S103 to determine whether at least one determination condition of the second scene is met, so as to determine whether to execute the action corresponding to the second scene.

[0096] After the first scene ends, the cloud platform can monitor the message queue, and when the first scene end message is monitored, it is determined that the first scene ends. The cloud platform needs to determine whether there is a second scene with the end of the first scene as a trigger condition, so as to determine whether the monitored first scene end message constitutes a trigger condition. If there is a second scene with the end of the first scene as a trigger condition, the second scene is triggered.

[0097] For example, the first scene constructed can be: after the cover is started, the lifting platform rises; the second scene constructed can be: after the lifting platform rises to the highest point, the drone parked on the lifting platform takes off. Among them, the second scene is linked to the first scene, and the trigger condition of the second scene is the end of the first scene. When the cloud platform determines that the first scene has ended by monitoring the message queue, the second scene can be triggered. The judgment condition of the second scene includes "the lifting platform rises to the highest point". When the judgment condition is met, the corresponding action of the second scene "drone takes off" is executed.

[0098] On the contrary, if the first scenario is not executed or the first scenario is not ended, the second scenario cannot be triggered. For example, if the user manually drags the lift to the highest point, although the judgment condition of the second scenario has been met, since the lift is not raised by the first scenario, there is no end message of the first scenario, and the second scenario cannot be triggered, and the drone cannot take off.

[0099] In some embodiments, the linkage between the two scenes can be ensured by setting the effective duration.

[0100] In some embodiments, when the trigger condition includes a second scene with the end of the first scene as a trigger condition, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: within a first time period after the trigger condition is met, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition.

[0101] For example, the first duration can be 10 seconds. Then, the second scene can be triggered within 10 seconds of monitoring the end message of the first scene. If the judgment condition of the second scene is met within these 10 seconds, the action corresponding to the second scene is executed. If the judgment condition of the second scene is not met within these 10 seconds, it can be considered that the end message of the first scene has expired, and the end message of the first scene can no longer trigger the second scene.

[0102] Setting the effective duration can ensure that there is a linkage relationship between the two scenes, and avoid triggering the second scene a long time later after the first scene ends, which does not meet the design expectations.

[0103] In some embodiments, the trigger condition being met includes: receiving a trigger instruction from a user.

[0104] like Figure 6 As shown, in step S601, the cloud platform receives a trigger instruction from the user, triggering step S103, triggering the determination of the determination conditions of the action scene.

[0105] The user's trigger command can be implemented through a virtual button or a physical button connected to the cloud platform.

[0106] In this embodiment, multiple devices can perform corresponding actions separately as a one-key action scenario without judgment conditions. When the cloud platform receives the user's trigger instruction, it can trigger the one-key action scenario, so that multiple devices can directly perform corresponding actions. For example, the user can issue a trigger instruction to instruct multiple lighting devices to perform lighting, humidifiers to perform humidification, air conditioners to perform cooling, water heaters to perform heating, etc.

[0107] The above has introduced how to construct an action scene, how to trigger an action scene through trigger conditions, and how to determine whether an action scene is executed. The following will introduce executable actions.

[0108] In some embodiments, the first action includes: instructing the first device to implement a function corresponding to the first device.

[0109] Instructing the first device to implement the function corresponding to the first device can be implemented by issuing a control instruction to the first device. Specifically, the cloud platform can call the interface of the device management service, and the device management service is used to manage devices connected to the Internet of Things. By calling the interface of the device management service, the control instruction of the first device can be queried, and the control instruction corresponding to the first action can be determined according to the relationship comparison table between the control instruction of the first device and the action details queried, and then the control instruction is issued to the first device by calling the device management system to instruct the first device to implement the corresponding function.

[0110] In some embodiments, the candidate devices may include devices connected to the cloud platform, and may also include devices connected to a first platform other than the cloud platform.

[0111] Based on the device management service and device management system, the cloud platform can issue control instructions to devices connected to the cloud platform. For devices on the first platform, the device management service may not include control instructions for the devices on the first platform, and the device management system may not be able to manage the devices on the first platform, making it difficult to achieve cross-platform control of devices.

[0112] Figure 7 It is a schematic flow chart of sending a control instruction according to an embodiment of the present disclosure.

[0113] like Figure 7 As shown, in some embodiments, the first device includes a device connected to a first platform outside the cloud platform, and sending a control instruction to the first device includes:

[0114] In step S701, the interface of the first platform is called to query the action instructions of the first device;

[0115] In step S702, the action instruction is parsed;

[0116] In step S703, the placeholder parsed from the action instruction is replaced with parameters related to the first action to generate a control instruction;

[0117] In step S704, the control instruction is sent to the first device.

[0118] In some embodiments, the action instruction of the first device in the first platform can be queried through an HTTP (Hypertext Transfer Protocol) interface, and the action instruction includes a correspondence between the first action and the action instruction. According to the first action, the action instruction required for the action scene is determined.

[0119] After obtaining the action instruction, the action instruction can be parsed. Taking the action instruction of the HTTP interface as an example, the placeholders of Url (Uniform Resource Locator), Header, and Body can be parsed.

[0120] After parsing is completed, the parsed placeholders can be replaced with parameters related to the first action to generate control instructions. For example, the JSONPath syntax can be used to replace the parsed placeholders with specific control parameters of the first action. For example, specific control parameters are used to indicate the on or off status of the air conditioner, indicate the target temperature of the air conditioner cooling, etc.

[0121] After replacing the placeholder, a control instruction may be generated, which includes an HTTP request.

[0122] In some embodiments, the control instruction is sent to the first device.

[0123] Based on the degree of openness of the first platform, different methods can be used to send control instructions to the first device. For example, if the first platform is relatively open, the cloud platform can query and obtain the action instructions of the first device from the first platform, and the generated control instructions can be directly sent to the first device by the cloud platform; if the first platform is less open, after the cloud platform queries and obtains the action instructions of the first device from the first platform, it may still need to call the first platform through an interface based on the instructions of the first platform, so that the first platform can send control instructions to the first device.

[0124] In some embodiments, the first action may include: instructing the first device to pause the action being executed and continue to execute the paused action after a second time period.

[0125] The first action can temporarily interrupt the action being executed by the first device, and is applied to scenarios that require a certain amount of time or delay, and can be implemented through a delayed message queue. For example, you can first query the details of the pause action and control the first device to pause the currently executed action; send a delay message to the message queue, and receive the delay message from the message queue after the specified second duration; after receiving the delay message, you can query the previous action record of the first device, and by issuing a control instruction, let the first device continue to execute the previously paused action.

[0126] Corresponding to the embodiments of the device control method of the present disclosure, the present disclosure also provides embodiments of corresponding device control apparatuses.

[0127] See also Figure 8 , Figure 8 FIG. 1 is a block diagram of a device control apparatus in one embodiment of the present disclosure. Figure 8 As shown, the device control device is configured on the cloud platform, including:

[0128] A selection unit 810 is configured to select at least one determination condition from a plurality of candidate determination conditions, select a first action from a plurality of candidate actions, and select a first device from a plurality of candidate devices;

[0129] The receiving unit 820 is configured to receive a determination parameter corresponding to the determination condition sent by at least one device;

[0130] A determination unit 830, configured to determine whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition;

[0131] The sending unit 840 is configured to send a control instruction to the first device when the at least one determination condition is met, where the control instruction is used to instruct the first device to perform the first action.

[0132] In some embodiments, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: determining whether each of the determination conditions is met according to the determination parameters corresponding to each of the determination conditions, and when each of the determination conditions is met, the at least one determination condition is met; or, determining whether any of the determination conditions is met according to the determination parameters corresponding to any of the determination conditions, and when any of the determination conditions is met, the at least one determination condition is met.

[0133] In some embodiments, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: when the trigger condition is met, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition.

[0134] In some embodiments, the trigger condition is satisfied, including at least one of the following: a specific judgment condition is satisfied, the specific judgment condition is any one of the at least one judgment condition; when at a preset moment; whether there is a second scene with the end of the first scene as a trigger condition, wherein the first scene includes controlling the first device to perform the first action, and the second scene includes controlling the second device to perform the second action; receiving a trigger instruction from the user.

[0135] In some embodiments, when the trigger condition includes the establishment of a specific judgment condition, the device is further configured to: after the trigger condition is established and determining whether the at least one judgment condition is established according to the judgment parameters respectively corresponding to the at least one judgment condition, stop determining whether the at least one judgment condition is established according to the judgment parameters respectively corresponding to the at least one judgment condition after the specific judgment condition is established, until the specific judgment condition is not established.

[0136] In some embodiments, when the trigger condition includes a second scene with the end of the first scene as a trigger condition, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition includes: within a first time period after the trigger condition is met, determining whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition.

[0137] In some embodiments, the first action includes: instructing the first device to implement a function corresponding to the first device; and / or instructing the first device to pause an action being executed and continue to execute the paused action after a second time period.

[0138] In some embodiments, the first device includes a device connected to a first platform outside the cloud platform, and sending a control instruction to the first device includes: calling an interface of the first platform to query the action instructions of the first device; parsing the action instructions; replacing the placeholder parsed from the action instructions with parameters related to the first action to generate a control instruction; and sending the control instruction to the first device.

[0139] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0140] An embodiment of the present disclosure further provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute a device control method as described in any of the above embodiments by calling the computer program.

[0141] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the device control method as described in any of the above embodiments.

[0142] Fig. 9900 is a schematic block diagram of a device control apparatus 900 according to an embodiment of the present disclosure. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0143] Reference Fig. 9 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0144] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned information receiving method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0145] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0146] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.

[0147] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0148] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0149] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0150] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the start / shutdown state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0151] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0152] In an exemplary embodiment, the device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned information receiving method.

[0153] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to complete the above-mentioned information receiving method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0154] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0155] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0156] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0157] The method and device provided in the embodiments of the present disclosure are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.

Claims

1. A device control method, characterized in that: Executed by a cloud platform, the method includes: Selecting at least one determination condition from a plurality of candidate determination conditions, selecting a first action from a plurality of candidate actions, and selecting a first device from a plurality of candidate devices; receiving a determination parameter corresponding to the determination condition sent by at least one device; Determining whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition; When the at least one determination condition is met, a control instruction is sent to the first device, where the control instruction is used to instruct the first device to perform the first action.

2. The method according to claim 1, characterized in that The determining whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition comprises: Determine whether each of the determination conditions is satisfied according to the determination parameters corresponding to each of the determination conditions, and when each of the determination conditions is satisfied, the at least one determination condition is satisfied; or, Whether any of the determination conditions is satisfied is determined according to a determination parameter corresponding to any of the determination conditions. If any of the determination conditions is satisfied, the at least one determination condition is satisfied.

3. The method according to claim 1, characterized in that The determining whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition comprises: When the trigger condition is met, it is determined whether the at least one determination condition is met according to the determination parameters respectively corresponding to the at least one determination condition.

4. The method according to claim 3, characterized in that: The trigger condition includes at least one of the following: A specific determination condition is satisfied, wherein the specific determination condition is any one of the at least one determination condition; When at the preset moment; whether there is a second scenario triggered by the end of the first scenario, wherein the first scenario includes controlling the first device to perform the first action, and the second scenario includes controlling the second device to perform the second action; Receive a trigger instruction from the user.

5. The method according to claim 4, characterized in that In the case where the trigger condition includes a specific determination condition being met, the method further includes: After the trigger condition is satisfied and the at least one determination condition is determined based on the determination parameters corresponding to the at least one determination condition, After the specific determination condition is met, the process stops, and whether the at least one determination condition is met is determined according to the determination parameters respectively corresponding to the at least one determination condition, until the specific determination condition is not met.

6. The method according to claim 4, characterized in that In a case where the trigger condition includes a second scenario with the first scenario ending as a trigger condition, determining whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition includes: Within a first time period after the trigger condition is met, determining whether the at least one determination condition is met according to determination parameters respectively corresponding to the at least one determination condition.

7. The method according to claim 1, characterized in that The first action includes: instructing the first device to implement a function corresponding to the first device; and / or, Instruct the first device to pause the action being executed, and continue to execute the paused action after a second time period.

8. The method according to any one of claims 1 to 7, characterized in that The first device includes a device connected to a first platform outside the cloud platform, and sending a control instruction to the first device includes: Calling an interface of the first platform to query an action instruction of the first device; Parsing the action instruction; Replacing the placeholder parsed from the action instruction with parameters related to the first action to generate a control instruction; Send the control instruction to the first device.

9. A device control device, characterized in that: Configured on a cloud platform, the device includes: A selection unit configured to select at least one determination condition from a plurality of candidate determination conditions, select a first action from a plurality of candidate actions, and select a first device from a plurality of candidate devices; a receiving unit, configured to receive a determination parameter corresponding to the determination condition sent by at least one device; a determination unit configured to determine whether the at least one determination condition is satisfied according to the determination parameters respectively corresponding to the at least one determination condition; The sending unit is configured to send a control instruction to the first device when the at least one determination condition is met, wherein the control instruction is used to instruct the first device to perform the first action.

10. An electronic device, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the device control method according to any one of claims 1 to 8 by calling the computer program.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the device control method described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Smart home situation control method and system based on multi-condition judgment

    CN105511286A

  • Local automation control method, local automation control device and electronic equipment

    CN111025921A

  • Linkage control method and device for an intelligent scene and storage medium

    CN113050446A

  • Method for synchronizing different platform devices, first platform and second platform

    CN113949728A

  • Back-end code generation method and device

    CN115454415A