Device control method, cloud device and computer storage medium

文档序号:1286342 发布日期:2020-08-28 浏览:2次 中文

阅读说明:本技术 设备控制方法、云端设备及计算机存储介质 (Device control method, cloud device and computer storage medium ) 是由 许翔 于 2020-05-15 设计创作,主要内容包括:本申请实施例公开了一种设备控制方法、云端设备及计算机存储介质,用于解决普通开关和场景开关独立设置而增加用户的购买成本以及用户操作不便的技术问题。本申请实施例中,云端根据用户发送的开关类型选择信息来判断用户所选择的开关类型,当确定用户所选择的开关类型为多控组开关时,执行多控组控制信息对应的多个子设备联动控制;当确定用户所选择的开关类型为场景开关时,执行目标场景对应的多个子设备联动控制,因此,用户只需切换多控组开关或者切换场景开关,通过单一的设备即可同时实现普通开关或场景开关的联动控制,无需购买两种开关。同时,用户只需在一个控制面板上选择开关类型以及操作所选择的开关,方便了用户对产品的使用。(The embodiment of the application discloses an equipment control method, cloud equipment and a computer storage medium, and is used for solving the technical problems that the purchase cost of a user is increased and the operation of the user is inconvenient due to the independent setting of a common switch and a scene switch. In the embodiment of the application, the cloud judges the switch type selected by the user according to the switch type selection information sent by the user, and executes linkage control on a plurality of sub-devices corresponding to the multi-control group control information when the switch type selected by the user is determined to be a multi-control group switch; when the switch type selected by the user is determined to be the scene switch, the linkage control of the plurality of sub-devices corresponding to the target scene is executed, so that the user only needs to switch the multi-control group switch or the scene switch, the linkage control of the common switch or the scene switch can be simultaneously realized through a single device, and the two switches do not need to be purchased. Meanwhile, a user only needs to select the switch type on one control panel and operate the selected switch, and the user can use the product conveniently.)

1. An apparatus control method applied to a cloud, the method comprising:

acquiring multi-control group control information, wherein the multi-control group control information is used for representing linkage control of a plurality of sub-devices;

acquiring scene switch control information, wherein the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

receiving switch type selection information sent by a user through a control panel;

judging the switch type selected by the user according to the switch type selection information, wherein the switch type comprises a multi-control group switch and a scene switch;

if the switch type selected by the user is the multi-control group switch, executing linkage control on a plurality of sub-devices corresponding to the multi-control group control information;

and if the switch type selected by the user is the scene switch, executing linkage control on a plurality of sub-devices corresponding to the target scene.

2. The device control method according to claim 1, wherein the obtaining multi-control group control information comprises:

receiving a plurality of pieces of sub-device information sent by the control panel, wherein each piece of sub-device information corresponds to one piece of sub-device;

and establishing a linkage control relationship among the plurality of pieces of sub-equipment according to the information of the plurality of pieces of sub-equipment to obtain the multi-control group control information.

3. The device control method according to claim 2, wherein after receiving the plurality of pieces of sub-device information transmitted by the control panel, the method further comprises:

screening target sub-equipment according to the sub-equipment information in the plurality of pieces of sub-equipment information;

and adding the target sub-equipment into a multi-control group, wherein the multi-control group is a control group consisting of the plurality of sub-equipment.

4. The apparatus control method according to claim 2, characterized in that the method further comprises:

receiving a sub-device deleting instruction sent by the control panel;

and deleting the sub-equipment in a multi-control group according to the sub-equipment deleting instruction, wherein the multi-control group is a control group consisting of the plurality of sub-equipment.

5. The device control method according to claim 1, wherein the acquiring scene switch control information includes:

receiving a plurality of pieces of sub-device information corresponding to the target scene sent by the control panel;

and establishing a linkage control relationship among a plurality of sub-devices according to the information of the plurality of sub-devices corresponding to the target scene to obtain the scene switch control information.

6. The apparatus control method according to claim 5, characterized in that the method further comprises:

receiving a trigger condition of the target scene set by the user;

if the switch type selected by the user is the scene switch, performing coordinated control on a plurality of sub-devices corresponding to the target scene includes:

and when the trigger condition of the target scene is achieved, executing linkage control of a plurality of sub-devices corresponding to the target scene.

7. The apparatus control method according to claim 1, characterized in that the method further comprises:

acquiring and storing a plurality of scene identifications, wherein each scene identification corresponds to one target scene;

after receiving the switch type selection information sent by the user through the control panel, the method further comprises:

comparing the plurality of locally stored scene identifiers with the scene identifiers included in the switch type selection information, and determining a target scene corresponding to the scene identifiers included in the switch type selection information;

