Linkage scene synchronization, triggering method and device, terminal and network equipment

By receiving and broadcasting linkage scene messages on the terminal device, which acts as a relay, the problem of scene synchronization and triggering relying on the central hub in the existing technology is solved, realizing fast and latency-free scene synchronization and triggering, which is suitable for large-scale linkage scenes.

CN118803586BActive Publication Date: 2025-11-04CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410203907.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2025-11-04
Estimated Expiration
2044-02-23

AI Technical Summary

Technical Problem

In existing technologies, cross-protocol local area network scene linkage relies on scene control center, which makes synchronization and triggering heavily dependent on the central device, resulting in limited coverage, large latency, poor flexibility, and inability to synchronize and trigger when the central device is powered off.

Method used

By receiving linkage scene messages broadcast by the central processor on the terminal device, storing and broadcasting them locally, the terminal device acts as a relay to realize the synchronization and triggering of scene data, and supports broadcasting between the central processor and terminal devices as well as between terminal devices, reducing dependence on the central processor.

Benefits of technology

It enables fast, latency-free scene synchronization and triggering within a local area network, with unlimited coverage, high flexibility, and the ability to trigger normally even when the central hub is powered off, making it suitable for large-scale linkage scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803586B_ABST
    Figure CN118803586B_ABST
Patent Text Reader

Abstract

The application provides a linkage scene synchronization and triggering method and device, a terminal and network equipment, comprising: receiving a linkage scene message broadcast by a hub; when user information is consistent with user information stored locally by a first terminal device, saving linkage scene data by the first terminal device and continuing to broadcast in a local area network. After receiving the linkage scene message, the terminal device saves linkage scene data and other key information, and continues to broadcast the received scene message in the local area network. Scene synchronization and scene triggering support broadcast between the hub and the terminal device, and broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of scene synchronization and triggering, and can quickly realize scene synchronization and scene triggering. In theory, scene triggering delay is not limited by the number of terminal devices in scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, it does not affect the triggering of the scene.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a linkage scene synchronization and triggering method, device, terminal and network equipment. BACKGROUND

[0002] At present, the linkage scene in the cross-protocol LAN is mostly dependent on the scene control hub to save various linkage scene data, and to convert and send control instructions one by one when the scene is triggered. Specifically, when the terminal device reports the display scene trigger, the scene control hub needs to be converted into linkage scene messages of different communication protocols one by one and sent to the corresponding terminal device to realize the linkage of the scene.

[0003] The current scene synchronization method has the following defects:

[0004] (1) The synchronization of linkage scene data and the triggering of the scene are strongly dependent on the power-on of the scene control hub. Once the hub device is powered off, even if the local scene only involves one protocol, the synchronization of scene data and the triggering of the scene cannot be realized.

[0005] (2) Since the synchronization of linkage scene data and the triggering of the scene are strongly dependent on the scene control hub to convert between different communication protocols, when there are many terminal devices in the LAN, there will be obvious time delay.

[0006] (3) The synchronization of linkage scene data and the triggering of the scene in the existing scheme are all centered on the scene control hub. Due to the limited coverage, some terminal devices cannot receive the linkage scene message, so this part of the terminal devices cannot accurately synchronize the linkage scene, which eventually leads to the failure of subsequent scene linkage.

[0007] (4) The existing scheme needs to predefine the relationship between the scene control hub and all terminal devices in the LAN, usually called parent-child device relationship or subordinate relationship, which has poor flexibility.

[0008] Therefore, it is urgent to improve the existing linkage scene synchronization and triggering control scheme. SUMMARY

[0009] The present application provides a linkage scene synchronization and triggering method, device, terminal and network equipment to solve the various defects existing in the prior art centering on the scene control hub.

[0010] In a first aspect, the present application provides a linkage scene synchronization method applied to a first terminal device, comprising:

[0011] receiving the linkage scene message broadcast by the hub processor; the linkage scene message is generated by the hub processor by encapsulating the linkage scene data according to the communication protocol type of the first terminal device;

[0012] In a case where the user information contained in the linkage scene data is determined to be consistent with the locally stored user information according to the linkage scene message, the linkage scene data is saved;

[0013] The linkage scene message is broadcast in the local area network.

[0014] In a second aspect, the present application provides another linkage scene synchronization method, applied to a hub processor, comprising:

[0015] The linkage scene message is broadcast, and the linkage scene message is generated by encapsulating linkage scene data according to a communication protocol type of a first terminal device, the first terminal device being any terminal device in the local area network;

[0016] In a case where the user information contained in the linkage scene data is determined to be consistent with the locally stored user information according to the linkage scene message, the linkage scene data is saved, and the linkage scene message is broadcast in the local area network.

[0017] In a third aspect, the present application provides a linkage scene triggering method, applied to a first terminal device, based on any linkage scene synchronization method in the first aspect, at least one linkage scene is synchronized to generate a set of device linkage data according to at least one set of linkage scene data and saved locally;

[0018] The linkage scene triggering method comprises:

[0019] In a case where any scene linkage triggering condition is determined to be met, a target scene linkage ID and a target scene linkage response action corresponding to the any scene linkage triggering condition are determined;

[0020] The target scene linkage response action is executed;

[0021] A scene triggering message is broadcast in the local area network, and the scene triggering message at least contains a new session identifier and the target scene linkage ID.

[0022] In a fourth aspect, the present application provides another linkage scene triggering method, applied to a hub processor, based on any linkage scene synchronization method in the second aspect, after linkage scene data downloaded from a smart home platform is encapsulated into a linkage scene message, the linkage scene message is broadcast to each terminal device in the local area network;

[0023] The linkage scene triggering method comprises:

[0024] Receive the scenario trigger message broadcast by the first terminal device; the scenario trigger message is generated by the first terminal device after performing the target scenario linkage response action when it determines that any scenario linkage trigger condition is satisfied; the target scenario linkage response action is determined based on the any scenario linkage trigger condition; the scenario trigger message at least includes a new session identifier and a target scenario linkage ID corresponding to the any scenario linkage trigger condition;

[0025] Translate the scenario trigger message according to the communication protocol types of all terminal devices in the local area network and broadcast all the translated trigger messages obtained, so that the third terminal device can determine and execute the scenario linkage response action of the third terminal device according to the target scenario linkage ID carried in the scenario trigger message;

[0026] The communication protocol type of the third terminal device is different from that of the first terminal device.

[0027] In a fifth aspect, the present invention provides a linkage scenario synchronization device, which is integrally provided in the first terminal device and includes:

[0028] A first receiving unit, which receives the linkage scenario message broadcast by the central processing unit; the linkage scenario message is generated by the central processing unit after encapsulating the linkage scenario data according to the communication protocol type of the first terminal device;

[0029] A first storage unit, which is used to save the linkage scenario data when it is determined that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message;

[0030] A first sending unit, which is used to broadcast the linkage scenario message in the local area network.

[0031] In a sixth aspect, the present invention provides another linkage scenario synchronization device, which is integrally provided in the central processing unit and includes:

[0032] A second sending unit, which is used to broadcast the linkage scenario message;

[0033] The linkage scenario message is generated by encapsulating the linkage scenario data according to the communication protocol type of the first terminal device, and the first terminal device is any terminal device in the local area network;

[0034] When the first terminal device determines that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message, it retains the linkage scenario data and broadcasts the linkage scenario message in the local area network.

[0035] In a seventh aspect, the present application provides a linkage scene triggering device integrated in a first terminal device, which synchronizes at least one linkage scene based on any linkage scene synchronization method in the first aspect to generate a set of device linkage data from at least one set of linkage scene data and save the set of device linkage data to the first terminal device locally, and includes:

[0036] a first identification unit configured to determine a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage triggering condition when the any scene linkage triggering condition is determined to be met;

[0037] a first control unit configured to control the first terminal device to execute the target scene linkage response action;

[0038] a third sending unit configured to broadcast a scene triggering message in the local area network; the scene triggering message at least contains a new session identifier and the target scene linkage ID.

[0039] In an eighth aspect, the present application provides another linkage scene triggering device integrated in a central processor, which encapsulates linkage scene data downloaded from a smart home platform into a linkage scene message and broadcasts the linkage scene message to each terminal device in a local area network based on any linkage scene synchronization method in the second aspect, and includes:

[0040] a second receiving unit configured to receive a scene triggering message broadcast by a first terminal device;

[0041] The scene triggering message is generated by the first terminal device after the first terminal device executes a target scene linkage response action when any scene linkage triggering condition is determined to be met; the target scene linkage response action is determined based on the any scene linkage triggering condition; and the scene triggering message at least contains a new session identifier and a target scene linkage ID corresponding to the any scene linkage triggering condition.

[0042] a fourth sending unit configured to translate the scene triggering message according to a communication protocol type of all terminal devices in the local area network and broadcast all translated triggering messages obtained to enable a third terminal device to determine and execute a scene linkage response action of the third terminal device according to a target scene linkage ID carried by the scene triggering message;

[0043] The third terminal device has a different communication protocol type from the first terminal device.

[0044] In a ninth aspect, the present application provides a terminal including a memory, a transceiver, and a processor.

[0045] a memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:

[0046] receiving a linkage scene message broadcast by a hub processor; the linkage scene message is generated by the hub processor by encapsulating linkage scene data according to a communication protocol type of a first terminal device;

[0047] in a case where it is determined that user information contained in the linkage scene data is consistent with locally stored user information according to the linkage scene message, saving the linkage scene data;

[0048] broadcasting the linkage scene message in a local area network;

[0049] or performing the following operations:

[0050] in a case where it is determined that any scene linkage trigger condition is met, determining a target scene linkage ID and a target scene linkage response action corresponding to the any scene linkage trigger condition;

[0051] performing the target scene linkage response action;

[0052] broadcasting a scene trigger message in the local area network; the scene trigger message at least contains a new session identifier and the target scene linkage ID.

[0053] In a tenth aspect, the present application provides a network device, comprising a memory, a transceiver, and a processor;

[0054] a memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations: implementing any of the linkage scene synchronization methods or any of the linkage scene trigger methods described above.

[0055] In an eleventh aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements any of the linkage scene synchronization methods or any of the linkage scene trigger methods described above when executing the program.

[0056] In a twelfth aspect, the present application further provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executable by a processor to implement any of the linkage scene synchronization methods or any of the linkage scene trigger methods described above.

[0057] The application provides a linkage scene synchronization and triggering method, device, terminal and network equipment. BRIEF DESCRIPTION OF DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0059] Figure 1 Fig. 1 is one of the flow diagrams of the linkage scene synchronization method provided by the application;

[0060] Figure 2 Fig. 2 is the local area network architecture diagram of the linkage scene synchronization provided by the application;

[0061] Figure 3 Fig. 3 is the signaling diagram of the linkage scene synchronization provided by the application;

[0062] Figure 4 Fig. 4 is the second flow diagram of the linkage scene synchronization method provided by the application;

[0063] Figure 5 Fig. 5 is one of the flow diagrams of the linkage scene triggering method provided by the application;

[0064] Figure 6 Fig. 6 is the local area network architecture diagram of the linkage scene triggering provided by the application;

[0065] Figure 7 Fig. 7 is the signaling diagram of the linkage scene triggering provided by the application;

[0066] Figure 8 Fig. 8 is the second flow diagram of the linkage scene triggering method provided by the application;

[0067] Figure 9 Fig. 9 is the structure diagram of the linkage scene synchronization device provided by the application;

[0068] Figure 10 Fig. 10 is one of the structure diagrams of the linkage scene triggering device provided by the application;

[0069] Figure 11 Figure 2 is a structural schematic diagram of a linkage scenario triggering device provided by the present application;

[0070] Figure 12 Figure 3 is a structural schematic diagram of a terminal provided by the present application;

[0071] Figure 13 Figure 4 is a structural schematic diagram of a network device provided by the present application;

[0072] Figure 14 Figure 5 is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0073] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

[0074] It should be noted that, in the description of the present application, the terms “comprise”, “contain” or any other variants thereof are intended to cover non-exclusive containing, so that the process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitation, the element defined by the statement “comprising a…” does not exclude the presence of other identical elements in the process, method, article or device comprising the element. The terms “upper”, “lower” and the like indicate the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the present application and simplify the description, and do not indicate or imply that the indicated device or element must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise specified and limited, the terms “mounting”, “connection”, “connecting” should be understood broadly, for example, it can be fixed connection, or detachable connection, or integral connection; it can be mechanical connection, or electrical connection; it can be direct connection, or indirect connection through intermediate medium, or internal communication of two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0075] The terms "first", "second", and the like in the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a class, not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in a "or" relationship.

[0076] The following will be described in conjunction with Figures 1-14 The linkage scene synchronization, triggering method, device, terminal and network equipment provided by the present application are described.

[0077] Figure 1 is one of the flowcharts of the linkage scene synchronization method provided by the present application, as Figure 1 shown, including but not limited to the following steps:

[0078] Step 11: receiving the linkage scene message broadcast by the hub processor.

[0079] Among them, the linkage scene message is generated by the hub processor according to the communication protocol type of the first terminal device after encapsulating the linkage scene data.

[0080] The present application is based on the smart home platform and scene control hub, and realizes the localization linkage scene synchronization and the control of the rapid execution of the localization linkage scene of the intelligent terminal device of different communication protocols in the same local area network.

[0081] Among them, the hub processor refers to the processing of the scene control hub, which can be an Internet of Things (IoT) scene control hub, a device with networking capability and basic storage and computing capability, a core system or platform for centralized management and control of terminal devices of Internet of Things, which acts as the brain of the Internet of Things system, responsible for the connection of terminal devices, data collection, data processing, decision and control functions, and can also be called a heterogeneous relay.

[0082] Among them, the first terminal device refers to any terminal device in the local area network, for example, it can be a wifi lamp, a Bluetooth socket, a ZigBee door magnet, etc.

[0083] The linkage scene synchronization, triggering method, device, terminal and network equipment provided by the present application mainly involve the control of two processes of linkage scene local synchronization and linkage scene local area network triggering.

[0084] Figure 2It is the LAN architecture diagram for the linked scenario synchronization provided by the present invention. Taking Figure 2 as an example, the entire LAN architecture diagram includes a smart home platform and a scenario control center (in Figure 2 , the scenario control center is a home scenario center), and also includes an Ethernet wifi device 1 (hereinafter referred to as wifi device 1) and an Ethernet wifi device n (hereinafter referred to as wifi device n) that communicate with the scenario control center using the LAN Coap protocol; a Bluetooth device 1 and a Bluetooth device n that communicate with the scenario control center using the Bluetooth protocol; a ZiggBee device 1 and a ZiggBee device n that communicate with the scenario control center using the ZiggBee protocol.

[0085] It should be noted that in the entire local area network, there may also be other terminal devices that communicate with the scenario control center through other communication protocols.

[0086] The linked scenario data can be data related to the linked scenarios of multiple terminal devices across protocols pre-created by the user through the smart home APP. The above-mentioned linked scenario data is stored in the smart home platform.

[0087] When the central processor of the scenario control center powers on and connects to the network or initializes, it can automatically download the latest linked scenario data from the smart home platform.

[0088] Then, the central processor encapsulates all the linked scenario data. It should be noted that generally, the central processor will perform differential encapsulation on the linked scenario data according to the communication protocol types of all terminal devices existing in the local area network.

[0089] Taking Figure 2 as an example, assuming that there are relevant terminal devices in the entire local area network that communicate using the Coap protocol, Bluetooth protocol, and ZiggBee protocol, then the central processor will perform differential encapsulation on the latest linked scenario data according to different communication protocols, respectively generating different linked scenario messages. With this setting, it can be ensured to the greatest extent that the central processor broadcasts the linked scenario messages in the broadcast formats of different communication protocols to terminal devices of different communication protocols.

[0090] In step 11, assuming that the first terminal device is Bluetooth device 1, then the central processor will encapsulate the latest linked scenario data according to the Bluetooth protocol to generate the corresponding linked scenario message and broadcast it, so that the first terminal device can receive and read the linked scenario message.

[0091] Figure 3 It is the signaling diagram for the linked scenario synchronization provided by the present invention, as shown in Figure 3As shown, generally, the central processor will broadcast the encapsulated linkage scene message to each terminal device in the local area network to the greatest extent.

[0092] Step 12: In the case where the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message, the linkage scene data is saved.

