Linkage control method, device, storage medium, server and gateway

By synchronizing LAN topology information and device status through the server, cross-LAN linkage control is achieved, solving the linkage control anomaly problem caused by changes in gateway network segments and ensuring the linkage reliability between devices.

CN117938923BActive Publication Date: 2025-09-30MIDEA INTELLIGENT LIGHTING & CONTROLS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410061606.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2025-09-30
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

In the prior art, when the network segment where the gateway is located changes, it is impossible to achieve linkage control of multiple sub-devices, resulting in abnormal scene linkage control.

Method used

The server synchronizes the connection topology information of each LAN, receives device status information, searches and controls the target device based on the topological connection relationship, and realizes cross-LAN linkage control.

Benefits of technology

Even if the devices are in different LANs, precise linkage control can still be achieved, reducing the abnormal impact of scene linkage and ensuring the reliability and stability of control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117938923B_ABST
    Figure CN117938923B_ABST
Patent Text Reader

Abstract

The present invention provides a linkage control method, device, storage medium, server and gateway. The linkage control method includes: synchronizing the connection topology information of each local area network, the connection topology information is used to represent the topological connection relationship between one or more online devices in the local area network and a main gateway; receiving device status information of each online device; based on the change of the device status information of the first target device, searching for the second target device based on the connection topology information; controlling the action of the second target device; wherein the first target device is a triggering device under the scene linkage control, the second target device is a controlled device under the scene linkage control, and the first target device and the second target device are online devices among M online devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technology, and in particular to a linkage control method, device, storage medium, server and gateway. Background Art

[0002] For some large-scale smart home application scenarios, multiple gateway devices are required to collaboratively manage multiple sub-devices.

[0003] In related technical solutions, in order to achieve the linkage of the above scenarios, a master-slave gateway solution is usually adopted to achieve the linkage control of multiple sub-devices.

[0004] However, the above linkage control solution can only be implemented in the same local area network. If the network segment where the gateway is located changes, the above linkage control scenario cannot be implemented. Summary of the Invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0006] To this end, a first aspect of the present invention is to provide a linkage control method.

[0007] A second aspect of the present invention is to provide another linkage control method.

[0008] A third aspect of the present invention is to provide a linkage control device.

[0009] A fourth aspect of the present invention is to provide another linkage control device.

[0010] A fifth aspect of the present invention is to provide yet another linkage control device.

[0011] A sixth aspect of the present invention is to provide another linkage control device.

[0012] A seventh aspect of the present invention provides a readable storage medium.

[0013] An eighth aspect of the present invention provides another readable storage medium.

[0014] A ninth aspect of the present invention provides a server.

[0015] A tenth aspect of the present invention provides a gateway.

[0016] In view of this, according to a first aspect of the present invention, a linkage control method is provided for a server, wherein N online devices out of M online devices communicate with the server through O main gateways, and P online devices out of the M online devices communicate with the server, the sum of N and P equals M, different main gateways are located in different local area networks, and in each local area network, the main gateway communicates with one or more online devices, N≤M, and M, N, and O are positive integers. The linkage control method includes: synchronizing connection topology information of each local area network, the connection topology information being used to represent the topological connection relationship between one or more online devices in the local area network and the main gateway; receiving device status information of each online device; based on a change in the device status information of the first target device, searching for a second target device based on the connection topology information; and controlling the action of the second target device; wherein the first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices out of the M online devices.

[0017] The present invention proposes a linkage control method. By running the linkage control method, linkage control of a first target device and a second target device can be achieved. During this process, linkage control can be achieved even if the first target device and the second target device are in different local area networks.

[0018] Specifically, since the server synchronizes the topological connection relationship of each local area network, the topological connection relationship can be used to find the second target device. Even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of the online device control under the scene linkage and affecting the work of the scene linkage.

[0019] The technical solution of the present invention is implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0020] In the above technical solution, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located can be perceived based on the device status information, so as to judge whether the device status information of the first target device has changed, and then determine whether the second target device needs to take action.

[0021] In the above technical solution, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0022] In the above technical solution, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0023] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0024] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0025] In the above technical solution, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0026] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0027] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0028] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0029] In the above technical solution, since the sum of N and P is equal to M, and N≤M, P can be equal to zero.

[0030] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0031] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0032] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0033] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0034] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0035] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0036] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0037] In some technical solutions, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0038] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0039] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0040] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0041] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0042] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0043] In addition, the linkage control method proposed in the present invention also has the following additional technical features.

[0044] In some technical solutions, optionally, controlling the action of the second target device specifically includes: searching for the target local area network where the second target device is located based on the connection topology information; when the target local area network where the second target device is located is found, sending control information to the target main gateway to enable the second target device to act; wherein, the target main gateway is the main gateway in the target local area network.

[0045] In this technical solution, when controlling the action of the second target device, the location of the second target device can be found based on the connection topology information, and then control information is sent to the second target device in a targeted manner to control the action of the second target device.

[0046] During this process, the server can directly send control information to the target main gateway to achieve control of the second target device. During this process, there is no need to repeatedly send control information to other main gateways. While reducing the overhead of instructions, it also reduces abnormal actions of other online devices that cause abnormal scene linkage.

[0047] In some technical solutions, the identity identification information of the second target device can be used as a search factor, and based on the search factor, a search is performed in the connection topology information to determine the target local area network where the second target device is located.

[0048] Since there is only one master gateway in each LAN, the target master gateway can be determined when the target LAN is determined, and the linkage control of the second target device can be achieved by sending control information to the target master gateway.

[0049] In some technical solutions, optionally, the target local area network also includes a slave gateway, and the second target device communicates with the target main gateway through the slave gateway, and sends control information to the target main gateway to enable the second target device to operate, specifically including: sending control information to the target main gateway so that the target main gateway sends the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to operate.

[0050] In this technical solution, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0051] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0052] In some technical solutions, optionally, the target local area network includes at least two gateways, and the target main gateway is obtained based on election of the at least two gateways.