if the switch type selected by the user is the scene switch, performing coordinated control on a plurality of sub-devices corresponding to the target scene includes:

and executing linkage control of a plurality of sub-devices corresponding to the determined target scene.

8. A cloud device, the cloud device comprising:

the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring multi-control group control information which is used for expressing the linkage control of a plurality of sub-devices;

the second acquisition unit is used for acquiring scene switch control information, and the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

the receiving unit is used for receiving the switch type selection information sent by the user through the control panel;

the judging unit is used for judging the switch type selected by the user according to the switch type selection information, and the switch type comprises a multi-control group switch and a scene switch;

the first execution unit is used for executing linkage control of a plurality of sub-devices corresponding to the multi-control group control information when the switch type selected by the user is the multi-control group switch;

and the second execution unit is used for executing linkage control of a plurality of sub-devices corresponding to the target scene when the switch type selected by the user is the scene switch.

9. A cloud device, the cloud device comprising:

the system comprises a processor, a memory, a bus and input and output equipment;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory and the input and output equipment;

the processor is used for acquiring multi-control group control information, the multi-control group control information is used for representing linkage control of a plurality of sub-devices and acquiring scene switch control information, and the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

the input and output equipment is used for receiving switch type selection information sent by a user through the control panel;

the processor is further configured to determine a switch type selected by the user according to the switch type selection information, where the switch type includes a multi-control group switch and a scene switch, execute linkage control of multiple sub-devices corresponding to the multi-control group control information when the switch type selected by the user is the multi-control group switch, and execute linkage control of multiple sub-devices corresponding to the target scene when the switch type selected by the user is the scene switch.

10. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.

Technical Field

The embodiment of the application relates to the field of equipment control, in particular to an equipment control method, cloud equipment and a computer storage medium.

Background

At present, in the intelligent home industry, people utilize a common switch and a scene switch to realize control over home electrical equipment, the equipment controlled by the common switch and the scene switch is called as sub-equipment, wherein the common switch can perform linkage control over 2 sub-equipment, and when any one sub-equipment is controlled to be turned on or turned off, the other sub-equipment is also synchronously turned on or turned off, namely, one-to-one control is realized; the scene switch can perform linkage control on a plurality of sub-devices larger than 2, and when any one of the sub-devices is controlled to be turned on or turned off, other sub-devices are also synchronously turned on or turned off, namely, one-to-many control is realized.

Among the current intelligent household product, ordinary switch and scene switch are independent setting, when the user need use ordinary switch and scene switch, can only purchase two kinds of switches alone, and this has improved the cost of user on purchasing the product to a certain extent, can only separately operate two kinds of switches when using moreover, and this uses the product to bring inconvenience for the user, reduces user experience.

Disclosure of Invention

The embodiment of the application provides an equipment control method, cloud equipment and a computer storage medium, and is used for solving the technical problems that the purchase cost of a user is increased and the operation of the user is inconvenient due to independent setting of a common switch and a scene switch.

A first aspect of the embodiments of the present application provides an apparatus control method, which is applied to a cloud, and the method includes:

acquiring multi-control group control information, wherein the multi-control group control information is used for representing linkage control of a plurality of sub-devices;

acquiring scene switch control information, wherein the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

receiving switch type selection information sent by a user through a control panel;

judging the switch type selected by the user according to the switch type selection information, wherein the switch type comprises a multi-control group switch and a scene switch;

if the switch type selected by the user is the multi-control group switch, executing linkage control on a plurality of sub-devices corresponding to the multi-control group control information;

and if the switch type selected by the user is the scene switch, executing linkage control on a plurality of sub-devices corresponding to the target scene.

Preferably, the acquiring the multi-control group control information includes:

receiving a plurality of pieces of sub-device information sent by the control panel, wherein each piece of sub-device information corresponds to one piece of sub-device;

and establishing a linkage control relationship among the plurality of pieces of sub-equipment according to the information of the plurality of pieces of sub-equipment to obtain the multi-control group control information.

Preferably, after receiving the information of the plurality of sub-devices sent by the control panel, the method further includes:

screening target sub-equipment according to the sub-equipment information in the plurality of pieces of sub-equipment information;

and adding the target sub-equipment into a multi-control group, wherein the multi-control group is a control group consisting of the plurality of sub-equipment.

Preferably, the method further comprises:

receiving a sub-device deleting instruction sent by the control panel;

and deleting the sub-equipment in a multi-control group according to the sub-equipment deleting instruction, wherein the multi-control group is a control group consisting of the plurality of sub-equipment.

Preferably, the acquiring scene switch control information includes:

receiving a plurality of pieces of sub-device information corresponding to the target scene sent by the control panel;