[0093] Taking the first terminal device as an example, after receiving the linkage scene message, the linkage scene data corresponding to the linkage scene message is read.

[0094] Generally, the linkage scene data at least includes user information, session identification, scene linkage ID, scene linkage trigger condition and scene linkage response action.

[0095] The user information refers to the identity of the user, that is, used to distinguish the scene synchronization in different local area networks. For example, in a home local area network, the user information can be set to effectively avoid the mis-synchronization or mis-triggering of the terminal devices in other home local area networks. In order to distinguish different broadcast processes, a unique session identification is configured for each broadcast linkage scene message. The scene linkage ID refers to the identity number of each set of linkage scene data, which is a unique serial number or account number. The scene linkage trigger condition is the trigger condition of the scene linkage, and in the case where the trigger condition is met, the scene linkage response action is executed to control the related terminal devices. The response action mainly refers to the execution of the preset action by the preset terminal device under the preset condition.

[0096] In this embodiment, after obtaining the linkage scene data corresponding to the linkage scene message, the first terminal device first compares the user information in the linkage scene data with the user information stored in the first terminal device itself to determine whether the linkage scene message is issued by the central processor in the same local area network, so as to avoid the occurrence of mis-synchronization or mis-triggering.

[0097] In the case where the user information in the linkage scene data is consistent with the locally stored user information, the first terminal device will store this linkage scene data locally.

[0098] Similarly, other terminal devices will store this linkage scene data locally in the same way as the first terminal device.

[0099] In addition, if there are multiple different linkage scene messages, each terminal device will store the linkage scene data of different linkage scene messages locally according to the different scene linkage IDs carried by the linkage scene messages. Subsequently, the corresponding linkage scene data can be retrieved from the local according to the different scene linkage IDs.

[0100] Step 13: Broadcast the linkage scenario message in the local area network.

[0101] Current technology uses a scene control hub as the synchronization center for linked scenes, with the central processor broadcasting the linked scene messages to all terminal devices. Since numerous terminal devices exist within the same local area network, and each device often uses different communication protocols, the communication range of these protocols is limited. Consequently, some terminal devices may fail to receive the linked scene messages broadcast by the central processor. Therefore, using existing technology for linked scene synchronization inevitably leads to situations where linked scene messages are not accurately received by all terminal devices or responses are delayed.

[0102] In view of this deficiency, after the terminal device receives the linkage scene message, it continues to act as a broadcast relay to continue broadcasting the received linkage scene message in the local area network.

[0103] by Figure 3 Taking the example shown, assuming the first terminal device is Bluetooth device 1, after receiving the linkage scene message broadcast by the central processor with the home scene hub, it first completes its own linkage scene synchronization based on the linkage scene data. Then, Bluetooth device 1 will continue to broadcast linkage scene messages.

[0104] Since the linkage scene message received by Bluetooth device 1 is generated by the central processor after encapsulating the linkage scene data according to its communication protocol type, the linkage scene message broadcast by Bluetooth device 1 can only be received by terminal devices using the same communication protocol type, such as Bluetooth device n. However, Wi-Fi device 1 and Wi-Fi device n, which use the Wi-Fi protocol for communication, cannot receive the linkage scene message broadcast by Bluetooth device 1.

[0105] Suppose that Bluetooth device n is too far from the central processor to receive the linkage scene message broadcast by the central processor. However, because Wi-Fi device 1 relays the linkage scene message, Bluetooth device n can receive the linkage scene message normally from Wi-Fi device 1, thus achieving synchronization of the linkage scene. Therefore, this effectively overcomes the defects of the prior art. Thus, the linkage scene synchronization method provided by this invention can effectively solve the defect of the prior art being limited by the coverage range of the linkage scene central processor when performing linkage scene synchronization. By supporting broadcasting between the central processor and terminal devices, and broadcasting between terminal devices, each terminal device acts as a relay for scene triggering and synchronization. When the relays are in different locations, they can mutually extend the coverage range of scene synchronization and triggering. Theoretically, the scene coverage range of this invention can be extended indefinitely, making it particularly suitable for building large-scale linkage scenes such as hotels, shopping malls, nursing homes, and villas.

[0106] Furthermore, existing solutions rely on the central processor to translate linked scene messages one by one for scene triggering, which results in significant latency when there are multiple terminal devices in the scene. The linked scene synchronization method provided by this invention supports broadcasting between the central processor and terminal devices, as well as broadcasting between terminal devices, for both scene synchronization and scene triggering. It can quickly achieve linked scene synchronization and scene triggering, and theoretically, the scene triggering latency is not limited by the number of terminal devices involved in the scene linkage. The latency will only be slightly affected when the transmitted linked scene message is too long.

[0107] Furthermore, the existing solutions for scene synchronization and triggering heavily rely on the central processor's power-on; once the central processor loses power, scene synchronization and triggering cannot be achieved. However, referring to... Figure 3 As shown, in a linkage scenario, if only one communication protocol exists, the synchronization and triggering of the linkage scenario will not be affected even if the central processor is powered off. For example, if only the Bluetooth communication protocol exists in the entire local area network, after the central processor is powered off, Bluetooth device 1 can act as the central processor and continue to perform linkage scenario synchronization and scene triggering control for other Bluetooth devices.

[0108] Finally, most existing solutions require pre-establishing the relationship between each terminal device and the central processor, usually referred to as a parent-child device relationship or a subordinate relationship. This invention, however, eliminates the need to establish such a subordinate relationship. Each terminal device only needs to focus on which messages it needs to forward in which scenarios and when it needs to perform which actions, resulting in greater flexibility in scenario execution.

[0109] In summary, the linkage scene synchronization provided by this invention allows terminal devices to save key information such as linkage scene data after receiving a linkage scene message, and then continue to broadcast the received scene message in the local area network. Scene synchronization and scene triggering both support broadcasting between the central control unit and terminal devices, as well as broadcasting between terminal devices and other terminal devices. Each terminal device is equivalent to a relay for scene synchronization and triggering, which can quickly realize scene synchronization and scene triggering. Theoretically, the scene triggering delay is not limited by the number of terminal devices involved in scene linkage. When there is only one communication protocol in the local area network, even if the scene control central control unit loses power, it will not affect the triggering of the scene.

[0110] Based on the above embodiments, as an optional embodiment, after the linkage scenario message is broadcast in the local area network, a second terminal device with the same communication protocol type as the first terminal device receives the linkage scenario message.

[0111] When the second terminal device determines that the session identifier of the linkage scenario message is inconsistent with the session identifier of other previously received linkage scenario messages, it generates device linkage data based on the linkage scenario data and saves it locally.

[0112] After receiving a linkage scenario message broadcast by the central processor or other terminal devices, each terminal device will compare the user information carried in the linkage scenario message with the user information stored locally. If they match, the linkage scenario data corresponding to the linkage scenario message will be stored locally; if they do not match, the linkage scenario message will be ignored.

[0113] To avoid broadcast storms, terminal devices with the same communication protocol type need to compare session identifiers after receiving a linkage scenario message. For example, after the first terminal device broadcasts the linkage scenario message in the local area network, the second terminal device with the same communication protocol as the first terminal device, upon receiving the linkage scenario message, will compare the session identifier carried in the linkage scenario message with the session identifiers of all other previously received linkage scenario messages. If there is a session identifier that is the same as the currently received linkage scenario message, it means that the linkage scenario message has already been processed before, so there is no need to process the linkage scenario message again, including rebroadcasting the linkage scenario message and storing the related linkage scenario data.

[0114] Based on the above embodiments, as an optional embodiment, after the second terminal device generates device linkage data based on the linkage scene data and saves it locally, it further includes: continuing to broadcast the linkage scene message in the local area network.

[0115] by Figure 3 Taking the example shown, let the first terminal device be Bluetooth device 1 and the second terminal device be Bluetooth device n. After Bluetooth device n receives the linkage scene message broadcast by Bluetooth device 1 or the central processor, and generates device linkage data based on the linkage scene data and saves it locally, Bluetooth device n continues to act as a broadcast relay, broadcasting the linkage scene message within the local area network.

[0116] The linkage scene synchronization method provided by this invention allows each terminal device to inherit the role of broadcast relay after completing different linkage scenes. When the broadcast relays are in different locations, they can extend the scene trigger coverage of each other, which can ensure the implementation effect of linkage scene synchronization to the greatest extent.