[0053] In this technical solution, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0054] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0055] In some technical solutions, optionally, the target primary gateway is selected by using one of a timestamp, device identification information, or application specification.

[0056] In some technical solutions, optionally, controlling the action of the second target device also includes: when the target local area network where the second target device is located is not found, searching for the second target device based on P online devices communicating with the server; and sending control information to the second target device to make the second target device act.

[0057] In this technical solution, considering that not all online devices communicate with the server through the main gateway, if the target LAN where the second target device is located is not found, the second target device can be searched from P online devices that communicate directly with the server. In this process, the search and control of the second target device can be achieved.

[0058] During this process, the second target device can be accurately located and controlled.

[0059] According to a second aspect of the present invention, a linkage control method is provided for a first master gateway, wherein N of M online devices communicate with a server through O master gateways, and P of the M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. Within each local area network, the master gateway communicates with one or more online devices, where N≤M, and M, N, and O are positive integers. The first master gateway is any of the O master gateways. The linkage control method includes: synchronizing connection topology information of each local area network with the server, the connection topology information being used to represent a topological connection relationship between one or more online devices in the local area network and the master gateway; receiving device status information of each online device; searching for a second target device based on a change in the device status information of the first target device based on the connection topology information; and controlling an action of the second target device. The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

[0060] The present invention proposes a linkage control method, and linkage control of a first target device and a second target device can be achieved by running the linkage control method.

[0061] Specifically, since the server synchronizes the topological connection relationship of each local area network, when the second target device is not found in the local area network where the first main gateway is located, the server can use the topological connection relationship to find the second target device. Therefore, even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of online device control under scene linkage and affecting the work of scene linkage.

[0062] The technical solution of the present invention is implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0063] In the above technical solution, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located can be perceived based on the device status information, so as to judge whether the device status information of the first target device has changed, and then determine whether the second target device needs to take action.

[0064] In the above technical solution, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0065] In the above technical solution, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0066] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0067] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0068] In the above technical solution, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0069] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0070] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0071] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0072] In the above technical solution, since the sum of N and P is equal to M, and N≤M, P can be equal to zero.

[0073] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0074] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0075] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0076] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0077] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0078] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0079] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0080] In some technical solutions, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0081] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0082] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0083] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0084] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0085] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0086] In addition, the linkage control method proposed in the present invention also has the following additional technical features.

[0087] In some technical solutions, optionally, controlling the action of the second target device specifically includes: based on connection topology information, when it is found that the second target device is in the first local area network, sending control information to make the second target device act; wherein the first local area network is the local area network where the first main gateway is located.

[0088] In this technical solution, when controlling the action of the second target device, it is possible to determine whether the second target device is in the first local area network based on the connection topology information, and then control the action of the second target device.

[0089] In some technical solutions, the identity identification information of the second target device can be used as a search factor, and based on the search factor, a search is performed in the connection topology information to determine whether the second target device is in the first local area network.

[0090] In some technical solutions, optionally, the first local area network also includes a slave gateway, and the second target device communicates with the first master gateway through the slave gateway to send control information to enable the second target device to operate, specifically including: sending the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to operate.

[0091] In this technical solution, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0092] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0093] In some technical solutions, optionally, the first local area network includes at least two gateways, and the first main gateway is obtained based on election of the at least two gateways.

[0094] In this technical solution, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0095] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0096] In some technical solutions, optionally, the target primary gateway is selected by using one of a timestamp, device identification information, or application specification.

[0097] According to a third aspect of the present invention, a linkage control device is provided for a server, wherein N online devices out of M online devices communicate with the server through O master gateways, and P online devices out of the M online devices communicate with the server, where the sum of N and P equals M, different master gateways are located in different local area networks, and within each local area network, the master gateway communicates with one or more online devices, N≤M, and M, N, and O are positive integers. The linkage control device includes: a first receiving unit for synchronizing connection topology information of each local area network, where the connection topology information is used to represent a topological connection relationship between one or more online devices in the local area network and the master gateway; a second receiving unit for receiving device status information of each online device; a first search unit for searching for a second target device based on the connection topology information based on a change in the device status information of the first target device; and a first control unit for controlling an action of the second target device; wherein the first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

[0098] The present invention proposes a linkage control device, which can realize linkage control of a first target device and a second target device. During this process, even if the first target device and the second target device are in different local area networks, the linkage control can be realized.

[0099] Specifically, since the server synchronizes the topological connection relationship of each local area network, the topological connection relationship can be used to find the second target device. Even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of the online device control under the scene linkage and affecting the work of the scene linkage.

[0100] The technical solution of the present invention is implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0101] In the above technical solution, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located can be perceived based on the device status information, so as to judge whether the device status information of the first target device has changed, and then determine whether the second target device needs to take action.

[0102] In the above technical solution, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0103] In the above technical solution, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0104] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0105] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0106] In the above technical solution, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0107] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0108] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0109] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0110] In the above technical solution, since the sum of N and P is equal to M, and N≤M, P can be equal to zero.

[0111] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0112] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0113] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0114] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0115] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0116] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0117] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0118] In some technical solutions, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0119] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0120] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0121] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0122] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0123] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0124] In addition, the linkage control device proposed in the present invention also has the following additional technical features.

[0125] In some technical solutions, optionally, the first control unit is specifically used to: search for the target local area network where the second target device is located based on the connection topology information; when the target local area network where the second target device is located is found, send control information to the target main gateway to enable the second target device to operate; wherein, the target main gateway is the main gateway in the target local area network.

[0126] In this technical solution, when controlling the action of the second target device, the location of the second target device can be found based on the connection topology information, and then control information is sent to the second target device in a targeted manner to control the action of the second target device.

[0127] During this process, the server can directly send control information to the target main gateway to achieve control of the second target device. During this process, there is no need to repeatedly send control information to other main gateways. While reducing the overhead of instructions, it also reduces abnormal actions of other online devices that cause abnormal scene linkage.