and establishing a linkage control relationship among a plurality of sub-devices according to the information of the plurality of sub-devices corresponding to the target scene to obtain the scene switch control information.

Preferably, the method further comprises:

receiving a trigger condition of the target scene set by the user;

if the switch type selected by the user is the scene switch, performing coordinated control on a plurality of sub-devices corresponding to the target scene includes:

and when the trigger condition of the target scene is achieved, executing linkage control of a plurality of sub-devices corresponding to the target scene.

Preferably, the method further comprises:

acquiring and storing a plurality of scene identifications, wherein each scene identification corresponds to one target scene;

after receiving the switch type selection information sent by the user through the control panel, the method further comprises:

comparing the plurality of locally stored scene identifiers with the scene identifiers included in the switch type selection information, and determining a target scene corresponding to the scene identifiers included in the switch type selection information;

if the switch type selected by the user is the scene switch, performing coordinated control on a plurality of sub-devices corresponding to the target scene includes:

and executing linkage control of a plurality of sub-devices corresponding to the determined target scene.

A second aspect of the embodiments of the present application provides a cloud device, where the cloud device includes:

the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring multi-control group control information which is used for expressing the linkage control of a plurality of sub-devices;

the second acquisition unit is used for acquiring scene switch control information, and the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

the receiving unit is used for receiving the switch type selection information sent by the user through the control panel;

the judging unit is used for judging the switch type selected by the user according to the switch type selection information, and the switch type comprises a multi-control group switch and a scene switch;

the first execution unit is used for executing linkage control of a plurality of sub-devices corresponding to the multi-control group control information when the switch type selected by the user is the multi-control group switch;

and the second execution unit is used for executing linkage control of a plurality of sub-devices corresponding to the target scene when the switch type selected by the user is the scene switch.

Preferably, the first obtaining unit is specifically configured to receive information of multiple pieces of sub-equipment sent by the control panel, where each piece of sub-equipment information corresponds to one piece of sub-equipment, and establish a linkage control relationship between the multiple pieces of sub-equipment according to the information of the multiple pieces of sub-equipment to obtain the multi-control group control information.

Preferably, the cloud device further includes:

the screening unit is used for screening the information of the plurality of pieces of sub-equipment to obtain target sub-equipment according to the information of the sub-equipment;

and the adding unit is used for adding the target sub-equipment into a multi-control group, and the multi-control group is a control group consisting of the plurality of sub-equipment.

Preferably, the receiving unit is further configured to receive a sub-device deleting instruction sent by the control panel;

the cloud device further comprises:

and the deleting unit is used for deleting the sub-equipment in a multi-control group according to the sub-equipment deleting instruction, wherein the multi-control group is a control group consisting of the plurality of sub-equipment.

Preferably, the second obtaining unit is specifically configured to receive information of multiple pieces of sub-equipment corresponding to the target scene sent by the control panel, and establish a linkage control relationship between the multiple pieces of sub-equipment according to the information of the multiple pieces of sub-equipment corresponding to the target scene to obtain the scene switch control information.

Preferably, the receiving unit is further configured to receive a trigger condition of the target scene set by the user;

the second execution unit is specifically configured to execute linkage control of multiple sub-devices corresponding to the target scene when the trigger condition of the target scene is achieved.

Preferably, the second obtaining unit is further configured to obtain and store a plurality of scene identifiers, where each scene identifier corresponds to one target scene;

the cloud device further comprises:

a comparison unit, configured to compare the locally stored scene identifiers with the scene identifiers included in the switch type selection information, and determine a target scene corresponding to the scene identifier included in the switch type selection information;

the second execution unit is specifically configured to execute coordinated control of a plurality of sub-devices corresponding to the determined target scene.

A third aspect of the embodiments of the present application provides a cloud device, where the cloud device includes:

the system comprises a processor, a memory, a bus and input and output equipment;

the processor is connected with the memory and the input and output equipment;

the bus is respectively connected with the processor, the memory and the input and output equipment;

the processor is used for acquiring multi-control group control information, the multi-control group control information is used for representing linkage control of a plurality of sub-devices and acquiring scene switch control information, and the scene switch control information is used for representing linkage control of a plurality of sub-devices corresponding to a target scene;

the input and output equipment is used for receiving switch type selection information sent by a user through the control panel;

the processor is further configured to determine a switch type selected by the user according to the switch type selection information, where the switch type includes a multi-control group switch and a scene switch, execute linkage control of multiple sub-devices corresponding to the multi-control group control information when the switch type selected by the user is the multi-control group switch, and execute linkage control of multiple sub-devices corresponding to the target scene when the switch type selected by the user is the scene switch.

A fourth aspect of embodiments of the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the method of the first aspect.

According to the technical scheme, the embodiment of the application has the following advantages:

