CN112073471B - Control method and device of equipment, storage medium and electronic device - Google Patents

Control method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN112073471B
CN112073471B CN202010827433.XA CN202010827433A CN112073471B CN 112073471 B CN112073471 B CN 112073471B CN 202010827433 A CN202010827433 A CN 202010827433A CN 112073471 B CN112073471 B CN 112073471B
Authority
CN
China
Prior art keywords
target
scene
control command
custom information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010827433.XA
Other languages
Chinese (zh)
Other versions
CN112073471A (en
Inventor
李振刚
马传荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010827433.XA priority Critical patent/CN112073471B/en
Publication of CN112073471A publication Critical patent/CN112073471A/en
Application granted granted Critical
Publication of CN112073471B publication Critical patent/CN112073471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a control method and a device of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: in response to a scene creation request received from a terminal, creating a corresponding relationship between target custom information in a target scene and a control command, wherein the target custom information is used for representing a first operation executed by a first device in the target scene, and the control command is used for controlling a second device in the target scene; acquiring operation information sent by first equipment, wherein the operation information is used for representing the current operation executed by the first equipment; under the condition that the operation represented by the operation information is a first operation, acquiring a control command with a corresponding relation with the target self-defining information from the created corresponding relation; and controlling the second equipment according to the control command. The invention solves the technical problem of lower efficiency of creating the scene automation scene in the related technology, and improves the efficiency and flexibility of creating the scene.

Description

Control method and device of equipment, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for controlling a device, a storage medium, and an electronic apparatus.
Background
In the related art, a user can create an automation scene of the intelligent device through a IFTTT (if this then that) rule engine of the cloud platform of the intelligent device so as to realize linkage of the device in the automation scene. When creating an automation scene, a user can only acquire the operation supported by each device and create the automation scene according to the operation supported by the device. Since the user cannot perform the custom setting on the operation performed in the device, that is, the operation performed in the device cannot be represented by using the custom information, the automation scene can be created only according to some fixed information of the device, so that the flexibility of the creation process of the automation scene is low and the efficiency of creating the automation scene is low.
Aiming at the technical problem of lower efficiency of the scene creation automation scene in the related technology, an effective technical scheme is not proposed yet.
Disclosure of Invention
The embodiment of the invention provides a control method and device of equipment, a storage medium and an electronic device, which are used for at least solving the technical problem of lower efficiency of related technology scene creation automation scenes.
According to an embodiment of the present invention, there is provided a control method of an apparatus including: responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene; acquiring operation information sent by the first device, wherein the operation information is used for representing the operation currently executed by the first device; acquiring the control command with a corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation; and controlling the second equipment according to the control command.
Optionally, before the responding to the scene creation request received from the terminal, the method further comprises: receiving a self-defining request sent by the terminal, wherein the self-defining request comprises first self-defining information corresponding to target operation supported by the first equipment; acquiring a first preset operation set sent by the first device, wherein the first preset operation set comprises preset operations supported by the first device, and operation identifiers of the preset operations support custom settings, and the operation identifiers are used for representing the preset operations; and under the condition that the first preset operation set comprises the target operation, correspondingly storing the operation identifier of the target operation and the first custom information.
Optionally, before the creating of the correspondence between the target custom information and the control command in the target scene in response to the scene creation request received from the terminal, the method further includes: receiving an acquisition request sent by the terminal, wherein the acquisition request is used for requesting a custom information set corresponding to the first device, and the custom information set is a set formed by the first custom information corresponding to preset operations in the first preset operation set; responding to the acquisition request, and sending the custom information set to the terminal; and receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, and the target custom information is custom information selected from the custom information set.
Optionally, before the creating of the correspondence between the target custom information and the control command in the target scene in response to the scene creation request received from the terminal, the method further includes: receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, the control command comprises second custom information corresponding to a second operation supported by the second device, and an operation identifier of the second operation supports custom setting; wherein, at the same time or after the corresponding relation between the target custom information and the control command in the target scene is created, the method further comprises: and correspondingly storing the second custom information and the operation identification of the second operation.
Optionally, the controlling the second device according to the control command includes: searching an operation identifier of the second operation corresponding to the second custom information in the control command; replacing the second custom information in the control command with the operation identifier of the second operation to obtain a replaced control command; and sending the replaced control command to the second device, wherein the control command is used for indicating the second device to execute the second operation.
Optionally, after the controlling the second device according to the control command, the method further includes: receiving an execution result sent by the second device, wherein the execution result comprises the second operation executed by the second device; determining the second custom information corresponding to the second operation; and generating a scene execution log corresponding to the target scene according to the second custom information, and sending the scene execution log to the terminal.
According to another embodiment of the present invention, there is provided a control apparatus of a device including: the system comprises a creation module, a control module and a control module, wherein the creation module is used for responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene; the receiving module is used for receiving operation information sent by the first equipment, wherein the operation information is used for representing the operation currently executed by the first equipment; the acquisition module is used for acquiring the control command with the corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation; and the control module is used for controlling the second equipment according to the control command.
Optionally, the receiving module is further configured to receive a customization request sent by the terminal, where the customization request includes first customization information corresponding to a target operation supported by the first device; the acquiring module is further configured to acquire a first preset operation set sent by the first device, where the first preset operation set includes preset operations supported by the first device, and an operation identifier of the preset operations supports a user-defined setting, where the operation identifier is used to represent the preset operations; the device further comprises a storage module, and the storage module is used for correspondingly storing the operation identifier of the target operation and the first custom information under the condition that the first preset operation set comprises the target operation.
Optionally, the receiving module is further configured to receive an acquisition request sent by the terminal, where the acquisition request is used to request a custom information set corresponding to the first device, where the custom information set is a set made up of first custom information corresponding to preset operations in the first preset operation set; the device also comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for responding to the acquisition request and sending the custom information set to the terminal; the receiving module is further configured to receive the scene creation request sent by the terminal, where the scene creation request includes a scene identifier of the target scene, the target custom information and the control command, and the target custom information is custom information selected from the custom information set.
Optionally, the receiving module is further configured to receive the scene creation request sent by the terminal, where the scene creation request includes a scene identifier of the target scene, the target custom information, and the control command, the control command includes second custom information corresponding to a second operation supported by the second device, and an operation identifier of the second operation supports custom setting; the device further comprises a storage module, wherein the storage module is used for correspondingly storing the second custom information and the operation identification of the second operation.
Optionally, the control module is further configured to: searching an operation identifier of the second operation corresponding to the second custom information in the control command; replacing the second custom information in the control command with the operation identifier of the second operation to obtain a replaced control command; and sending the replaced control command to the second device, wherein the control command is used for indicating the second device to execute the second operation.
Optionally, the receiving module is further configured to: receiving an execution result sent by the second device, wherein the execution result comprises the second operation executed by the second device; determining the second custom information corresponding to the second operation; the sending module is further configured to generate a scenario execution log corresponding to the target scenario according to the second custom information, and send the scenario execution log to the terminal.
Alternatively, according to another embodiment of the present invention, there is provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the above method when run.
Alternatively, according to another embodiment of the invention, there is provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the above method.
According to the method and the device, a scene creation request received from a terminal is responded, and the corresponding relation between target custom information and a control command in a target scene is created, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene; acquiring operation information sent by the first device, wherein the operation information is used for representing the operation currently executed by the first device; acquiring the control command with a corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation; and controlling the second equipment according to the control command. Therefore, the technical problem of lower efficiency of creating scene automation scenes in the related technology can be solved, and the efficiency and flexibility of creating scenes are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a flowchart of a control method of an apparatus according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a control method of an apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing target scene information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a control method of an apparatus according to another embodiment of the present invention;
fig. 5 is a timing chart of a control method of an apparatus according to another embodiment of the present invention;
fig. 6 is a block diagram of a control device of an apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram (a) of a control device of an apparatus according to still another embodiment of the present invention;
fig. 8 is a block diagram (ii) of a control device of an apparatus according to still another embodiment of the present invention;
fig. 9 is a block diagram (iii) of the control device of the apparatus according to still another embodiment of the present invention;
fig. 10 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
An embodiment of the present invention provides a method for controlling a device, and fig. 1 is a flowchart of a method for controlling a device according to an embodiment of the present invention, as shown in fig. 1, including:
step S102, responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene;
step S104, operation information sent by the first device is obtained, wherein the operation information is used for representing the operation currently executed by the first device;
Step S106, when the operation represented by the operation information is the first operation, the control command with the corresponding relation with the target user-defined information is obtained from the created corresponding relation;
and step S108, controlling the second equipment according to the control command.
According to the method and the device, a scene creation request received from a terminal is responded, and the corresponding relation between target custom information and a control command in a target scene is created, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene; acquiring operation information sent by the first device, wherein the operation information is used for representing the operation currently executed by the first device; acquiring the control command with a corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation; and controlling the second equipment according to the control command. Therefore, the technical problem of lower efficiency of creating scene automation scenes in the related technology can be solved, and the efficiency and flexibility of creating scenes are improved.
In the above embodiment, the first operation may be an operation corresponding to a function provided by the first device or an operation state (e.g., attribute) of the first device, for example, the first operation is used to trigger the first function in the first device, that is, the first device turns on the first function by performing the first operation; or the first operation is used for triggering the first working state of the first device, namely the first device is used for switching the working state into the first working state by executing the first operation.
Optionally, the device model corresponding to the first device includes fields corresponding to each function/attribute one-to-one, where the field supporting the custom setting indicates that the function/attribute name corresponding to the field can be set by user customization, that is, the operation identifier of the operation corresponding to the function/attribute can be set by user customization.
Based on the above embodiment, the target custom information is used to represent the first operation performed by the first device, for example, the target custom information may be a custom operation identifier set by the target object (for example, a user) on the first operation, that is, the fixed operation identifier corresponding to the first device is not used to represent the first operation, but the target custom information is used to represent the first operation, and the target scene is created according to the target custom information, that is, the corresponding relationship between the target custom information and the control command in the target scene is created, so that the target custom information is used as a trigger condition of the target scene, that is, the target scene is triggered and performed by the target custom information, and flexibility and efficiency of creating the scene are improved.
The control method of the apparatus in the above embodiment may be applied to the scene shown in fig. 2. Fig. 2 is a schematic view of an application scenario of a control method of a device according to another embodiment of the present invention, as shown in fig. 2, where there are a first device and a second device in a target area (for example, a house), and the second device may have multiple devices, and by creating a target scenario and executing the target scenario, linkage between the first device and the second device may be implemented, that is, the first device triggers execution of the target scenario, and controls the second device to execute a corresponding operation according to a control command under the target scenario.
In an alternative embodiment, the first device may be a smart door lock, and the first operation performed by the first device may be "receiving fingerprint 001", and the operation identifier of the first operation is fixed, that is, the fixed operation identifier: the fingerprint 001 is received, and in the related art, a user can only acquire a fixed operation identifier of the first operation, but cannot perform custom setting on the operation identifier of the first operation. Based on the above embodiment, the target customization information may be "the small apple is unlocked", that is, the target customization information is used to replace the fixed operation identifier of the first operation, where the target customization information is used to represent the "received fingerprint 001" operation performed in the first device. Therefore, in the above embodiment, the target scene is created according to the target custom information, so that the creation of the scene is more personalized, the personalized requirement of creating the scene can be met, and the flexibility and efficiency of creating the scene are improved.
Wherein, in the above embodiment, before the response to the scene creation request received from the terminal, the above embodiment may further execute the following technical scheme: receiving a self-defining request sent by the terminal, wherein the self-defining request comprises first self-defining information corresponding to target operation supported by the first equipment; acquiring a first preset operation set sent by the first device, wherein the first preset operation set comprises preset operations supported by the first device, and operation identifiers of the preset operations support custom settings, and the operation identifiers are used for representing the preset operations; and under the condition that the first preset operation set comprises the target operation, correspondingly storing the operation identifier of the target operation and the first custom information.
It should be noted that the operation identifier may be an operation name. Based on the above embodiment, the corresponding custom information is set for the preset operation supported by the first device, and the operation identifier of the target operation and the first custom information are stored correspondingly, so that the personalized setting of the operation executed by the first device is realized. Wherein the first operation may be one preset operation in a first preset set.
Before the corresponding relationship between the target custom information and the control command in the target scene is created in response to the scene creation request received from the terminal, the above embodiment may further execute the following technical scheme: receiving an acquisition request sent by the terminal, wherein the acquisition request is used for requesting a custom information set corresponding to the first device, and the custom information set is a set formed by the first custom information corresponding to preset operations in the first preset operation set; responding to the acquisition request, and sending the custom information set to the terminal; and receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, and the target custom information is custom information selected from the custom information set.
In the embodiment, the custom information set corresponding to the first device is sent to the terminal, so that the operation executed by the first device can be represented by each piece of custom information in the custom information set in the terminal, the identification degree of the operation, the function or the working state executed by the first device is improved, and the efficiency of creating the scene is further improved.
Based on the above embodiment, before the creating of the correspondence between the target custom information and the control command in the target scene in response to the scene creation request received from the terminal, the method further includes: receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, the control command comprises second custom information corresponding to a second operation supported by the second device, and an operation identifier of the second operation supports custom setting; wherein, at the same time or after the corresponding relation between the target custom information and the control command in the target scene is created, the method further comprises: and correspondingly storing the second custom information and the operation identification of the second operation.
Based on the above embodiment, when the target scene is created, the target scene can also be created according to the second custom information set for the supported operation of the second device, thereby further improving the flexibility and efficiency of creating the scene.
The controlling the second device according to the control command includes: searching an operation identifier of the second operation corresponding to the second custom information in the control command; replacing the second custom information in the control command with the operation identifier of the second operation to obtain a replaced control command; and sending the replaced control command to the second device, wherein the control command is used for indicating the second device to execute the second operation.
In the above-described embodiment, after creating the target scene according to the second custom information set for the supported operation of the second device, the target scene may also be executed according to the second custom information.
Wherein after the controlling the second device according to the control command, the method further comprises: receiving an execution result sent by the second device, wherein the execution result comprises the second operation executed by the second device; determining the second custom information corresponding to the second operation; and generating a scene execution log corresponding to the target scene according to the second custom information, and sending the scene execution log to the terminal.
Based on the above embodiment, the scenario execution log of the target scenario is generated according to the second custom information and sent to the terminal, so that the recognition degree of the scenario execution log in the terminal is improved, that is, the efficiency of identifying the scenario execution log of the target scenario by using the target object of the terminal (or the target object logging in the terminal) is improved.
Based on the above embodiment, after the corresponding relationship between the target custom information and the control command in the target scene is created in response to the scene creation request received from the terminal, the above embodiment may further execute the following technical solutions: and sending a creation result to the terminal, wherein the creation result is further used for indicating to display the target custom information and the control command corresponding to the target scene on the terminal when the creation result indicates that the corresponding relation between the target custom information and the control command in the target scene is created successfully.
The target custom information and the control command corresponding to the target scene are displayed on the terminal, so that the scene created according to the custom information can be displayed to the target object, and the identification degree of the created scene in the terminal is improved.
As shown in fig. 3, the target custom information and the control command corresponding to the target scene are displayed in a display interface of the terminal, so that the recognition degree of the scene in the terminal is improved.
It should be noted that the first device and the second device may be intelligent home appliances in the field of home appliances, such as an intelligent washing machine, an intelligent air conditioner, an intelligent refrigerator, a sweeping robot, an intelligent door lock, and an intelligent lighting device. For example, the first device is a smart door lock and the second device is a smart air conditioner.
The control method of the apparatus in the above embodiment is explained below with reference to an example, but is not limited to the technical solution of the embodiment of the present invention. As shown in fig. 4, the control method of the device in the embodiment of the present invention involves the following parts:
whether the functionality (or referred to as attributes) of each device allows user customization is set by the developer platform. In the embodiment of the present invention, each device includes the first device and the second device in the above embodiment, and the function/attribute of each device corresponds to an operation performed by the device, that is, a certain function in the device is turned on by performing a certain operation in the device (that is, even if the device has an attribute under the function). For example, after the first device performs the first operation, the first device opens a first function corresponding to the first operation, and the first device has an attribute corresponding to the first function. Taking the first device as an example of the intelligent door lock, the first operation may be an operation of unlocking the intelligent door lock by using the fingerprint 001 (that is, the first device performs an operation of identifying the fingerprint 001), after the first device performs the first operation, the first device starts the unlocking function, and the first device has the lock-unlocked attribute. After the setting is completed, the setting result can be reported to an internet of things (Internet of Things, IOT) cloud platform;
And customizing the functions/attributes of the equipment through the terminal. The terminal may be a device such as a notebook computer, a mobile phone, a tablet computer, etc., and the user may send a user-defined request (i.e. step 1 in fig. 3) to the cloud platform of the internet of things through the terminal, so as to set a corresponding user-defined name for a function/attribute of the device, where the user-defined request includes first user-defined information corresponding to a target operation supported by the first device. After receiving a user-defined request sent by a terminal, the cloud platform determines whether a target operation supported by the first device supports user-defined setting, and if so, stores an operation identifier (for example, a function name (for example, a function 1) or an attribute name (for example, an attribute 1) corresponding to the target operation in the first device) of the target operation in correspondence with first user-defined information, so that the first user-defined information can be used to represent the function 1 or the attribute 1;
a user can send a scene creation request (i.e. step 2 in fig. 4) to an Application server through a terminal (such as a mobile phone Application (APP) end), and the Application server forwards the scene creation request to an IFTTT rule engine module in a cloud platform (step 3); the IFTTT rule engine creates a target scene, namely creates the corresponding relation between target custom information and control command in the target scene, and returns a creation result message to the application program server (step 4), and the application program server returns the creation result message to the mobile phone APP (step 5 in FIG. 4);
After the creation of the target scene is completed, the target scene can be automatically executed. Wherein, as an alternative implementation manner, the confirmation message may be sent to the application server through the terminal (e.g. the mobile phone APP end) (i.e. step 6 in fig. 4); the application server forwards the confirmation message to the IFTTT rule engine (namely, step 7 in fig. 4), and the IFTTT rule engine determines whether to execute the target scene according to the acquired operation information sent by the first device;
after the target scene is executed, the IFTTT rule engine generates a scene execution log and sends the scene execution log to the application server (i.e. step 8 in fig. 4), and the application server sends the scene execution log to the mobile phone APP end (i.e. step 9 in fig. 4).
The timing chart of the control method of the device in the above embodiment is shown in fig. 5, and includes the following steps:
step 1, defining device models through a developer platform, and personalizing condition items corresponding to each device model (namely, whether the functions (or called attributes) of each device are set through the developer platform to allow user definition or not);
step 2, reporting the equipment model to an Internet of things cloud platform through a developer platform;
step 3, the cloud platform of the Internet of things creates equipment model instance data according to the equipment model and stores the equipment model instance data;
Step 4, the user self-defines the equipment model attribute through the mobile phone application program;
it should be noted that, in step 4, the user may also customize the device model function through the mobile phone application program; the device model attribute or function is customized through the mobile phone application program, namely, the operation identifier corresponding to the target operation in the device in the embodiment is customized;
step 5, the mobile phone application program reports user-defined attributes of the equipment model set by the user to the Internet of things cloud platform;
step 6, the intelligent device 1 (i.e. the first device in the above embodiment) reports the user-defined item of the device model (i.e. the first preset operation set in the above embodiment) to the internet of things cloud platform, where the first preset operation set includes preset operations supported by the first device, and an operation identifier of the preset operations supports user-defined settings);
step 7, storing user-defined attributes corresponding to the equipment model instance data by the Internet of things cloud platform;
step 8, the cloud platform of the Internet of things returns a result to the mobile phone application program; the returned result can be used for indicating that the custom attribute of the equipment is set successfully;
step 9, the user can acquire a return result through the mobile phone application program;
Step 10, the cloud platform of the Internet of things returns a result to the intelligent device 1; the returned result can be used for notifying the success of the self-defining attribute of the intelligent device 1;
step 11, acquiring equipment models and user-defined data from an internet of things cloud platform through a mobile phone application program;
step 12, the cloud platform of the Internet of things returns the equipment model and user-defined data to the mobile phone application program;
step 13, submitting an automatic scene creating request (namely, the scene creating request in the embodiment) of the creating device to an IFTTT rule engine in the cloud platform of the Internet of things through a mobile phone application program;
step 14, the IFTTT rule engine creates an equipment automation scene, namely creates a corresponding relation between target custom information and a control command in a target scene;
step 15, the IFTTT rule engine returns a scene creation result to the mobile phone application program;
step 16, the method is used for viewing the scene creation result through the mobile phone application program;
step 17, the intelligent device 1 reports the trigger data (i.e. the operation information in the above embodiment);
step 18, after receiving the trigger data, the IFTTT rule engine requests the user-defined data set by the user for the intelligent device 1 to the cloud platform of the Internet of things;
Step 19, the internet of things cloud platform returns user-defined data set by a user for the intelligent device 1 to the IFTTT rule engine;
step 20, the IFTTT rule engine determines that the trigger data is data for triggering the target scene (i.e. the operation represented by the operation information in the above embodiment is the first operation), and requests the internet of things cloud platform to control the device in the target scene;
step 21, the internet of things cloud platform sends a control instruction (i.e., a control command in the above embodiment) to the intelligent device 2 (i.e., the second device in the above embodiment) in the target scene;
step 22, the intelligent device 2 returns an execution result (i.e. an execution result sent by the second device in the above embodiment) to the internet of things cloud platform;
and step 23, the cloud platform of the Internet of things sends the received execution result to the IFTTT rule engine.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to another embodiment of the present invention, a control device for a device is provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram of a control apparatus of a device according to an embodiment of the present invention, the apparatus including:
a creation module 52, configured to create, in response to a scene creation request received from a terminal, a correspondence between target custom information in a target scene and a control command, where the target custom information is used to represent a first operation performed by a first device in the target scene, and the control command is used to control a second device in the target scene;
a receiving module 54, configured to receive operation information sent by the first device, where the operation information is used to indicate an operation currently performed by the first device;
an obtaining module 56, configured to obtain, in the created correspondence, the control command having a correspondence with the target custom information, in a case where the operation indicated by the operation information is the first operation;
And the control module 58 is used for controlling the second device according to the control command.
According to the method and the device, a scene creation request received from a terminal is responded, and the corresponding relation between target custom information and a control command in a target scene is created, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene; acquiring operation information sent by the first device, wherein the operation information is used for representing the operation currently executed by the first device; acquiring the control command with a corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation; and controlling the second equipment according to the control command. Therefore, the technical problem of lower efficiency of creating scene automation scenes in the related technology can be solved, and the efficiency and flexibility of creating scenes are improved.
The receiving module 54 is further configured to receive a customization request sent by the terminal, where the customization request includes first customization information corresponding to a target operation supported by the first device; the obtaining module 56 is further configured to obtain a first preset operation set sent by the first device, where the first preset operation set includes preset operations supported by the first device, and an operation identifier of the preset operations supports a user-defined setting, where the operation identifier is used to represent the preset operations; fig. 7 is a block diagram (a) of a control apparatus of a device according to another embodiment of the present invention, and as shown in fig. 7, the apparatus further includes a storage module 62, configured to store, when the first preset operation set includes the target operation, an operation identifier of the target operation and the first custom information correspondingly.
In the above embodiment, the receiving module 54 is further configured to receive an acquisition request sent by the terminal, where the acquisition request is used to request a custom information set corresponding to the first device, where the custom information set is a set made up of first custom information corresponding to a preset operation in the first preset operation set; fig. 8 is a block diagram (ii) of a control apparatus of a device according to still another embodiment of the present invention, and as shown in fig. 8, the apparatus further includes a sending module 72 configured to send the custom information set to the terminal in response to the acquisition request; the receiving module 54 is further configured to receive the scene creation request sent by the terminal, where the scene creation request includes a scene identifier of the target scene, the target custom information, and the control command, and the target custom information is custom information selected from the custom information set.
It should be noted that, the receiving module 54 is further configured to receive, before the response to the scenario creation request received from the terminal creates the correspondence between the target custom information and the control command in the target scenario, where the scenario creation request includes the scenario identifier of the target scenario, the target custom information, and the control command includes second custom information corresponding to the second operation supported by the second device, and the operation identifier of the second operation supports custom setting; the storage module 62 is further configured to store the second custom information and the operation identifier of the second operation in a corresponding manner at the same time or after the corresponding relationship between the target custom information and the control command in the target scene is created.
Based on the above embodiment, the control module 58 is further configured to find an operation identifier of the second operation corresponding to the second custom information in the control command; replacing the second custom information in the control command with the operation identifier of the second operation to obtain a replaced control command; and sending the replaced control command to the second device, wherein the control command is used for indicating the second device to execute the second operation.
The receiving module 54 is further configured to receive an execution result sent by the second device after the second device is controlled according to the control command, where the execution result includes the second operation performed by the second device. Fig. 9 is a block diagram (iii) of a control apparatus of a device according to still another embodiment of the present invention, and as shown in fig. 9, the apparatus further includes a generating module 82 for determining the second custom information corresponding to the second operation; and generating a scene execution log corresponding to the target scene according to the second custom information, and sending the scene execution log to the terminal.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene;
s2, acquiring operation information sent by the first equipment, wherein the operation information is used for representing the operation currently executed by the first equipment;
s3, under the condition that the operation represented by the operation information is the first operation, acquiring the control command with the corresponding relation with the target custom information from the created corresponding relation;
and S4, controlling the second equipment according to the control command.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene;
s2, acquiring operation information sent by the first equipment, wherein the operation information is used for representing the operation currently executed by the first equipment;
S3, under the condition that the operation represented by the operation information is the first operation, acquiring the control command with the corresponding relation with the target custom information from the created corresponding relation;
and S4, controlling the second equipment according to the control command.
Fig. 10 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention. Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 10 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 10 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be configured to store software programs and modules, such as program instructions/modules corresponding to a control method of a device and a control apparatus of a device in an embodiment of the present invention, and the processor 1004 executes the software programs and modules stored in the memory 1002 to perform various functional applications and data processing, that is, implement the control method of the device. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. As an example, the memory 1002 may include, but is not limited to, a creation module 52, a reception module 54, an acquisition module 56, and a control module 58 of the control device of the apparatus. In addition, other module units in the control device of the above apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1006 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1006 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1008 for displaying a screen; and a connection bus 1010 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A control method of an apparatus, characterized by comprising:
responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene;
acquiring operation information sent by the first device, wherein the operation information is used for representing the operation currently executed by the first device;
acquiring the control command with a corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation;
controlling the second equipment according to the control command;
wherein prior to said responding to a scene creation request received from a terminal, the method further comprises:
receiving a self-defining request sent by the terminal, wherein the self-defining request comprises first self-defining information corresponding to target operation supported by the first equipment;
acquiring a first preset operation set sent by the first device, wherein the first preset operation set comprises preset operations supported by the first device, and operation identifiers of the preset operations support custom settings, and the operation identifiers are used for representing the preset operations;
And under the condition that the first preset operation set comprises the target operation, correspondingly storing the operation identifier of the target operation and the first custom information.
2. The method according to claim 1, wherein before the creating of the correspondence of the target custom information and the control command in the target scene in response to the scene creation request received from the terminal, the method further comprises:
receiving an acquisition request sent by the terminal, wherein the acquisition request is used for requesting a custom information set corresponding to the first device, and the custom information set is a set formed by the first custom information corresponding to preset operations in the first preset operation set;
responding to the acquisition request, and sending the custom information set to the terminal;
and receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, and the target custom information is custom information selected from the custom information set.
3. The method according to claim 1, wherein before the creating of the correspondence of the target custom information and the control command in the target scene in response to the scene creation request received from the terminal, the method further comprises:
receiving the scene creation request sent by the terminal, wherein the scene creation request comprises a scene identifier of the target scene, the target custom information and the control command, the control command comprises second custom information corresponding to a second operation supported by the second device, and an operation identifier of the second operation supports custom setting;
wherein, at the same time or after the corresponding relation between the target custom information and the control command in the target scene is created, the method further comprises:
and correspondingly storing the second custom information and the operation identification of the second operation.
4. A method according to claim 3, wherein said controlling said second device in accordance with said control command comprises:
searching an operation identifier of the second operation corresponding to the second custom information in the control command;
Replacing the second custom information in the control command with the operation identifier of the second operation to obtain a replaced control command;
and sending the replaced control command to the second device, wherein the control command is used for indicating the second device to execute the second operation.
5. A method according to claim 3, wherein after said controlling said second device in accordance with said control command, the method further comprises:
receiving an execution result sent by the second device, wherein the execution result comprises the second operation executed by the second device;
determining the second custom information corresponding to the second operation;
and generating a scene execution log corresponding to the target scene according to the second custom information, and sending the scene execution log to the terminal.
6. A control device of an apparatus, characterized by comprising:
the system comprises a creation module, a control module and a control module, wherein the creation module is used for responding to a scene creation request received from a terminal, and creating a corresponding relation between target custom information and a control command in a target scene, wherein the target custom information is used for representing a first operation executed by first equipment in the target scene, and the control command is used for controlling second equipment in the target scene;
The receiving module is used for receiving operation information sent by the first equipment, wherein the operation information is used for representing the operation currently executed by the first equipment;
the acquisition module is used for acquiring the control command with the corresponding relation with the target custom information in the created corresponding relation under the condition that the operation represented by the operation information is the first operation;
the control module is used for controlling the second equipment according to the control command;
the receiving module is further configured to receive a customization request sent by the terminal, where the customization request includes first customization information corresponding to a target operation supported by the first device;
the acquiring module is further configured to acquire a first preset operation set sent by the first device, where the first preset operation set includes preset operations supported by the first device, and an operation identifier of the preset operations supports a user-defined setting, where the operation identifier is used to represent the preset operations;
the device further comprises a storage module, and the storage module is used for correspondingly storing the operation identifier of the target operation and the first custom information under the condition that the first preset operation set comprises the target operation.
7. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when run.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
CN202010827433.XA 2020-08-17 2020-08-17 Control method and device of equipment, storage medium and electronic device Active CN112073471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010827433.XA CN112073471B (en) 2020-08-17 2020-08-17 Control method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010827433.XA CN112073471B (en) 2020-08-17 2020-08-17 Control method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112073471A CN112073471A (en) 2020-12-11
CN112073471B true CN112073471B (en) 2023-07-21