[0128] In some technical solutions, the identity identification information of the second target device can be used as a search factor, and based on the search factor, a search is performed in the connection topology information to determine the target local area network where the second target device is located.

[0129] Since there is only one master gateway in each LAN, the target master gateway can be determined when the target LAN is determined, and the linkage control of the second target device can be achieved by sending control information to the target master gateway.

[0130] In some technical solutions, optionally, the target local area network also includes a slave gateway, and the second target device communicates with the target master gateway through the slave gateway. The first control unit is specifically used to: send control information to the target master gateway so that the target master gateway sends the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to act.

[0131] In this technical solution, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0132] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0133] In some technical solutions, optionally, the target local area network includes at least two gateways, and the target main gateway is obtained based on election of the at least two gateways.

[0134] In this technical solution, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0135] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0136] In some technical solutions, optionally, the target primary gateway is selected by using one of a timestamp, device identification information, or application specification.

[0137] In some technical solutions, optionally, the first control unit is also used to: when the target local area network where the second target device is located is not found, search for the second target device based on P online devices communicating with the server; and send control information to the second target device to make the second target device take action.

[0138] In this technical solution, considering that not all online devices communicate with the server through the main gateway, if the target LAN where the second target device is located is not found, the second target device can be searched from P online devices that communicate directly with the server. In this process, the search and control of the second target device can be achieved.

[0139] During this process, the second target device can be accurately located and controlled.

[0140] According to a fourth aspect of the present invention, another linkage control apparatus is provided, for use with a first master gateway, wherein N of M online devices communicate with a server via O master gateways, and P of the M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. Within each local area network, the master gateway communicates with one or more online devices, where N ≤ M, and M, N, and O are positive integers. The first master gateway is any of the O master gateways. The linkage control apparatus includes: a synchronization unit, configured for the first master gateway to synchronize connection topology information of each local area network with the server, the connection topology information being used to indicate a topological connection relationship between one or more online devices in the local area network and the master gateway; a third receiving unit, configured to receive device status information of each online device; a second search unit, configured to search for a second target device based on the connection topology information, based on a change in the device status information of the first target device; and a second control unit, configured to control an action of the second target device. The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

[0141] The present invention provides a linkage control device, which can realize linkage control of a first target device and a second target device.

[0142] Specifically, since the server synchronizes the topological connection relationship of each local area network, when the second target device is not found in the local area network where the first main gateway is located, the server can use the topological connection relationship to find the second target device. Therefore, even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of online device control under scene linkage and affecting the work of scene linkage.

[0143] The technical solution of the present invention is implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0144] In the above technical solution, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located can be perceived based on the device status information, so as to judge whether the device status information of the first target device has changed, and then determine whether the second target device needs to take action.

[0145] In the above technical solution, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0146] In the above technical solution, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0147] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0148] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0149] In the above technical solution, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0150] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0151] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0152] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0153] In the above technical solution, since the sum of N and P is equal to M, and N≤M, P can be equal to zero.

[0154] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0155] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0156] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0157] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0158] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0159] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0160] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0161] In some technical solutions, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0162] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0163] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0164] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0165] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0166] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0167] In addition, the linkage control device proposed in the present invention also has the following additional technical features.

[0168] In some technical solutions, optionally, the second control unit is specifically used to: based on the connection topology information, when it is found that the second target device is in the first local area network, send control information to enable the second target device to act; wherein the first local area network is the local area network where the first main gateway is located.

[0169] In this technical solution, when controlling the action of the second target device, it is possible to determine whether the second target device is in the first local area network based on the connection topology information, and then control the action of the second target device.

[0170] In some technical solutions, the identity identification information of the second target device can be used as a search factor, and based on the search factor, a search is performed in the connection topology information to determine whether the second target device is in the first local area network.

[0171] In some technical solutions, optionally, the first local area network also includes a slave gateway, the second target device communicates with the first master gateway through the slave gateway, and the second control unit is specifically used to: send control information to the slave gateway; wherein, the slave gateway sends the control information to the second target device to enable the second target device to act.

[0172] In this technical solution, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0173] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0174] In some technical solutions, optionally, the first local area network includes at least two gateways, and the first main gateway is obtained based on election of the at least two gateways.

[0175] In this technical solution, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0176] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0177] In some technical solutions, optionally, the target primary gateway is selected by using one of a timestamp, device identification information, or application specification.

[0178] According to the fifth aspect of the present invention, the present invention provides another linkage control device, including a first processor and a first memory, the first memory stores a program or instruction that can be run on the first processor, and when the program or instruction is executed by the first processor, the steps of any one of the methods described above are implemented.

[0179] According to the sixth aspect of the present invention, the present invention provides another linkage control device, including a second processor and a second memory, the second memory stores a program or instruction that can be run on the second processor, and when the program or instruction is executed by the second processor, the steps of any one of the methods described above are implemented.

[0180] According to a seventh aspect of the present invention, the present invention provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of any one of the methods described above are implemented.

[0181] According to an eighth aspect of the present invention, the present invention provides another readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of any of the methods described above are implemented.

[0182] According to a ninth aspect of the present invention, the present invention provides a server comprising: the linkage control device as described above; and / or the readable storage medium as described above.

[0183] According to a tenth aspect of the present invention, the present invention provides a gateway, comprising: the linkage control device as described above; and / or the readable storage medium as described above.

[0184] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0185] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which:

[0186] Figure 1 FIG1 shows one of the flow charts of a linkage control method in an embodiment of the present invention;

[0187] Figure 2 FIG2 shows a second flow chart of a linkage control method according to an embodiment of the present invention;

[0188] Figure 3FIG1 shows one of the interaction diagrams among a server, a master gateway, a slave gateway and an online device according to an embodiment of the present invention;