in the embodiment of the application, the cloud end can judge the switch type selected by the user according to the switch type selection information sent by the user, and when the switch type selected by the user is determined to be a multi-control group switch, linkage control is performed on a plurality of sub-devices corresponding to the multi-control group control information; when the switch type selected by the user is determined to be the scene switch, the linkage control of the plurality of sub-devices corresponding to the target scene is executed, so that the user only needs to switch the multi-control group switch or the scene switch according to needs, the linkage control of the common switch or the scene switch can be realized through a single device, and the two switches do not need to be purchased. Meanwhile, a user only needs to select the switch type on one control panel and operate the selected switch, and the user can use the product conveniently.

Drawings

FIG. 1 is a schematic diagram of a network framework in an embodiment of the present application;

FIG. 2 is a schematic flow chart illustrating an apparatus control method according to an embodiment of the present application;

FIG. 3 is another schematic flow chart illustrating an apparatus control method according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of a cloud device in an embodiment of the present application;

fig. 5 is another schematic structural diagram of a cloud device in the embodiment of the present application;

fig. 6 is a schematic view of another structure of the cloud device in the embodiment of the present application.

Detailed Description

The embodiment of the application provides an equipment control method, cloud equipment and a computer storage medium, and is used for solving the technical problems that the purchase cost of a user is increased and the operation of the user is inconvenient due to independent setting of a common switch and a scene switch.

Referring to fig. 1, the network framework in the embodiment of the present application includes:

client 101, cloud 102, gateway device 103, networks 104 and 106, control panel 105, and child devices 107-110.

In the network framework, only one client, a control panel, a cloud, a gateway device and four sub-devices are taken as examples for explanation, but in practical application, more clients, control panels, clouds, gateway devices and more sub-devices may participate in the network framework.

Any one of the sub-devices 107 to 110 may be a lamp, a sensor, a key switch, a smart curtain, an air conditioner, or other electrical device. Each sub-device can be divided into a multi-control group switch type and a scene switch type according to the setting conditions of opening and closing. The multi-control group switch type sub-equipment is linked with the plurality of sub-equipment, the plurality of multi-control group switch type sub-equipment form a multi-control group, when any one sub-equipment in the multi-control group is opened or closed, other sub-equipment in the multi-control group is also opened or closed, namely the running states of the plurality of sub-equipment are synchronous. The scene switch type sub-device refers to that under a certain specific scene, a plurality of sub-devices are linked, and when the specific scene is triggered, the plurality of sub-devices are synchronously turned on or off, wherein the scene can be a user leaving scene, a user returning scene, a conference scene, a family meeting scene and the like.

In this network framework, the user can set the switch type of the child device on the control panel 105, and the control panel 105 forms the setting information of the switch type of the child device and sends the setting information to the gateway 103 and the cloud 102, so as to synchronize the setting information of the child device.

The cloud 102 may be configured to process, store, and forward data transmitted by the client 101 and data transmitted by the gateway device 103.

In the network framework, a user can set configuration logic on the client 101, namely, set linkage rules of the sub-devices 107 to 110 and the electrical devices. For example, if the sub-devices 107 to 110 include a key switch, the user may set the key switch to be linked with the illumination lamp, and configure the key switch and the illumination lamp together, so as to turn on the key switch and turn on the illumination lamp; the key switch is turned off, and the illuminating lamp is turned off. For another example, if the sub-devices 107 to 110 include temperature sensors, the user may set the configuration logic to link the temperature sensors with the air conditioner, and start the air conditioner when the temperature sensed by the temperature sensors is 28 ℃ or higher; and when the temperature is lower than 28 ℃, the air conditioner is closed. The control of the sub-equipment and the electric equipment can be realized by setting the configuration logic.

The gateway device 103 may receive the configuration logic sent by the client 101, control the operation of the sub-devices 107 to 110 according to the configuration logic set by the user, and perform data interaction with the cloud 102, the sub-devices 107 to 110, and the control panel 105. The specific type of gateway device 103 is not limited and may be, for example, a zigbee gateway or a bluetooth gateway.

In the embodiment of the present application, the network 104 is generally a wireless network, and may also be a wired network, and if the network is a wireless network, the type of the network may be a cellular wireless network, or a WiFi network, or another type of wireless network. In the case of a wired network, the general network form is a fiber optic network.

The gateway device 103 establishes connection with the child devices 107 to 110 through the network 106, and performs data interaction through the network 106. The network 106 is generally a wireless network, and may also be a wired network, and if the network is a wireless network, the type of the network may be a zigbee network, that is, the gateway device 103 and the sub-devices 107 to 110 are connected based on a zigbee wireless communication technology; it may also be a bluetooth network, or other type of wireless network. In the case of a wired network, the general network form is a fiber optic network.