[0117] It should be noted that the aforementioned linked scenario data includes at least user information, session identifier, scenario linkage ID, scenario linkage triggering conditions, and scenario linkage response actions.

[0118] Correspondingly, as a terminal device, the device linkage data stored locally only needs to include a session identifier, a scene linkage ID, the triggering conditions of the linkage scene corresponding to the scene linkage ID, and the response action after the linkage scene is triggered.

[0119] As for the user information, it is generally stored locally when each terminal device completes the network configuration. In addition, for a standalone terminal device, it only needs to focus on its own trigger condition for the linkage scene in each linkage scene and its own response action after the linkage scene is triggered, and does not need to focus on the trigger condition of other terminal devices and the response action after the linkage scene is triggered, so that the requirement of the terminal device for the local storage space can be reduced to a certain extent.

[0120] Figure 4 is a flowchart of the linkage scene synchronization method provided by the application, as shown in Figure 4 The execution subject of the linkage scene synchronization method provided by the application is a hub processor, and the relevant operation steps include but are not limited to the following:

[0121] Step 41: The hub processor broadcasts a linkage scene message.

[0122] The linkage scene message is generated by encapsulating the linkage scene data according to the communication protocol type of the first terminal device, and the first terminal device is any terminal device in the local area network.

[0123] Step 42: The first terminal device maintains the linkage scene data and broadcasts the linkage scene message in the local area network in the case that the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message.

[0124] As shown in Figure 3 , it is assumed that the first terminal device is a Bluetooth device 1, and the hub processor will encapsulate the latest linkage scene data according to the Bluetooth protocol to generate a corresponding linkage scene message and broadcast it. The first terminal device can receive and read the linkage scene message.

[0125] After the Bluetooth device 1 obtains the linkage scene data corresponding to the linkage scene message, it first compares the user information in the linkage scene data with the user information stored in the first terminal device itself to determine whether the linkage scene message is sent by the hub processor in the same local area network, so as to avoid the occurrence of false synchronization or false triggering.

[0126] Generally, the linkage scene data at least includes user information, session identification, scene linkage ID, scene linkage trigger condition and scene linkage response action.

[0127] In the case that the user information in the linkage scene data is consistent with the locally stored user information, the Bluetooth device 1 will store this linkage scene data locally.

[0128] Similarly, other terminal devices store the linkage scene data locally in the same way as the first terminal device.

[0129] In addition, if there are multiple different linkage scene messages, each terminal device will store the linkage scene data of different linkage scene messages locally according to the different scene linkage IDs carried by the linkage scene messages. Subsequently, the corresponding linkage scene data can be retrieved from the local according to the different scene linkage IDs.

[0130] The linkage scene synchronization method provided by the application saves the linkage scene data and other key information after the terminal device receives the linkage scene message, and continues to broadcast the received scene message in the local area network. The scene synchronization and scene triggering support broadcast between the hub and the terminal device, and broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of scene synchronization and triggering, which can quickly realize scene synchronization and scene triggering. In theory, the scene triggering delay is not limited by the number of terminal devices of the scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, it does not affect the triggering of the scene.

[0131] Reference Figure 2 As shown in the above linkage scene message, the linkage scene data downloaded from the smart home platform is encapsulated by the hub processor when starting networking or initializing.

[0132] As an optional embodiment, the linkage scene message can also be generated by the hub processor by actively downloading the linkage scene data from the smart home platform after receiving and responding to the scene update instruction of the smart home platform.

[0133] The scene update instruction can be automatically generated by the smart home platform according to a preset period.

[0134] Alternatively, the scene update instruction can also be generated by the user sending a scene update requirement to the smart home platform through the smart home APP, and the application does not make specific limitations.

[0135] Based on the above embodiment, as an optional embodiment, before the hub processor broadcasts the linkage scene message, it further includes:

[0136] Obtain the communication protocol type of all terminal devices in the local area network.

[0137] According to different communication protocol types, the linkage scene data is differentially encapsulated to generate different linkage scene messages.

[0138] For example, the communication protocol type of the terminal device is Zigbee, and the communication protocol type of the other terminal device is Z-Wave. Figure 2As shown by an example, assuming that there are related terminal devices using Coap protocol, Bluetooth protocol and ZiggBee protocol for communication in the entire local area network, then the hub processor will differentially encapsulate the latest linkage scene data according to different communication protocols, and generate different linkage scene messages.

[0139] By adopting this processing mode, the hub processor can broadcast the linkage scene message in the broadcast format of different communication protocols to the terminal devices of different communication protocols to the greatest extent.

[0140] Figure 5 is one of flowcharts of the linkage scene triggering method provided by the application, as Figure 5 shown, the execution subject of the embodiment is a first terminal device, which is any terminal device in the local area network. On the basis of the linkage scene synchronization method provided in the above embodiment, the first terminal device synchronizes at least one linkage scene, so as to generate a group of device linkage data according to at least one group of linkage scene data and save to the local area network.

[0141] After the first terminal device completes the linkage scene synchronization, it subsequently executes the linkage scene triggering method, which mainly includes but is not limited to:

[0142] Step 51: in the case where it is determined that any scene linkage triggering condition is met, determining a target scene linkage ID and a target scene linkage response action corresponding to the any scene linkage triggering condition;

[0143] Step 52: executing the target scene linkage response action;

[0144] Step 53: broadcasting a scene triggering message in the local area network; the scene triggering message at least contains a new session identifier and the target scene linkage ID.

[0145] Figure 6 is a local area network architecture diagram of the linkage scene triggering provided by the application, as Figure 6 shown, the scene control hub (in Figure 6 the scene control hub is a kind of home scene hub), the local area network to which it belongs has terminal devices of multiple communication protocol types, such as including: Ethernet wifi device 1 (hereinafter referred to as wifi device 1) using local area network Coap protocol communication, Ethernet wifi device 2, Ethernet wifi device n (hereinafter referred to as wifi device n);Bluetooth device 1, Bluetooth device 2 and Bluetooth device n using Bluetooth protocol communication;ZiggBee device 1 and ZiggBee device n using ZiggBee protocol communication.

[0146] The terminal devices can communicate with the hub processor of the home scene hub directly on one hand, and the plurality of terminal devices with the same communication protocol type can also communicate and interact on the other hand.

[0147] Figure 7 The signaling schematic diagram of the linkage scene triggering provided by the application is shown in the figure. Figure 7 As an example, it is assumed that the first terminal device is a wifi device 1.

[0148] When it is determined that the current device state of the wifi device 1 meets a certain scene linkage triggering condition, the linkage scene is triggered, the wifi device 1 determines which linkage scene is triggered, reads the scene linkage ID related to the linkage scene, and reads the scene linkage response action required by the wifi device 1 after the linkage scene is triggered.

[0149] Further, the wifi device 1 starts to execute the scene linkage response action. Meanwhile, the wifi device 1 also broadcasts a scene triggering message in the local area network, which is used to notify other terminal devices that the linkage scene has been triggered, and other terminal devices related to the linkage scene need to execute the respective scene linkage response actions.

[0150] The linkage scene method provided by the application saves the linkage scene data and other key information after the terminal device receives the linkage scene message, and continues to broadcast the received scene message in the local area network, and the scene synchronization and the scene triggering support the broadcast between the hub and the terminal device and the broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of the scene synchronization and the scene triggering, the synchronization of the scene and the scene triggering can be quickly realized, and theoretically, the scene triggering delay is not limited by the number of terminal devices of the scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, the triggering of the scene is not affected.

[0151] Based on the content of the above embodiment, as an optional embodiment, after the first terminal device broadcasts a scene triggering message in the local area network, the second terminal device executes the following operations:

[0152] In a case where it is determined that the new session identifier is inconsistent with other locally stored session identifiers, a target linkage scene corresponding to the target scene linkage ID and target device linkage data are determined;

[0153] The response action after the target linkage scene is triggered, which is included in the target device linkage data, is executed;

[0154] The scene triggering message is continuously broadcasted in the local area network;

[0155] The communication protocol type of the second terminal device is the same as that of the first terminal device.

[0156] Assuming the first terminal device is the wifi device 1 shown in the figure, the second terminal device is the wifi device 2 or the wifi device n. Figure 6