[0189] Figure 4 The second schematic diagram shows the interaction between a server, a master gateway, a slave gateway and an online device according to an embodiment of the present invention;

[0190] Figure 5 The third schematic diagram shows the interaction between a server, a master gateway, a slave gateway and an online device according to an embodiment of the present invention;

[0191] Figure 6 One of the schematic block diagrams of a linkage control device according to an embodiment of the present invention is shown;

[0192] Figure 7 A second schematic block diagram of a linkage control device according to an embodiment of the present invention is shown;

[0193] Figure 8 A third schematic block diagram of a linkage control device according to an embodiment of the present invention is shown;

[0194] Figure 9 A fourth schematic block diagram of a linkage control device in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0195] In order to more clearly understand the above aspects, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other in the absence of conflict.

[0196] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present invention is not limited to the specific embodiments disclosed below.

[0197] In one embodiment of the present application, Figure 1 As shown, a linkage control method is provided for a server, wherein N online devices out of M online devices communicate with the server through O master gateways, and P online devices out of M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. Within each local area network, the master gateway communicates with one or more online devices, where N≤M, and M, N, and O are positive integers. The linkage control method includes:

[0198] Step 102: Synchronize the connection topology information of each local area network, where the connection topology information is used to represent the topological connection relationship between one or more online devices in the local area network and the main gateway;

[0199] Step 104, receiving device status information of each online device;

[0200] Step 106: searching for a second target device based on the connection topology information based on the change in the device status information of the first target device;

[0201] Step 108, controlling the action of the second target device; wherein the first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among M online devices.

[0202] The present invention proposes a linkage control method. By running the linkage control method, linkage control of a first target device and a second target device can be achieved. During this process, linkage control can be achieved even if the first target device and the second target device are in different local area networks.

[0203] Specifically, since the server synchronizes the topological connection relationship of each local area network, the topological connection relationship can be used to find the second target device. Even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of the online device control under the scene linkage and affecting the work of the scene linkage.

[0204] The embodiments of the present invention are implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0205] In the above embodiment, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located is perceived based on the device status information, thereby judging whether the device status information of the first target device has changed, and then determining whether the second target device needs to take action.

[0206] In the above embodiment, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0207] In the above embodiment, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0208] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0209] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0210] In the above embodiment, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0211] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0212] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0213] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0214] In the above embodiment, since the sum of N and P is equal to M and N≤M, P can be equal to zero.

[0215] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0216] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0217] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0218] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0219] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0220] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0221] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0222] In some embodiments, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0223] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0224] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0225] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0226] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0227] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0228] In some embodiments, optionally, controlling the action of the second target device specifically includes: based on the connection topology information, searching for the target local area network where the second target device is located; when the target local area network where the second target device is located is found, sending control information to the target main gateway to enable the second target device to act; wherein, the target main gateway is the main gateway in the target local area network.

[0229] In this embodiment, when controlling the action of the second target device, the location of the second target device can be found based on the connection topology information, and then control information is sent to the second target device in a targeted manner to control the action of the second target device.

[0230] During this process, the server can directly send control information to the target main gateway to achieve control of the second target device. During this process, there is no need to repeatedly send control information to other main gateways. While reducing the overhead of instructions, it also reduces abnormal actions of other online devices that cause abnormal scene linkage.

[0231] In some embodiments, the identity identification information of the second target device may be used as a search factor, and based on the search factor, a search may be performed in the connection topology information to determine the target local area network where the second target device is located.

[0232] Since there is only one master gateway in each LAN, the target master gateway can be determined when the target LAN is determined, and the linkage control of the second target device can be achieved by sending control information to the target master gateway.

[0233] In some embodiments, optionally, the target local area network also includes a slave gateway, and the second target device communicates with the target main gateway through the slave gateway, and sends control information to the target main gateway to enable the second target device to operate, specifically including: sending control information to the target main gateway so that the target main gateway sends the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to operate.

[0234] In this embodiment, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0235] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0236] In some embodiments, optionally, the target local area network includes at least two gateways, and the target main gateway is obtained based on elections from the at least two gateways.

[0237] In this embodiment, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0238] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0239] In some embodiments, optionally, the target primary gateway is obtained by selecting one of a timestamp, device identification information, or application specification.

[0240] In some embodiments, optionally, controlling the action of the second target device further includes: searching for the second target device based on P online devices communicating with the server when the target local area network where the second target device is located is not found; and sending control information to the second target device to cause the second target device to act.

[0241] In this embodiment, considering that not all online devices communicate with the server through the main gateway, if the target LAN where the second target device is located is not found, the second target device can be searched from P online devices that communicate directly with the server. In this process, the second target device can be searched and controlled.

[0242] During this process, the second target device can be accurately located and controlled.

[0243] In one embodiment, Figure 2 As shown, the present invention provides a linkage control method for a first master gateway, wherein N online devices out of M online devices communicate with a server through O master gateways, and P online devices out of M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. In each local area network, the master gateway communicates with one or more online devices, where N≤M, and M, N, and O are positive integers. The first master gateway is any one of the O master gateways. The linkage control method includes:

[0244] Step 202: The first master gateway synchronizes connection topology information of each local area network with the server. The connection topology information is used to represent the topological connection relationship between one or more online devices in the local area network and the master gateway.

[0245] Step 204, receiving device status information of each online device;

[0246] Step 206: searching for a second target device based on the connection topology information based on the change in the device status information of the first target device;

[0247] Step 208, controlling the action of the second target device; wherein the first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among M online devices.

[0248] The present invention proposes a linkage control method, and linkage control of a first target device and a second target device can be achieved by running the linkage control method.

[0249] Specifically, since the server synchronizes the topological connection relationship of each local area network, when the second target device is not found in the local area network where the first main gateway is located, the server can use the topological connection relationship to find the second target device. Therefore, even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of online device control under scene linkage and affecting the work of scene linkage.