The following describes, with reference to the network framework of fig. 1, a device control method in an embodiment of the present application:

referring to fig. 2, an embodiment of an apparatus control method in the embodiment of the present application includes:

201. acquiring multi-control group control information;

in this embodiment, a user may set the linkage control of the plurality of sub-devices, that is, the open states or the closed states of the plurality of sub-devices are synchronized, and when a certain sub-device is opened or closed, other sub-devices are also opened or closed synchronously. Therefore, the cloud end can acquire the multi-control group control information set by the user, the multi-control group control information represents linkage control of the plurality of sub-devices, and the cloud end can know which sub-devices are in linkage control.

202. Acquiring scene switch control information;

in practical application, a user may need to set a plurality of sub-devices in a certain specific scene for linkage control, so that the cloud end can acquire scene switch control information of the certain specific scene. In this embodiment, a certain specific scene is referred to as a target scene, and the scene switch control information indicates linkage control of multiple sub-devices corresponding to the target scene, that is, the cloud end can know that the multiple sub-devices corresponding to the target scene will be subjected to linkage control when the target scene is triggered.

203. Receiving switch type selection information sent by a user through a control panel;

in this embodiment, a user may select a mode for controlling the sub-device to operate through the control panel, that is, instruct the sub-device to operate according to a control mode corresponding to the multi-control group control information, or instruct the sub-device to operate according to a control mode corresponding to the scene switch control information. Accordingly, the user can input the switch type selection information on the control panel to indicate the control mode selected by the user. Therefore, the cloud end can receive the switch type selection information sent by the control panel and execute subsequent operations according to the switch type selection information.

204. Judging the switch type selected by the user according to the switch type selection information, and if the switch type selected by the user is a multi-control group switch, executing step 205; if the switch type selected by the user is a scene switch, execute step 206;

the switch type selection information indicates a control mode selected by a user, wherein the control mode may be a control mode corresponding to multi-control group control information or a control mode corresponding to scene switch control information, that is, the switch type selection information indicates which switch type the user needs to control a plurality of sub-devices. That is, the control mode corresponding to the multi-control group control information indicates that the user needs to control the sub-devices by using the multi-control group switch; and the control mode corresponding to the scene switch control information indicates that the user needs to control the sub-equipment by using the scene switch. Therefore, the cloud end can judge whether the multi-control group switch or the scene switch is selected by the user according to the control mode indicated by the switch type selection information.

If the switch type selected by the user is a multi-control group switch, executing step 205; if the switch type selected by the user is the scene switch, step 206 is executed.

205. Executing linkage control of a plurality of sub-devices corresponding to the multi-control group control information;

when the switch type selected by the user is determined to be the multi-control group switch, the cloud executes the linkage control of the plurality of sub-devices corresponding to the multi-control group control information obtained in step 201, sends the control instruction to the gateway device, and instructs the gateway device to perform the linkage control on the plurality of sub-devices according to the multi-control group control information, so that the cloud controls the operation states of the sub-devices.

206. Executing linkage control of a plurality of sub-devices corresponding to the target scene;

when it is determined that the switch type selected by the user is the scene switch, since the target scene is already determined in step 202, the cloud may perform linkage control of the plurality of sub-devices corresponding to the target scene, send the corresponding control instruction to the gateway device, and instruct the gateway device to perform linkage control on the plurality of sub-devices corresponding to the target scene, thereby implementing control of the cloud on the operating states of the sub-devices.

It will be appreciated that the user may also switch from the currently selected switch type to another switch type, for example, from the current scene switch type to the multi-controlled group switch type, or from the multi-controlled group switch type to the scene switch type.

In this embodiment, the cloud end can judge the switch type selected by the user according to the switch type selection information sent by the user, and when the switch type selected by the user is determined to be a multi-control group switch, the multi-control group control information corresponding to the plurality of sub-devices is executed for linkage control; when the switch type selected by the user is determined to be the scene switch, the linkage control of the plurality of sub-devices corresponding to the target scene is executed, so that the user only needs to switch the multi-control group switch or the scene switch according to needs, the linkage control of the common switch or the scene switch can be realized through a single device, and the two switches do not need to be purchased. Meanwhile, a user only needs to select the switch type on one control panel and operate the selected switch, and the user can use the product conveniently.

The embodiments of the present application will be described in further detail below on the basis of the aforementioned embodiment shown in fig. 2. Referring to fig. 3, another embodiment of the apparatus control method in the embodiment of the present application includes:

301. acquiring multi-control group control information;

