Internet of Things device, linkage triggering method and Internet of Things system

By creating event messages before the first processor of the IoT device sleeps and sending them during its sleep, the problem of linkage delay of the IoT device is solved, and power consumption savings and latency reduction are achieved.

CN116094856BActive Publication Date: 2025-08-01HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211356073.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2025-08-01
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

In the Internet of Things system, when an IoT device is triggered to perform an operation in a sleep state, it needs to wake up before it can trigger a linkage, resulting in delay in device linkage.

Method used

The first processor of the Internet of Things device creates an event message before switching to the sleep state, and the second and third processors monitor the trigger event and send messages during their sleep period to achieve linkage action without waiting for the first processor to wake up.

Benefits of technology

Shorten the trigger delay of device linkage, save device power consumption, extend battery life and reduce device costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094856B_ABST
    Figure CN116094856B_ABST
Patent Text Reader

Abstract

The present application provides an Internet of Things device, a linkage triggering method, and an Internet of Things system. Based on the present application, a first processor of the Internet of Things device can create an event message for triggering linkage before entering the sleep state. Thus, during the period when the first processor is in the sleep state, in response to a trigger event monitored by a second processor, without waiting for the first processor to complete the wake-up startup process, a third processor can send out the event message pre-created by the first processor and trigger the linkage, thereby shortening the trigger delay of device linkage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to IoT (Internet of Things) technology, and particularly to an Internet of Things device, a linkage triggering method applicable to Internet of Things devices, and an Internet of Things system (such as a smart home system). Background Art

[0002] In an Internet of Things system such as a smart home system, an Internet of Things device can be triggered to be linked with other Internet of Things devices.

[0003] To save device power consumption, an Internet of Things device can enter a sleep state when it has not been triggered to perform an operation for a predetermined period of time. If the operation to be performed by the Internet of Things device in the sleep state requires linkage with other Internet of Things devices, then the Internet of Things device first needs to be awakened and then the linkage can be triggered, which results in a delay in device linkage. Summary of the Invention

[0004] In view of this, the purpose of this application is to shorten the trigger delay of device linkage.

[0005] In an embodiment of this application, an Internet of Things device is provided, including:

[0006] A first processor, configured to create an event message for triggering the linkage between a target device and the Internet of Things device before switching from the wake state to the sleep state;

[0007] A second processor, configured to monitor a trigger event that causes the Internet of Things device to perform an operation;

[0008] A third processor, configured to obtain and save the event message created by the first processor, and in response to the trigger event monitored by the second processor during the period when the first processor is in the sleep state, send the saved event message to the target device through a network to cause the target device to perform a linkage action associated with the operation of the Internet of Things device.

[0009] In some examples, optionally, the first processor is specifically configured to: when it is determined to switch from the wake state to the sleep state, create the event message; send the created event message to the third processor; and switch to the sleep state in response to the completion of the sending of the event message to the third processor.

[0010] In some examples, optionally, the first processor is specifically configured to: obtain the device information of the target device from a pre-configured set of device information; create the event message by using the obtained device information; wherein the device information is used to be recognized by a forwarding device in the network, so that the forwarding device pushes the event message to the target device according to the device information.

[0011] In some examples, optionally, the first processor is specifically configured to: create the event message according to a preset message format; wherein when the main processor of the target device is in a sleep state, the auxiliary processor of the target device wakes up the main processor in response to a successful match between the received event message and the preset message format, so that the main processor drives the target device to execute the linkage action in the wake state.

[0012] In some examples, optionally, the first processor is specifically configured to: create the event message corresponding to each event type supported by the Internet of Things device for each event type; the second processor is further configured to identify the event type corresponding to the monitored trigger event during the period when the first processor is in a sleep state; the third processor is further configured to issue the event message corresponding to the event type identified by the second processor according to the pre-configured correspondence between the event type and the event message during the period when the first processor is in a sleep state.

[0013] In some examples, optionally, the second processor is further configured to wake up the first processor in response to the monitored trigger event during the period when the first processor is in a sleep state, so that the first processor drives the Internet of Things device to execute the operation action corresponding to the trigger event in the wake state; or, the second processor is further configured to drive the Internet of Things device to execute the operation action corresponding to the trigger event in response to the monitored trigger event during the period when the first processor is in a sleep state.