[0157] Because the wifi device 2 and the wifi device n have the same communication protocol type as the wifi device 1, the above-mentioned scene trigger message can be directly received, and the target scene linkage ID carried by the scene trigger message can be read out, and then it can be determined according to the target scene linkage ID which linkage scene is triggered. The triggered linkage scene is called the target linkage scene, and the wifi device 2 and the wifi device n can respectively call the device linkage data (called the target device linkage data) corresponding to the target linkage scene from the local, and then execute the scene linkage response action contained in the target device linkage data.

[0158] It should be noted that, in order to avoid repeated actions of the wifi device 2 and the wifi device n for one scene trigger message, after receiving the scene trigger message, the session identifier of the scene trigger message will be compared with all other session identifiers stored locally, and if it is inconsistent with all other session identifiers, it means that the scene trigger message has not been received and responded to before, at this time, the scene linkage response action corresponding to the target scene linkage ID of the scene trigger message can be executed.

[0159] Taking the wifi device n as an example, if the session identifier of the scene trigger message is included in all other session identifiers stored locally, it means that the wifi device n has received and responded to the scene trigger message before, at this time, it will not repeat the action, that is, it will ignore the session identifier received this time and will not execute any action.

[0160] Further, after the wifi device 2 and the wifi device n execute the scene linkage response action corresponding to the scene trigger message, they will continue to broadcast the above-mentioned scene trigger message in the local area network as a new linkage relay, so that all other terminal devices in the local area network with the same communication protocol type as them can receive the scene trigger message.

[0161] Because there are still other terminal devices with different communication protocol types from the first terminal device in the local area network, these other terminal devices cannot receive the scene trigger message broadcast by the first terminal device.

[0162] Therefore, the linkage scene triggering method provided by the application can also be received by the central processor.

[0163] ​The central processor first counts the communication protocol types of all terminal devices in the local area network. It is assumed that Figure 6 and Figure 7 As shown, there are also Bluetooth devices 1, 2 and n in the local area network that communicate using Bluetooth protocol; ZigBee devices 1, 2 and n that communicate using ZigBee protocol.

[0164] Further, the central processor performs the following scheme measures to enable all terminal devices to be linked:

[0165] First, according to each communication protocol type, the received scene trigger message is translated and all the translated trigger messages obtained are broadcasted.

[0166] It is assumed that in addition to terminal devices using wifi communication protocol type, there are also terminal devices using ZigBee communication protocol and terminal devices using Bluetooth communication protocol type in the local area network. At this time, the central processor translates the received scene trigger message according to ZigBee communication protocol and Bluetooth communication protocol type respectively, and then broadcasts them respectively.

[0167] After the central processor translates the received scene trigger message according to Bluetooth communication protocol type, the translated trigger message generated can be received by Bluetooth devices 1, 2 and n. Similarly, after the central processor translates the received scene trigger message according to ZigBee communication protocol type, the translated trigger message generated can be received by ZigBee devices 1, 2 and n.

[0168] The present application generates and sends the linkage scene message by the triggered terminal device first, which can be accepted and read by the terminal device with the same communication protocol, and only needs to be translated according to the central processor for the terminal device with different communication protocol, which generally enables all terminal devices in the local area network to receive and correctly execute.

[0169] Figure 8 is a flowchart of the linkage scene trigger method provided by the present application, as shown in Figure 8 The execution subject of the linkage scene trigger control in the present embodiment is the central processor.

[0170] Before the trigger control is performed, any linkage scene synchronization method described in the above embodiments can be used to encapsulate the linkage scene data downloaded from the smart home platform into a linkage scene message, and then broadcast it to each terminal device in the local area network, which specifically includes but is not limited to the following steps:

[0171] Step 81: determining a scene trigger message broadcast by a first terminal device; the scene trigger message is generated by the first terminal device after performing a target scene linkage response action in a case where any scene linkage trigger condition is determined to be met; the target scene linkage response action is determined based on the any scene linkage trigger condition; the scene trigger message at least contains a new session identifier and a target scene linkage ID corresponding to the any scene linkage trigger condition.

[0172] Step 82: translating the scene trigger message according to a communication protocol type of all terminal devices in a local area network, and broadcasting all translation trigger messages obtained to enable a third terminal device to determine and perform a scene linkage response action of the third terminal device according to a target scene linkage ID carried by the scene trigger message.

[0173] The third terminal device is different from the first terminal device in terms of a communication protocol type.

[0174] In combination with Figure 7 It is shown that the first terminal device is a wifi device 1, and the third terminal device is a Bluetooth device n. Since the scene trigger message broadcast by the wifi device 1 cannot be received by the Bluetooth device n, but the scene trigger message can be received by the hub processor, the hub processor translates the scene trigger message according to different communication protocol types to generate translation trigger messages. Then, the hub processor broadcasts the translation trigger messages in the local area network

[0175] For example, after the hub processor translates the received scene trigger message according to the Bluetooth communication protocol type, the translation trigger message generated can be received by the Bluetooth device 1, the Bluetooth device 2, and the Bluetooth device n. Similarly, after the hub processor translates the received scene trigger message according to the ZiggBee communication protocol type, the translation trigger message generated can be received by the ZiggBee device 1, the ZiggBee device 2, and the ZiggBee device n.

[0176] It should be noted that when the hub processor translates the scene trigger message according to different communication protocol types, the related scene linkage ID and session identifier are retained, that is, the scene trigger message and each translation trigger message obtained by translation have the same scene linkage ID and session identifier.

[0177] It should be noted that before the hub processor translates the scene trigger message and broadcasts all translation trigger messages obtained, the hub processor further includes:

[0178] determining a scene linkage response action corresponding to the target scene linkage ID carried by the scene trigger message;

[0179] judging whether the scene linkage response action exists the third terminal device different from the communication protocol type of the first terminal device;

[0180] If so, the scene trigger message is translated and all the translated trigger messages are broadcasted.

[0181] That is, before the hub processor translates the scene trigger message, it needs to be clear whether there are other terminal devices in the local area network different from the communication protocol type of the first terminal device, if not, then the hub processor does not need to participate in the trigger control of the whole linkage scene. If so, it translates the scene trigger message according to different communication protocol types and broadcasts the translated trigger message to these other terminal devices.

[0182] As an optional embodiment, the third terminal device continues to broadcast the scene trigger message in the local area network.

[0183] For example, after the Bluetooth device 1 receives the translated trigger message broadcasted by the hub processor, it continues to broadcast in the local area network after it performs the corresponding scene linkage response action.

[0184] Suppose the Bluetooth device n does not receive the translated trigger message broadcasted by the hub processor because it is far away from the hub processor, but it can directly receive the translated trigger message broadcasted by the Bluetooth device 1 and correctly perform the scene linkage response action required in the target scene linkage because the Bluetooth device n is relatively close to the Bluetooth device 1.

[0185] Therefore, the linkage scene trigger method provided by the application can effectively solve the defect that the prior art is limited by the coverage range of the linkage scene hub when performing the linkage scene synchronization. By supporting the broadcast between the hub processor and the terminal device and the broadcast between the terminal devices, each terminal device is equivalent to a relay of scene trigger and synchronization. When the relays are in different positions, they can extend the coverage range of scene synchronization and trigger. In theory, the scene coverage range of the application can be infinitely extended, and it is particularly suitable for building large-scale linkage scenes such as hotels, shopping malls, nursing homes and villas.

[0186] Figure 9 is a structural schematic diagram of the linkage scene synchronization device provided by the application, as shown in Figure 9 mainly includes but is not limited to:

[0187] The first receiving unit 91 receives the linkage scene message broadcast by the hub processor; the linkage scene message is generated by the hub processor according to the communication protocol type of the first terminal device, and is generated after the linkage scene data is encapsulated;

[0188] The first storage unit 92 is configured to save the linkage scene data in a case where the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message;

[0189] The first sending unit 93 is configured to broadcast the linkage scene message in the local area network.

[0190] It should be noted that the linkage scene synchronization device can be integrated on any terminal device in the local area network, for example, integrated in the processor of the terminal device.