the operation performed in this step is similar to the operation performed in step 201 in the embodiment shown in fig. 2. In this embodiment, the manner in which the cloud acquires the multi-control group control information may be that a user sets a plurality of sub-devices through the client to perform coordinated control, so as to obtain the multi-control group control information, and the client sends the multi-control group control information to the cloud, so that the cloud can acquire the multi-control group control information.

The manner of acquiring the multi-control group control information may also be that the cloud receives a plurality of pieces of sub-device information sent by the control panel, where the sub-device information includes, but is not limited to, device parameters of the sub-devices and other device information related to the sub-devices, and each piece of sub-device information corresponds to one sub-device. And then, the cloud end selects a plurality of pieces of sub-device information from the received plurality of pieces of sub-device information, determines the sub-device corresponding to each piece of sub-device information according to the plurality of pieces of sub-device information, establishes the linkage control relationship among the plurality of determined sub-devices, and confirms that the plurality of sub-devices are in linkage control, so that multi-control group control information is obtained.

In this embodiment, the manner of obtaining the multi-control group control information may also be other manners, which is not limited in this embodiment.

In this embodiment, the cloud establishes a linkage control relationship between the plurality of sub-devices, and determines that the plurality of sub-devices are in linkage control, so that the plurality of sub-devices may form a control group, and the control group may be referred to as a multi-control group. The cloud can add new sub-devices to the multi-control group and also can delete original sub-devices in the multi-control group.

After the cloud receives the information of the plurality of sub-devices sent by the control panel, when new sub-devices need to be added to the multi-control group, the cloud screens out target sub-devices according to the information of the sub-devices in the received information of the plurality of sub-devices, and if the information of the sub-devices is the performance parameters of the devices, the cloud can screen out the sub-devices with the optimal performance parameters and determine that the sub-devices with the optimal performance parameters are the target sub-devices. And then, the cloud end can add the target sub-equipment into the multi-control group and perform linkage control together with the original sub-equipment in the multi-control group.

When the original sub-equipment in the multi-control group needs to be deleted, the cloud end receives a sub-equipment deleting instruction sent by the control panel and deletes the sub-equipment indicated by the sub-equipment deleting instruction, so that the deleted sub-equipment does not need to be synchronously controlled when the multi-control group is controlled to run.

In this embodiment, the operation of the cloud to the multi-control group may also be to modify the linkage control relationship of the multiple sub-devices in the multi-control group, for example, in the original linkage control relationship, a certain sub-device is turned on, and another sub-device is also turned on synchronously, and the cloud may modify the original linkage control relationship such that the certain sub-device is turned on and the another sub-device is turned off.

302. Acquiring scene switch control information;

the operation performed in this step is similar to the operation performed in step 202 in the embodiment shown in fig. 2. In this embodiment, the manner of acquiring the scene switch control information by the cloud may be that a user sets one or more target scenes through the client, and associates each target scene with a plurality of sub-devices, so as to indicate that when a target scene is triggered, the plurality of sub-devices corresponding to the triggered target scene are to be subjected to linkage control. And then, the client can send the set content to the cloud end, so that the cloud end acquires scene switch control information, and the scene switch control information represents that a plurality of sub-devices corresponding to a target scene are subjected to linkage control.

The method for acquiring the scene switch control information may also be that the cloud receives a plurality of pieces of sub-device information corresponding to the target scene sent by the control panel, where the sub-device information includes, but is not limited to, device parameters of the sub-devices and other device information related to the sub-devices, and each piece of sub-device information corresponds to one sub-device. And then, the cloud establishes a linkage control relationship among the plurality of sub-devices corresponding to the plurality of sub-device information, namely, determines that the plurality of sub-devices corresponding to the target scene are in the linkage control relationship, so as to obtain scene switch control information.

It should be noted that the number of the sub-devices establishing the linkage control relationship may be the same as or smaller than the number of the sub-devices corresponding to the target scene. For example, the number of the sub devices corresponding to the target scene is 5, the cloud may determine 3 sub devices among the 5 sub devices to establish the linkage control relationship, and may also establish the linkage control relationship of the 5 sub devices, which is not limited in this embodiment.

In this embodiment, the manner of acquiring the scene switch control information may also be other manners, which is not limited in this embodiment.

Similarly, the present embodiment may also modify, add a new sub device or delete an original sub device to the coordinated control relationship of multiple sub devices corresponding to the target scene, and the specific operations are similar to the operations of adding a new sub device to the multi-control group, deleting an original sub device in the multi-control group, modifying the coordinated control relationship of multiple sub devices in the multi-control group, and the like in step 301, and are not described herein again.

303. Receiving a trigger condition of a target scene set by a user;