[0250] The embodiments of the present invention are implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0251] In the above embodiment, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located is perceived based on the device status information, thereby judging whether the device status information of the first target device has changed, and then determining whether the second target device needs to take action.

[0252] In the above embodiment, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0253] In the above embodiment, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0254] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0255] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0256] In the above embodiment, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0257] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0258] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0259] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0260] In the above embodiment, since the sum of N and P is equal to M and N≤M, P can be equal to zero.

[0261] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0262] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0263] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0264] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0265] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0266] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0267] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0268] In some embodiments, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0269] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0270] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0271] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0272] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0273] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0274] In addition, the linkage control method proposed in the present invention also has the following additional technical features.

[0275] In some embodiments, optionally, controlling the action of the second target device specifically includes: based on the connection topology information, when it is found that the second target device is in the first local area network, sending control information to make the second target device act; wherein the first local area network is the local area network where the first main gateway is located.

[0276] In this embodiment, when controlling the action of the second target device, it may be determined based on the connection topology information whether the second target device is located in the first local area network, and then the action of the second target device may be controlled.

[0277] In some embodiments, the identity information of the second target device may be used as a search factor, and a search may be performed in the connection topology information based on the search factor to determine whether the second target device is in the first local area network.

[0278] In some embodiments, optionally, the first local area network also includes a slave gateway, and the second target device communicates with the first master gateway through the slave gateway to send control information to enable the second target device to act, specifically including: sending the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to act.

[0279] In this embodiment, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0280] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0281] In some embodiments, optionally, the first local area network includes at least two gateways, and the first master gateway is obtained based on elections from the at least two gateways.

[0282] In this embodiment, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0283] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0284] In some embodiments, optionally, the target primary gateway is obtained by selecting one of a timestamp, device identification information, or application specification.

[0285] In one embodiment, Figure 3 、 Figure 4 and Figure 5 As shown, where:

[0286] Gateways discover devices within the same local area network (LAN) and elect a single master gateway. The master gateway, capable of determining scenario rules, serves as the scene linkage center within the LAN. Other gateways, acting as slave gateways, connect to the master gateway, which synchronizes the LAN's connection topology with the cloud in real time.

[0287] When the status of the online device changes, the status will be synchronized to the cloud through the gateway to which it belongs, and at the same time, the status will be synchronized to the main gateway through the LAN path between the gateway to which it belongs and the main gateway. Figure 3 As shown, after the status of device 2 changes, the status is synchronized to the cloud through the gateway to which it belongs, and is also synchronized to the main gateway 1.

[0288] After receiving the device status report, the cloud will push the device status to the main gateways of other network segments except the main gateway of the network segment to which the device belongs. Figure 4 As shown, after the status of device 2 is reported, the device status is synchronously pushed to the main gateway 2 under another network segment.

[0289] After receiving the device status change push notification, the cloud and all main gateways will perform rule judgment. Figure 3 As shown, the main gateway 1 receives the status push of device 2 from the local area network channel, and then the main gateway performs scene rule segmentation. The cloud receives the status report of device 2, and then the cloud performs scene rule segmentation. After the main gateway 2 receives the status change push of device 2 through the cloud, the main gateway 2 performs local rule segmentation.

[0290] The main gateway and the cloud each perform rule judgment. The main gateway is responsible for the device actions under its own network topology, while the cloud is responsible for other target devices that do not belong to any main gateway topology. If the scene trigger condition is met, the main gateway determines whether the target device of the scene action is in the local area network. Figure 3 As shown in the example, the scenario "Device 1 and 2 status changes trigger actions on devices 3 and 4" is set. When the scenario conditions are met, Master Gateway 1 determines that devices 3 and 4 are not in its own LAN topology and no action is required. Master Gateway 2 determines that target device 3 is in its own topology, and the action for device 3 is triggered by Master Gateway 2. The cloud, by synchronizing the network connection topology between the master and slave gateways and the connected devices, determines that device 4 is not in the same LAN topology as Master Gateway 1 and Master Gateway 2. Therefore, the cloud triggers the action for device 4.

[0291] When the network topology changes, such as Figure 5 As shown, the slave gateway switches from LAN 1 to LAN 2. Following the five scenario rules above, the logic is determined. After the status of Device 1 and Device 2 changes, their respective gateways synchronize their status to the master gateway and the cloud within the same LAN. The cloud then pushes the status to master gateways in other LANs outside the device. When the scenario conditions are met, action Device 3 is triggered by master gateway 2, and action Device 4 is triggered by the cloud.

[0292] In this embodiment, changes in the edge device network topology do not affect the triggering of the original scenario. If all gateways are within the same local area network (LAN) and all devices are connected to the gateways, all scenario linkages can be completed within the LAN. This method allows scenarios to be linked preferentially within the local area network, while also facilitating cross-segment device scenarios by relying on the cloud.

[0293] In one embodiment, Figure 6As shown, the present invention provides a linkage control device 600 for a server, wherein N online devices out of M online devices communicate with the server through O master gateways, and P online devices out of the M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. Within each local area network, the master gateway communicates with one or more online devices, where N≤M, and M, N, and O are positive integers. The linkage control device 600 includes: a first receiving unit 602 for synchronizing connection topology information of each local area network, where the connection topology information is used to represent a topological connection relationship between one or more online devices in the local area network and the master gateway; a second receiving unit 604 for receiving device status information of each online device; a first search unit 606 for searching for a second target device based on the connection topology information based on a change in the device status information of the first target device; and a first control unit 608 for controlling an action of the second target device. The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

[0294] The present invention proposes a linkage control device 600 that can implement linkage control of a first target device and a second target device. During this process, linkage control can be implemented even if the first target device and the second target device are in different local area networks.

[0295] Specifically, since the server synchronizes the topological connection relationship of each local area network, the topological connection relationship can be used to find the second target device. Even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of the online device control under the scene linkage and affecting the work of the scene linkage.

[0296] The embodiments of the present invention are implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0297] In the above embodiment, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located is perceived based on the device status information, thereby judging whether the device status information of the first target device has changed, and then determining whether the second target device needs to take action.

[0298] In the above embodiment, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0299] In the above embodiment, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0300] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0301] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0302] In the above embodiment, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0303] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0304] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0305] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0306] In the above embodiment, since the sum of N and P is equal to M and N≤M, P can be equal to zero.

[0307] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0308] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0309] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0310] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0311] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0312] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0313] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0314] In some embodiments, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0315] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0316] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0317] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0318] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0319] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0320] In some embodiments, optionally, the first control unit 608 is specifically used to: search for the target local area network where the second target device is located based on the connection topology information; when the target local area network where the second target device is located is found, send control information to the target main gateway to enable the second target device to operate; wherein, the target main gateway is the main gateway in the target local area network.

[0321] In this embodiment, when controlling the action of the second target device, the location of the second target device can be found based on the connection topology information, and then control information is sent to the second target device in a targeted manner to control the action of the second target device.

[0322] During this process, the server can directly send control information to the target main gateway to achieve control of the second target device. During this process, there is no need to repeatedly send control information to other main gateways. While reducing the overhead of instructions, it also reduces abnormal actions of other online devices that cause abnormal scene linkage.

[0323] In some embodiments, the identity identification information of the second target device may be used as a search factor, and based on the search factor, a search may be performed in the connection topology information to determine the target local area network where the second target device is located.

[0324] Since there is only one master gateway in each LAN, the target master gateway can be determined when the target LAN is determined, and the linkage control of the second target device can be achieved by sending control information to the target master gateway.

[0325] In some embodiments, optionally, the target local area network also includes a slave gateway, and the second target device communicates with the target master gateway through the slave gateway. The first control unit 608 is specifically used to: send control information to the target master gateway so that the target master gateway sends the control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to act.

[0326] In this embodiment, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0327] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0328] In some embodiments, optionally, the target local area network includes at least two gateways, and the target main gateway is obtained based on elections from the at least two gateways.

[0329] In this embodiment, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0330] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0331] In some embodiments, optionally, the target primary gateway is obtained by selecting one of a timestamp, device identification information, or application specification.

[0332] In some embodiments, optionally, the first control unit 608 is further used to: search for the second target device based on P online devices communicating with the server when the target local area network where the second target device is located is not found; and send control information to the second target device to enable the second target device to act.

[0333] In this embodiment, considering that not all online devices communicate with the server through the main gateway, if the target LAN where the second target device is located is not found, the second target device can be searched from P online devices that communicate directly with the server. In this process, the second target device can be searched and controlled.

[0334] During this process, the second target device can be accurately located and controlled.

[0335] In one embodiment, Figure 7As shown, the present invention provides another linkage control device 700, which is used for a first master gateway. N online devices out of M online devices communicate with a server through O master gateways, and P online devices out of M online devices communicate with the server. The sum of N and P is equal to M. Different master gateways are located in different local area networks. In each local area network, the master gateway communicates with one or more online devices. N≤M, and M, N, and O are positive integers. The first master gateway is any master gateway out of the O master gateways. The linkage control device 700 includes: a synchronization unit 702, which is used for the first master gateway to synchronize the connection topology information of each local area network with the server. , the connection topology information is used to represent the topological connection relationship between one or more online devices and the main gateway in the local area network; the third receiving unit 704 is used to receive the device status information of each online device; the second search unit 706 is used to search for the second target device based on the connection topology information based on the change of the device status information of the first target device; the second control unit 708 is used to control the action of the second target device; wherein, the first target device is a trigger device under the scene linkage control, the second target device is a controlled device under the scene linkage control, and the first target device and the second target device are online devices among the M online devices.

[0336] The present invention proposes a linkage control device 700, which can realize linkage control of a first target device and a second target device.

[0337] Specifically, since the server synchronizes the topological connection relationship of each local area network, when the second target device is not found in the local area network where the first main gateway is located, the server can use the topological connection relationship to find the second target device. Therefore, even if the network segment where the second target device is located changes, the linkage control of the first target device and the second target device can be achieved, reducing the abnormality of online device control under scene linkage and affecting the work of scene linkage.

[0338] The embodiments of the present invention are implemented based on the following principles. Specifically, when an online device switches from one local area network to another, the connection topology relationship within the switched local area network will also change, and the server synchronizes the topological connection relationship within each local area network. Therefore, the server can perceive the above changes and then use the synchronized topological connection relationship to know the local area network where each online device is located, thereby realizing the search for the second target device.

[0339] In the above embodiment, by receiving the device status information of each online device, the operating status of the online device or the environmental parameters perceived in the scene where the online device is located is perceived based on the device status information, thereby judging whether the device status information of the first target device has changed, and then determining whether the second target device needs to take action.

[0340] In the above embodiment, the first target device and the second target device can be set according to a pre-set scene linkage mechanism, such as using the first target device as a sensing device for scene linkage, that is, a triggering device, and using the second target device as a controlled device for scene linkage.

[0341] In the above embodiment, the trigger device can be understood as an online device that needs to be referenced before the controlled device takes action.

[0342] For example, the first target device is device 1 and the second target device is device 2. When the device operation state of device 1 changes, device 2 is controlled to act.

[0343] For another example, the first target devices are device 1 and device 2, and the second target devices are device 3 and device 4. If the device operating states of device 1 and device 2 change, device 3 and device 4 are controlled to operate.

[0344] In the above embodiment, the topological connection relationship can be understood as the connection relationship between the online device and the main gateway.

[0345] For example, in a local area network, there is a main gateway and three online devices, namely, main gateway 1 and online device 1, online device 2 and online device 3. The topological connection relationship above can be that online device 1, online device 2 and online device 3 are directly or indirectly connected to the main gateway 1.

