CN105807618B - Control method and first central control equipment - Google Patents

Control method and first central control equipment Download PDF

Info

Publication number
CN105807618B
CN105807618B CN201410849475.8A CN201410849475A CN105807618B CN 105807618 B CN105807618 B CN 105807618B CN 201410849475 A CN201410849475 A CN 201410849475A CN 105807618 B CN105807618 B CN 105807618B
Authority
CN
China
Prior art keywords
central control
control device
equipment
address
transmission path
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
CN201410849475.8A
Other languages
Chinese (zh)
Other versions
CN105807618A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410849475.8A priority Critical patent/CN105807618B/en
Publication of CN105807618A publication Critical patent/CN105807618A/en
Application granted granted Critical
Publication of CN105807618B publication Critical patent/CN105807618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a control method and first central control equipment; the method comprises the following steps: obtaining a linkage rule; when the equipment state of the first intelligent household equipment is changed, the changed equipment state of the first intelligent household equipment is obtained through the second communication channel; determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule; obtaining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronous information; the shortest transmission path is a transmission path between central control devices of the multistage control system; and controlling the second intelligent household equipment based on the shortest transmission path.

Description

Control method and first central control equipment
Technical Field
The invention relates to a control technology, in particular to a control method and first central control equipment.
Background
With the development of network technology and intelligent devices, more and more traditional devices can be connected to a network, such as intelligent devices like intelligent bulbs and intelligent sockets; the user can control the intelligent equipment through the control terminal. However, the way of controlling all the intelligent devices through one control terminal causes the intelligent devices to lack correlation, that is, the state change of one intelligent device cannot trigger the state change of other related intelligent devices, which is not beneficial to the realization of the automation of the smart home.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a control method and a first central control device, which can associate smart home devices with each other, thereby implementing automation of smart home.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a control method, which is applied to first central control equipment; the first central control equipment establishes a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the first central control equipment stores synchronous information which is synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; each central control device in the multilevel control system establishes a second communication channel with at least one intelligent household device based on at least one transmission protocol; each intelligent household device is provided with a first control mode and a second control mode; the first control mode is a control mode responding to receiving user operation; the second control mode is a control mode responding to the control instruction sent by the central control equipment connected with the second control mode; the method comprises the following steps:
obtaining a linkage rule;
when the equipment state of the first intelligent household equipment is changed, the changed equipment state of the first intelligent household equipment is obtained through the second communication channel;
determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule;
determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information; the shortest transmission path is a transmission path between central control devices of the multistage control system;
and controlling the second intelligent household equipment based on the shortest transmission path.
The embodiment of the present invention further provides a first central control device, where the first central control device includes: a first communication unit, a second communication unit and a storage unit; the first communication unit is used for establishing a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the second communication unit is used for establishing a second communication channel with at least one intelligent household device based on at least one transmission protocol; the storage unit is used for storing synchronous information synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; the first central control device further comprises: a first obtaining unit, a second obtaining unit, a determining unit and a control unit; wherein the content of the first and second substances,
the first obtaining unit is used for obtaining a linkage rule;
the second obtaining unit is configured to obtain, when the device state of the first smart home device changes, the changed device state of the first smart home device through the second communication channel established by the second communication unit;
the determining unit is configured to determine, based on the changed device state of the first smart home device obtained by the second obtaining unit and the linkage rule obtained by the first obtaining unit, a second smart home device that needs to be controlled; determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information stored in the storage unit; the shortest transmission path is a transmission path between central control devices of the multistage control system;
the control unit is configured to control the second smart home device based on the shortest transmission path determined by the determination unit.
According to the control method and the first central control device provided by the embodiment of the invention, a plurality of intelligent home devices are associated through a multi-stage control system formed by the first central control device and other central control devices, so that when the device state of the first intelligent home device is changed, a second intelligent home device which is associated with the changed device state of the first intelligent home device and needs to be controlled is determined; and controlling the second smart home device based on the obtained shortest transmission path. Therefore, the technical scheme of the embodiment of the invention realizes mutual association of the intelligent household equipment, and a control terminal is not needed to control all the intelligent household equipment, so that the state of one intelligent household equipment can trigger other intelligent household equipment to change after the state of the intelligent household equipment changes, the operation experience of a user is greatly improved, and the automation of intelligent household is realized.
Drawings
Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the invention;
FIG. 2 is a topology diagram of a multi-stage control system in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a control method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first central control device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
The embodiment of the invention provides a control method, which is applied to first central control equipment; the first central control equipment establishes a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the first central control equipment stores synchronous information which is synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; and each central control device in the multilevel control system establishes a second communication channel with at least one intelligent household device based on at least one transmission protocol. Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the invention; as shown in fig. 1, the control method includes:
step 101: and obtaining the linkage rule.
In this embodiment, the first central control device and the other central control devices have a message forwarding function, and control the smart home devices connected to the central control device or the other central control devices based on various sent messages. The first central control device and the other central control devices form a multi-level control system, and the first central control device and the other central control devices can be specifically realized by a router. Specifically, the multi-level control system may be a multi-level control system of a certain user, for example, a home of the user has multiple rooms, and each room performs message forwarding through a central control device; or the home of the second user and the home of the parent of the second user are associated to be the same user name, each room in the home of the second user is forwarded through one central control device, each room in the home of the parent of the second user is forwarded through one central control device, and the home of the second user and the home of the parent of the second user are forwarded through one total central control device to the central control device in the home of the second user and the central control device in the home of the parent of the second user. Taking the first central control device and the other central control devices as routers as an example, fig. 2 is a topological diagram of a multi-level control system in the embodiment of the present invention, as shown in fig. 2, the multi-level control system includes a first-level router 1, a router 1.1 and a router 1.2 connected to the router 1, a router 1.1.1 connected to the router 1.1, an intelligent home device 2 and an intelligent home device 3, an intelligent home device 4 connected to the router 1.2, an intelligent home device 5 and an intelligent home device, and an intelligent home device 1 connected to the router 1.1.1; the intelligent household equipment in the multilevel control system can be any intelligent equipment which can be wirelessly connected and has a wireless control function, such as an intelligent bulb, an intelligent socket, various intelligent household appliances or various sensors, and the like, wherein the sensors are not limited to motion sensors, temperature sensors, humidity sensors and distance sensors; the intelligent household equipment and the central control equipment can be connected based on at least one transmission protocol, and the transmission protocol is not limited to local area network transmission protocols such as a Bluetooth transmission protocol or a Zigbee transmission protocol. The central control devices are connected based on a preset communication Protocol, and the preset communication Protocol is not limited to Point-to-Point protocols (PPPoE, Point-to-Point Protocol over Ethernet) and the like on the Ethernet.
Here, each central control device of the multi-level control system stores therein a linkage rule related to the smart home device to which the central control device is directly or indirectly connected, and thus the linkage rule stored in each central control device may be different. As shown in fig. 2, the linkage rule stored in the router 1.1 is related to the smart home devices 1, 2 and 3, wherein the smart home devices 2 and 3 are directly connected to the router 1.1, and the message forwarding is performed between the smart home devices 1 and 1.1 through the router 1.1.1, so that the smart home devices 1 and 1.1 are indirectly connected. The linkage rule includes a trigger condition of any one of the smart home devices 1, 2 and 3 and a state that the other smart home devices need to be linked to switch after the trigger condition is triggered. Table 1 is a schematic table of the linkage rule in the embodiment of the present invention, which is a schematic diagram of the linkage rule in the router 1.1, and as shown in table 1, when the state of the smart home device 1 is the start (on) state, the smart home device 2 is triggered to execute the start (on) action, and the color value of the state bit where the smart home device 2 is started is [20,50,100], and the brightness value is 80. As can be seen from table 1, the state of the smart home device 3 is irrelevant to the states of the smart home device 1 and the smart home device 2, and therefore, the smart home device 3 has no linkage relationship with the smart home device 1 and the smart home device 2.
Device name Status set name Status value
Intelligent household equipment 1 On/off 1
Intelligent household equipment 2 color [20,50,100]
Intelligent household equipment 2 brightness 80
Intelligent household equipment 2 On/off 1
Intelligent household equipment 3 temperature 23
TABLE 1
In this embodiment, the linkage rule may be configured and set by the user on the first central control device; the other central control devices can also synchronize to the first central control device.
Step 102: and when the equipment state of the first intelligent household equipment is changed, obtaining the changed equipment state of the first intelligent household equipment through the second communication channel.
Here, the device state of the first smart home device is not limited to the on/off state of the device, and may be a state when the detected first parameter reaches the first threshold. For example, when the first smart home device is a temperature sensor, when a temperature value detected by the temperature sensor reaches a first threshold value, the state of the temperature sensor is determined to be a first state, and when the temperature value detected by the temperature sensor reaches a second threshold value, the state of the temperature sensor is determined to be a second state. Alternatively, the state at which the detected first parameter reaches the first threshold may be a state that characterizes other devices reached. For example, the first smart home device is a distance sensor, the distance sensor is arranged inside a door frame of a room, and the distance between the first smart home device and the door can be detected through the distance sensor so as to determine whether the door is in an open state or a closed state at the moment.
Step 103: and determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule.
In this embodiment, the first central control device searches for a linkage rule, stored in the first central control device, as shown in table 1, based on the changed device state of the first smart home device, to determine a second smart home device that needs to be controlled, where the second smart home device is a smart home device that needs to execute a corresponding action after meeting a trigger condition, that is, the changed device state of the first smart home device. After the smart home device 1 described in table 1 is triggered to satisfy the first state, correspondingly, the smart home device 2 needs to execute a specific action and satisfy the specific state.
Step 104: determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information; the shortest transmission path is a transmission path between the central control devices of the multi-stage control system.
Specifically, the synchronization information includes address information of the other central control devices and identifiers of the smart home devices connected to the other central control devices. Table 2 is a schematic table of the synchronization information in the embodiment of the present invention, which is the synchronization information in the router 1.1 shown in fig. 2. As shown in table 2, the router 1.1 stores the address of the smart home device 2, the address of the smart home device 3, and the address of the previous-stage router 1, which are directly connected to the router 1.1, and further includes the address of the smart home device 1 attached to the router 1.1.1, and in this illustration, the address of the smart home device 1 is represented by the address of the router 1.1.1.
Device name Address
Intelligent household equipment 1 Address of router 1.1.1
Intelligent household equipment 2 Address of intelligent household equipment 2
Intelligent household equipment 3 Address of intelligent household equipment 3
Others Address of router 1
TABLE 2
In this embodiment, the relationship between the first smart home device and the second smart home device may be divided into the following two types: the first type is that the first smart home device and the second smart home device are connected to the same central control device (such as the first central control device); the second type is that the first smart home devices and the second smart home devices are connected to different central control devices, if the first smart home devices are connected to a first central control device, the second smart home devices are connected to a second central control device, and the first central control device and the second central control device can be connected through one central control device or a plurality of central control devices. When the relationship between the first smart home device and the second smart home device is the first implementation manner, that is, when both the first smart home device and the second smart home device are connected to the first central control device, the shortest transmission path between the first smart home device and the second smart home device is the transmission path in the first central control device. When the relationship between the first smart home device and the second smart home device is the second implementation manner, that is, the first smart home device is connected to a first central control device, and the second smart home device is connected to a second central control device, the shortest transmission path between the first smart home device and the second smart home device is a first transmission path between the first central control device and the second central control device; the first transmission path is a transmission path with the least number of central control devices included between the first central control device and the second central control device.
Step 105: and controlling the second intelligent household equipment based on the shortest transmission path.
In this step, the first central control device sends the changed device state of the first smart home device to a second central control device connected to the second smart home device according to the shortest transmission path, the second central control device generates a first instruction matched with the changed device state of the first smart home device based on a linkage rule, and sends the first instruction to the second smart home device;
or the first central control device generates a first instruction matched with the changed device state of the first intelligent household device based on the linkage rule, sends the first instruction to a second central control device connected with the second intelligent household device according to the shortest transmission path, and sends the first instruction to the second intelligent household device through the second central control device.
Specifically, the linkage rule includes a trigger condition of the smart home device and a state that the other smart home devices that need to be linked after the trigger condition is triggered need to be switched, and may be specifically shown in table 1. One mode is that the first central control device may send the changed device state of the first smart home device to a second central control device connected to the second smart home device according to the shortest transmission path, the second central control device generates a first instruction based on a state to be switched of other smart home devices that need to be linked after the trigger condition is triggered in the linkage rule, and sends the first instruction to the second smart home device, so that the second smart home device executes a corresponding action based on the first instruction, and the second smart home device switches the state. The other mode is that the first central control device generates a first instruction based on the state to be switched of other intelligent home devices which need to be linked after the trigger condition is triggered in the linkage rule, sends the first instruction to a second central control device connected with the second intelligent home device according to the shortest transmission path, and then sends the first instruction to the second intelligent home device through the second central control device, so that the second intelligent home device executes corresponding actions based on the first instruction, and the second intelligent home device switches the state.
By adopting the technical scheme of the embodiment of the invention, the mutual association of the intelligent household equipment is realized, and a control terminal is not needed to control all the intelligent household equipment, so that the state of other intelligent household equipment can be triggered to change after the state of one intelligent household equipment is changed, the operation experience of a user is greatly improved, and the automation of intelligent household is realized.
Example two
The embodiment of the invention also provides a control method, which is applied to the first central control equipment; the first central control equipment establishes a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the first central control equipment stores synchronous information which is synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; and each central control device in the multilevel control system establishes a second communication channel with at least one intelligent household device based on at least one transmission protocol. In this embodiment, both the first smart home device and the second smart home device are connected to the first central control device. FIG. 3 is a flowchart illustrating a control method according to a second embodiment of the present invention; as shown in fig. 3, the control method includes:
step 201: and obtaining the linkage rule.
In this embodiment, the first central control device and the other central control devices have a message forwarding function, and control the smart home devices connected to the central control device or the other central control devices based on various sent messages. The first central control device and the other central control devices form a multi-level control system, and the first central control device and the other central control devices can be specifically realized by a router. Specifically, the multi-level control system may be a multi-level control system of a certain user, for example, a home of the user has multiple rooms, and each room performs message forwarding through a central control device; or the home of the second user and the home of the parent of the second user are associated to be the same user name, each room in the home of the second user is forwarded through one central control device, each room in the home of the parent of the second user is forwarded through one central control device, and the home of the second user and the home of the parent of the second user are forwarded through one total central control device to the central control device in the home of the second user and the central control device in the home of the parent of the second user. Taking the first central control device and the other central control devices as routers for example, as shown in fig. 2, the multistage control system includes a first-stage router 1, a router 1.1 and a router 1.2 connected to the router 1, a router 1.1.1 connected to the router 1.1, an intelligent home device 2 and an intelligent home device 3, an intelligent home device 4 connected to the router 1.2, an intelligent home device 5 and an intelligent home device, and an intelligent home device 1 connected to the router 1.1.1; the intelligent household equipment in the multilevel control system can be any intelligent equipment which can be wirelessly connected and has a wireless control function, such as an intelligent bulb, an intelligent socket, various intelligent household appliances or various sensors, and the like, wherein the sensors are not limited to motion sensors, temperature sensors, humidity sensors and distance sensors; the intelligent household equipment and the central control equipment can be connected based on at least one transmission protocol, and the transmission protocol is not limited to local area network transmission protocols such as a Bluetooth transmission protocol or a Zigbee transmission protocol. The central control equipment establishes connection based on a preset communication protocol, and the preset communication protocol is not limited to PPPoE.
Here, each central control device of the multi-level control system stores therein a linkage rule related to the smart home device to which the central control device is directly or indirectly connected, and thus the linkage rule stored in each central control device may be different. As shown in fig. 2, the linkage rule stored in the router 1.1 is related to the smart home devices 1, 2 and 3, wherein the smart home devices 2 and 3 are directly connected to the router 1.1, and the message forwarding is performed between the smart home devices 1 and 1.1 through the router 1.1.1, so that the smart home devices 1 and 1.1 are indirectly connected. The linkage rule includes a trigger condition of any one of the smart home devices 1, 2 and 3 and a state that the other smart home devices need to be linked to switch after the trigger condition is triggered. Table 1 is a schematic diagram of a linkage rule in the embodiment of the present invention, which is a schematic diagram of the linkage rule in the router 1.1, and as shown in table 1, when the state of the smart home device 1 is a start (on) state, the smart home device 2 is triggered to execute a start (on) action, and a color value of a state bit where the smart home device 2 is started is [20,50,100], and a brightness value is 80. As can be seen from table 1, the state of the smart home device 3 is irrelevant to the states of the smart home device 1 and the smart home device 2, and therefore, the smart home device 3 has no linkage relationship with the smart home device 1 and the smart home device 2.
In this embodiment, the linkage rule may be configured and set by the user on the first central control device; the other central control devices can also synchronize to the first central control device.
Step 202: and when the equipment state of the first intelligent household equipment is changed, obtaining the changed equipment state of the first intelligent household equipment through the second communication channel.
Here, the device state of the first smart home device is not limited to the on/off state of the device, and may be a state when the detected first parameter reaches the first threshold. For example, when the first smart home device is a temperature sensor, when a temperature value detected by the temperature sensor reaches a first threshold value, the state of the temperature sensor is determined to be a first state, and when the temperature value detected by the temperature sensor reaches a second threshold value, the state of the temperature sensor is determined to be a second state. Alternatively, the state at which the detected first parameter reaches the first threshold may be a state that characterizes other devices reached. For example, the first smart home device is a distance sensor, the distance sensor is arranged inside a door frame of a room, and the distance between the first smart home device and the door can be detected through the distance sensor so as to determine whether the door is in an open state or a closed state at the moment.
Step 203: and determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule.
In this embodiment, the first central control device searches for a linkage rule, stored in the first central control device, as shown in table 1, based on the changed device state of the first smart home device, to determine a second smart home device that needs to be controlled, where the second smart home device is a smart home device that needs to execute a corresponding action after meeting a trigger condition, that is, the changed device state of the first smart home device. After the smart home device 1 described in table 1 is triggered to satisfy the first state, correspondingly, the smart home device 2 needs to execute a specific action and satisfy the specific state.
Step 204: and retrieving the synchronous information, and taking the transmission path of the first central control equipment as the shortest transmission path when the synchronous information is determined to comprise the address of the second intelligent household equipment.
Specifically, the synchronization information includes address information of the other central control devices and identifiers of the smart home devices connected to the other central control devices. As shown in table 2, the router 1.1 stores the address of the smart home device 2, the address of the smart home device 3, and the address of the previous-stage router 1, which are directly connected to the router 1.1, and further includes the address of the smart home device 1 hooked to the router 1.1.1, and in this illustration, the address of the smart home device 1 is represented by the address of the router 1.1.1. In this embodiment, the first smart home device and the second smart home device are connected to a same central control device (for example, the first central control device), and then a shortest transmission path between the first smart home device and the second smart home device is a transmission path in the first central control device.
Step 205: and generating a first instruction matched with the changed equipment state of the first intelligent household equipment based on the linkage rule, and sending the first instruction to the second intelligent household equipment.
In this embodiment, the first smart home device and the second smart home device are connected to the first central control device, and the first central control device generates a first instruction matched with the changed device state of the first smart home device based on the linkage rule, and sends the first instruction to the second smart home device.
Specifically, the linkage rule includes a trigger condition of the smart home device and a state that the other smart home devices that need to be linked after the trigger condition is triggered need to be switched, and may be specifically shown in table 1. In this embodiment, the first central control device generates a first instruction based on the state that other smart home devices that need to be linked need to be switched after the trigger condition is triggered in the linkage rule, and sends the first instruction to the second smart home device, so that the second smart home device executes a corresponding action based on the first instruction, and the second smart home device switches the state.
Specifically, the linkage rule described in this embodiment can be specifically implemented by the following program statements:
the program statements are linkage rules in the router 1.2 shown in fig. 2, g4 represents the smart home devices 4, and g6 represents the smart home devices 6. The program statements indicate that when the smart home device 4 triggers a condition (trigger), the smart home device 6 executes an action (action), that is, the smart home device triggering the condition and the smart home device executing the action are both connected to the same central control device, and all processes of searching, determining and executing can be completed in the central control device.
By adopting the technical scheme of the embodiment of the invention, the mutual association of the intelligent household equipment is realized, and a control terminal is not needed to control all the intelligent household equipment, so that the state of other intelligent household equipment can be triggered to change after the state of one intelligent household equipment is changed, the operation experience of a user is greatly improved, and the automation of intelligent household is realized.
EXAMPLE III
The embodiment of the invention also provides a control method, which is applied to the first central control equipment; the first central control equipment establishes a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the first central control equipment stores synchronous information which is synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; and each central control device in the multilevel control system establishes a second communication channel with at least one intelligent household device based on at least one transmission protocol. In this embodiment, a first smart home device is connected to the first central control device, and a second smart home device is connected to the second central control device. FIG. 4 is a flowchart illustrating a control method according to a third embodiment of the present invention; as shown in fig. 4, the control method includes:
step 301: and obtaining the linkage rule.
In this embodiment, the first central control device and the other central control devices have a message forwarding function, and control the smart home devices connected to the central control device or the other central control devices based on various sent messages. The first central control device and the other central control devices form a multi-level control system, and the first central control device and the other central control devices can be specifically realized by a router. Specifically, the multi-level control system may be a multi-level control system of a certain user, for example, a home of the user has multiple rooms, and each room performs message forwarding through a central control device; or the home of the second user and the home of the parent of the second user are associated to be the same user name, each room in the home of the second user is forwarded through one central control device, each room in the home of the parent of the second user is forwarded through one central control device, and the home of the second user and the home of the parent of the second user are forwarded through one total central control device to the central control device in the home of the second user and the central control device in the home of the parent of the second user. Taking the first central control device and the other central control devices as routers for example, as shown in fig. 2, the multistage control system includes a first-stage router 1, a router 1.1 and a router 1.2 connected to the router 1, a router 1.1.1 connected to the router 1.1, an intelligent home device 2 and an intelligent home device 3, an intelligent home device 4 connected to the router 1.2, an intelligent home device 5 and an intelligent home device, and an intelligent home device 1 connected to the router 1.1.1; the intelligent household equipment in the multilevel control system can be any intelligent equipment which can be wirelessly connected and has a wireless control function, such as an intelligent bulb, an intelligent socket, various intelligent household appliances or various sensors, and the like, wherein the sensors are not limited to motion sensors, temperature sensors, humidity sensors and distance sensors; the intelligent household equipment and the central control equipment can be connected based on at least one transmission protocol, and the transmission protocol is not limited to local area network transmission protocols such as a Bluetooth transmission protocol or a Zigbee transmission protocol. The central control equipment establishes connection based on a preset communication protocol, and the preset communication protocol is not limited to PPPoE.
Here, each central control device of the multi-level control system stores therein a linkage rule related to the smart home device to which the central control device is directly or indirectly connected, and thus the linkage rule stored in each central control device may be different. As shown in fig. 2, the linkage rule stored in the router 1.1 is related to the smart home devices 1, 2 and 3, wherein the smart home devices 2 and 3 are directly connected to the router 1.1, and the message forwarding is performed between the smart home devices 1 and 1.1 through the router 1.1.1, so that the smart home devices 1 and 1.1 are indirectly connected. The linkage rule includes a trigger condition of any one of the smart home devices 1, 2 and 3 and a state that the other smart home devices need to be linked to switch after the trigger condition is triggered. Table 1 is a schematic diagram of a linkage rule in the embodiment of the present invention, which is a schematic diagram of the linkage rule in the router 1.1, and as shown in table 1, when the state of the smart home device 1 is a start (on) state, the smart home device 2 is triggered to execute a start (on) action, and a color value of a state bit where the smart home device 2 is started is [20,50,100], and a brightness value is 80. As can be seen from table 1, the state of the smart home device 3 is irrelevant to the states of the smart home device 1 and the smart home device 2, and therefore, the smart home device 3 has no linkage relationship with the smart home device 1 and the smart home device 2.
In this embodiment, the linkage rule may be configured and set by the user on the first central control device; the other central control devices can also synchronize to the first central control device.
Step 302: and when the equipment state of the first intelligent household equipment is changed, obtaining the changed equipment state of the first intelligent household equipment through the second communication channel.
Here, the device state of the first smart home device is not limited to the on/off state of the device, and may be a state when the detected first parameter reaches the first threshold. For example, when the first smart home device is a temperature sensor, when a temperature value detected by the temperature sensor reaches a first threshold value, the state of the temperature sensor is determined to be a first state, and when the temperature value detected by the temperature sensor reaches a second threshold value, the state of the temperature sensor is determined to be a second state. Alternatively, the state at which the detected first parameter reaches the first threshold may be a state that characterizes other devices reached. For example, the first smart home device is a distance sensor, the distance sensor is arranged inside a door frame of a room, and the distance between the first smart home device and the door can be detected through the distance sensor so as to determine whether the door is in an open state or a closed state at the moment.
Step 303: and determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule.
In this embodiment, the first central control device searches for a linkage rule, stored in the first central control device, as shown in table 1, based on the changed device state of the first smart home device, to determine a second smart home device that needs to be controlled, where the second smart home device is a smart home device that needs to execute a corresponding action after meeting a trigger condition, that is, the changed device state of the first smart home device. After the smart home device 1 described in table 1 is triggered to satisfy the first state, correspondingly, the smart home device 2 needs to execute a specific action and satisfy the specific state.
Step 304: obtaining an address of the second central control device connected with the second smart home device based on the synchronization information, and determining a first transmission path according to the address of the first central control device and the address of the second central control device, wherein the number of the central control devices in the first transmission path is the least; and taking the first transmission path as the shortest transmission path.
Specifically, the synchronization information includes address information of the other central control devices and identifiers of the smart home devices connected to the other central control devices. As shown by taking the central control device as a router, as shown in table 2, the router 1.1 stores the address of the smart home device 2, the address of the smart home device 3, and the address of the previous-stage router 1, which are directly connected to the router 1.1, and further includes the address of the smart home device 1 attached to the router 1.1.1, and in this illustration, the address of the smart home device 1 is represented by the address of the router 1.1.1; and the address of the last level router 1 to which said router 1.1 is connected (see the addresses of the other device names in table 2). In this step, obtaining the shortest transmission path between the first smart home device and the second smart home device based on the synchronization information includes: acquiring an address of second central control equipment connected with the second intelligent household equipment based on the synchronous information, and determining a first transmission path according to the address of the first central control equipment and the address of the second central control equipment; the first transmission path is a transmission path with the least number of central control devices included between the first central control device and the second central control device; and taking the first transmission path as the shortest transmission path. Wherein the determining a first transmission path according to the address of the first central control device and the address of the second central control device includes: the first central control device sends a first message to a third central control device according to the synchronization information and a preset transmission rule, so that the third central control device inquires the synchronization information in the third central control device according to the address of the second central control device in the first message; when the synchronization information of the third central control device is determined to include the address of the second central control device, determining a first transmission sub-path based on the address of the third central control device and the address of the second central control device; the first transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device; determining a transmission path of the first message and the first transmission sub-path between the first central control device and the third central control device as the first transmission path.
Specifically, the first central control device obtains an address of a higher-level central control device based on synchronization information stored in the first central control device, for example, an address of a higher-level router 1 of the router 1.1 in table 2, and sends first information to the higher-level central control device based on the address of the higher-level central control device, where the first information includes an address of the second central control device; the upper-level central control device inquires whether the address of the second central control device exists according to the synchronization information stored in the upper-level central control device, and when the address of the second central control device is inquired, the upper-level central control device is the third central control device in the embodiment of the invention; when the address of the second central control device is not queried, the upper-level central control device obtains the address of the upper-level central control device according to the synchronization information stored in the upper-level central control device, sends first information to the upper-level central control device based on the address of the upper-level central control device, the first information includes the address of the second central control device, and repeats the above process until a certain central control device finds that the address of the second central control device is in the synchronization information stored in the upper-level central control device, at this time, the certain central control device is the third central control device in the embodiment of the present invention; moreover, the sending rule of the first information is the preset transmission rule according to the embodiment of the present invention. Further, the third central control device serves as a parent central control device of the first central control device and also serves as a parent central control device of the second central control device, and then the synchronization information of the third central control device includes an address of the second central control device or addresses of other central control devices connected to the second central control device, in short, the third central control device can directly obtain a transmission path with the second central control device based on the synchronization information stored in the third central control device; in this embodiment, the first transmission sub-path is a transmission path with the smallest number of central control devices included between the third central control device and the second central control device.
Specifically, the linkage rule described in this embodiment can be specifically implemented by the following program statements:
the program statements are the linkage rules in the router 1.1.1 shown in fig. 2, g1 represents the smart home device 1, g2 represents the smart home device 2, g5 represents the smart home device 5, and g6 represents the smart home device 6. When the intelligent home equipment 1 triggers the condition, the triggering condition for executing the intelligent home equipment 5 is met, but the router 1.1 cannot find the address of the intelligent home equipment 5, so that the router 1.1.1 sends a message to the upper-level router 1.1; the message comprises other intelligent household equipment which needs to be linked after the triggering condition is triggered, and the message is shown in the following program statements:
after the router 1.1 searches for the synchronization information of itself, the address of the smart home device 5 still cannot be found, the message is uploaded to the router 1, the router 1 forwards the message to the router 1.2, and the router 1.2 executes the action of the smart home device 5.
In another embodiment, the synchronization information further includes address information of the central control device to which the other central control devices are respectively connected, that is, the synchronization information stored in each central control device includes addresses of other central control devices connected to the central control device, identifiers of smart home devices connected to the central control device, addresses of other central control devices connected to the other central control devices, and the like, that is, the synchronization information in each central control device includes an address of each central control device in the multi-level control system, an identifier of each smart home device, a connection relationship between the central control devices, a connection relationship between the central control device and the smart home devices, and the like, namely, the first control unit can directly obtain the address of the first central control device and the address of the second central control device to determine the first transmission path based on the self-stored synchronization information. In this embodiment, the determining a first transmission path according to the address of the first central control device and the address of the second central control device includes: the first central control device acquires address information of a third central control device according to the synchronization information, and determines a first transmission sub-path based on the address information of the first central control device and the address information of the third central control device; the third central control equipment is directly or indirectly connected with the first central control equipment and the second central control equipment; the first transmission sub-path is a transmission path with the least number of central control devices included between the first central control device and the third central control device; the first central control device determines a second transmission sub-path based on the address information of the third central control device and the address information of the second central control device; a transmission path with the least number of central control devices is arranged between the third central control device and the second central control device in the second transmission sub-path; and determining the first transmission path according to the first transmission sub-path and the second transmission sub-path.
Specifically, the first central control device obtains a parent central control device, that is, a third central control device, which is common to the first central control device and the second central control device, based on synchronization information stored in the first central control device; in this embodiment, based on a principle that a transmission path is shortest, the transmission path between the first central control device and the third central control device is a transmission path including the smallest number of central control devices; and a transmission path between the third central control device and the second central control device is a transmission path with the minimum number of central control devices, and based on this, the parent central control device which satisfies the shortest transmission path is obtained as the third central control device.
Step 305: and sending the changed equipment state of the first intelligent household equipment to second central control equipment connected with the second intelligent household equipment according to the shortest transmission path, generating a first instruction matched with the changed equipment state of the first intelligent household equipment by the second central control equipment based on a linkage rule, and sending the first instruction to the second intelligent household equipment.
In this embodiment, the linkage rule includes a trigger condition of the smart home device and a state that the other smart home devices that need to be linked after the trigger condition is triggered need to be switched, and may be specifically shown in table 1. The first central control device sends the changed device state of the first intelligent household device to a second central control device connected with a second intelligent household device according to the shortest transmission path, the second central control device generates a first instruction based on the state to be switched of other intelligent household devices which need to be linked after the triggering condition is triggered in the linkage rule, and sends the first instruction to the second intelligent household device, so that the second intelligent household device executes corresponding action based on the first instruction, and the second intelligent household device switches the state.
By adopting the technical scheme of the embodiment of the invention, the mutual association of the intelligent household equipment is realized, and a control terminal is not needed to control all the intelligent household equipment, so that the state of other intelligent household equipment can be triggered to change after the state of one intelligent household equipment is changed, the operation experience of a user is greatly improved, and the automation of intelligent household is realized.
Example four
The embodiment of the invention also provides the first central control equipment. Fig. 5 is a schematic composition diagram of a first central control device according to an embodiment of the present invention, and as shown in fig. 5, the first central control device includes: a first communication unit, a second communication unit and a storage unit; the first communication unit is used for establishing a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the second communication unit is used for establishing a second communication channel with at least one intelligent household device based on at least one transmission protocol; the storage unit is used for storing synchronous information synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; the first central control device further comprises: a first obtaining unit 51, a second obtaining unit 52, a determining unit 53, and a control unit 54; wherein the content of the first and second substances,
the first obtaining unit 51 is configured to obtain a linkage rule;
the second obtaining unit 52 is configured to, when the device state of the first smart home device changes, obtain the changed device state of the first smart home device through the second communication channel established by the second communication unit;
the determining unit 53 is configured to determine, based on the changed device state of the first smart home device obtained by the second obtaining unit 52 and the linkage rule obtained by the first obtaining unit 51, a second smart home device that needs to be controlled; determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information stored in the storage unit; the shortest transmission path is a transmission path between central control devices of the multistage control system;
the control unit 54 is configured to control the second smart home device based on the shortest transmission path determined by the determination unit 53.
Specifically, the control unit 54 is configured to send the changed device state of the first smart home device obtained by the second obtaining unit 52 to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, generate, by the second central control device based on a linkage rule, a first instruction matched with the changed device state of the first smart home device, and send the first instruction to the second smart home device; or, a first instruction matched with the changed device state of the first smart home device is generated based on the linkage rule, the first instruction is sent to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, and the second central control device sends the first instruction to the second smart home device.
It should be understood by those skilled in the art that the functions of the processing units in the first central control device according to the embodiment of the present invention may be understood by referring to the description of the control processing method, and the processing units in the first central control device according to the embodiment of the present invention may be implemented by analog circuits that implement the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE five
The embodiment of the invention also provides the first central control equipment. As shown in fig. 5, the first central control apparatus includes: a first communication unit, a second communication unit and a storage unit; the first communication unit is used for establishing a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the second communication unit is used for establishing a second communication channel with at least one intelligent household device based on at least one transmission protocol; the storage unit is used for storing synchronous information synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; the first central control device further comprises: a first obtaining unit 51, a second obtaining unit 52, a determining unit 53, and a control unit 54; wherein the content of the first and second substances,
the first obtaining unit 51 is configured to obtain a linkage rule;
the second obtaining unit 52 is configured to, when the device state of the first smart home device changes, obtain the changed device state of the first smart home device through the second communication channel established by the second communication unit;
the determining unit 53 is configured to determine, based on the changed device state of the first smart home device obtained by the second obtaining unit 52 and the linkage rule obtained by the first obtaining unit 51, a second smart home device that needs to be controlled; retrieving the synchronous information, and taking the transmission path of the first central control device as the shortest transmission path when the synchronous information is determined to include the address of the second intelligent household device;
the control unit 54 is configured to control the second smart home device based on the shortest transmission path determined by the determination unit 53.
Specifically, the control unit 54 is configured to send the changed device state of the first smart home device obtained by the second obtaining unit 52 to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, generate, by the second central control device based on a linkage rule, a first instruction matched with the changed device state of the first smart home device, and send the first instruction to the second smart home device; or, a first instruction matched with the changed device state of the first smart home device is generated based on the linkage rule, the first instruction is sent to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, and the second central control device sends the first instruction to the second smart home device.
It should be understood by those skilled in the art that the functions of the processing units in the first central control device according to the embodiment of the present invention may be understood by referring to the description of the control processing method, and the processing units in the first central control device according to the embodiment of the present invention may be implemented by analog circuits that implement the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE six
The embodiment of the invention also provides the first central control equipment. As shown in fig. 5, the first central control apparatus includes: a first communication unit, a second communication unit and a storage unit; the first communication unit is used for establishing a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the second communication unit is used for establishing a second communication channel with at least one intelligent household device based on at least one transmission protocol; the storage unit is used for storing synchronous information synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; the first central control device further comprises: a first obtaining unit 51, a second obtaining unit 52, a determining unit 53, and a control unit 54; the first intelligent household equipment is connected with the first central control equipment, and the second intelligent household equipment is connected with the second central control equipment;
the first obtaining unit 51 is configured to obtain a linkage rule;
the second obtaining unit 52 is configured to, when the device state of the first smart home device changes, obtain the changed device state of the first smart home device through the second communication channel established by the second communication unit;
the determining unit 53 is configured to determine, based on the changed device state of the first smart home device obtained by the second obtaining unit 52 and the linkage rule obtained by the first obtaining unit 51, a second smart home device that needs to be controlled; acquiring an address of second central control equipment connected with the second intelligent household equipment based on the synchronous information, and determining a first transmission path according to the address of the first central control equipment and the address of the second central control equipment; the first transmission path is a transmission path with the least number of central control devices included between the first central control device and the second central control device; determining the shortest transmission path based on the first transmission path;
the control unit 54 is configured to control the second smart home device based on the shortest transmission path determined by the determination unit 53.
Specifically, in one mode, the determining unit 53 is configured to send a first message to a third central control device through the first communication unit according to a preset transmission rule according to the synchronization information, so that the third central control device queries the synchronization information in the third central control device according to an address of the second central control device in the first message; when the synchronization information of the third central control device is determined to include the address of the second central control device, determining, based on the address of the third central control device and the address of the second central control device, that a first transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device; determining a transmission path of the first message and the first transmission sub-path between the first central control device and the third central control device as the first transmission path.
In another embodiment, the synchronization information further includes address information of the central control device connected to each of the other central control devices; the determining unit 53 is configured to obtain address information of a third central control device according to the synchronization information, and determine a first transmission sub-path based on the address information of the first central control device and the address information of the third central control device; the third central control equipment is directly or indirectly connected with the first central control equipment and the second central control equipment; the first transmission sub-path is a transmission path with the least number of central control devices included between the first central control device and the third central control device; determining a second transmission sub-path based on the address information of the third central control device and the address information of the second central control device; the second transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device; and determining the first transmission path according to the first transmission sub-path and the second transmission sub-path.
Specifically, the control unit 54 is configured to send the changed device state of the first smart home device obtained by the second obtaining unit 52 to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, generate, by the second central control device based on a linkage rule, a first instruction matched with the changed device state of the first smart home device, and send the first instruction to the second smart home device; or, a first instruction matched with the changed device state of the first smart home device is generated based on the linkage rule, the first instruction is sent to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit 53, and the second central control device sends the first instruction to the second smart home device.
It should be understood by those skilled in the art that the functions of the processing units in the first central control device according to the embodiment of the present invention may be understood by referring to the description of the control processing method, and the processing units in the first central control device according to the embodiment of the present invention may be implemented by analog circuits that implement the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In the fourth to sixth embodiments of the present invention, the first obtaining Unit 51 and the determining Unit 53 in the first central control device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a Programmable Gate Array (FPGA) in the first central control device in an actual application; the second obtaining unit 52 in the first central control device may be implemented by combining each sensor with a transceiver antenna in practical application; in practical applications, the control unit 54 may be implemented by a CPU, a DSP, or an FPGA in the first central control device in combination with a transceiver antenna.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (6)