in this embodiment, the user sets a plurality of sub-devices for linkage control in the target scene, and may also set a trigger condition of the target scene. For example, the user sets the linkage of a plurality of sub-devices in the leaving scene, and may set the trigger condition of the leaving scene to be the time condition 09: 00-19: 00, indicating that when the time reaches 09: 00-19: 00 at any time point, the departure scene is triggered. The user can set the trigger condition of the target scene through the control panel or the client, and send the trigger condition to the cloud, and the cloud receives the trigger condition and stores the trigger condition locally.

304. Acquiring and storing a plurality of scene identifiers;

in this embodiment, the target scenes may be multiple, for example, there may be a departure scene, a return scene, a meeting scene, or a family gathering scene, in order to identify various target scenes, the cloud may obtain multiple scene identifiers, and identify the target scene corresponding to the scene identifier by using the scene identifier, where each scene identifier corresponds to one target scene. And the cloud stores the acquired scene identifications locally.

For example, the cloud acquires the symbol a as a scene identifier of a scene away from home, and acquires the symbol B as a scene identifier of a scene back to home.

The scene identification can be set on the client by a user, and the client sends the scene identification to the cloud; or the scene identifier may be locally generated by the cloud and then synchronized to the client of the user, and the manner in which the cloud acquires the scene identifier is not limited.

305. Receiving switch type selection information sent by a user through a control panel;

the operation performed in this step is similar to the operation performed in step 203 in the embodiment shown in fig. 2. In this embodiment, if the cloud identifies the target scene through the scene identifier, the switch type selection information sent by the user may include the scene identifier, so that the cloud may determine the corresponding target scene according to the received scene identifier.

306. Judging the switch type selected by the user according to the switch type selection information, and if the switch type selected by the user is a multi-control group switch, executing a step 307; if the switch type selected by the user is a scene switch, execute step 308;

307. executing linkage control of a plurality of sub-devices corresponding to the multi-control group control information;

the operations performed in steps 306 to 307 are similar to the operations performed in steps 204 to 205 in the embodiment shown in fig. 2, and are not repeated here.

308. Executing linkage control of a plurality of sub-devices corresponding to the target scene;

and when the cloud determines that the switch type selected by the user is a scene switch, the cloud executes linkage control on a plurality of sub-devices corresponding to the target scene. Specifically, if the target scene has the trigger condition set in step 303, the cloud executes the linkage control of the multiple sub-devices corresponding to the target scene when the trigger condition of the target scene is achieved.

For example, the trigger condition for the away-from-home scenario is time condition 09: 00-19: 00, when the time reaches 09: 00, when the scene is triggered away from home, the cloud executes the linkage control of the corresponding sub-devices in the scene.

When the cloud end includes the scene identifier in the switch type selection information received in step 305, the cloud end may compare the multiple locally stored scene identifiers with the scene identifier included in the received switch type selection information, and further determine the target scene corresponding to the scene identifier included in the switch type selection information. After the target scene is determined, the cloud end executes linkage control of a plurality of sub-devices corresponding to the determined target scene.

For example, the scene identifier included in the switch type selection information is a symbol a, the cloud compares the symbol a with a plurality of locally stored scene identifiers, and determines that the symbol a is consistent with the scene identifier of the away-from-home scene, so that it can be determined that the user needs to perform linkage control of a plurality of sub-devices corresponding to the away-from-home scene.

In the foregoing, the device control method in the embodiment of the present application is described, and referring to fig. 4, the cloud device in the embodiment of the present application is described below, where an embodiment of the cloud device in the embodiment of the present application includes:

a first obtaining unit 401, configured to obtain multi-control group control information, where the multi-control group control information is used to indicate linkage control of multiple pieces of sub-equipment;

a second obtaining unit 402, configured to obtain scene switch control information, where the scene switch control information is used to indicate that multiple sub-devices corresponding to a target scene are controlled in an interlocking manner;

a receiving unit 403, configured to receive switch type selection information sent by a user through a control panel;

a determining unit 404, configured to determine a switch type selected by a user according to the switch type selection information, where the switch type includes a multi-control group switch and a scene switch;

a first execution unit 405, configured to execute linkage control on multiple sub-devices corresponding to the multi-control group control information when the switch type selected by the user is a multi-control group switch;

and a second executing unit 406, configured to execute linkage control of multiple sub-devices corresponding to the target scene when the switch type selected by the user is a scene switch.

In this embodiment, operations performed by each unit in the cloud device are similar to those performed by the cloud device described in the embodiment shown in fig. 2, and are not described herein again.