Family

ID=73662304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010827433.XA Active CN112073471B (en) 2020-08-17 2020-08-17 Control method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112073471B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737901B (en) * 2020-12-29 2022-12-06 青岛海尔科技有限公司 Operation configuration method and device in scene, storage medium and electronic device
CN113268004A (en) * 2021-04-22 2021-08-17 深圳Tcl新技术有限公司 Scene creating method and device, computer equipment and storage medium
CN113422711A (en) * 2021-04-29 2021-09-21 青岛海尔多媒体有限公司 Method, system and device for establishing instruction mapping relation and household appliance
CN113434844A (en) * 2021-06-23 2021-09-24 青岛海尔科技有限公司 Intelligent scene building method and device, storage medium and electronic equipment
CN113596234B (en) * 2021-06-29 2023-03-31 青岛海尔科技有限公司 Method and device for determining equipment function model, storage medium and electronic device
CN113676353A (en) * 2021-08-19 2021-11-19 杭州华橙软件技术有限公司 Control method and device for equipment, storage medium and electronic device
CN114740748A (en) * 2022-04-29 2022-07-12 青岛海尔科技有限公司 Smart home scene creation method and device, storage medium and electronic device
CN115296945B (en) * 2022-06-28 2024-03-22 青岛海尔科技有限公司 Control method, system and device of equipment, storage medium and electronic device
CN115296947B (en) * 2022-06-28 2024-01-26 青岛海尔科技有限公司 Control command response method and device, storage medium and electronic device
CN115659405B (en) * 2022-11-18 2023-03-10 中国信息通信研究院 Interaction method and device of digital object, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143743A1 (en) * 2016-02-24 2017-08-31 华为技术有限公司 Heterogeneous protocol communication method and controller
WO2019128829A1 (en) * 2017-12-28 2019-07-04 中兴通讯股份有限公司 Action execution method and apparatus, storage medium and electronic apparatus
WO2019179355A1 (en) * 2018-03-23 2019-09-26 腾讯科技 (深圳) 有限公司 Object control method, device, storage medium and electronic device
CN110458051A (en) * 2019-07-25 2019-11-15 中移(杭州)信息技术有限公司 A kind of method, apparatus, server and the readable storage medium storing program for executing of equipment control

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206636353U (en) * 2017-04-19 2017-11-14 河南紫光物联技术有限公司 A kind of intelligent door lock
CN108170034B (en) * 2017-12-29 2021-06-08 上海器魂智能科技有限公司 Intelligent device control method and device, computer device and storage medium
CN108536033A (en) * 2018-06-29 2018-09-14 王莹莹 A kind of intelligent home furnishing control method
CN109725541B (en) * 2018-12-12 2022-09-27 深圳绿米联创科技有限公司 Automatic generation method and device, electronic equipment and storage medium
CN109656145B (en) * 2018-12-27 2022-08-02 美智纵横科技有限责任公司 Electric appliance, control method and control system thereof, server and electric appliance control device
CN110531632B (en) * 2019-09-27 2022-08-26 北京声智科技有限公司 Control method and system
CN110768877B (en) * 2019-09-27 2022-05-27 百度在线网络技术(北京)有限公司 Voice control instruction processing method and device, electronic equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143743A1 (en) * 2016-02-24 2017-08-31 华为技术有限公司 Heterogeneous protocol communication method and controller
WO2019128829A1 (en) * 2017-12-28 2019-07-04 中兴通讯股份有限公司 Action execution method and apparatus, storage medium and electronic apparatus
WO2019179355A1 (en) * 2018-03-23 2019-09-26 腾讯科技 (深圳) 有限公司 Object control method, device, storage medium and electronic device
CN110458051A (en) * 2019-07-25 2019-11-15 中移(杭州)信息技术有限公司 A kind of method, apparatus, server and the readable storage medium storing program for executing of equipment control