[0191] The linkage scene synchronization device provided by the present application can execute the linkage scene synchronization method of any of the above embodiments when in operation, and the present embodiment will not be repeated. The linkage scene synchronization device provided by the present application determines the terminal device to save the linkage scene data and other key information after receiving the linkage scene message, and continues to broadcast the received scene message in the local area network. The scene synchronization and scene triggering support broadcast between the hub and the terminal device, and broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of scene synchronization and triggering, and can quickly realize scene synchronization and scene triggering. In theory, the scene triggering delay is not limited by the number of terminal devices in the scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, the scene triggering is not affected.

[0192] The present application also provides another linkage scene synchronization device, which can be integrated in the hub processor, and mainly includes but is not limited to:

[0193] The second sending unit is configured to broadcast the linkage scene message;

[0194] The linkage scene message is generated by encapsulating the linkage scene data according to the communication protocol type of the first terminal device, and the first terminal device is any terminal device in the local area network;

[0195] The first terminal device maintains the linkage scene data and broadcasts the linkage scene message in the local area network in a case where the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message.

[0196] The linkage scene synchronization device provided by the present application can execute the linkage scene synchronization method of any of the above embodiments when in operation, and the present embodiment will not be repeated.

[0197] Figure 10 is one of the structural schematic diagram of the linkage scene triggering device provided by the present application, as shown in Figure 10 mainly includes but is not limited to:

[0198] The first identification unit 101 is used for determining the target scene linkage ID and the target scene linkage response action corresponding to any scene linkage triggering condition in the case of determining that the any scene linkage triggering condition is met;

[0199] The first control unit 102 is used for controlling the first terminal device to execute the target scene linkage response action;

[0200] The third sending unit 103 is used for broadcasting a scene triggering message in the local area network; the scene triggering message at least contains a new session identifier and the target scene linkage ID.

[0201] It should be noted that the linkage scene triggering device described above can be integrated on any terminal device in the local area network, for example, integrated in the processor of the terminal device.

[0202] The linkage scene triggering device provided by the present application can execute the linkage scene triggering method described in any of the above embodiments when it is running, and this embodiment will not be repeated. The linkage scene triggering device provided by the present application determines that the terminal device saves the linkage scene data and other key information after receiving the linkage scene message, and continues to broadcast the received scene message in the local area network. Scene synchronization and scene triggering support broadcast between the hub and the terminal device, broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of scene synchronization and triggering, which can quickly realize scene synchronization and scene triggering. In theory, the scene triggering delay is not limited by the number of terminal devices of the scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, it will not affect the triggering of the scene.

[0203] Figure 11 is the second structural schematic diagram of the linkage scene triggering device provided by the present application, as shown in Figure 11 mainly includes but is not limited to:

[0204] The second receiving unit 111 is used for receiving the scene triggering message broadcasted by the first terminal device;

[0205] The scene triggering message is generated by the first terminal device after executing the target scene linkage response action in the case of determining that any scene linkage triggering condition is met; the target scene linkage response action is determined based on the any scene linkage triggering condition; the scene triggering message at least contains a new session identifier and a target scene linkage ID corresponding to the any scene linkage triggering condition;

[0206] The fourth sending unit 112 is configured to translate the scene trigger message according to the communication protocol type of all terminal devices in the local area network, and broadcast all the translated trigger messages, so that the third terminal device determines and executes the scene linkage response action of the third terminal device according to the target scene linkage ID carried in the scene trigger message.

[0207] The third terminal device is different from the first terminal device in the communication protocol type.

[0208] It should be noted that the linkage scene trigger device can be integrated on any terminal device in the local area network, for example, integrated in the processor of the terminal device.

[0209] The linkage scene trigger device provided by the present application can execute the linkage scene trigger method of any of the above embodiments during operation, and the present embodiment will not be repeated. The linkage scene trigger device provided by the present application determines the terminal device to save the linkage scene data and other key information after receiving the linkage scene message, and continues to broadcast the received scene message in the local area network. Scene synchronization and scene triggering support broadcast between the hub and the terminal device, broadcast between the terminal device and other terminal devices. Each terminal device is equivalent to a relay of scene synchronization and triggering, which can quickly realize scene synchronization and scene triggering. In theory, the scene triggering delay is not limited by the number of terminal devices in the scene linkage. When there is only one communication protocol in the local area network, even if the scene control hub is powered off, it will not affect the triggering of the scene.

[0210] Figure 12 is a structural schematic diagram of a terminal provided by the present application. As shown in Figure 12 The present application also provides a terminal, which can include a memory 121, a transceiver 122, and a processor 123.

[0211] The memory 121 is configured to store a computer program; the transceiver 122 is configured to transceive data under the control of the processor 123; and the processor 123 is configured to read the computer program in the memory 121 and perform the following operations:

[0212] receive the linkage scene message broadcast by the hub processor; the linkage scene message is generated by the hub processor by encapsulating the linkage scene data according to the communication protocol type of the first terminal device;

[0213] save the linkage scene data when it is determined that the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message;

[0214] broadcast the linkage scene message in the local area network;

[0215] Or the following operations are performed:

[0216] In the case where it is determined that any scenario linkage trigger condition is met, a target scenario linkage ID and a target scenario linkage response action corresponding to the any scenario linkage trigger condition are determined;

[0217] The target scenario linkage response action is executed;

[0218] A scenario trigger message is broadcast in the local area network; the scenario trigger message at least contains a new session identifier and the target scenario linkage ID.

[0219] In the case where it is determined that any scenario linkage trigger condition is met, a target scenario linkage ID and a target scenario linkage response action corresponding to the any scenario linkage trigger condition are determined; Figure 12 In the case where it is determined that any scenario linkage trigger condition is met, a target scenario linkage ID and a target scenario linkage response action corresponding to the any scenario linkage trigger condition are determined; The bus architecture can include any number of interconnecting buses and bridges, and the various circuits described herein are linked together by the bus architecture, which is represented generally by the processor 123, which is representative of one or more processors, and the memory 121, which is representative of the various circuits of the memory. The bus architecture can also link various other circuits such as peripheral devices, voltage stabilizers, and power management circuits, which are well known in the art, and thus, are not further described herein. The bus interface provides an interface. The transceiver 122 can be a plurality of elements, i.e., including a transmitter and a receiver, which provide units for communicating with various other devices on a transmission medium. The user interface 124 can also be an interface that can be externally connected to the required device for different user devices.

[0220] The processor 123 is responsible for managing the bus architecture and general processing, and the memory 121 can store data used by the processor 123 when performing operations.

[0221] The processor 123, by invoking the computer program stored in the memory 121, is used to execute any of the methods provided by the present application according to the obtained executable instructions. The processor and the memory can also be physically arranged separately.

[0222] Figure 13 For the structural diagram of the network device according to the present application, refer to Figure 13 The present application also provides a network device, which can include: a memory 131, a transceiver 132, and a processor 133;

[0223] The memory 131 is used to store a computer program; the transceiver 132 is used to transceive data under the control of the processor 133; and the processor 133 is used to read the computer program in the memory 131 and perform the following operations:

[0224] A linkage scenario message is broadcast, which is generated by encapsulating linkage scenario data according to the communication protocol type of a first terminal device, and the first terminal device is any terminal device in the local area network;

[0225] The first terminal device keeps the linkage scene data and broadcasts the linkage scene packet in the local area network if user information contained in the linkage scene data determined according to the linkage scene packet is consistent with locally stored user information.

[0226] Or the following operations are performed:

[0227] Receive a scene trigger packet broadcast by a first terminal device; the scene trigger packet is generated by the first terminal device after performing a target scene linkage response action determined based on any scene linkage trigger condition if it is determined that the scene linkage trigger condition is met; the scene trigger packet at least contains a new session identifier and a target scene linkage ID corresponding to the any scene linkage trigger condition;

[0228] According to the communication protocol type of all terminal devices in the local area network, the scene trigger packet is translated and all translated trigger packets obtained are broadcasted, so that a third terminal device determines and performs a scene linkage response action of the third terminal device according to a target scene linkage ID carried by the scene trigger packet;

[0229] The third terminal device is different from the communication protocol type of the first terminal device.

[0230] Wherein, in the Figure 13 The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application of the processor 133 represented by one or more processors and the memory represented by the memory 131, various circuits are linked together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators and power management circuits, which are well known in the art, therefore, they will not be further described herein. The bus interface provides an interface. The transceiver 132 can be a plurality of elements, i.e. including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 133 is responsible for managing the bus architecture and general processing, and the memory 131 can store data used by the processor 133 in performing operations.

[0231] It should be noted that the terminal and network device provided by the present application can realize all method steps realized by the above-mentioned method embodiments, and can achieve the same technical effects. The same parts and beneficial effects in this embodiment as the method embodiments will not be described in detail.

[0232] Figure 14Is the structural schematic diagram of the electronic device provided by the application, as shown in Figure #, the electronic device can include: processor (processor) 141, communications interface (Communications Interface) 142, memory (memory) 143 and communication bus 144, wherein, processor 141, communications interface 142, memory 143 complete mutual communication through communication bus 144.Processor 141 can call the logic instruction in memory 143, to execute the linkage scene synchronization method, the method includes:

[0233] Receive the linkage scene message broadcast by the hub processor;The linkage scene message is generated by encapsulating the linkage scene data according to the communication protocol type of the first terminal device by the hub processor;

[0234] In the case where the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message, save the linkage scene data;

[0235] Broadcast the linkage scene message in the local area network;

[0236] Or, in the case where any scene linkage trigger condition is determined to meet, determine the target scene linkage ID and target scene linkage response action corresponding to the any scene linkage trigger condition;

[0237] Execute the target scene linkage response action;

[0238] Broadcast a scene trigger message in the local area network;The scene trigger message at least contains a new session identifier and the target scene linkage ID.

[0239] Or, broadcast linkage scene message, the linkage scene message is generated by encapsulating the linkage scene data according to the communication protocol type of the first terminal device, and the first terminal device is any terminal device in the local area network;

[0240] The first terminal device remains the linkage scene data in the case where the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message, and broadcasts the linkage scene message in the local area network;

[0241] Or, receive the scene trigger message broadcast by the first terminal device;The scene trigger message is generated by the first terminal device in the case where any scene linkage trigger condition is determined to meet, and the target scene linkage response action is executed;The target scene linkage response action is determined based on the any scene linkage trigger condition;The scene trigger message at least contains a new session identifier and the target scene linkage ID corresponding to the any scene linkage trigger condition.

[0242] According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all translated trigger messages are broadcasted, so that the third terminal device determines and executes the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message.

[0243] The third terminal device is different from the communication protocol type of the first terminal device.

[0244] In addition, the logic instructions in the memory 143 described above can be implemented in the form of a software function unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0245] On the other hand, the present application also provides a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, and the computer program comprises program instructions, when the program instructions are executed by a computer, the computer can execute the linkage scene synchronization method provided by the above-mentioned embodiments, and the method comprises:

[0246] Receiving the linkage scene message broadcasted by the hub processor; the linkage scene message is generated by the hub processor according to the communication protocol type of the first terminal device by encapsulating the linkage scene data;

[0247] In the case where it is determined that the user information contained in the linkage scene data is consistent with the locally stored user information according to the linkage scene message, the linkage scene data is saved;

[0248] Broadcasting the linkage scene message in the local area network;

[0249] Or, in the case where it is determined that any scene linkage trigger condition is met, the target scene linkage ID and the target scene linkage response action corresponding to the any scene linkage trigger condition are determined;

[0250] performing the target scene linkage response action;

[0251] broadcasting a scene trigger message in the local area network; the scene trigger message at least contains a new session identifier and the target scene linkage ID.

[0252] Alternatively, a linkage scene message is broadcasted, the linkage scene message is generated by encapsulating linkage scene data according to a communication protocol type of a first terminal device, the first terminal device being any terminal device in the local area network;

[0253] the first terminal device keeps the linkage scene data and broadcasts the linkage scene message in the local area network in a case where it is determined according to the linkage scene message that user information contained in the linkage scene data is consistent with locally stored user information;

[0254] Alternatively, a scene trigger message broadcasted by a first terminal device is received; the scene trigger message is generated by the first terminal device in a case where it is determined that any scene linkage trigger condition is met, and a target scene linkage response action is performed based on the any scene linkage trigger condition; the scene trigger message at least contains a new session identifier and a target scene linkage ID corresponding to the any scene linkage trigger condition;

[0255] all translation trigger messages obtained by translating the scene trigger message according to communication protocol types of all terminal devices in the local area network are broadcasted, so that a third terminal device determines and performs a scene linkage response action of the third terminal device according to a target scene linkage ID carried by the scene trigger message;

[0256] the third terminal device is different from the first terminal device in the communication protocol type.

[0257] In yet another aspect, the application further provides a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement a linkage scene synchronization method provided by each of the above embodiments, the method comprising:

[0258] receiving a linkage scene message broadcasted by a hub processor; the linkage scene message is generated by the hub processor by encapsulating linkage scene data according to a communication protocol type of a first terminal device;

[0259] saving the linkage scene data in a case where it is determined according to the linkage scene message that user information contained in the linkage scene data is consistent with locally stored user information;

[0260] broadcasting the linkage scene message in the local area network;

[0261] Alternatively, in a case where it is determined that any of the scene linkage trigger conditions is met, a target scene linkage ID corresponding to the scene linkage trigger condition and a target scene linkage response action are determined;

[0262] The target scene linkage response action is executed.

[0263] A scene trigger message is broadcast in the local area network; the scene trigger message at least contains a new session identifier and the target scene linkage ID.

[0264] Alternatively, a linkage scene message is broadcast; the linkage scene message is generated by encapsulating linkage scene data according to a communication protocol type of a first terminal device; the first terminal device is any terminal device in the local area network.

[0265] In a case where the first terminal device determines, according to the linkage scene message, that user information contained in the linkage scene data is consistent with locally stored user information, the linkage scene data is maintained, and the linkage scene message is broadcast in the local area network.

[0266] Alternatively, a scene trigger message broadcast by a first terminal device is received; the scene trigger message is generated by the first terminal device in a case where it is determined that any of the scene linkage trigger conditions is met, and a target scene linkage response action is executed; the target scene linkage response action is determined based on the scene linkage trigger condition; the scene trigger message at least contains a new session identifier and a target scene linkage ID corresponding to the scene linkage trigger condition.

[0267] According to communication protocol types of all terminal devices in the local area network, the scene trigger message is translated, and all translated trigger messages obtained are broadcast, so that a third terminal device determines and executes a scene linkage response action of the third terminal device according to a target scene linkage ID carried by the scene trigger message.

[0268] The third terminal device is different from the first terminal device in the communication protocol type.

[0269] The apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purposes of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0270] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0271] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for synchronizing a linked scene, the method comprising: Used in the first terminal device, including: The central processor receives a linkage scenario message broadcast by the central processor; the linkage scenario message is generated by the central processor after encapsulating the linkage scenario data according to the communication protocol type of the first terminal device. If it is determined from the linked scenario message that the user information contained in the linked scenario data is consistent with the user information stored locally, the linked scenario data is saved. Broadcast the aforementioned linkage scenario message on the local area network.

2. The method of claim 1, wherein, After the linkage scenario message is broadcast in the local area network, the second terminal device, which has the same communication protocol type as the first terminal device, receives the linkage scenario message. When the second terminal device determines that the session identifier of the linkage scenario message is inconsistent with the session identifier of other previously received linkage scenario messages, it generates device linkage data based on the linkage scenario data and saves it locally.

3. The method of claim 2, wherein, After the second terminal device generates device linkage data based on the linkage scene data and saves it locally, the process further includes: Continue broadcasting the linkage scenario message in the local area network.

4. The method of claim 2, wherein, The linkage scenario data includes at least the user information, the session identifier, the scenario linkage ID, the scenario linkage triggering condition, and the scenario linkage response action; the device linkage data includes at least the session identifier, the scenario linkage ID, the triggering condition of the linkage scenario corresponding to the second terminal device and the scenario linkage ID, and the response action of the second terminal device after the linkage scenario is triggered.

5. A method for synchronizing a linked scene, the method comprising: Used in central processing units, including: Broadcast linkage scene message, the linkage scene message is generated by encapsulating linkage scene data according to the communication protocol type of the first terminal device, the first terminal device is any terminal device in the local area network; When the first terminal device determines that the user information contained in the linkage scenario data is consistent with the user information stored locally based on the linkage scenario message, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.

6. The method of claim 5, wherein, The linked scenario message is generated by the central processor after encapsulating the linked scenario data downloaded from the smart home platform when it powers on, connects to the network, or initializes.

7. The method of claim 5, wherein, Before broadcasting the linked scenario message, it also includes: Obtain the communication protocol type of all terminal devices in the local area network; Based on different communication protocol types, the linkage scenario data is encapsulated in a differentiated manner to generate different linkage scenario messages.

8. A method for triggering a linked scene, the method comprising: Applied to a first terminal device, based on the linkage scene synchronization method of any one of claims 1-4, at least one linkage scene is synchronized to generate a set of device linkage data based on at least one set of linkage scene data and save it locally; The method for triggering the linked scene includes: If any scenario linkage trigger condition is met, determine the target scenario linkage ID and target scenario linkage response action corresponding to the scenario linkage trigger condition. Execute the target scene linkage response action; A scenario trigger message is broadcast in the local area network; the scenario trigger message contains at least a new session identifier and the target scenario linkage ID.

9. The method of claim 8, wherein, After the first terminal device broadcasts a scenario trigger message in the local area network, the second terminal device performs the following operations: If it is determined that the new session identifier is inconsistent with other session identifiers stored locally, the target linkage scenario and target device linkage data corresponding to the target scenario linkage ID are determined. Execute the response action contained in the target device linkage data after the target linkage scenario is triggered; Continue broadcasting the scenario trigger message on the local area network; The second terminal device has the same communication protocol type as the first terminal device.

10. The method of claim 8, wherein, After the first terminal device broadcasts a scenario trigger message in the local area network, the following steps are also included: The central processor translates the scenario trigger message according to the communication protocol type of all terminal devices in the local area network and broadcasts all the translated trigger messages.

11. A method for triggering a linked scene, the method comprising: When applied to a central processing unit, based on the linkage scene synchronization method described in any one of claims 5-7, the linkage scene data downloaded from the smart home platform is encapsulated into a linkage scene message and broadcast to each terminal device in the local area network. The method for triggering the linked scene includes: The system receives a scene trigger message broadcast by a first terminal device. The scene trigger message is generated by the first terminal device after executing a target scene linkage response action when it determines that any scene linkage trigger condition is met. The target scene linkage response action is determined based on the any scene linkage trigger condition. The scene trigger message contains at least a new session identifier and a target scene linkage ID corresponding to the any scene linkage trigger condition. According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all translated trigger messages are broadcast so that the third terminal device can determine and execute the scene linkage response action of the third terminal device based on the target scene linkage ID carried in the scene trigger message. The third terminal device uses a different communication protocol than the first terminal device.

12. The method of claim 11, wherein, Before the central processor translates the scene trigger message and broadcasts all the translated trigger messages, it also includes: Determine the scene linkage response action that corresponds to the target scene linkage ID carried in the scene trigger message; Determine whether a third terminal device exists that has a different communication protocol type from the first terminal device in the scene linkage response action; If it exists, the scenario trigger message is translated and all translated trigger messages are broadcast.

13. The method of claim 11, wherein, The third terminal device continues to broadcast the scenario trigger message within the local area network.

14. The method of claim 11, wherein, Before the third terminal device determines and executes the scene linkage response action based on the target scene linkage ID carried in the scene trigger message, the method further includes: Determine whether the new session identifier carried in the scenario trigger message is consistent with other previously received session identifiers; If there is a discrepancy, the scene linkage response action of the third terminal device is determined and executed.

15. A linkage scene synchronization apparatus, comprising: The integrated configuration in the first terminal device includes: A first receiving unit, configured to receive a linkage scenario message broadcast by a central processing unit; the linkage scenario message is generated by the central processing unit after encapsulating linkage scenario data according to the communication protocol type of the first terminal device; A first storage unit, configured to save the linkage scenario data when it is determined that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message; A first sending unit, configured to broadcast the linkage scenario message in a local area network.

16. A linkage scene synchronization apparatus, comprising: Integratedly arranged in the central processing unit, including: A second sending unit, configured to broadcast a linkage scenario message; The linkage scenario message is generated by encapsulating linkage scenario data according to the communication protocol type of a first terminal device, and the first terminal device is any terminal device in the local area network; When it is determined that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message, the first terminal device retains the linkage scenario data and broadcasts the linkage scenario message in the local area network.

17. A linkage scenario triggering apparatus characterized by comprising: Integratedly arranged in the first terminal device, based on the linkage scenario synchronization method according to any one of claims 1-4, synchronizing at least one linkage scenario, and generating a set of device linkage data according to at least one set of the linkage scenario data and saving it to the local of the first terminal device; including: A first identification unit, configured to determine a target scenario linkage ID and a target scenario linkage response action corresponding to the any scenario linkage trigger condition when it is determined that the any scenario linkage trigger condition is satisfied; A first control unit, configured to control the first terminal device to execute the target scenario linkage response action; A third sending unit, configured to broadcast a scenario trigger message in the local area network; the scenario trigger message at least includes a new session identifier and the target scenario linkage ID.

18. A linkage scenario triggering apparatus characterized by comprising: Integratedly arranged in the central processing unit, based on the linkage scenario synchronization method according to any one of claims 5-7, encapsulating the linkage scenario data downloaded from a smart home platform into a linkage scenario message and then broadcasting it to each terminal device in the local area network, including: A second receiving unit, configured to receive the scenario trigger message broadcast by the first terminal device; The scenario trigger message is generated after the first terminal device executes a target scenario linkage response action when it is determined that the any scenario linkage trigger condition is satisfied; the target scenario linkage response action is determined based on the any scenario linkage trigger condition; the scenario trigger message at least includes a new session identifier and a target scenario linkage ID corresponding to the any scenario linkage trigger condition; A fourth sending unit, configured to translate the scenario trigger message according to the communication protocol types of all terminal devices in the local area network and broadcast all the translated trigger messages, so that a third terminal device determines and executes the scenario linkage response action of the third terminal device according to the target scenario linkage ID carried in the scenario trigger message; The third terminal device has a different communication protocol type from that of the first terminal device.

19. A terminal, characterized by Including a memory, a transceiver, and a processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; a processor for reading the computer program in the memory and performing the following operations: Receiving a linkage scenario message broadcast by a central processing unit; the linkage scenario message is generated by encapsulating linkage scenario data according to the communication protocol type of a first terminal device; When it is determined that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message, saving the linkage scenario data; Broadcasting the linkage scenario message in a local area network; Or performing the following operations: When it is determined that any scenario linkage trigger condition is satisfied, determining a target scenario linkage ID and a target scenario linkage response action corresponding to the any scenario linkage trigger condition; Performing the target scenario linkage response action; Broadcasting a scenario trigger message in the local area network; The scenario trigger message at least includes a new session identifier and the target scenario linkage ID.

20. A network device, characterized in that, Including a memory, a transceiver, and a processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; a processor for reading the computer program in the memory and performing the following operations: Broadcasting a linkage scenario message, which is generated by encapsulating linkage scenario data according to the communication protocol type of a first terminal device, and the first terminal device is any terminal device in a local area network; When the first terminal device determines that the user information included in the linkage scenario data is consistent with the locally stored user information according to the linkage scenario message, retaining the linkage scenario data and broadcasting the linkage scenario message in the local area network; Or performing the following operations: Receiving a scenario trigger message broadcast by a first terminal device; The scenario trigger message is generated after the first terminal device performs a target scenario linkage response action when it is determined that any scenario linkage trigger condition is satisfied; The target scenario linkage response action is determined based on the any scenario linkage trigger condition; The scenario trigger message at least includes a new session identifier and a target scenario linkage ID corresponding to the any scenario linkage trigger condition; Translating the scenario trigger message according to the communication protocol types of all terminal devices in the local area network and broadcasting all the translated trigger messages obtained, so that a third terminal device can determine and perform a scenario linkage response action of the third terminal device according to the target scenario linkage ID carried in the scenario trigger message; The third terminal device has a different communication protocol type from the first terminal device.

21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the linkage scenario synchronization method according to any one of claims 1 to 7, or implements the linkage scenario trigger method according to any one of claims 8 to 14.

22. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the linkage scenario synchronization method according to any one of claims 1 to 7, or implements the linkage scenario trigger method according to any one of claims 8 to 14.

Citation Information

Patent Citations

  • Smart home gateway and data processing method

    CN114915521A

  • Method and device for reliably transmitting mass messages of Internet of Things based on cloud platform, and medium

    CN115412576A