In this embodiment, the determining unit 404 may determine the switch type selected by the user according to the switch type selection information sent by the user, and when it is determined that the switch type selected by the user is a multi-control group switch, the first executing unit 405 executes the linkage control of the multiple sub-devices corresponding to the multi-control group control information; when it is determined that the switch type selected by the user is the scene switch, the second execution unit 406 executes the linkage control of the plurality of sub-devices corresponding to the target scene, and therefore, the user only needs to switch the multi-control group switch or the scene switch as needed, and can simultaneously realize the linkage control of the common switch or the scene switch through a single device without purchasing two switches. Meanwhile, a user only needs to select the switch type on one control panel and operate the selected switch, and the user can use the product conveniently.

Referring to fig. 5, an embodiment of the cloud device in the embodiment of the present application includes:

a first obtaining unit 501, configured to obtain multi-control group control information, where the multi-control group control information is used to indicate linkage control of multiple pieces of sub-equipment;

a second obtaining unit 502, configured to obtain scene switch control information, where the scene switch control information is used to indicate that multiple sub-devices corresponding to a target scene are controlled in a linkage manner;

a receiving unit 503, configured to receive switch type selection information sent by a user through a control panel;

a judging unit 504, configured to judge, according to the switch type selection information, a switch type selected by the user, where the switch type includes a multi-control group switch and a scene switch;

a first executing unit 505, configured to execute linkage control on multiple sub-devices corresponding to the multi-control group control information when the switch type selected by the user is a multi-control group switch;

and a second executing unit 506, configured to execute linkage control of multiple sub-devices corresponding to the target scene when the switch type selected by the user is a scene switch.

In a preferred embodiment of this embodiment, the first obtaining unit 501 is specifically configured to receive multiple pieces of sub-device information sent by a control panel, where each piece of sub-device information corresponds to one sub-device, and establish a linkage control relationship between the multiple pieces of sub-devices according to the multiple pieces of sub-device information to obtain multiple control group control information.

In another preferred implementation manner of this embodiment, the cloud device further includes:

a screening unit 507, configured to screen, according to the sub-device information, a target sub-device from the multiple pieces of sub-device information;

an adding unit 508, configured to add the target sub-device to a multi-control group, where the multi-control group is a control group formed by a plurality of sub-devices.

In another preferred implementation manner of this embodiment, the receiving unit 503 is further configured to receive a sub-device deleting instruction sent by the control panel;

the cloud end equipment also comprises:

a deleting unit 509, configured to delete the sub-device in the multi-control group according to the sub-device deleting instruction, where the multi-control group is a control group formed by a plurality of sub-devices.

In another preferred embodiment of this embodiment, the second obtaining unit 502 is specifically configured to receive multiple pieces of sub-device information corresponding to a target scene sent by the control panel, and establish a linkage control relationship between the multiple pieces of sub-devices according to the multiple pieces of sub-device information corresponding to the target scene, so as to obtain the scene switch control information.

In another preferred implementation manner of this embodiment, the receiving unit 503 is further configured to receive a trigger condition of a target scene set by a user;

the second executing unit 506 is specifically configured to execute the linkage control of the multiple sub-devices corresponding to the target scene when the trigger condition of the target scene is achieved.

In another preferred implementation manner of this embodiment, the second obtaining unit 502 is further configured to obtain a plurality of scene identifiers, where each scene identifier corresponds to one target scene;

the cloud end equipment also comprises:

a comparing unit 510, configured to compare multiple locally stored scene identifiers with the scene identifiers included in the switch type selection information, and determine a target scene corresponding to the scene identifier included in the switch type selection information;

the second execution unit 506 is specifically configured to execute coordinated control of a plurality of sub-devices corresponding to the determined target scene.

In this embodiment, operations performed by each unit in the cloud device are similar to those performed by the cloud device described in the embodiment shown in fig. 3, and are not described herein again.

Referring to fig. 6, a description is given below of a cloud device in an embodiment of the present application, where an embodiment of the cloud device in the embodiment of the present application includes:

the cloud device 600 may include one or more Central Processing Units (CPUs) 601 and a memory 605, where one or more applications or data are stored in the memory 605.

The memory 605 may be volatile storage or persistent storage, among other things. The program stored in the memory 605 may include one or more modules, each of which may include a series of instructions operating on a cloud-based device. Further, the central processor 601 may be configured to communicate with the memory 605, and execute a series of instruction operations in the memory 605 on the cloud device 600.

The cloud 600 may also include one or more power supplies 602, one or more wired or wireless network interfaces 603, one or more input-output interfaces 604, and/or one or more operating systems, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

The central processing unit 601 may perform the operations performed by the cloud in the embodiments shown in fig. 2 to fig. 3, which are not described herein again.

An embodiment of the present application further provides a computer storage medium, where one embodiment includes: the computer storage medium has instructions stored therein, which when executed on a computer, cause the computer to perform the operations performed by the cloud in the embodiments of fig. 2-3.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other media capable of storing program codes.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种智能烟灶系统及其烹饪指导方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!