[0346] Specifically, online device 1 , online device 2 and online device 3 are respectively connected to the main gateway 1 , or online device 1 and online device 2 are respectively connected to the main gateway 1 , and online device 3 is indirectly connected to the main gateway 1 .

[0347] Obviously, when the connection topology information in each local area network is synchronized, the location of each online device can be known by using the connection topology information, so as to realize the search of the second target device and thus realize accurate linkage control.

[0348] In the above embodiment, since the sum of N and P is equal to M and N≤M, P can be equal to zero.

[0349] When P is equal to zero, M online devices communicate with the server through O main gateways. At this time, the M online devices are distributed in the local area network where the O main gateways are located to achieve linkage control. In this case, the second target device can be an online device under the same main gateway among the O main gateways, or an online device under different main gateways among the O main gateways.

[0350] When P is not equal to zero, N of the M online devices communicate with the server through O primary gateways, and P of the M online devices communicate with the server. Based on this, the second target device can be the following:

[0351] The first type: the second target device can be an online device under the same main gateway among the O main gateways.

[0352] The second type: the second target device is an online device under a different main gateway among the O main gateways.

[0353] The third type: some of the second target devices are online devices under the same main gateway among the O main gateways, and the other part are one or more online devices among the P online devices.

[0354] Fourth type: a portion of the second target devices are online devices under different main gateways among the O main gateways, and the other portion is one or more online devices among the P online devices.

[0355] During this process, linkage scenarios can be constructed based on actual usage scenarios.

[0356] In some embodiments, optionally, the device status information may be an operating status of the online device and / or parameters detected by the online device.

[0357] Specifically, when the device status information includes the operating status of the online device, the operating status of the second target device may be switched according to the operating status of the first target device.

[0358] Illustratively, the second target device is turned on and off synchronously with the first target device.

[0359] For another example, when the operating state of the first target device changes from on to off, the second target device switches from off to on.

[0360] Specifically, in the case where the device status information includes parameters detected by the online device, the action of the second target device can be controlled according to the parameter changes detected by the first target device.

[0361] For example, the parameter detected by the online device may be environmental information of temperature and / or humidity, and then when the temperature rises, the second target device is controlled to start or stop running.

[0362] In some embodiments, optionally, the second control unit 708 is specifically used to: based on the connection topology information, send control information to enable the second target device to act when it is found that the second target device is in the first local area network; wherein the first local area network is the local area network where the first main gateway is located.

[0363] In this embodiment, when controlling the action of the second target device, it may be determined based on the connection topology information whether the second target device is located in the first local area network, and then the action of the second target device may be controlled.

[0364] In some embodiments, the identity information of the second target device may be used as a search factor, and a search may be performed in the connection topology information based on the search factor to determine whether the second target device is in the first local area network.

[0365] In some embodiments, optionally, the first local area network also includes a slave gateway, and the second target device communicates with the first master gateway through the slave gateway. The second control unit 708 is specifically used to: send control information to the slave gateway; wherein the slave gateway sends the control information to the second target device to enable the second target device to act.

[0366] In this embodiment, for the case where the local area network includes a master gateway and a slave gateway, the online device can communicate with the master gateway through the slave gateway, and then the online device can be attached to the master gateway. If the second target device is connected to the slave gateway, at this time, it is necessary to use the master gateway to transmit control information to the slave gateway so that the control information can be sent to the second target device.

[0367] In this case, online devices that are not directly connected to the main gateway can be linked and controlled. Even if the slave gateway and the online device connected to the slave gateway switch network segments at the same time, the topological connection relationship between the main gateway and the slave gateway can be used to control the second target device, thereby ensuring the reliability of scene linkage control.

[0368] In some embodiments, optionally, the first local area network includes at least two gateways, and the first master gateway is obtained based on elections from the at least two gateways.

[0369] In this embodiment, since the target master gateway is obtained through election, when the master gateway in the target LAN is abnormal and offline, the slave gateways in the target master gateway can still select a new master gateway.

[0370] During this process, when the main gateway is offline due to an abnormality, the linkage scenario can be automatically restored to the greatest extent, thereby reducing the impact caused by the offline due to the abnormality of the main gateway.

[0371] In some embodiments, optionally, the target primary gateway is obtained by selecting one of a timestamp, device identification information, or application specification.

[0372] In one embodiment, Figure 8As shown, the present invention provides another linkage control device 800, including a first processor 802 and a first memory 804, the first memory 804 stores programs or instructions that can be run on the first processor 802, and when the programs or instructions are executed by the first processor 802, the steps of any of the methods described above are implemented.

[0373] In one embodiment, Figure 9 As shown, the present invention provides another linkage control device 900, including a second processor 902 and a second memory 904, the second memory 904 stores programs or instructions that can be run on the second processor 902, and when the programs or instructions are executed by the second processor 902, the steps of any of the methods described above are implemented.

[0374] The first memory 804 and the second memory 904 can be used to store software programs and various data. The first memory 804 and the second memory 904 mainly include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the first memory 804 and the second memory 904 can include volatile memory or non-volatile memory, or the memory can include both volatile and non-volatile memory. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0375] In one embodiment, the present invention provides a readable storage medium storing a program or instruction. When the program or instruction is executed by a processor, the steps of any one of the above methods are implemented.

[0376] In one embodiment, the present invention provides another readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of any one of the above methods are implemented.

[0377] In one embodiment, the present invention provides a server, comprising: the linkage control device as described above; and / or the readable storage medium as described above.

[0378] In one embodiment, the present invention provides a gateway, comprising: the linkage control device as described above; and / or the readable storage medium as described above.

[0379] In some embodiments, optionally, the online device may be one or more of a lamp, a sensor, a refrigerator, a television, and an air purifier.

[0380] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly refer to one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more. Furthermore, "and / or" in the specification and claims refers to at least one of the connected entities, and the character " / " generally indicates an "or" relationship between the connected entities.