Also Published As

Publication number Publication date
CN112073471A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN106161100B (en) A kind of internet of things equipment configuration method and internet-of-things terminal
CN104735143B (en) A kind of lot control system and method based on smart home cloud platform
CN111885594B (en) Equipment binding method and device
CN109829308A (en) The management method and device of control strategy, storage medium, electronic device
CN109151805A (en) ESIM card configuration method and system based on Internet of Things
CN111885115B (en) Device binding changing method and device
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN105334809B (en) A kind of autocontrol method and device
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN108376078A (en) Upgrade method, device and the household appliance of equipment
CN113498594A (en) Control method and device of intelligent household system, electronic equipment and storage medium
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN111934956B (en) Equipment configuration method and device, storage medium and electronic device
CN110933170A (en) Multi-device linkage control method and device of ZigBee gateway and storage medium
CN105511275A (en) Method and device for controlling intelligent electric appliance
CN110794773A (en) Click-type scene creating method and device
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN111866856A (en) Mesh device control method and system, storage medium and electronic device
CN113572816B (en) Equipment control processing method and device, storage medium and electronic device
CN105391749A (en) Equipment networking system in Internet of Things, and display method
CN106302046B (en) Control method for remote controller and device
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
CN113132332B (en) Networking login method, household electrical appliance system and storage medium
CN115803736A (en) File generation method and device in Internet of things, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant