Linkage scene synchronization method and device, linkage scene triggering method and device, terminal and network equipment
By receiving and broadcasting linkage scene messages on the terminal device, a relay effect is formed, which solves the problem of scene linkage relying on the hub in the existing technology, and achieves scene synchronization and triggering with rapid response and wide coverage.
Patent Information
- Application Number
- CN202410203907.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-02-23
AI Technical Summary
When the existing technology implements scene linkage in a cross-protocol LAN, there are problems such as data synchronization and triggering relying on the scene control center, resulting in inability to synchronize when the center is powered off, long delays, limited coverage, and poor flexibility.
By receiving the linkage scenario messages broadcast by the central processor on the terminal device, saving and broadcasting them in the LAN, broadcasting between the hub and terminal devices and between terminal devices is realized, forming a relay for scene synchronization and triggering, and supporting multi-protocol Linked scene synchronization and triggering.
It achieves fast response to scene synchronization and triggering, reduces latency, improves coverage and flexibility, and ensures that central power outages do not affect linkage. It is suitable for the construction of large-scale scenes.
Smart Images

Figure CN118803586A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a linkage scene synchronization and triggering method, device, terminal and network equipment. Background Art
[0002] At present, the scene linkage in the cross-protocol local area network mostly relies on the scene control center to save various linkage scene data 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 center needs to serially translate it into linkage scene messages of different communication protocols and send them to the corresponding terminal device to realize the scene linkage.
[0003] The current scene synchronization method has the following main defects:
[0004] (1) The synchronization of scene data and scene triggering is highly dependent on the power-on of the scene control center. Once the center device is powered off, even if only one protocol is involved in the local scene, the synchronization of scene data and scene triggering cannot be achieved.
[0005] (2) Since the synchronization of linkage scene data and scene triggering strongly relies on the scene control center to translate between different communication protocols, there will be obvious delays when there are many terminal devices in the local area network.
[0006] (3) The synchronization of linkage scene data and scene triggering in the existing solution are centered on the scene control center. Due to the limited coverage, some terminal devices cannot receive linkage scene messages. As a result, these terminal devices cannot accurately synchronize linkage scenes, which ultimately leads to failures in subsequent scene linkages.
[0007] (4) The existing solution requires the relationship between the scene control center and all terminal devices in the local area network to be clearly defined in advance, which is usually called a parent-child device relationship or a subordinate relationship, and has poor flexibility.
[0008] In view of this, there is an urgent need to improve the existing linkage scene synchronization and trigger control solutions. Summary of the invention
[0009] The present invention provides a linkage scene synchronization, triggering method, device, terminal and network equipment, which are used to solve various defects existing in the prior art centered on the scene control center.
[0010] In a first aspect, the present invention provides a linkage scene synchronization method, which is applied to a first terminal device, comprising:
[0011] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0012] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0013] Broadcast the linkage scenario message in the local area network.
[0014] In a second aspect, the present invention provides another linkage scene synchronization method, which is applied to a central processor, comprising:
[0015] Broadcasting a linkage scenario message, where the linkage scenario message is generated by encapsulating linkage scenario data according to a communication protocol type of a first terminal device, where the first terminal device is any terminal device in a local area network;
[0016] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
[0017] In a third aspect, the present invention provides a linkage scene triggering method, which is applied to a first terminal device, based on any linkage scene synchronization method of the first aspect, to synchronize at least one linkage scene, so as to generate a set of device linkage data based on at least one set of linkage scene data and save it locally;
[0018] The linkage scene triggering method includes:
[0019] When 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 any scene linkage trigger condition;
[0020] Execute the target scene linkage response action;
[0021] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0022] In a fourth aspect, the present invention provides another linkage scene triggering method, which is applied to a central processor, based on any linkage scene synchronization method of the second aspect, encapsulates the linkage scene data downloaded from the smart home platform into a linkage scene message, and broadcasts it to each terminal device in the local area network;
[0023] The linkage scene triggering method includes:
[0024] Receive a scene trigger message broadcast by the first terminal device; the scene trigger message is generated by the first terminal device after executing a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0025] According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0026] The third terminal device has a communication protocol type different from that of the first terminal device.
[0027] In a fifth aspect, the present invention provides a linkage scene synchronization device, which is integrated in a first terminal device, including:
[0028] A first receiving unit receives a linkage scene message broadcast by a central processor; the linkage scene message is generated by the central processor after encapsulating linkage scene data according to a communication protocol type of the first terminal device;
[0029] A first storage unit, configured to save the linkage scenario data when it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information;
[0030] The first sending unit is used to broadcast the linkage scenario message in the local area network.
[0031] In a sixth aspect, the present invention provides another linkage scene synchronization device, which is integrated in a central processor and includes:
[0032] The second sending unit is used to broadcast the linkage scene 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 according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
[0035] In a seventh aspect, the present invention provides a linkage scene triggering device, which is integrated and arranged in a first terminal device, and synchronizes at least one linkage scene based on any linkage scene synchronization method of the first aspect, so as to generate a set of device linkage data according to at least one set of linkage scene data and save it locally to the first terminal device; comprising:
[0036] A first identification unit is used to determine a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition when it is determined that any scene linkage trigger condition is satisfied;
[0037] A first control unit, used to control the first terminal device to execute the target scene linkage response action;
[0038] The third sending unit is used to broadcast a scene trigger message in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0039] In an eighth aspect, the present invention provides another linkage scene triggering device, which is integrated in a central processor, and based on any linkage scene synchronization method of the second aspect, the linkage scene data downloaded from the smart home platform is encapsulated into a linkage scene message, and then broadcast to each terminal device in the local area network, including:
[0040] A second receiving unit, used to receive a scene trigger message broadcast by the first terminal device;
[0041] The scene trigger message is generated by the first terminal device after executing the target scene linkage response action when it is determined that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0042] a fourth sending unit, 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 can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0043] The third terminal device has a communication protocol type different from that of the first terminal device.
[0044] In a ninth aspect, the present invention provides a terminal, including a memory, a transceiver, and a processor;
[0045] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0046] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0047] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0048] Broadcasting the linkage scenario message in the local area network;
[0049] Alternatively, do the following:
[0050] When 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 any scene linkage trigger condition;
[0051] Execute the target scene linkage response action;
[0052] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0053] In a tenth aspect, the present invention provides a network device, including a memory, a transceiver, and a processor;
[0054] A memory for storing computer programs; a transceiver for sending and receiving data under the control of the processor; a processor for reading the computer program in the memory and executing it to implement any of the above-mentioned linkage scene synchronization methods or any of the above-mentioned linkage scene triggering methods.
[0055] In the eleventh aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any one of the linkage scene synchronization methods or any one of the linkage scene triggering methods described above.
[0056] In a twelfth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described linkage scene synchronization methods or any of the above-described linkage scene triggering methods.
[0057] The present invention provides a linkage scene synchronization and triggering method, device, terminal and network equipment. After receiving the linkage scene message, the terminal device saves the linkage scene data and other key information, and continues to broadcast the received scene message in the local area network. The scene synchronization and scene triggering both support broadcasting between the hub and the terminal device, and between the terminal device 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 It is one of the flowcharts of the linkage scene synchronization method provided by the present invention;
[0060] Figure 2 It is a local area network architecture diagram for linkage scene synchronization provided by the present invention;
[0061] Figure 3 It is a signaling schematic diagram of linkage scene synchronization provided by the present invention;
[0062] Figure 4 This is the second flow chart of the linkage scene synchronization method provided by the present invention;
[0063] Figure 5 This is one of the flow charts of the linkage scene triggering method provided by the present invention;
[0064] Figure 6 It is a local area network architecture diagram triggered by linkage scenarios provided by the present invention;
[0065] Figure 7 It is a schematic diagram of signaling triggered by a linkage scenario provided by the present invention;
[0066] Figure 8 This is the second flow chart of the linkage scene triggering method provided by the present invention;
[0067] Fig. 9 It is a structural schematic diagram of the linkage scene synchronization device provided by the present invention;
[0068] Fig.10 This is one of the structural schematic diagrams of the linkage scene triggering device provided by the present invention;
[0069] Fig.11 This is the second structural diagram of the linkage scene triggering device provided by the present invention;
[0070] Fig.12 It is a structural schematic diagram of a terminal provided by the present invention;
[0071] Fig.13 It is a structural schematic diagram of the network device provided by the present invention;
[0072] Fig.14 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] It should be noted that in the description of the present invention, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0075] The terms "first", "second", etc. in the present invention 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 invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. 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 associated with each other are in an "or" relationship.
[0076] Combine the following Figure 1-Figure 14 The invention describes the linkage scene synchronization, triggering method, device, terminal and network equipment provided by the invention.
[0077] Figure 1 is one of the flow charts of the linkage scene synchronization method provided by the present invention, such as Figure 1 As shown, including but not limited to the following steps:
[0078] Step 11: Receive the linkage scene message broadcast by the central processor.
[0079] The linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device.
[0080] The present invention is based on a smart home platform and a scene control center to achieve localized linkage scene synchronization and rapid execution control of localized linkage scenes for smart terminal devices with different communication protocols in the same local area network.
[0081] Among them, the central processor refers to the processing of the scene control center. The scene control center can be the Internet of Things (IoT) scene control center, which is a device with networking capabilities and the most basic storage and computing capabilities. It is a core system or platform for centralized management and control of terminal devices that require the Internet of Things. It acts as the brain of the Internet of Things system and is responsible for the connection of terminal devices, data collection, data processing, decision-making and control, etc. It can also be called a heterogeneous relay.
[0082] The first terminal device refers to any terminal device in the local area network, such as a wifi lamp, a Bluetooth socket, a ZigBee door sensor, etc.
[0083] The linkage scene synchronization and triggering method, device, terminal and network equipment provided by the present invention mainly involve two process controls: linkage scene local synchronization and linkage scene LAN triggering.
[0084] Figure 2This is a local area network architecture diagram for linkage scene synchronization provided by the present invention. Figure 2 As shown in the figure, the entire LAN architecture includes the smart home platform, scene control center (in Figure 2 The scene control hub is a home scene control hub), 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 scene control hub using the LAN Coap protocol; a Bluetooth device 1 and a Bluetooth device n that communicate with the scene control hub using the Bluetooth protocol; and a ZiggBee device 1 and a ZiggBee device n that communicate with the scene control hub 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 scene control center through other communication protocols.
[0086] The linkage scene data may be data related to the linkage scenes of multiple terminal devices across protocols pre-created by the user through the smart home APP, and the above linkage scene data is stored in the smart home platform.
[0087] When the central processor of the scene control center is turned on and connected to the Internet or initialized, it can automatically download the latest linkage scene data from the smart home platform.
[0088] Then, the central processor encapsulates all linkage scene data. It should be noted that the central processor generally encapsulates the linkage scene data differently according to the communication protocol types of all terminal devices in the local area network.
[0089] by Figure 2 As shown in the example, assuming that there are relevant terminal devices in the entire LAN that use the Coap protocol, Bluetooth protocol, and ZiggBee protocol for communication, the central processor will differentially encapsulate the latest linkage scene data according to different communication protocols and generate different linkage scene messages. This setting can maximize the guarantee that the central processor will broadcast the linkage scene message to terminal devices of different communication protocols in the broadcast format of different communication protocols.
[0090] In step 11, assuming that the first terminal device is Bluetooth device 1, the central processor will encapsulate the latest linkage scene data according to the Bluetooth protocol to generate a corresponding linkage scene message and broadcast it, so that the first terminal device can receive and read the linkage scene message.
[0091] Figure 3 is a schematic diagram of signaling for linkage scene synchronization provided by the present invention, such as Figure 3As shown, generally speaking, the central processor will broadcast the encapsulated linkage scene message to each terminal device in the entire local area network to the greatest extent possible.
[0092] Step 12: When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the linkage scenario data is saved.
[0093] Taking the first terminal device as an example, after receiving the linkage scene message, it will read the linkage scene message to obtain the corresponding linkage scene data.
[0094] Generally speaking, the linkage scene data includes at least user information, session identifier, scene linkage ID, scene linkage trigger condition and scene linkage response action.
[0095] Among them, user information refers to the user's identity, that is, it is used to distinguish the scene synchronization in different local area networks. For example, for a home local area network, by setting user information, it is possible to effectively avoid missynchronization or mistriggering of terminal devices in other home local area networks. In order to distinguish different broadcast processes, a unique session identifier will be configured for each broadcast linkage scene message. The scene linkage ID refers to the identity identification 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 for the scene linkage. When the trigger condition is met, the corresponding control of the relevant terminal device will execute the scene linkage response action. Among them, the response action mainly refers to the execution of a preset action by a preset terminal device under a preset situation.
[0096] In this embodiment, after the first terminal device 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 central processor in the same local area network, so as to avoid the occurrence of missynchronization or mis-triggering accidents.
[0097] When it is determined that the user information in the linkage scene data is consistent with the locally stored user information, the first terminal device will store the linkage scene data locally.
[0098] Similarly, other terminal devices store this linkage scene data locally in the same manner 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. Later, the corresponding linkage scene data can be retrieved from the local according to different scene linkage IDs.
[0100] Step 13: Broadcast the linkage scenario message in the local area network.
[0101] The existing technology uses the scene control center as the linkage scene synchronization center, and only the central processor broadcasts the linkage scene message to all terminal devices. Since there are many terminal devices in the same local area network, and each terminal device often uses a variety of different communication protocols, and is limited by the communication range of different communication protocols, some terminal devices often cannot receive the linkage scene message broadcast by the central processor. Therefore, when the existing technology is used for linkage scene synchronization, it is inevitable that the linkage scene message cannot be accurately received by all terminal devices or the response is not timely.
[0102] Taking this defect into consideration, in the present invention, after the terminal device receives the linkage scenario message, it continues to act as a broadcast relay and continues to broadcast the received linkage scenario message in the local area network.
[0103] by Figure 3 As shown in the example, assuming that the first terminal device is Bluetooth device 1, after receiving the linkage scene message broadcast by the central processor of the home scene hub, it first completes its own linkage scene synchronization according to the linkage scene data. Then, Bluetooth device 1 will continue to broadcast the linkage scene message.
[0104] Since the linkage scene message received by the 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 the Bluetooth device 1 can only be received by terminal devices using the same communication protocol type, such as Bluetooth device n, while WiFi device 1 and WiFi device n that communicate using the WiFi protocol cannot receive the linkage scene message broadcast by the Bluetooth device 1.
[0105] Assume that Bluetooth device n cannot receive the linkage scene message broadcast by the central processor because it is far away from the central processor, but because WiFi device 1 relays and broadcasts the linkage scene message, Bluetooth device n can normally receive the linkage scene message from WiFi device 1, thereby realizing the synchronization of the linkage scene, so it can effectively overcome the defects of the prior art. Therefore, the linkage scene synchronization method provided by the present invention can effectively solve the defect of the prior art that the linkage scene is limited by the coverage range of the linkage scene hub when performing linkage scene synchronization. By supporting broadcasting between the central processor and the terminal device, and broadcasting between the terminal device and the terminal device, each terminal device is equivalent to a relay for scene triggering and synchronization. When the relays are in different positions, the coverage range of scene synchronization and triggering can be extended to each other. In theory, the scene coverage range of the present invention can be infinitely extended, which is particularly suitable for the construction of large-scale linkage scenes such as hotels, shopping malls, nursing homes, villas, etc.
[0106] In addition, the scene triggering of the existing solution relies on the central processor to translate the linkage scene message one by one, and there will be obvious delay when there are multiple terminal devices in the scene. The linkage scene synchronization method provided by the present invention supports broadcasting between the central processor and the terminal device, and broadcasting between the terminal device and the terminal device, which can quickly realize linkage scene synchronization and scene triggering. In theory, the scene triggering delay is not limited by the number of terminal devices involved in the scene linkage. Only when the transmission of the linkage scene message is too long, the delay will be slightly affected.
[0107] Furthermore, the linkage scene synchronization and scene triggering of the existing solution are strongly dependent on the power-on of the central processor. Once the central processor is powered off, the linkage scene synchronization and scene triggering cannot be achieved. Figure 3 As shown, in the present invention, if only one communication protocol exists in the linkage scene, even if the central processor is powered off, it will not affect the linkage scene synchronization and scene triggering. For example, when only the Bluetooth communication protocol exists in the entire local area network, after the central processor is powered off, the Bluetooth device 1 can act as the central processor and continue to execute the linkage scene synchronization and scene triggering control of other Bluetooth devices.
[0108] Finally, most existing solutions require the pre-establishment of the relationship between each terminal device and the central processor, which is usually called a parent-child device relationship or a subordinate relationship. However, the present invention does not need to establish such a subordinate relationship. Each terminal device only needs to pay attention to what message it needs to forward in what scenario and when it needs to perform what action, which provides higher flexibility in scenarios.
[0109] To sum up, the linkage scene synchronization provided by the present invention, after receiving the linkage scene message, the terminal device saves the linkage scene data and other key information, and continues to broadcast the received scene message in the local area network, the scene synchronization and scene triggering both support broadcasting between the hub and the terminal device, and between the terminal device 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, and theoretically, the scene triggering delay is not limited by the number of terminal devices linked to the scene, and 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.
[0110] Based on the content of the above embodiment, as an optional embodiment, after the linkage scenario message is broadcasted in the local area network, a second terminal device having 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 identifiers of other linkage scenario messages received previously, the second terminal device generates device linkage data according to the linkage scenario data and saves it locally.
[0112] After receiving the linkage scene message broadcast by the central processor or other terminal devices, each terminal device will compare the user information carried in the linkage scene message with the locally stored user information. If the two are consistent, the linkage scene data corresponding to the linkage scene message will be stored locally; if the two are inconsistent, the linkage scene message will be ignored.
[0113] In order to avoid broadcast storms, terminal devices with the same communication protocol type need to compare session identifiers after receiving linkage scene messages. For example, after the first terminal device broadcasts the linkage scene message in the local area network, the second terminal device with the same communication protocol as the first terminal device will compare the session identifier carried by the linkage scene message with the session identifiers of all other linkage scene messages received before after receiving the linkage scene message. If there is a linkage scene message with the same session identifier as the currently received linkage scene message, it means that the linkage scene message has been processed before, so there is no need to process the linkage scene message again, including broadcasting the linkage scene message again and storing the linkage scene data related thereto.
[0114] Based on the content of the above embodiment, as an optional embodiment, after the second terminal device generates device linkage data according to the linkage scene data and saves it locally, it also includes: continuing to broadcast the linkage scene message in the local area network.
[0115] by Figure 3 As shown in the example, assume that the first terminal device is Bluetooth device 1 and the second terminal device is 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 and broadcasts the linkage scene message in the local area network.
[0116] According to the linkage scene synchronization method provided by the present invention, each terminal device can inherit the role of a broadcast relay after completing different linkage scenes. When the broadcast relays are in different positions, the scene triggering coverage range can be extended to each other, thereby ensuring the implementation effect of the linkage scene synchronization to the greatest extent.
[0117] It should be noted that the above-mentioned linkage scene data at least includes user information, session identifier, scene linkage ID, scene linkage trigger condition and scene linkage response action.
[0118] Correspondingly, as a terminal device, the device linkage data stored locally only needs to include a session identifier, a scene linkage ID, a trigger condition of a linkage scene corresponding to the scene linkage ID, and a response action after the linkage scene is triggered.
[0119] As for user information, it is generally stored locally when each terminal device completes the network configuration. In addition, for an independent terminal device, it only needs to pay attention to its own triggering conditions for the linkage scene in each linkage scene, and its own response actions after the linkage scene is triggered, without paying attention to the triggering conditions of other terminal devices and the response actions after the linkage scene is triggered. This can reduce the terminal device's requirements for local storage space to a certain extent.
[0120] Figure 4 This is a second flow chart of the linkage scene synchronization method provided by the present invention, such as Figure 4 As shown, the execution subject of the linkage scene synchronization method provided by the present invention is a central processor, and each time the linkage scene is synchronized, the relevant operation steps include but are not limited to:
[0121] Step 41: The central processor broadcasts the 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: When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
[0124] Combination Figure 3 As shown, assuming that the first terminal device is Bluetooth device 1, the central 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 obtaining the linkage scene data corresponding to the linkage scene message, the Bluetooth device 1 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 central processor in the same local area network, so as to avoid the occurrence of missynchronization or mis-triggering accidents.
[0126] Generally speaking, the linkage scene data includes at least user information, session identifier, scene linkage ID, scene linkage trigger condition and scene linkage response action.
[0127] When it is determined that the user information in the linkage scene data is consistent with the locally stored user information, the Bluetooth device 1 will store the linkage scene data locally.
[0128] Similarly, other terminal devices store this linkage scene data locally in the same manner 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. Later, the corresponding linkage scene data can be retrieved from the local according to different scene linkage IDs.
[0130] The linkage scene synchronization method provided by the present invention is that after receiving the linkage scene message, the terminal device saves the linkage scene data and other key information, and continues to broadcast the received scene message in the local area network. The scene synchronization and scene triggering both support broadcasting between the hub and the terminal device, and between the terminal device 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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.
[0131] refer to Figure 2 As shown, the above linkage scene message is generated by the central processor after encapsulating the linkage scene data downloaded from the smart home platform when the central processor is turned on and connected to the Internet or initialized.
[0132] As an optional embodiment, the above-mentioned linkage scene message can also be generated by packaging the linkage scene data actively downloaded from the smart home platform after the central processor receives and responds to the scene update instruction of the smart home platform.
[0133] Among them, the scene update instruction can be automatically generated by the smart home platform according to a preset period.
[0134] Alternatively, the above-mentioned scene update instruction may also be generated by a scene update demand sent by a user to a smart home platform through a smart home APP, and the present invention does not make any specific limitation on this.
[0135] Based on the content of the above embodiment, as an optional embodiment, before the central processor broadcasts the linkage scene message, it also includes:
[0136] Obtaining the communication protocol types of all terminal devices in the local area network;
[0137] According to different types of the communication protocols, the linkage scenario data is differentially encapsulated to generate different linkage scenario messages.
[0138] by Figure 2Taking the shown example, assuming that there are relevant terminal devices in the entire local area network that use the Coap protocol, Bluetooth protocol and ZiggBee protocol for communication, the central processor will differentially encapsulate the latest linkage scene data according to different communication protocols and generate different linkage scene messages respectively.
[0139] This processing method can ensure to the greatest extent that the central processor will broadcast the linkage scene message to terminal devices of different communication protocols in the broadcast format of different communication protocols.
[0140] Figure 5 is one of the flow charts of the linkage scene triggering method provided by the present invention, such as Figure 5 As shown, the execution subject of this embodiment is a first terminal device, and the first terminal device is any terminal device in the local area network. Based on the linkage scene synchronization method provided in the above embodiment, the first terminal device synchronizes at least one linkage scene to generate a set of device linkage data based on at least one set of the linkage scene data and save it locally.
[0141] After the first terminal device completes the linkage scene synchronization, it subsequently executes the linkage scene triggering method, mainly including but not limited to:
[0142] Step 51: when it is determined that any scene linkage trigger condition is satisfied, determining a target scene linkage ID and a target scene linkage response action corresponding to the any scene linkage trigger condition;
[0143] Step 52: Execute the target scene linkage response action;
[0144] Step 53: broadcast a scene trigger message in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0145] Figure 6 is a diagram of the local area network architecture triggered by the linkage scenario provided by the present invention, such as Figure 6 As shown, the scene control center (in Figure 6 The middle scene control center is a home scene center), and the local area network to which it belongs has terminal devices of multiple communication protocol types, such as: Ethernet wifi device 1 (hereinafter referred to as wifi device 1), Ethernet wifi device 2, Ethernet wifi device n (hereinafter referred to as wifi device n) that communicate using the local area network Coap protocol; Bluetooth device 1, Bluetooth device 2 and Bluetooth device n that communicate using the Bluetooth protocol; ZiggBee device 1 and ZiggBee device n that communicate using the ZiggBee protocol.
[0146] On the one hand, all of the above-mentioned terminal devices can directly communicate with the central processor of the home scene hub, and on the other hand, multiple terminal devices with the same communication protocol type can also communicate and interact with each other.
[0147] Figure 7 is a schematic diagram of the signaling triggered by the linkage scene provided by the present invention. Figure 7 Taking the example shown, it is assumed that the first terminal device is wifi device 1.
[0148] When it is determined that the current device state of WiFi device 1 meets a certain scene linkage trigger condition, resulting in the linkage scene being triggered, WiFi device 1 determines which specific linkage scene is triggered, and reads the scene linkage ID related to the linkage scene, as well as the scene linkage response action that WiFi device 1 needs after the linkage scene is triggered.
[0149] Furthermore, the wifi device 1 starts to execute the above scene linkage response action. At the same time, the wifi device 1 also broadcasts a scene trigger message in the local area network to notify other terminal devices that the linkage scene has been triggered and other terminal devices related thereto need to execute their own scene linkage response actions.
[0150] The linkage scene method provided by the present invention is that after receiving the linkage scene message, the terminal device saves the linkage scene data and other key information, and continues to broadcast the received scene message in the local area network. The scene synchronization and scene triggering both support broadcasting between the hub and the terminal device, and between the terminal device 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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.
[0151] Based on the content of the above embodiment, as an optional embodiment, after the first terminal device broadcasts a scene trigger message in the local area network, the second terminal device performs the following operations:
[0152] When it is determined that the new session identifier is inconsistent with other locally stored session identifiers, determining the target linkage scene and target device linkage data corresponding to the target scene linkage ID;
[0153] Executing a response action included in the target device linkage data after the target linkage scenario is triggered;
[0154] Continue broadcasting the scene trigger message in the local area network;
[0155] The second terminal device has the same communication protocol type as the first terminal device.
[0156] Assume that the first terminal device is Figure 6 The wifi device 1 shown, the second terminal device is the wifi device 2 or the wifi device n.
[0157] Because Wi-Fi device 2 and Wi-Fi device n have the same communication protocol type as Wi-Fi device 1, they can directly receive the above scene trigger message and read the target scene linkage ID carried by the scene trigger message, and then determine which linkage scene is triggered according to the target scene linkage ID. The triggered linkage scene is called the target linkage scene, and Wi-Fi device 2 and Wi-Fi device n can respectively retrieve the device linkage data corresponding to the target linkage scene from the local (called target device linkage data), 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 WiFi device 2 and WiFi device n from repeatedly taking action on a scene trigger message, after receiving the scene trigger message, they will compare the session identifier of the scene trigger message with all other session identifiers stored locally. 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 corresponding scene linkage response action can be executed according to the target scene linkage ID of the scene trigger message.
[0159] Taking WiFi device n as an example, if all other session identifiers stored locally include the session identifier of the scene trigger message, it means that WiFi device n has received and responded to the scene trigger message before, and will not repeat the action at this time, that is, ignore the session identifier received this time and do not perform any action.
[0160] Furthermore, after WiFi device 2 and WiFi device n have executed the scene linkage response action corresponding to the scene trigger message, they will act as new linkage relays and continue to broadcast the above scene trigger message in the local area network to maximize the ability of all other terminal devices in the local area network that have the same communication protocol type to receive the scene trigger message.
[0161] Since there are other terminal devices in the local area network that have different communication protocol types from the first terminal device, these other terminal devices cannot receive the scene trigger message broadcast by the first terminal device.
[0162] In view of this, in the linkage scene triggering method provided by the present invention, the scene triggering message broadcast by the triggered first terminal device in the local area network can also be received by the central processor.
[0163] The central processor will first count the communication protocol types of all terminal devices in the entire LAN. Figure 6 as well as Figure 7 As shown, there are also Bluetooth device 1, Bluetooth device 2 and Bluetooth device n using the Bluetooth protocol for communication in the local area network; ZiggBee device 1, ZiggBee device 2 and ZiggBee device n using the ZiggBee protocol for communication in the local area network.
[0164] Furthermore, the central processor will execute the following solutions 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 are broadcast.
[0166] Assume that in addition to the terminal devices using the wifi communication protocol type, the entire local area network also has terminal devices using the ZiggBee communication protocol type and terminal devices using the Bluetooth communication protocol type. At this time, the central processor will translate the received scene trigger message according to the ZiggBee communication protocol and Bluetooth communication protocol types respectively, and then broadcast them respectively.
[0167] After the central processor translates the received scene trigger message according to the Bluetooth communication protocol type, the generated translated trigger message can be received by Bluetooth device 1, Bluetooth device 2 and Bluetooth device n. Similarly, after the central processor translates the received scene trigger message according to the ZiggBee communication protocol type, the generated translated trigger message can be received by ZiggBee device 1, ZiggBee device 2 and ZiggBee device n.
[0168] The present invention generates and sends linkage scene messages first through the triggered terminal device. Terminal devices with the same communication protocol can receive and read the linkage scene messages, while terminal devices with different communication protocols only need to translate them according to the central processor. Generally speaking, all terminal devices in the local area network can receive and execute them correctly.
[0169] Figure 8 This is the second flow chart of the linkage scene triggering method provided by the present invention. Figure 8 As shown, the execution subject of the linkage scene trigger control in this embodiment is the central processor.
[0170] Before triggering control, any linkage scene synchronization method described in the above embodiments may be used to encapsulate the linkage scene data downloaded from the smart home platform into a linkage scene message and broadcast it to each terminal device in the local area network, specifically including but not limited to the following steps:
[0171] Step 81: Determine the scene trigger message broadcast by the first terminal device; the scene trigger message is generated after the first terminal device executes the 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 any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition.
[0172] Step 82: According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all the 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 according to the target scene linkage ID carried by the scene trigger message.
[0173] The communication protocol type of the third terminal device is different from that of the first terminal device.
[0174] Combination Figure 7 As shown, the first terminal device is wifi device 1, and the third terminal device is Bluetooth device n. Since the scene trigger message broadcast by wifi device 1 cannot be received by Bluetooth device n, but the scene trigger message can be received by the central processor, the central processor translates the scene trigger message according to different communication protocol types and generates translated trigger messages respectively. Then, the central processor broadcasts each translated trigger message in the local area network.
[0175] For example, after the central processor translates the received scene trigger message according to the Bluetooth communication protocol type, the generated translated trigger message can be received by Bluetooth device 1, Bluetooth device 2, and Bluetooth device n. Similarly, after the central processor translates the received scene trigger message according to the ZiggBee communication protocol type, the generated translated trigger message can be received by ZiggBee device 1, ZiggBee device 2, and ZiggBee device n.
[0176] It should be noted that when the central processor translates the scene trigger message according to different communication protocol types, it will retain its related scene linkage ID and session identifier, that is, the scene trigger message and each translated trigger message have the same scene linkage ID and session identifier.
[0177] It should be noted that, before the central processor translates the scene trigger message and broadcasts all the translated trigger messages, it also includes:
[0178] Determine a scene linkage response action corresponding to the target scene linkage ID carried in the scene trigger message;
[0179] Determine whether the scene linkage response action includes a third terminal device having a different communication protocol type from that of the first terminal device;
[0180] If so, the scenario trigger message is translated and all the translated trigger messages are broadcast.
[0181] That is, before the central processor translates the scene trigger message, it needs to know clearly whether there are other terminal devices in the local area network whose communication protocol type is inconsistent with that of the first terminal device. If not, then the central processor does not need to participate in the trigger control of the entire linkage scene. If so, it will translate the scene trigger message according to different communication protocol types, and broadcast 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 receiving the translation trigger message broadcast by the central processor, the Bluetooth device 1 continues to broadcast in the local area network after executing the corresponding scene linkage response action.
[0184] Assume that Bluetooth device n is far away from the central processor and does not receive the translation trigger message broadcast by the central processor. However, since Bluetooth device n is relatively close to Bluetooth device 1, it can directly receive the translation trigger message broadcast by Bluetooth device 1 and correctly perform the scene linkage response actions that need to be performed in the target scene linkage.
[0185] Therefore, the linkage scene triggering method provided by the present invention can effectively solve the defect of the prior art that the linkage scene center is limited by the coverage range of the linkage scene when performing linkage scene synchronization. By supporting broadcasting between the central processor and the terminal device, and broadcasting between the terminal device and the terminal device, each terminal device is equivalent to a relay for scene triggering and synchronization. When the relays are in different positions, the coverage range of scene synchronization and triggering can be extended to each other. In theory, the scene coverage range of the present invention can be extended infinitely, which is particularly suitable for the construction of large-scale linkage scenes such as hotels, shopping malls, nursing homes, villas, etc.
[0186] Fig. 9 is a schematic diagram of the structure of the linkage scene synchronization device provided by the present invention, such as Fig. 9 As shown, mainly including but not limited to:
[0187] A first receiving unit 91 receives a linkage scene message broadcast by a central processor; the linkage scene message is generated by the central processor after encapsulating linkage scene data according to a communication protocol type of the first terminal device;
[0188] A first storage unit 92, configured to save the linkage scene data when it is determined according to the linkage scene message that the user information included in the linkage scene data is consistent with the locally stored user information;
[0189] The first sending unit 93 is used to broadcast the linkage scenario message in the local area network.
[0190] It should be noted that the above-mentioned 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 invention can execute the linkage scene synchronization method described in any of the above embodiments during specific operation, and this embodiment will not be described in detail. The linkage scene synchronization device provided by the present invention saves key information such as linkage scene data after determining that the terminal device has received the linkage scene message, and continues to broadcast the received scene message in the local area network. Both scene synchronization and scene triggering support broadcasting between the hub and terminal devices, and 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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.
[0192] The present invention also provides another linkage scene synchronization device, which can be integrated in the central processor, mainly including but not limited to:
[0193] The second sending unit is used to broadcast the linkage scene message;
[0194] 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;
[0195] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
[0196] The linkage scene synchronization device provided by the present invention can execute the linkage scene synchronization method described in any of the above embodiments during specific operation, which will not be described in detail in this embodiment.
[0197] Fig.10 is one of the structural diagrams of the linkage scene triggering device provided by the present invention, such as Fig.10 As shown, mainly including but not limited to:
[0198] The first identification unit 101 is used to determine a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition when it is determined that any scene linkage trigger condition is met;
[0199] A first control unit 102, used to control the first terminal device to execute the target scene linkage response action;
[0200] The third sending unit 103 is used to broadcast a scene trigger message in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0201] It should be noted that the above-mentioned linkage scene triggering device 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 invention can execute the linkage scene triggering method described in any of the above embodiments during specific operation, and this embodiment will not be described in detail. The linkage scene triggering device provided by the present invention saves key information such as linkage scene data after determining that the terminal device has received the linkage scene message, and continues to broadcast the received scene message in the local area network. Both scene synchronization and scene triggering support broadcasting between the hub and terminal devices, and 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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] Fig.11 This is the second structural diagram of the linkage scene triggering device provided by the present invention. Fig.11 As shown, mainly including but not limited to:
[0204] The second receiving unit 111 is used to receive a scene trigger message broadcast by the first terminal device;
[0205] The scene trigger message is generated by the first terminal device after executing the target scene linkage response action when it is determined that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0206] The fourth sending unit 112 is used 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 can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0207] The third terminal device has a communication protocol type different from that of the first terminal device.
[0208] It should be noted that the above-mentioned linkage scene triggering 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 triggering device provided by the present invention can execute the linkage scene triggering method described in any of the above embodiments during specific operation, and this embodiment will not be described in detail. The linkage scene triggering device provided by the present invention saves key information such as linkage scene data after determining that the terminal device has received the linkage scene message, and continues to broadcast the received scene message in the local area network. Both scene synchronization and scene triggering support broadcasting between the hub and terminal devices, and 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. In theory, the scene triggering delay is not limited by the number of terminal devices linked to the scene. 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] Fig.12 is a schematic diagram of the structure of the terminal provided by the present invention, referring to Fig.12 As shown, the present invention also provides a terminal, which may include: a memory 121, a transceiver 122 and a processor 123;
[0211] The memory 121 is used to store computer programs; the transceiver 122 is used to send and receive data under the control of the processor 123; the processor 123 is used to read the computer program in the memory 121 and perform the following operations:
[0212] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0213] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0214] Broadcasting the linkage scenario message in the local area network;
[0215] Alternatively, do the following:
[0216] When 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 any scene linkage trigger condition;
[0217] Execute the target scene linkage response action;
[0218] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0219] Among them, Fig.12 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 123 and various circuits of memory represented by memory 121 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 122 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 124 may also be an interface capable of externally connecting or internally connecting required 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 is used to execute any of the methods provided by the present invention according to the obtained executable instructions by calling the computer program stored in the memory 121. The processor and the memory may also be arranged physically separately.
[0222] Fig.13 is a schematic diagram of the structure of the network device according to the present invention, referring to Fig.13 , the present invention also provides a network device, which may include: a memory 131, a transceiver 132 and a processor 133;
[0223] The memory 131 is used to store computer programs; the transceiver 132 is used to send and receive data under the control of the processor 133; the processor 133 is used to read the computer program in the memory 131 and perform the following operations:
[0224] Broadcasting a linkage scenario message, where the linkage scenario message is generated by encapsulating linkage scenario data according to a communication protocol type of a first terminal device, where the first terminal device is any terminal device in a local area network;
[0225] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network;
[0226] Alternatively, do the following:
[0227] Receive a scene trigger message broadcast by the first terminal device; the scene trigger message is generated by the first terminal device after executing a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0228] According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0229] The third terminal device has a communication protocol type different from that of the first terminal device.
[0230] Among them, Fig.13 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 133 and memory represented by memory 131. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 132 may be a plurality of components, 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 may store data used by the processor 133 when performing operations.
[0231] It should be noted here that the terminal and network device provided by the present invention can implement all the method steps implemented by the above method embodiment and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0232] Fig.141 is a schematic diagram of the structure of the electronic device provided by the present invention. As shown in FIG. 1 , the electronic device may include: a processor 141, a communication interface 142, a memory 143 and a communication bus 144, wherein the processor 141, the communication interface 142 and the memory 143 communicate with each other through the communication bus 144. The processor 141 may call the logic instructions in the memory 143 to execute the linkage scene synchronization method, which includes:
[0233] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0234] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0235] Broadcasting the linkage scenario message in the local area network;
[0236] Alternatively, when it is determined that any scene linkage trigger condition is satisfied, determining a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition;
[0237] Execute the target scene linkage response action;
[0238] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0239] Alternatively, broadcasting a linkage scene message, wherein 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] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network;
[0241] Alternatively, receiving a scene trigger message broadcast by the first terminal device; the scene trigger message is generated after the first terminal device executes a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to 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 the translated trigger messages are broadcasted, so that the third terminal device can determine and execute 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 has a communication protocol type different from that of the first terminal device.
[0244] In addition, the logic instructions in the above-mentioned memory 143 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0245] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the linkage scene synchronization method provided in the above embodiments, the method comprising:
[0246] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0247] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0248] Broadcasting the linkage scenario message in the local area network;
[0249] Alternatively, when it is determined that any scene linkage trigger condition is satisfied, determining a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition;
[0250] Execute the target scene linkage response action;
[0251] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0252] Alternatively, broadcasting a linkage scene message, wherein 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;
[0253] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network;
[0254] Alternatively, receiving a scene trigger message broadcast by the first terminal device; the scene trigger message is generated after the first terminal device executes a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0255] According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0256] The third terminal device has a communication protocol type different from that of the first terminal device.
[0257] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for linking scene synchronization provided in the above embodiments is implemented, and the method includes:
[0258] Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device;
[0259] When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data;
[0260] Broadcasting the linkage scenario message in the local area network;
[0261] Alternatively, when it is determined that any scene linkage trigger condition is satisfied, determining a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition;
[0262] Execute the target scene linkage response action;
[0263] A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
[0264] Alternatively, broadcasting a linkage scene message, wherein 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;
[0265] When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network;
[0266] Alternatively, receiving a scene trigger message broadcast by the first terminal device; the scene trigger message is generated after the first terminal device executes a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition;
[0267] According to the communication protocol type of all terminal devices in the local area network, the scene trigger message is translated and all the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message;
[0268] The third terminal device has a communication protocol type different from that of the first terminal device.
[0269] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0270] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment 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 invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A linkage scene synchronization method, characterized in that: Applicable to the first terminal device, including: Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device; When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data; Broadcast the linkage scenario message in the local area network.
2. The linkage scene synchronization method according to claim 1, characterized in that: After broadcasting the linkage scenario message in the local area network, a second terminal device having 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 identifiers of other linkage scenario messages received previously, the second terminal device generates device linkage data according to the linkage scenario data and saves it locally.
3. The linkage scene synchronization method according to claim 2, characterized in that: After the second terminal device generates device linkage data according to the linkage scene data and saves it locally, the method further includes: Continue to broadcast the linkage scenario message in the local area network.
4. The linkage scene synchronization method according to claim 2, characterized in that: The linkage scene data includes at least the user information, the session identifier, the scene linkage ID, the scene linkage trigger condition and the scene linkage response action; the device linkage data includes at least the session identifier, the scene linkage ID, the trigger condition of the linkage scene corresponding to the second terminal device and the scene linkage ID, and the response action of the second terminal device after the linkage scene is triggered.
5. A linkage scene synchronization method, characterized in that: Applicable to central processors, including: Broadcasting a linkage scenario message, where the linkage scenario message is generated by encapsulating linkage scenario data according to a communication protocol type of a first terminal device, where the first terminal device is any terminal device in a local area network; When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
6. The linkage scene synchronization method according to claim 5, characterized in that: The linkage scene message is generated by packaging the linkage scene data downloaded from the smart home platform when the central processor is powered on and connected to the Internet or initialized.
7. The linkage scene synchronization method according to claim 5, characterized in that: Before broadcasting the linkage scenario message, the method further includes: Obtaining the communication protocol types of all terminal devices in the local area network; According to different types of the communication protocols, the linkage scenario data is differentially encapsulated to generate different linkage scenario messages.
8. A linkage scene triggering method, characterized in that: Applied to a first terminal device, based on the linkage scene synchronization method described in any one of claims 1 to 4, synchronize at least one linkage scene, so as to generate a set of device linkage data according to at least one set of linkage scene data and save it locally; The linkage scene triggering method includes: When 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 any scene linkage trigger condition; Execute the target scene linkage response action; A scene trigger message is broadcasted in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
9. The linkage scene triggering method according to claim 8, characterized in that: After the first terminal device broadcasts a scene trigger message in the local area network, the second terminal device performs the following operations: When it is determined that the new session identifier is inconsistent with other locally stored session identifiers, determining the target linkage scene and target device linkage data corresponding to the target scene linkage ID; Executing a response action included in the target device linkage data after the target linkage scenario is triggered; Continue broadcasting the scene trigger message in the local area network; The second terminal device has the same communication protocol type as the first terminal device.
10. The linkage scene triggering method according to claim 8, characterized in that: After the first terminal device broadcasts a scene trigger message in the local area network, the method further includes: The central processor translates the scene 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 linkage scene triggering method, characterized in that: Applied to the central processor, 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 broadcasted to each terminal device in the local area network; The linkage scene triggering method includes: Receive a scene trigger message broadcast by the first terminal device; the scene trigger message is generated by the first terminal device after executing a target scene linkage response action when determining that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to 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 the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message; The third terminal device has a communication protocol type different from that of the first terminal device.
12. The linkage scene triggering method according to claim 11, characterized in that: Before the central processor translates the scene trigger message and broadcasts all the translated trigger messages, the central processor also includes: Determine a scene linkage response action corresponding to the target scene linkage ID carried in the scene trigger message; Determine whether the scene linkage response action includes a third terminal device having a different communication protocol type from that of the first terminal device; If so, the scenario trigger message is translated and all the translated trigger messages are broadcast.
13. The linkage scene triggering method according to claim 11, characterized in that: The third terminal device continues to broadcast the scene trigger message within the local area network.
14. The linkage scene triggering method according to claim 11, characterized in that: Before 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, the third terminal device further includes: Determine whether the new session identifier carried by the scenario trigger message is consistent with other session identifiers received previously; If they are inconsistent, determine and execute the scene linkage response action of the third terminal device.
15. A linkage scene synchronization device, characterized in that: The integrated device is set in the first terminal, including: A first receiving unit receives a linkage scene message broadcast by a central processor; the linkage scene message is generated by the central processor after encapsulating linkage scene data according to a communication protocol type of the first terminal device; A first storage unit, configured to save the linkage scenario data when it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information; The first sending unit is used to broadcast the linkage scenario message in the local area network.
16. A linkage scene synchronization device, characterized in that: The integrated setup is in the central processor, including: The second sending unit is used to broadcast the linkage scene message; 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; When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, it maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network.
17. A linkage scene triggering device, characterized in that: Integrated in a first terminal device, based on the linkage scene synchronization method according to any one of claims 1 to 4, synchronize at least one linkage scene, so as to generate a set of device linkage data according to at least one set of linkage scene data and save it locally in the first terminal device; including: A first identification unit is used to determine a target scene linkage ID and a target scene linkage response action corresponding to any scene linkage trigger condition when it is determined that any scene linkage trigger condition is satisfied; A first control unit, used to control the first terminal device to execute the target scene linkage response action; The third sending unit is used to broadcast a scene trigger message in the local area network; the scene trigger message at least includes a new session identifier and the target scene linkage ID.
18. A linkage scene triggering device, characterized in that: Integrated in the central processor, 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, including: A second receiving unit, used to receive a scene trigger message broadcast by the first terminal device; The scene trigger message is generated by the first terminal device after executing the target scene linkage response action when it is determined that any scene linkage trigger condition is met; the target scene linkage response action is determined based on any scene linkage trigger condition; the scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to any scene linkage trigger condition; a fourth sending unit, 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 can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message; The third terminal device has a communication protocol type different from that of the first terminal device.
19. A terminal, characterized in that: Including memory, transceiver, processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Receiving a linkage scene message broadcast by the central processor; the linkage scene message is generated by the central processor after encapsulating the linkage scene data according to the communication protocol type of the first terminal device; When it is determined according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, saving the linkage scenario data; Broadcasting the linkage scenario message in the local area network; Alternatively, do the following: When 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 any scene linkage trigger condition; Execute the target scene linkage response action; Broadcasting a scene 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 memory, transceiver, processor; A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Broadcasting a linkage scenario message, where the linkage scenario message is generated by encapsulating linkage scenario data according to a communication protocol type of a first terminal device, where the first terminal device is any terminal device in a local area network; When the first terminal device determines according to the linkage scenario message that the user information included in the linkage scenario data is consistent with the locally stored user information, the first terminal device maintains the linkage scenario data and broadcasts the linkage scenario message in the local area network; Alternatively, do the following: Receiving a scene trigger message broadcast by the first terminal device; The scene trigger message is generated by the first terminal device after executing the target scene linkage response action when determining that any scene linkage trigger condition is met; The target scene linkage response action is determined based on any scene linkage trigger condition; The scene trigger message at least includes a new session identifier and a target scene linkage ID corresponding to 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 the translated trigger messages are broadcasted, so that the third terminal device can determine and execute the scene linkage response action of the third terminal device according to the target scene linkage ID carried by the scene trigger message; The third terminal device has a communication protocol type different from that of 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, wherein: When the processor executes the computer program, the linked scene synchronization method according to any one of claims 1 to 7 is implemented, or the linked scene triggering method according to any one of claims 8 to 14 is implemented.
22. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the linkage scene synchronization method as described in any one of claims 1 to 7 is implemented, or the linkage scene triggering method as described in any one of claims 8 to 14 is implemented.
Citation Information
Patent Citations
Intelligent terminal control method and intelligent terminal control system
CN106019957A
Intelligent device communication method and system, computer device and readable storage medium
CN112532607A
Method and device for determining linkage communication strategy, equipment and medium
CN114430420A
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