[0014] In some examples, optionally, the third processor is further configured to save the sending record of the event message and the response record of the target device after receiving the event message during the period when the first processor is in a sleep state; the first processor is further configured to obtain the sending record and the response record from the third processor after being woken up from the sleep state.

[0015] In another embodiment of the present application, a linkage trigger method is provided, including

[0016] Obtain and save the event message created by the first processor of the Internet of Things device, where the event message is created by the first processor before switching from the wake state to the sleep state;

[0017] In response to a trigger event monitored by the second processor of the Internet of Things device during the period when the first processor is in the sleep state, send the saved event message to the target device through the network;

[0018] Wherein, the trigger event is used to cause the Internet of Things device to execute an operation action, and the event message is used to cause the target device to execute a linkage action associated with the operation action.

[0019] In some examples, optionally, the event message is created by the first processor when determining to switch from the wake state to the sleep state, and after obtaining and saving the event message created by the first processor of the Internet of Things device, the first processor switches to the sleep state.

[0020] In some examples, optionally, the event message contains the device information of the target device obtained by the first processor from a pre-configured device information set; the device information is used to be recognized by a forwarding device in the network, so that the forwarding device pushes the event message to the target device according to the device information.

[0021] In some examples, optionally, the event message is created by the first processor according to a preset message format; wherein, when the main processor of the target device is in the sleep state, the auxiliary processor of the target device wakes up the main processor in response to a successful match between the received event message and the preset message format, so that the main processor drives the target device to execute the linkage action in the wake state.

[0022] In some examples, optionally, obtaining and saving the event message created by the first processor of the Internet of Things device includes: obtaining the event messages created by the first processor for each preset event type; the step of, in response to a trigger event monitored by the second processor of the Internet of Things device during the period when the first processor is in the sleep state, sending the saved event message to the target device through the network includes: sending the event message corresponding to the event type to the target device through the network according to the event type identified by the second processor for the trigger event.

[0023] In some examples, optionally, it further includes: saving the sending record of the event message and the response record of the target device after receiving the event message during the period when the first processor is in the sleep state for the first processor to obtain after being woken up.

[0024] In another embodiment of the present application, an Internet of Things system is provided, including a first Internet of Things device and a second Internet of Things device. Among them, the first Internet of Things device is used to take the second Internet of Things device as the target device and execute the linkage triggering method in the foregoing embodiment.

[0025] Based on the above embodiment, the first processor of the Internet of Things device can create an event message for triggering linkage before entering the sleep state. Thus, during the period when the first processor is in the sleep state, in response to the trigger event monitored by the second processor, without waiting for the first processor to complete the wake-up startup process, the third processor can send the event message pre-created by the first processor and trigger the linkage, thereby shortening the trigger delay of device linkage. Description of the Drawings

[0026] The following drawings only illustrate and explain the present application schematically and do not limit the scope of the present application:

[0027] Figure 1 It is a schematic structural diagram of an Internet of Things device in an embodiment of the present application;

[0028] Figure 2 As Figure 1 shown, it is a schematic diagram of the instance structure of the Internet of Things device in the embodiment;

[0029] Figure 3 As Figure 1 shown, it is a schematic diagram of the state transition of the first processor of the Internet of Things device in the embodiment;

[0030] Figure 4 It is an example flowchart of the linkage triggering method in another exemplary embodiment of the present application. Detailed Embodiments

[0031] In order to make the purpose, technical solutions and advantages of the present application clearer, the following examples are given with reference to the accompanying drawings to further explain the present application in detail.

[0032] Figure 1 It is a schematic structural diagram of an Internet of Things device in an embodiment of the present application. Please refer to Figure 1, in an embodiment of the present application, the Internet of Things device may include a first processor 10, a second processor 20, and a third processor 30. Moreover, the first processor 10, the second processor 20, and the third processor 30 may be connected pairwise through a serial interface bus such as SPI (Serial Peripheral Interface).

[0033] In this embodiment, the first processor 10 may be the main processor of the Internet of Things device. For example, the first processor 10 may undertake the device main control function of the Internet of Things device and the intelligent processing function of the Internet of Things device; the second processor 20 and the third processor 30 may be the slave processors of the Internet of Things device. For example, the second processor 20 and the third processor 30 may undertake the module driving and controlling function of the Internet of Things device. In this case, the processing capacity and device power consumption of the first processor 10 may be higher than those of the second processor 20 and the third processor 30.

[0034] In some examples, the first processor 10 may include any one of digital processing chips such as a CPU (Central Processing Unit), an SOC (System on a Chip), or an AI (Artificial Intelligence) chip; either of the second processor 20 and the third processor 30 may include logic control devices such as an MCU (Microcontroller Unit) or an FPGA (Field Programmable Gate Array).

[0035] Therefore, in an embodiment of the present application, the sleep state of the Internet of Things device may refer to the first processor 10 being in a sleep state. Since the processing capacity and device power consumption of the first processor 10 are higher than those of the second processor 20 and the third processor 30, therefore, by putting the first processor 10 to sleep, it is possible to maximize the savings of the device power consumption of the Internet of Things device on the premise of ensuring the normal operation of the Internet of Things device.

[0036] Whether the first processor 10 is in a wake state or a sleep state, the second processor 20 and the third processor 30 can remain powered on. Specifically, the second processor 20 can be used to monitor trigger events that cause the Internet of Things device to perform operation actions, where the trigger events monitored by the second processor 20 can represent human-computer interaction events of the Internet of Things device in the embodiments of the present application; the third processor 30 can be used to implement the network interaction function of the Internet of Things device, that is, the information interaction between the Internet of Things device in the embodiments of the present application and other Internet of Things devices in the Internet of Things system through a network (such as a local area network or the Internet) is all executed by the third processor 30.

[0037] Figure 2 For example, Figure 1 is a schematic structural diagram of an example of the Internet of Things device in the illustrated embodiment. As Figure 2 shown, the first processor 10, the second processor 20, and the third processor 30 in the embodiments of the present application can all be powered by the battery module 40, and the battery module 40 can include rechargeable batteries such as lithium batteries or disposable batteries. Therefore, the Internet of Things device can be configured as a low-power device that saves device power consumption by allowing the first processor 10 to sleep, and the power consumption savings of the Internet of Things device can help extend the service life of the battery module 40 when the battery module 40 includes rechargeable batteries, or help save the replacement cost of the battery module 40 when the battery module 40 includes disposable batteries.

[0038] Moreover, as Figure 2 shown, the Internet of Things device in the embodiments of the present application can further include an interaction module 50, an execution module 60, and a communication module 70 powered by the battery module 40.

[0039] As can be seen from Figure 2 , the second processor 20 can be signal-connected to the interaction module 50, that is, the trigger events monitored by the second processor 20 can include human-computer interaction events occurring in the interaction module 50. And the human-computer interaction events (i.e., trigger events) occurring in the interaction module 50 monitored by the second processor 20 can cause the operation actions performed by the Internet of Things device in the embodiments of the present application, and the execution module 60 can be used to perform the operation actions of the Internet of Things device in the application embodiments.

[0040] For example, if the Internet of Things device in the embodiments of the present application is a smart lock, then:

[0041] The interaction module 50 may include authentication modules for unlocking authentication, such as a fingerprint recognition module and / or a face recognition module. The interaction module 50 may also include a switch sensing module for unlocking without authentication (e.g., unlocking from the indoor side of the door leaf). Moreover, the interaction module 50 may further include a sensing lock tongue module for monitoring the opening and closing states of the door leaf;

[0042] In this case, the human-computer interaction events (i.e., trigger events) occurring in the interaction module 50 monitored by the second processor 20 may include a fingerprint input event occurring in the fingerprint recognition module, or a face capture event occurring in the face recognition module, or a switch operation event occurring in the switch sensing module, or a door leaf opening event and a door leaf closing event occurring in the sensing lock tongue module, etc.;

[0043] Correspondingly, the human-computer interaction events (i.e., trigger events) occurring in the interaction module 50 monitored by the second processor 20, which trigger the operation actions executed by the Internet of Things device in the embodiments of the present application, may include: an unlocking authentication action in response to a fingerprint input event or a face capture event, an immediate unlocking action in response to a switch operation event, an immediate locking action in response to a door leaf closing event, etc.;

[0044] The execution module 60 may include a motor module for executing operation actions such as an authentication unlocking action, an immediate unlocking action, and an immediate locking action.

[0045] For another example, if the Internet of Things device in the embodiments of the present application is a smart doorbell, then:

[0046] The interaction module 50 may include a switch sensing module for triggering the ringing;

[0047] The human-computer interaction events (i.e., trigger events) occurring in the interaction module 50 monitored by the second processor 20 may include a switch operation event occurring in the switch sensing module;

[0048] The human-computer interaction events (i.e., trigger events) occurring in the interaction module 50 monitored by the second processor 20, which trigger the operation actions executed by the Internet of Things device in the embodiments of the present application, may include: a ringing playback action in response to a switch operation event;

[0049] The execution module 60 may include an audio module for executing the ringing playback action.

[0050] In the embodiments of the present application, regardless of what kind of device the Internet of Things device is, such as Figure 2The execution module 60 shown can be controlled by the first processor 10 and / or the second processor 20. That is, a part of the operation actions that need to be performed by the Internet of Things device (such as unlocking authentication actions and other operation actions involving algorithm operations) can be driven by the first processor 10. At the same time, it is also allowed that another part of the operation actions that need to be performed by the Internet of Things device (such as instant unlocking actions or ringtone playing actions and other operation actions only involving switch control) do not require the participation of the first processor 10.

[0051] It can also be seen from Figure 2 that the third processor 30 can be signal-connected to the communication module 70 to achieve network interaction of the Internet of Things device in the embodiment of the present application. For example, the communication module 70 can include a wired communication module or a wireless communication module such as a Wi-Fi (Wireless Fidelity) module. Among them, if the communication module 70 includes a Wi-Fi module, the third processor 30 can include a dedicated controller adapted to the Wi-Fi function such as a Wi-Fi MCU.

[0052] Please look back at Figure 1 , in the embodiment of the present application, the first processor 10 can be used to create an event message for triggering the linkage between the target device and the Internet of Things device before switching from the wake-up state to the sleep state. The target device can be any other Internet of Things device in the Internet of Things system where the Internet of Things device in the embodiment of the present application is located; and, as Figure 1 shown by the arrow marked S1 in

[0053] , the first processor 10 can send the created event message to the third processor 30.

[0054] For example, the first processor 10 can encapsulate the pre-configured event information into an encrypted event message. Other Internet of Things devices designated as the target device of the event message in the Internet of Things system can pre-save the decryption key for decrypting the event message. And, by parsing the event information in the decrypted event message, other Internet of Things devices designated as the target device of the event message in the Internet of Things system can identify the linkage actions that need to be performed by them.

[0055] If the Internet of Things device in the embodiment of the present application exchanges information with other Internet of Things devices in the Internet of Things system through a local area network, then the registered network address of the target device in the Internet of Things system can be an internal network address, and the network addresses included in the device information of other registered Internet of Things devices in the device information set maintained by the first processor 10 can be internal network addresses. Thus, the message destination address of the event message created using the device information can be the internal network address of the other Internet of Things device that is the target device.

[0056] If the Internet of Things device in the embodiment of the present application exchanges information with other Internet of Things devices in the Internet of Things system through the Internet. For example, through the Internet interaction based on IPv6 (Internet Protocol Version 6, the 6th generation Internet protocol), then the registered network address of the target device in the Internet of Things system can be an IP address, and the network addresses included in the device information of other registered Internet of Things devices in the device information set maintained by the first processor 10 can be IP addresses. Thus, the message destination address of the event message created using the device information can be the IP address of the other Internet of Things device that is the target device.

[0057] In the embodiment of the present application, the third processor 30 can be used to obtain and save the event message created by the first processor 10 before switching to the sleep state. For example, the third processor 30 can have a built-in memory such as RAM (Random Access Memory) or be connected to an external memory such as RAM used as a memory. The event message pre-set by the first processor 10 for the third processor 30 before switching to the sleep state can be stored in the built-in memory or the external memory of the third processor 30.

[0058] Figure 3 For Figure 1 the schematic diagram of the state transition of the first processor of the Internet of Things device in the shown embodiment. In Figure 3 the state machine of the first processor 10 is shown. For the process of the first processor 10 creating an event message before switching to the sleep state, it can be regarded as adding a pre-set state S_pre between the wake state S_act and the sleep state S_slp of the first processor 10. That is, the first processor 10 can be specifically configured as:

[0059] When it is determined to switch from the wake state to the sleep state (for example, when the duration for which the first processor 10 does not receive the trigger event monitored by the second processor 20 reaches a preset threshold), switch from the wake state S_act to the pre-set state S_pre to create an event message for pre-setting for the third processor 30;

[0060] Send the created event message to the third processor 30;