1. A control method is applied to a first central control device; the first central control equipment establishes a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the first central control equipment stores synchronous information which is synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; each central control device in the multilevel control system establishes a second communication channel with at least one intelligent household device based on at least one transmission protocol; each intelligent household device is provided with a first control mode and a second control mode; the first control mode is a control mode responding to receiving user operation; the second control mode is a control mode responding to the control instruction sent by the central control equipment connected with the second control mode; the method comprises the following steps:
obtaining a linkage rule;
when the equipment state of the first intelligent household equipment is changed, the changed equipment state of the first intelligent household equipment is obtained through the second communication channel;
determining second intelligent household equipment needing to be controlled based on the changed equipment state of the first intelligent household equipment and the linkage rule; the central control equipment connected with the second intelligent household equipment is different from the central control equipment connected with the first intelligent household equipment;
determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information; the shortest transmission path is a transmission path between central control devices of the multistage control system;
controlling the second smart home device based on the shortest transmission path;
when the first smart home device is connected to the first central control device and the second smart home device is connected to the second central control device, determining the shortest transmission path between the first smart home device and the second smart home device based on the synchronization information includes:
acquiring an address of second central control equipment connected with the second intelligent household equipment based on the synchronous information, and determining a first transmission path according to the address of the first central control equipment and the address of the second central control equipment; the first transmission path is a transmission path with the least number of central control devices included between the first central control device and the second central control device;
taking the first transmission path as the shortest transmission path;
wherein the determining a first transmission path according to the address of the first central control device and the address of the second central control device includes:
acquiring an address of third central control equipment according to the address of the first central control equipment and the address of the second central control equipment; the third central control device serves as a parent central control device of the first central control device and the second central control device;
obtaining a first transmission path according to the address of the first central control device, the address of the second central control device and the address of the third central control device;
the obtaining a first transmission path according to the address of the first central control device, the address of the second central control device, and the address of the third central control device includes:
the first central control device sends a first message to a third central control device according to the synchronization information and a preset transmission rule, so that the third central control device inquires the synchronization information in the third central control device according to the address of the second central control device in the first message;
when the synchronization information of the third central control device is determined to include the address of the second central control device, determining a first transmission sub-path based on the address of the third central control device and the address of the second central control device; the first transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device;
determining a transmission path of the first message and the first transmission sub-path between the first central control device and the third central control device as the first transmission path;
alternatively, the first and second electrodes may be,
the synchronization information also comprises address information of the central control equipment which is respectively connected with the other central control equipment; the obtaining a first transmission path according to the address of the first central control device, the address of the second central control device, and the address of the third central control device includes:
the first central control device acquires address information of a third central control device according to the synchronization information, and determines a first transmission sub-path based on the address information of the first central control device and the address information of the third central control device; the third central control equipment is directly or indirectly connected with the first central control equipment and the second central control equipment; the first transmission sub-path is a transmission path with the least number of central control devices included between the first central control device and the third central control device;
the first central control device determines a second transmission sub-path based on the address information of the third central control device and the address information of the second central control device; the second transmission sub-path is a transmission path which has the smallest number of the central control devices and is arranged between the third central control device and the second central control device;
and determining the first transmission path according to the first transmission sub-path and the second transmission sub-path.
2. The method according to claim 1, wherein the controlling the second smart home device based on the shortest transmission path comprises:
the first central control device sends the changed device state of the first intelligent household device to a second central control device connected with the second intelligent household device according to the shortest transmission path, the second central control device generates a first instruction matched with the changed device state of the first intelligent household device based on a linkage rule, and the first instruction is sent to the second intelligent household device;
or the first central control device generates a first instruction matched with the changed device state of the first intelligent household device based on the linkage rule, sends the first instruction to a second central control device connected with the second intelligent household device according to the shortest transmission path, and sends the first instruction to the second intelligent household device through the second central control device.
3. The method of claim 1,
the second intelligent household equipment and the first intelligent household equipment are located in different rooms;
alternatively, the first and second electrodes may be,
the second intelligent household equipment and the first intelligent household equipment are located in different families.
4. A first central control apparatus, the first central control apparatus comprising: a first communication unit, a second communication unit and a storage unit; the first communication unit is used for establishing a first communication channel with other central control equipment based on a preset communication protocol so that the first central control equipment and the other central control equipment form a multi-level control system; the second communication unit is used for establishing a second communication channel with at least one intelligent household device based on at least one transmission protocol; the storage unit is used for storing synchronous information synchronous with other central control equipment; the synchronous information comprises address information of other central control devices and identifications of the intelligent home devices connected with the other central control devices; the first central control device further comprises: a first obtaining unit, a second obtaining unit, a determining unit and a control unit; wherein the content of the first and second substances,
the first obtaining unit is used for obtaining a linkage rule;
the second obtaining unit is configured to obtain, when the device state of the first smart home device changes, the changed device state of the first smart home device through the second communication channel established by the second communication unit; the central control equipment connected with the second intelligent household equipment is different from the central control equipment connected with the first intelligent household equipment;
the determining unit is configured to determine, based on the changed device state of the first smart home device obtained by the second obtaining unit and the linkage rule obtained by the first obtaining unit, a second smart home device that needs to be controlled; determining a shortest transmission path between the first intelligent household equipment and the second intelligent household equipment based on the synchronization information stored in the storage unit; the shortest transmission path is a transmission path between central control devices of the multistage control system;
when the first smart home device is connected to the first central control device and the second smart home device is connected to the second central control device, determining the shortest transmission path between the first smart home device and the second smart home device based on the synchronization information includes:
acquiring an address of second central control equipment connected with the second intelligent household equipment based on the synchronous information, and determining a first transmission path according to the address of the first central control equipment and the address of the second central control equipment; the first transmission path is a transmission path with the least number of central control devices included between the first central control device and the second central control device;
taking the first transmission path as the shortest transmission path;
wherein the determining a first transmission path according to the address of the first central control device and the address of the second central control device includes:
acquiring an address of third central control equipment according to the address of the first central control equipment and the address of the second central control equipment; the third central control device serves as a parent central control device of the first central control device and the second central control device;
obtaining the first transmission path according to the address of the first central control device, the address of the second central control device and the address of the third central control device;
the control unit is used for controlling the second intelligent household equipment based on the shortest transmission path determined by the determination unit;
the determining unit is configured to send a first message to a third central control device according to the synchronization information and a preset transmission rule through the first communication unit, so that the third central control device queries the synchronization information in the third central control device according to the address of the second central control device in the first message; when the synchronization information of the third central control device is determined to include the address of the second central control device, determining a first transmission sub-path based on the address of the third central control device and the address of the second central control device; the first transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device; determining a transmission path of the first message and the first transmission sub-path between the first central control device and the third central control device as the first transmission path;
alternatively, the first and second electrodes may be,
the synchronization information also comprises address information of the central control equipment which is respectively connected with the other central control equipment; the determining unit is configured to obtain address information of a third central control device according to the synchronization information, and determine a first transmission sub-path based on the address information of the first central control device and the address information of the third central control device; the third central control equipment is directly or indirectly connected with the first central control equipment and the second central control equipment; the first transmission sub-path is a transmission path with the least number of central control devices included between the first central control device and the third central control device; determining a second transmission sub-path based on the address information of the third central control device and the address information of the second central control device; the second transmission sub-path is a transmission path with the least number of central control devices included between the third central control device and the second central control device; and determining the first transmission path according to the first transmission sub-path and the second transmission sub-path.
5. The first central control device according to claim 4, wherein the control unit is configured to send the changed device state of the first smart home device obtained by the second obtaining unit to a second central control device connected to the second smart home device according to the shortest transmission path determined by the determining unit, generate a first instruction matched with the changed device state of the first smart home device by the second central control device based on a linkage rule, and send the first instruction to the second smart home device; or generating a first instruction matched with the changed equipment state of the first intelligent household equipment based on the linkage rule, sending the first instruction to second central control equipment connected with the second intelligent household equipment according to the shortest transmission path determined by the determining unit, and sending the first instruction to the second intelligent household equipment by the second central control equipment.
6. The first central control apparatus according to claim 4,
the second intelligent household equipment and the first intelligent household equipment are located in different rooms;
alternatively, the first and second electrodes may be,
the second intelligent household equipment and the first intelligent household equipment are located in different families.
CN201410849475.8A 2014-12-29 2014-12-29 Control method and first central control equipment Active CN105807618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849475.8A CN105807618B (en) 2014-12-29 2014-12-29 Control method and first central control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849475.8A CN105807618B (en) 2014-12-29 2014-12-29 Control method and first central control equipment