[0381] In the description of the present invention, it is understood that, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they may refer to fixed connection, detachable connection, or integral connection; mechanical connection or electrical connection; direct connection between two components or indirect connection through an intermediate medium; or internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0382] In the claims, specification, and drawings of the present invention, the terms "one embodiment," "some embodiments," "a specific embodiment," and the like mean that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In the claims, specification, and drawings of the present invention, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0383] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

Claims

1. A linkage control method for a server, characterized in that: N online devices out of M online devices communicate with the server through O master gateways, and P online devices out of M online devices communicate with the server, the sum of N and P equals M, different master gateways are located in different local area networks, and in each local area network, the master gateway communicates with one or more online devices, N≤M, and M, N, and O are positive integers. The linkage control method includes: Synchronizing connection topology information of each of the local area networks, wherein the connection topology information is used to represent a topological connection relationship between one or more online devices in the local area network and the master gateway; receiving device status information of each of the online devices; Searching for a second target device based on the connection topology information based on a change in the device status information of the first target device; controlling the action of the second target device; The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

2. The linkage control method according to claim 1, characterized in that: The controlling the second target device action specifically includes: Based on the connection topology information, searching for a target local area network where the second target device is located; When the target local area network where the second target device is located is found, control information is sent to the target main gateway to enable the second target device to take action; The target main gateway is the main gateway in the target local area network.

3. The linkage control method according to claim 2, characterized in that: The target local area network further includes a slave gateway, and the second target device communicates with the target master gateway through the slave gateway, and the sending of control information to the target master gateway to enable the second target device to operate specifically includes: Sending control information to the target master gateway so that the target master gateway sends the control information to the slave gateway; The slave gateway sends the control information to the second target device to enable the second target device to operate.

4. The linkage control method according to claim 3, characterized in that: The target local area network includes at least two gateways, and the target main gateway is obtained based on elections of the at least two gateways.

5. The linkage control method according to any one of claims 2 to 4, characterized in that: The controlling the second target device action further includes: If the target local area network where the second target device is located is not found, searching for the second target device based on the P online devices communicating with the server; Control information is sent to the second target device to enable the second target device to take action.

6. A linkage control method, used for a first master gateway, characterized in that: N online devices out of M online devices communicate with a server through O master gateways, and P online devices out of M online devices communicate with the server, the sum of N and P equals M, different master gateways are located in different local area networks, and in each local area network, the master gateway communicates with one or more online devices, N≤M, and M, N, and O are positive integers, and the first master gateway is any one of the O master gateways. The linkage control method includes: The first master gateway synchronizes connection topology information of each of the local area networks with a server, wherein the connection topology information is used to indicate a topological connection relationship between one or more online devices in the local area network and the master gateway; receiving device status information of each of the online devices; searching for a second target device based on the connection topology information based on a change in the device status information of the first target device; controlling the action of the second target device; The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

7. The linkage control method according to claim 6, characterized in that: The controlling the second target device action specifically includes: Based on the connection topology information, when it is found that the second target device is located in the first local area network, sending control information to enable the second target device to take action; The first local area network is the local area network where the first main gateway is located.

8. The linkage control method according to claim 7, characterized in that: The first local area network further includes a slave gateway, and the second target device communicates with the first master gateway via the slave gateway. The sending of control information to enable the second target device to operate specifically includes: sending the control information to the slave gateway; The slave gateway sends the control information to the second target device to enable the second target device to operate.

9. The linkage control method according to claim 8, characterized in that: The first local area network includes at least two gateways, and the first main gateway is obtained based on election of the at least two gateways.

10. A linkage control device for a server, characterized in that: N of the M online devices communicate with the server via O master gateways, and P of the M online devices communicate with the server, where the sum of N and P equals M. Different master gateways are located in different local area networks. Within each local area network, the master gateway communicates with one or more online devices, where N≤M, and M, N, and O are positive integers. The linkage control device comprises: a first receiving unit, configured to synchronize connection topology information of each of the local area networks, wherein the connection topology information is used to indicate a topological connection relationship between one or more online devices in the local area network and the primary gateway; a second receiving unit, configured to receive device status information of each of the online devices; a first searching unit, configured to search for a second target device based on the connection topology information based on a change in the device status information of the first target device; a first control unit, configured to control an action of the second target device; The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

11. A linkage control device, used for a first master gateway, characterized in that: N online devices out of M online devices communicate with a server through O master gateways, and P online devices out of M online devices communicate with the server, the sum of N and P equals M, different master gateways are located in different local area networks, in each local area network, the master gateway communicates with one or more online devices, N≤M, and M, N, and O are positive integers, the first master gateway is any one of the O master gateways, and the linkage control device includes: a synchronization unit, configured to synchronize connection topology information of each of the local area networks with the server through the first master gateway, wherein the connection topology information is used to indicate a topological connection relationship between one or more online devices in the local area network and the master gateway; a third receiving unit, configured to receive device status information of each of the online devices; a second searching unit, configured to search for a second target device based on the connection topology information based on a change in the device status information of the first target device; a second control unit, configured to control an action of the second target device; The first target device is a triggering device under scene linkage control, the second target device is a controlled device under scene linkage control, and the first target device and the second target device are online devices among the M online devices.

12. A linkage control device, characterized in that: The method comprises a first processor and a first memory, wherein the first memory stores a program or instruction that can be run on the first processor, and when the program or instruction is executed by the first processor, the steps of the method according to any one of claims 1 to 5 are implemented.

13. A linkage control device, characterized in that: The method comprises a second processor and a second memory, wherein the second memory stores a program or instruction that can be run on the second processor, and when the program or instruction is executed by the second processor, the steps of the method according to any one of claims 6 to 9 are implemented.

14. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

15. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 6 to 9 are implemented.

16. A server, characterized in that: include: The linkage control device according to claim 10 or 12; and / or The readable storage medium of claim 14.

17. A gateway, characterized in that: include: The linkage control device according to claim 11 or 13; and / or The readable storage medium of claim 15.