[0061] In response to the completion of the transmission of the event message to the third processor 30 (i.e., the preset completion of the event message for the third processor 30), switch to the sleep state S_slp.

[0062] Moreover, in the embodiments of the present application, the second processor 20 can sense the current state of the first processor 10. For example, the first processor 10 may have pins for characterizing its state, and the second processor 20 can monitor the current state of the first processor 10 in real time by monitoring the level of these pins of the first processor 10 to determine whether it is in the wake state or the sleep state.

[0063] During the period when the first processor 10 is in the wake state, if the second processor 20 monitors a trigger event (such as a human-computer interaction event occurring in the interaction module 50), then the second processor 20 can notify the first processor 10 to create an event message in real time, and then the first processor 10 sends the event message created in real time to the third processor 30, so that the third processor 30 can immediately send the event message created in real time to the target device through the network.

[0064] During the period when the first processor 10 is in the sleep state, if the second processor 20 monitors a trigger event (such as a human-computer interaction event occurring in the interaction module 50), then the second processor 20 can change the original notification sent to the first processor 10 to be sent to the third processor 30, as Figure 1 shown by the arrow marked with S2, so that:

[0065] The third processor 30 can also be used to, in response to the trigger event monitored by the second processor 20 during the period when the first processor 10 is in the sleep state, send the saved event message to the target device through the network (such as using the communication module 70), as Figure 1 shown by the arrow marked with S3, to trigger the target device to perform a linkage action associated with the operation action of the Internet of Things device in the embodiments of the present application.

[0066] For example, if the Internet of Things device in the embodiments of the present application is an intelligent lock, and the operation actions performed by the Internet of Things device in the embodiments of the present application include unlocking authentication actions in response to fingerprint input events or face capture events, then the target device may include an image capture device installed on the outdoor side of the door leaf where the intelligent lock is located, and the linkage action of the target device may include a shooting action of the image capture device to obtain panoramic information of the object with the currently input fingerprint.

[0067] For example, if the Internet of Things device in the embodiment of the present application is a smart lock, and the operation actions performed by the Internet of Things device in the embodiment of the present application include an immediate unlocking action in response to a switch operation event, then the target device may include a lighting lamp installed on the outdoor side of the door leaf where the smart lock is located, and the linkage action of the target device may include a lighting operation of the lighting lamp.

[0068] For another example, if the Internet of Things device in the embodiment of the present application is an electronic doorbell, and the operation actions performed by the Internet of Things device in the embodiment of the present application include a ringing playback action in response to a switch operation event, then the target device may include an electronic cat's eye installed on the door leaf, and the linkage action of the target device may include a cat's eye shooting action.

[0069] Moreover, as described above, some of the operation actions that need to be performed by the Internet of Things device (such as unlocking authentication actions and other operation actions involving algorithm operations) can be driven by the first processor 10. At the same time, it is also allowed that another part of the operation actions that need to be performed by the Internet of Things device (such as immediate unlocking actions or ringing playback actions, etc., which only involve switch control) do not require the participation of the first processor 10. Therefore:

[0070] For operation actions involving algorithm operations, the second processor 20 can further be used to wake up the first processor 10 in response to a trigger event detected during the period when the first processor 10 is in a sleep state, so that the first processor 10 drives the Internet of Things device (such as driving the execution module 60) to perform the operation action corresponding to the trigger event in the wake state (that is, after completing the wake-up startup process); or,

[0071] For operation actions that only involve switch control, the second processor 20 can further be used to drive the Internet of Things device (such as driving the execution module 60) to perform the operation action corresponding to the trigger event in response to a trigger event detected during the period when the first processor 10 is in a sleep state.

[0072] Based on the above embodiments, the sleep state of the first processor 10 of the Internet of Things device can save the device power consumption of the Internet of Things device, and the first processor 10 can create an event message for triggering linkage before entering the sleep state. Thus, during the period when the first processor 10 is in the sleep state, in response to the trigger event detected by the second processor 20, without waiting for the first processor 10 to complete the wake-up startup process, the third processor 30 can send out the event message pre-created by the first processor 10 before entering the sleep state and trigger the linkage of other Internet of Things devices. Furthermore, it is possible to save the device power consumption of the Internet of Things device while shortening the trigger delay of device linkage.

[0073] For the target device, it can also be switched to the sleep state to save its device power consumption when a predetermined condition is met (i.e., the main processor of the target device can be switched to the sleep state). In this case, the event message created by the first processor 10 of the Internet of Things device in the embodiments of the present application can have the effect of waking up the target device.

[0074] For example, the first processor 10 can be specifically configured to: create an event message according to a preset message format. Wherein, when the main processor of the target device is in the sleep state, the auxiliary processor of the target device can wake up the main processor in response to the successful matching of the received event message with the preset message format, so that the main processor can drive the target device (such as the execution module in the target device) to perform a linkage action in the wake state.

[0075] In the embodiments of the present application, the third processor 30 can further be used to save the sending record of the event message and the response record of the target device returning a response (as shown by the arrow marked with S4 in Figure 1 during the period when the first processor 10 is in the sleep state; and, the first processor 10 can further be used to obtain the sending record and the response record from the third processor 30 after being woken up from the sleep state.

[0076] In addition, in the embodiments of the present application, before switching to the sleep state, the event messages in the third processor 30 for the first processor 10 can include multiple ones, and the multiple preset event messages can be respectively used to cause different target devices to perform different linkage actions.

[0077] For the case where there are at least two trigger events that cause linkage actions, the linkage actions respectively triggered by each trigger event may be different, and the event messages to be sent by the third processor 30 can also be different. In this case, in order to facilitate the third processor 30 to distinguish different event messages, the event messages created by the first processor 10 can be associated with the event types of the preset trigger events, and accordingly:

[0078] The first processor 10 can be specifically configured to: for each event type of the preset trigger events used to cause linkage actions, create an event message corresponding to the event type;

[0079] The second processor 20 can further be used to identify the event type corresponding to the monitored trigger event during the period when the first processor is in the sleep state;

[0080] The third processor 30 is further configured to, during the period when the first processor 10 is in the sleep state, send an event message corresponding to the event type of the trigger event identified by the second processor 20 according to the pre-configured correspondence between the event type and the event message, where the correspondence between the event type and the event message can be associated and stored with the event message as an index of the event message. For example, the correspondence can be associated and stored with the pre-set event message in the built-in memory or external memory of the third processor 30.

[0081] Figure 4 This is an example flowchart of the linkage trigger method in another exemplary embodiment of the present application. Please refer to Figure 4 , based on a principle similar to that of the third processor 30 of the Internet of Things device in the foregoing embodiment, the linkage trigger method in this embodiment may include:

[0082] S410: Obtain and save the event message created by the first processor of the Internet of Things device, where the event message is created by the first processor before switching from the wake state to the sleep state.

[0083] In the embodiment of the present application, the event message obtained and saved by S410 may be created by the first processor when determining to switch from the wake state to the sleep state, and after S410, the first processor may switch to the sleep state.

[0084] In the embodiment of the present application, the event message obtained and saved by S410 may include the device information of the target device obtained by the first processor from the pre-configured device information set (for example, the device information may include the network address of the target device, and the network address may be an internal network address or an IP address), and the device information is used to be recognized by the forwarding device in the network so that the forwarding device pushes the event message to the target device according to the device information (for example, according to the network address of the target device included in the device information).

[0085] In the embodiment of the present application, the event message obtained and saved by S410 may include the event messages created by the first processor for each pre-set event type, that is, S410 may include: obtaining the event messages created by the first processor for each pre-set event type used to trigger a linkage action.

[0086] S430: In response to the trigger event monitored by the second processor of the Internet of Things device during the period when the first processor is in the sleep state, send the saved event message to the target device through the network, where the trigger event is used to trigger the Internet of Things device to execute an operation action, and the event message is used to trigger the target device to execute a linkage action associated with the operation action.

[0087] In an embodiment of the present application, the event message obtained and saved in S410 may be created by the first processor according to a preset message format. Therefore, after S430, if the main processor of the target device is in a sleep state, the auxiliary processor of the target device can wake up the main processor in response to the successful matching of the received event message with the preset message format, so that the main processor can drive the target device to perform a linkage action in the wake state.

[0088] If there are at least two trigger events that trigger linkage actions, and the linkage actions triggered by each trigger event may be different, then the event message obtained and saved in S410 may include event messages created by the first processor for each event type preset for triggering linkage actions, and S430 may include: according to the pre-configured correspondence between the event type and the event message, sending the event message corresponding to the event type of the trigger event identified by the second processor to the target device through the network.

[0089] Based on the above-mentioned linkage triggering method, the sleep state of the first processor of the Internet of Things device can save the device power consumption of the Internet of Things device, and the first processor can create an event message for triggering linkage before entering the sleep state. Thus, during the period when the first processor is in the sleep state, the linkage triggering method can, in response to the trigger event monitored by the second processor, send out the event message pre-created by the first processor before entering the sleep state and trigger the linkage of other Internet of Things devices, without waiting for the first processor to complete the wake-up startup process, thereby saving the device power consumption of the Internet of Things device and shortening the trigger delay of the linkage at the same time.

[0090] In addition, after S430, the linkage triggering method in the embodiment of the present application may further include: during the period when the first processor is in the sleep state, saving the sending record of the event message and the response record of the target device after receiving the event message for the first processor to obtain after being woken up.

[0091] In another embodiment of the present application, an Internet of Things system is further provided, including a first Internet of Things device and a second Internet of Things device, wherein the first Internet of Things device can be used to perform the linkage triggering method in the foregoing embodiment with the second Internet of Things device as the target device.

[0092] The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of protection of the present application.

Claims

1. An Internet of Things device, characterized in that, Including: A first processor, configured to create an event message for triggering the linkage between a target device and the Internet of Things device before switching from the wake state to the sleep state; wherein, the first processor is specifically configured to: for each event type supported by the Internet of Things device, create the event message corresponding to the event type; A second processor, configured to monitor a trigger event that causes the Internet of Things device to perform an operation, and identify the event type corresponding to the monitored trigger event during the period when the first processor is in the sleep state; A third processor, configured to obtain and save the event message created by the first processor, and during the period when the first processor is in the sleep state, in response to the trigger event monitored by the second processor during the period when the first processor is in the sleep state: according to the pre-configured correspondence between the event type and the event message, send the saved event message corresponding to the event type identified by the second processor to the target device through the network, so as to cause the target device to perform a linkage action associated with the operation of the Internet of Things device.

2. The Internet of Things device according to claim 1, wherein The first processor is specifically configured to: Create the event message when determining to switch from the wake state to the sleep state; Send the created event message to the third processor; Switch to the sleep state in response to the completion of the sending of the event message to the third processor.

3. The Internet of Things device according to claim 1, wherein The first processor is specifically configured to: Obtain the device information of the target device from a pre-configured device information set; Create the event message by using the obtained device information; Wherein, the device information is used to be recognized by a forwarding device in the network, so that the forwarding device pushes the event message to the target device according to the device information.

4. The Internet of Things device according to claim 1, wherein The first processor is specifically configured to: Create the event message according to a preset message format; Wherein, when the main processor of the target device is in the sleep state, the auxiliary processor of the target device wakes up the main processor in response to the successful matching of the received event message and the preset message format, so that the main processor drives the target device to perform the linkage action in the wake state.

5. The Internet of Things device according to claim 1, wherein The second processor is further configured to wake up the first processor in response to the trigger event monitored during the period when the first processor is in the sleep state, so that the first processor drives the Internet of Things device to perform the operation corresponding to the trigger event in the wake state; Or, The second processor is further configured to drive the Internet of Things device to perform the operation corresponding to the trigger event in response to the trigger event monitored during the period when the first processor is in the sleep state.

6. The Internet of Things device according to claim 1, wherein: the third processor is further configured to save the sending record of the event message and the response record of the target device after receiving the event message during the period when the first processor is in the sleep state; the first processor is further configured to obtain the sending record and the response record from the third processor after being awakened from the sleep state.

7. A linkage triggering method, characterized in that Comprising: obtaining and saving event messages created by a first processor of an Internet of Things device for each preset event type, wherein the event messages are created by the first processor before switching from the wake state to the sleep state; responding to a trigger event monitored by a second processor of the Internet of Things device during the period when the first processor is in the sleep state, and sending the saved event messages corresponding to the event type of the trigger event identified by the second processor to a target device through a network; wherein the trigger event is used to cause the Internet of Things device to perform an operation action, and the event message is used to cause the target device to perform a linkage action associated with the operation action.

8. An Internet of Things system, characterized in that, Comprising a first Internet of Things device and a second Internet of Things device, wherein the first Internet of Things device is configured to use the second Internet of Things device as the target device and execute the linkage trigger method according to claim 7.

Citation Information

Patent Citations

  • Low power consumption equipment, keep-alive server and message pushing method and system

    CN108270770A