Publications (2)

Publication Number Publication Date
CN105807618A CN105807618A (en) 2016-07-27
CN105807618B true CN105807618B (en) 2019-12-24

Family

ID=56421400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849475.8A Active CN105807618B (en) 2014-12-29 2014-12-29 Control method and first central control equipment

Country Status (1)

Country Link
CN (1) CN105807618B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667858A (en) * 2017-03-27 2018-10-16 华为技术有限公司 A kind of interlock method of sensing equipment, apparatus and system
CN107094173A (en) * 2017-04-13 2017-08-25 深圳创维-Rgb电子有限公司 The intelligent control method and server of many equipment
CN108733005B (en) * 2017-04-21 2021-05-25 北京京东尚科信息技术有限公司 Method and device for controlling linkage of intelligent equipment
CN109617963B (en) * 2018-12-11 2021-08-17 Oppo广东移动通信有限公司 Equipment control method and device and Internet of things system
CN112202648B (en) * 2019-07-08 2022-12-06 杭州九阳小家电有限公司 Control method and system of networked home equipment
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system
CN111461198B (en) * 2020-03-27 2023-10-13 杭州海康威视数字技术股份有限公司 Action determining method, system and device
CN111669430B (en) * 2020-04-30 2021-12-31 华为技术有限公司 Communication method, method for controlling Internet of things equipment and electronic equipment
CN112511393B (en) * 2021-02-08 2022-04-15 腾讯科技(深圳)有限公司 Equipment linkage control method and device and storage medium
CN114070873A (en) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 Equipment linkage method and device in Internet of things, storage medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430356A (en) * 2001-12-30 2003-07-16 深圳市中兴通讯股份有限公司上海第二研究所 Channelizing code resource dynamic optimization distribution method of wideband CDMA system
CN102231158A (en) * 2011-06-17 2011-11-02 中国科学院计算技术研究所 Data set recommendation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260407A1 (en) * 2003-04-08 2004-12-23 William Wimsatt Home automation control architecture
CN102692898A (en) * 2012-05-08 2012-09-26 夏洋 Method, device, and system for controlling electrical appliance
CN103345214B (en) * 2013-06-17 2016-04-13 四川长虹电器股份有限公司 Based on the intelligent household electrical appliance linkage control method of middleware
CN103685733B (en) * 2013-11-18 2017-01-25 华为终端有限公司 Remote control method and terminal
CN104216379B (en) * 2014-09-09 2017-05-24 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1430356A (en) * 2001-12-30 2003-07-16 深圳市中兴通讯股份有限公司上海第二研究所 Channelizing code resource dynamic optimization distribution method of wideband CDMA system
CN102231158A (en) * 2011-06-17 2011-11-02 中国科学院计算技术研究所 Data set recommendation method and system

Also Published As

Publication number Publication date
CN105807618A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN105807618B (en) Control method and first central control equipment
US10476918B2 (en) Locale profile for a fabric network
CN109257259B (en) Scene linkage control method and device and household electrical appliance
AU2016216596B2 (en) Fabric network
WO2020098755A1 (en) Smart home control method, smart home device, and storage medium
US7197365B2 (en) Controller, program product, and storage medium
US20160174268A1 (en) Smart home controller and communication method thereof
US20150332165A1 (en) Hierarchical hybrid batch-incremental learning
CN105247831A (en) Flow table modifying method, flow table modifying device, and openflow network system
CN108431701B (en) Control method, control panel and control system of intelligent household equipment
CN106254244B (en) Merging flow table entry method based on SDN network
EP2883334A1 (en) Techniques for flooding optimization for link state protocols in a network topology
JP5974931B2 (en) Communication device
JP2021103888A (en) Notification control device, notification control system, notification control method, and program
CN103888504B (en) Main frame, slave and its communication means in intelligent domestic system
CN105162703A (en) Multi-level network topology intelligent discovery and generation method and system based on hybrid protocol
CN109219155A (en) Connection status optimization in mobile environment equipment
CN110609534A (en) Intelligent household control method and system
Guang et al. Application of Internet of Things (IoT) for home energy management
CN112152884A (en) Equipment control method and device and household appliance
US20170178492A1 (en) Improved and universal equipment control system
US9774519B2 (en) Peer-to-Peer building automation system without knowledge being required of network topology
CN109981424B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN111274319A (en) State information query method and device
CN112152885B (en) Equipment control method and device, household appliance and remote control equipment

Legal Events

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