Event reminder triggering method and device, storage medium and electronic device

By establishing timeline index relationships and comparing status data, the problem of poor robustness in triggering event reminders in IoT devices is solved, accurate reminders are achieved in the case of network delays and device restarts, and device stability and user experience are enhanced.

CN112035720BActive Publication Date: 2024-08-23HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010814161.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-13
Publication Date
2024-08-23
Estimated Expiration
2040-08-13

AI Technical Summary

Technical Problem

The triggering of event reminders in the prior art has poor robustness, causing the IoT device to be unable to process correctly when the order of status data in WAN network transmission is disordered. Wrong reminders may be generated, and user reminders may be missed when the application crashes or is restarted.

Method used

By obtaining the sensor status information of the target device, establishing a timeline index relationship, searching and comparing the status data, and sending event reminder information when the preset conditions are met to ensure the accuracy and stability of the reminder.

Benefits of technology

Improved the triggering robustness of event reminders, ensuring that reminder information can be sent correctly even in the case of network delays or device restarts, avoiding omissions, and enhancing the stability and user experience of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112035720B
    Figure CN112035720B
Patent Text Reader

Abstract

The present invention discloses a triggering method and device, storage medium and electronic device for event reminder. The method comprises: obtaining first state information reported by a target sensor in a target device, wherein the first state information comprises a first reporting time point for reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, and the first state data is used to indicate the current operating state of the target device; determining a target timeline according to the target identifier and the target data type of the first state data; determining a second reporting time point according to the first reporting time point, and searching the target timeline for second state data corresponding to the second reporting time point; comparing the first state data with the second state data to obtain a comparison result; and sending event reminder information when the comparison result meets a preset condition. The present invention solves the technical problem of poor triggering robustness of event reminders.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method and device for triggering an event reminder, a storage medium, and an electronic device. Background Art

[0002] In recent years, the application of smart appliances has become more and more widespread, and smart appliances are increasingly used to trigger event reminders based on different operating states. For example, the Internet of Things washing machine will give the user a reminder when it needs to be turned on, reminding the user to check whether there is a wallet, keys and other items among the clothes to be washed.

[0003] The existing technology often uses the following principle to trigger event reminders: smart appliances connected to the Internet continuously report sensor status data to the cloud, and smart applications in the cloud continuously receive sensor status data. Some active service applications need to check the continuous changes in these states and determine whether the state changes match a specific change pattern (such as attribute A changing from a1 to a2). If so, they trigger a certain action (such as initiating a reminder to the user of the smart appliance). However, the triggering of event reminders in the existing technology has the disadvantage of poor robustness, as follows:

[0004] IoT appliances report their status to the cloud via the IoT, which involves wide area network transmission. This can cause the status data to be out of order. This means that if a sensor sends two status data pieces in a very short period of time, the first one sent first might be received by the cloud application before the second one. If this happens, the above solutions will not work and may even result in erroneous alerts.

[0005] In addition, in order to save traffic, some IoT appliances will not report if the status of a certain attribute has not changed when reporting the status. Therefore, when directly matching two consecutive data, the value of this status may not be included in the previous reported data. At this time, only caching the most recent data cannot determine whether this status has changed. Even if multiple historical reported data are cached, it is difficult to determine the appropriate number of cache entries, and it also takes up memory.

[0006] Also, if the app suddenly crashes or needs to be restarted, the cached recent status data will be lost after the restart, and the app can only accumulate recent status data from the start again, which may result in missing reminders to the user.

[0007] That is, the prior art has the problem of poor triggering robustness of event reminders.

[0008] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0009] Embodiments of the present invention provide a method and device for triggering an event reminder, a storage medium, and an electronic device, so as to at least solve the technical problem of poor robustness in triggering an event reminder.

[0010] According to one aspect of an embodiment of the present invention, a method for triggering an event reminder is provided, comprising: obtaining first status information reported by a target sensor in a target device, wherein the first status information comprises a first reporting time point for reporting the first status information, first status data currently detected by the target sensor, and a target identifier of the target device, the first status data being used to represent the current operating status of the target device; determining a target timeline based on the target identifier and the target data type of the first status data, wherein the target timeline is used to store all status data of the target data type and corresponding reporting time points for reporting each status data; determining a second reporting time point based on the first reporting time point, and searching the target timeline for second status data corresponding to the second reporting time point; comparing the first status data with the second status data to obtain a comparison result; and sending event reminder information if the comparison result meets a preset condition, wherein the event reminder information is used to display a target reminder event associated with the current operating status.

[0011] As an optional solution, before obtaining the first status information reported by the target sensor in the target device, the method includes: obtaining a timeline set, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including the target timeline; establishing a first index relationship between each timeline in the timeline set and the device identification of each device; and establishing a second index relationship between each timeline in the timeline set and the data type of each status data.

[0012] As an optional solution, the above-mentioned determination of the target timeline based on the above-mentioned target identifier and the target data type of the above-mentioned first state data includes: determining a timeline subset matching the above-mentioned target identifier in the above-mentioned timeline set based on the above-mentioned first index relationship; and determining the above-mentioned target timeline matching the above-mentioned target data type in the above-mentioned timeline subset based on the above-mentioned second index relationship.

[0013] As an optional solution, when the above comparison results meet the preset conditions, after triggering the target reminder instruction, it includes: inserting the above first reporting time point on the above target time axis; inserting the above first status data at the above first reporting time point on the above target time axis.

[0014] As an optional scheme, the above-mentioned determining the second reporting time point based on the above-mentioned first reporting time point, and searching for the second status data corresponding to the above-mentioned second reporting time point in the above-mentioned target time axis includes: determining a third reporting time point whose reporting time is earlier than the above-mentioned first reporting time point, and searching for the third status data corresponding to the above-mentioned third reporting time point in the above-mentioned target time axis.

[0015] As an optional scheme, the above-mentioned determining the second reporting time point based on the above-mentioned first reporting time point, and searching for the second status data corresponding to the above-mentioned second reporting time point in the above-mentioned target time axis includes: determining the fourth reporting time point whose reporting time is later than the above-mentioned first reporting time point, and searching for the fourth status data corresponding to the above-mentioned fourth reporting time point in the above-mentioned target time axis.

[0016] As an optional solution, when the above-mentioned comparison result meets the preset conditions, after triggering the target reminder instruction, it also includes: comparing the above-mentioned third state data with the above-mentioned first state data, and when the above-mentioned third state data is equal to the above-mentioned first state data, deleting the above-mentioned first state data; comparing the above-mentioned fourth state data with the above-mentioned first state data, and when the above-mentioned fourth state data is equal to the above-mentioned first state data, inserting the above-mentioned first reporting time point on the above-mentioned target time axis, inserting the above-mentioned first state data at the above-mentioned first reporting time point, and deleting the above-mentioned fourth state data.

[0017] According to another aspect of an embodiment of the present invention, a triggering device for an event reminder is further provided, comprising: a first acquiring unit, configured to acquire first status information reported by a target sensor in a target device, wherein the first status information includes a first reporting time point for reporting the first status information, first status data currently detected by the target sensor, and a target identifier of the target device, wherein the first status data is used to represent the current operating state of the target device; a first determining unit, configured to determine a target timeline based on the target identifier and the target data type of the first status data, wherein the target timeline is used to store all status data of the target data type and corresponding reporting time points for reporting each status data; a second determining unit, configured to determine a second reporting time point based on the first reporting time point, and search the target timeline for second status data corresponding to the second reporting time point; a second acquiring unit, configured to compare the first status data with the second status data to obtain a comparison result; and a sending unit, configured to send event reminder information if the comparison result meets a preset condition, wherein the event reminder information is used to display a target reminder event associated with the current operating state.

[0018] As an optional solution, it includes: a third acquisition unit, used to acquire a timeline set before acquiring the first status information reported by the target sensor in the target device, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including the target timeline; a first establishment unit, used to establish a first index relationship between each timeline in the timeline set and the device identifier of each device before acquiring the first status information reported by the target sensor in the target device; a second establishment unit, used to establish a second index relationship between each timeline in the timeline set and the data type of each status data before acquiring the first status information reported by the target sensor in the target device.

[0019] As an optional solution, the above-mentioned first determination unit includes: a first determination module, used to determine the timeline subset that matches the above-mentioned target identifier in the above-mentioned timeline set based on the above-mentioned first index relationship; a second determination module, used to determine the above-mentioned target timeline that matches the above-mentioned target data type in the above-mentioned timeline subset based on the above-mentioned second index relationship.

[0020] As an optional solution, it includes: a first insertion unit, used to insert the above-mentioned first reporting time point on the above-mentioned target time axis after triggering the target reminder instruction when the above-mentioned comparison result meets the preset conditions; a second insertion unit, used to insert the above-mentioned first status data at the above-mentioned first reporting time point on the above-mentioned target time axis after triggering the target reminder instruction when the above-mentioned comparison result meets the preset conditions.

[0021] As an optional solution, the above-mentioned second determination unit includes: a first determination module, used to determine a third reporting time point whose reporting time is earlier than the above-mentioned first reporting time point, and to search for third status data corresponding to the above-mentioned third reporting time point in the above-mentioned target time axis.

[0022] As an optional solution, the above-mentioned second determination unit includes: a second determination module, used to determine a fourth reporting time point that is later than the above-mentioned first reporting time point, and to search for fourth status data corresponding to the above-mentioned fourth reporting time point in the above-mentioned target timeline.

[0023] As an optional solution, it also includes: a first deletion module, which is used to compare the above-mentioned third state data with the above-mentioned first state data after triggering the target reminder instruction when the above-mentioned comparison result meets the preset conditions, and delete the above-mentioned first state data when the above-mentioned third state data is equal to the above-mentioned first state data; a second deletion module, which is used to compare the above-mentioned fourth state data with the above-mentioned first state data, and when the above-mentioned fourth state data is equal to the above-mentioned first state data, insert the above-mentioned first reporting time point on the above-mentioned target time axis, insert the above-mentioned first state data at the above-mentioned first reporting time point, and delete the above-mentioned fourth state data.

[0024] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the triggering method of the event reminder when running.

[0025] According to another aspect of an embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the event reminder triggering method through the computer program.

[0026] In an embodiment of the present invention, first status information reported by a target sensor in a target device is obtained, wherein the first status information includes a first reporting time point for reporting the first status information, first status data currently detected by the target sensor, and a target identifier of the target device, and the first status data is used to represent the current operating state of the target device; according to the target identifier and the target data type of the first status data, a target time axis is determined, wherein the target time axis is used to store all status data of the target data type and corresponding reporting time points for reporting each status data; according to the first reporting time point, a second reporting time point is determined, and a corresponding reporting time point is searched in the target time axis. The second status data corresponding to the above-mentioned second reporting time point; comparing the above-mentioned first status data with the above-mentioned second status data to obtain a comparison result; when the above-mentioned comparison result meets the preset conditions, sending event reminder information, wherein the above-mentioned event reminder information is used to display the target reminder event associated with the above-mentioned current operating status, and searching for the corresponding status value in the database through the device identification, status data type and time point, and using the method of comparing the status value corresponding to the current time point with the status value corresponding to the previous or next time point, the purpose of improving the comprehensiveness of the information based on which the comparison result is obtained is achieved, and the effect of improving the triggering robustness of the event reminder is achieved, thereby solving the technical problem of poor triggering robustness of the event reminder. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0028] Figure 1 is a schematic diagram of an application environment of an optional event reminder triggering method according to an embodiment of the present invention;

[0029] Figure 2 is a schematic diagram of a flow chart of an optional method for triggering an event reminder according to an embodiment of the present invention;

[0030] Figure 3 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0031] Figure 4 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0032] Figure 5 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0033] Figure 6 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0034] Figure 7 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0035] Figure 8 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0036] Figure 9 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0037] Figure 10 is a schematic diagram of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0038] Figure 11 is a schematic diagram of a flow chart of another optional method for triggering an event reminder according to an embodiment of the present invention;

[0039] Figure 12 is a schematic structural diagram of an optional event reminder triggering device according to an embodiment of the present invention;

[0040] Figure 13 FIG. 4 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only 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 making creative efforts should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] According to one aspect of an embodiment of the present invention, a method for triggering an event reminder is provided. Optionally, as an optional implementation, the method for triggering an event reminder can be applied to, but is not limited to, Figure 1 In the environment shown, the environment may include, but is not limited to, a user device 102, a network 110, a server 112, and a target device 1022. The user device 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104. The target device 1022 displays a current running status 1024.

[0044] The specific process can be as follows:

[0045] Step S102 : the user device 102 reports first status information via a target sensor (not shown) in the target device 1022 , wherein the first status information is used to indicate a current operating state 1024 ;

[0046] Steps S104-S106, the user device 102 sends the first status information to the server 112 via the network 110;

[0047] In steps S108-S110, the server 112 searches the database 114 for a target timeline corresponding to the first state information, searches the target timeline for the first state data and the second state data for comparison, obtains a comparison result, and transmits the comparison result if the comparison result satisfies a preset condition.

[0048] Steps S112-S114, the server 112 sends the comparison result to the user device 102 via the network 110;

[0049] In step S116 , the user device 102 sends event reminder information based on the comparison result, wherein the event reminder information is used to display a target reminder event associated with the current running state 1024 .

[0050] Optionally, in this embodiment, the user device may be a terminal device configured with a target client, such as, but not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, an MID (Mobile Internet Device), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The user device may also be, but not limited to, a smart home appliance (such as target device 1022) configured with a target client, such as, but not limited to, at least one of the following: a smart TV, a smart washing machine, a smart air conditioner, etc. The network may include, but not limited to, a wired network or a wireless network, wherein the wired network includes a local area network, a metropolitan area network, and a wide area network, and the wireless network includes Bluetooth, Wi-Fi, and other networks that enable wireless communication. The server may be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is merely an example and is not intended to be limiting in this embodiment.

[0051] Alternatively, as an optional implementation, Figure 2 As shown, the triggering method of the above event reminder includes:

[0052] S202, obtaining first status information reported by a target sensor in a target device, wherein the first status information includes a first reporting time point for reporting the first status information, first status data currently detected by the target sensor, and a target identifier of the target device, the first status data being used to indicate a current operating status of the target device;

[0053] S204, determining a target time axis according to the target identifier and the target data type of the first status data, wherein the target time axis is used to store all status data of the target data type and corresponding reporting time points for reporting each status data;

[0054] S206, determining a second reporting time point based on the first reporting time point, and searching the target time axis for second status data corresponding to the second reporting time point;

[0055] S208, comparing the first state data with the second state data to obtain a comparison result;

[0056] S210 , when the comparison result meets a preset condition, sending event reminder information, wherein the event reminder information is used to display a target reminder event associated with the current running state.

[0057] Optionally, in this embodiment, the triggering method of event reminder can be but is not limited to the triggering of reminder events in the field of IoT smart appliances; the target device can be but is not limited to smart appliances, such as smart air conditioners, smart TVs, smart washing machines, etc.; the target sensor can be but is not limited to collecting the operating status of one or more parts of the target device, such as the on or off status of the target device, the operating intensity status of the target device, etc.; the target identifier can be but is not limited to representing the device identifier of the target device in the IoT database; the target data type can be but is not limited to the data type recorded in the IoT database; the target timeline can be but is not limited to a timeline that matches the target identifier and target data type; the target reminder event can be but is not limited to a reminder event that matches the operating status, for example, if the operating status is on, the matching reminder event can be but is not limited to reminding the user that the target device is turned on; the first status data can be but is not limited to a single status data, and can be but is not limited to a combination of multiple status data.

[0058] It should be noted that the first state information reported by the target sensor in the target device is obtained, wherein the first state information includes the first reporting time point of reporting the first state information, the first state data currently detected by the target sensor, and the target identifier of the target device, and the first state data is used to represent the current operating state of the target device; according to the target identifier and the target data type of the first state data, a target timeline is determined, wherein the target timeline is used to store all state data of the target data type and the corresponding reporting time point of reporting each state data; according to the first reporting time point, a second reporting time point is determined, and the second state data corresponding to the second reporting time point is searched in the target timeline; the first state data and the second state data are compared to obtain a comparison result; if the comparison result meets the preset conditions, an event reminder message is sent, wherein the event reminder message is used to display the target reminder event associated with the current operating state. Optionally, the timeline can be, but is not limited to, a Redis structure, wherein Redis can be, but is not limited to, an independent KV (key / value) structure cache system, providing an API to support applications to quickly read and write its value through the key, wherein the ordered set data structure is particularly supported, which can be stored and queried in order based on the score field value.

[0059] To further illustrate, the optional Figure 3 , including a target time axis 302, wherein the target time axis 302 records a plurality of state data, and the plurality of state data matches corresponding time tags, for example, the time tag "T1" matches the first state data 304, the time tag "T2" matches the second state data 306, and the time tag "Tn" matches the nth state data 308;

[0060] Optionally, for example, the first state data 304 is state data currently detected by a target sensor in the target device, and the target timeline 302 is determined by the target data type of the first state data 304 and the device identifier of the target device;

[0061] Further, for example, after obtaining the first state data 304 and determining the target timeline 302, a second reporting time is determined among all time identifiers in the target timeline 302 according to the first reporting time of the first state data 304, for example, the second reporting time is "T2";

[0062] Optionally, for example, the second state data 306 matching the time identifier “ T2 ” is searched in the target time axis 302 , and the first state data 304 and the second state data 306 are compared, and a comparison result is obtained.

[0063] According to an example of the present application, first state information reported by a target sensor in a target device is obtained, wherein the first state information includes a first reporting time point for reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, wherein the first state data is used to represent the current operating state of the target device; a target timeline is determined based on the target identifier and the target data type of the first state data, wherein the target timeline is used to store all state data of the target data type and the corresponding reporting time points for reporting each state data; a second reporting time point is determined based on the first reporting time point, and second state data corresponding to the second reporting time point is searched in the target timeline; the first state data is compared with the second state data to obtain a comparison result; and if the comparison result meets a preset condition, an event reminder message is sent, wherein the event reminder message is used to display a target reminder event associated with the current operating state, and the corresponding state value is searched in a database based on the device identifier, the state data type, and the time point, and the state value corresponding to the current time point is compared with the state value corresponding to the previous or next time point, thereby achieving the purpose of improving the comprehensiveness of the information based on which the comparison result is obtained and achieving the effect of improving the triggering robustness of the event reminder.

[0064] As an optional solution, before obtaining the first status information reported by the target sensor in the target device, the following steps are included:

[0065] S1, obtaining a timeline set, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including a target timeline;

[0066] S2, establishing a first index relationship between each time axis in the time axis set and a device identifier of each device;

[0067] S3: Establish a second index relationship between each time axis in the time axis set and the data type of each state data.

[0068] It should be noted that a timeline set is obtained, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including the target timeline; a first index relationship is established between each timeline in the timeline set and the device identifier of each device; and a second index relationship is established between each timeline in the timeline set and the data type of each status data.

[0069] To further illustrate, the optional Figure 4 As shown, according to service requirements, a first index relationship between multiple time axes including the target time axis 302 and the target device identifier 402 is pre-established, and a second index relationship 408 between the target time axis 302 and the target data type 406 is established.

[0070] According to an example of the present application, a timeline set is obtained, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including a target timeline; a first index relationship is established between each timeline in the timeline set and the device identification of each device; a second index relationship is established between each timeline in the timeline set and the data type of each status data. By pre-establishing the index relationship between the device identification, data type and timeline respectively, the technical purpose of improving the timeline determination speed is achieved, thereby realizing the technical effect of timeline search efficiency.

[0071] As an optional solution, determining the target time axis according to the target identifier and the target data type of the first state data includes:

[0072] S1, determining a time axis subset matching the target identifier in the time axis set according to the first index relationship;

[0073] S2. Determine a target time axis that matches the target data type in the time axis subset according to the second index relationship.

[0074] It should be noted that, according to the first index relationship, a timeline subset matching the target identifier is determined in the timeline set; according to the second index relationship, a target timeline matching the target data type is determined in the timeline subset.

[0075] To further illustrate, the optional Figure 5 As shown, according to the first index relationship 404, a timeline subset 502 matching the target device identifier 402 is determined in a preconfigured timeline set having multiple timelines; according to the second index relationship 408, a target timeline 302 matching the target data type 406 is determined in the timeline subset 502.

[0076] According to the example of the present application, based on the first index relationship, a timeline subset matching the target identifier is determined in the timeline set; based on the second index relationship, a target timeline matching the target data type is determined in the timeline subset, thereby achieving the technical purpose of quickly determining the target timeline, thereby achieving the technical effect of improving the efficiency of determining the target timeline.

[0077] As an optional solution, when the comparison result meets the preset conditions, after the target reminder instruction is triggered, it includes:

[0078] S1, insert the first reporting time point on the target time axis;

[0079] S2: Insert first status data at a first reporting time point on the target time axis.

[0080] It should be noted that the first reporting time point is inserted on the target time axis; the first status data is inserted at the first reporting time point on the target time axis. Optionally, the first reporting time point can be inserted continuously with other reporting time points on the target time axis, but is not limited to it.

[0081] To illustrate further, the optional Figure 6 As shown, the specific steps are as follows: S602, inserting the first reporting time point 602 into the target time axis 302, wherein the insertion position of the first reporting time point 602 is related to other reporting time points inserted into the target time axis 302; S604, inserting the first status data 304 at the inserted first reporting time point 602.

[0082] According to the example of this application, the first reporting time point is inserted on the target time axis; at the first reporting time point on the target time axis, the first status data is inserted, thereby achieving the technical purpose of storing the reported data in a timely and orderly manner, thereby achieving the technical effect of improving the storage efficiency of the reported data.

[0083] As an optional solution, determining the second reporting time point according to the first reporting time point, and searching the target time axis for the second state data corresponding to the second reporting time point includes:

[0084] A third reporting time point whose reporting time is earlier than the first reporting time point is determined, and third state data corresponding to the third reporting time point is searched in the target time axis.

[0085] It should be noted that a third reporting time point whose reporting time is earlier than the first reporting time point is determined, and the third state data corresponding to the third reporting time point is searched in the target time axis.

[0086] To illustrate further, the optional Figure 7 As shown, a third reporting time point 702 whose reporting time is earlier than the first reporting time point 602 in the target time axis 302 is determined, and third state data 704 corresponding to the third reporting time point 702 is searched in the target time axis 302 .

[0087] According to the example of this application, a third reporting time point that is earlier than the first reporting time point is determined, and the third status data corresponding to the third reporting time point is searched in the target time axis, thereby achieving the technical purpose of quickly searching for status data earlier than the first reporting time point, thereby achieving the technical effect of improving the efficiency of searching for status data on the target time axis.

[0088] As an optional solution, determining the second reporting time point according to the first reporting time point, and searching the target time axis for the second state data corresponding to the second reporting time point includes:

[0089] A fourth reporting time point whose reporting time is later than the first reporting time point is determined, and fourth state data corresponding to the fourth reporting time point is searched in the target time axis.

[0090] It should be noted that the fourth reporting time point after the first reporting time point is determined, and the fourth state data corresponding to the fourth reporting time point is searched in the target time axis.

[0091] To further illustrate, the optional Figure 8 As shown, the fourth state data 804 corresponding to the fourth reporting time point 802 whose reporting time is later than the first reporting time point 602 is determined.

[0092] According to the example of this application, the fourth reporting time point whose reporting time is later than the first reporting time point is determined, and the fourth status data corresponding to the fourth reporting time point is searched in the target time axis, thereby achieving the technical purpose of quickly searching for status data later than the first reporting time point, thereby achieving the technical effect of improving the efficiency of searching for status data on the target time axis.

[0093] As an optional solution, when the comparison result meets the preset conditions, after triggering the target reminder instruction, it also includes:

[0094] S1, comparing the third state data with the first state data, and deleting the first state data if the third state data is equal to the first state data;

[0095] S2, compare the fourth state data with the first state data, and when the fourth state data is equal to the first state data, insert the first reporting time point on the target time axis, and insert the first state data at the first reporting time point, and delete the fourth state data.

[0096] It should be noted that the third state data is compared with the first state data, and when the third state data is equal to the first state data, the first state data is deleted; the fourth state data is compared with the first state data, and when the fourth state data is equal to the first state data, the first reporting time point is inserted on the target time axis, the first state data is inserted at the first reporting time point, and the fourth state data is deleted.

[0097] To further illustrate, the optional Figure 9As shown, when comparing the third state data 704 with the first state data 304, and the third state data 704 is equal to the first state data 304, the following steps are performed: S902, deleting the first state data 304.

[0098] To further illustrate, the optional Figure 10 As shown, when the fourth state data 804 is compared with the first state data 304 and the fourth state data 804 is equal to the first state data 304, the following steps are performed: S1002, inserting the first state data 304 at the first reporting time point 602; S1004, deleting the fourth state data 1004.

[0099] According to the example of the present application, the third state data is compared with the first state data, and when the third state data is equal to the first state data, the first state data is deleted; the fourth state data is compared with the first state data, and when the fourth state data is equal to the first state data, the first reporting time point is inserted on the target time axis, and the first state data is inserted at the first reporting time point, and the fourth state data is deleted, thereby achieving the technical purpose of greatly reducing the storage of duplicate state data without losing state information, thereby achieving the technical effect of saving memory resources.

[0100] As an alternative, optional, e.g. Figure 11 The following steps are shown in the following figure:

[0101] Step S1102: The target sensor reports the status information of the target device;

[0102] Step S1104, inserting the currently reported status information into the timeline;

[0103] Step S1106-1, searching the time axis for the previous record of the currently reported status information;

[0104] Step S1106-2, searching the time axis for the reporting time of the next record of the current reporting status information;

[0105] Step S1108-1, determining whether there is status information of the previous record. If there is status information of the previous record, executing step S1110-1; if there is no status information of the previous record, executing step S1106-2;

[0106] Step S1108-2, determining whether there is status information of the next record, if there is status information of the next record, executing step S1110-2, if there is no status information of the next record, executing step S1108-1;

[0107] Step S1110-1, searching for matching status data in the time axis according to the reporting time of the previous record, and comparing it with the status data in the currently reported status information;

[0108] Step S1110-2: searching for matching status data in the time axis according to the reporting time of the next record, and comparing the matching status data with the status data in the currently reported status information;

[0109] Step S1112, determining whether the comparison result matches the target reminder event, if yes, executing step S1114, if not, executing step S1108-1;

[0110] Step S1114: triggering the sending of a target reminder event.

[0111] Optionally, for example, the cloud application receives a status record reported by the target sensor regarding the status information of the IoT appliance (target device), and inserts the record into the timeline (the relevant storage structure of Redis).

[0112] Query the most recent data report with a time smaller than the current record sending time from Redis, if it exists, query the latest values ​​of all attributes at this time point according to this timestamp as the status value at this time point; compare the status value at this point with the currently received status value and the configured status change value respectively, and trigger a reminder if they match; if there is no record with a timestamp smaller than the current record sending time, considering the possibility of out-of-order reporting, query the most recent data report with a timestamp larger than the current record sending time stamp, if it exists, query the latest values ​​of all corresponding attributes according to this timestamp as the status value at this time point; compare the status value at this point with the currently received status value and the configured status change value respectively, and trigger a reminder if they match, and send an event reminder information for displaying the target reminder event associated with the current running status.

[0113] Alternatively, for example, using the ordered set data storage structure of Redis, each attribute state of each smart appliance (target device) is used as a key, the time of sending is used as the score, and the value sent is used as the value. In this way, each attribute state of each appliance is stored according to the reporting timeline;

[0114] The same Redis ordered set data storage structure is used, with the label of each appliance as the key, the time when each data is sent as the score, and the ID of each reported data as the value. In this way, each report of each appliance is stored according to the reporting timeline.

[0115] When the application inserts reported data into Redis, it first inserts the reporting time, and then inserts each reported attribute status into its own timeline:

[0116] If the status value is equal to the most recent status value that is less than the current sending time, it means that the attribute status value has not changed and does not need to be written;

[0117] If the status value is equal to the most recent status value that is greater than the current sending time, it means that the attribute status value is sent first and arrived last. It needs to be corrected according to the actual sending time: write the current value and delete the last value.

[0118] Based on the state attribute value set storage structure, to query the latest state value of all attributes at a certain point in time, all attributes are traversed, and each attribute query is less than or equal to the latest state value at this time point, and then combined.

[0119] Optionally, the embodiment of the present application utilizes the ordered set storage structure of redis, stores data according to the sending timestamp, and searches for adjacent records based on the time point. In order to avoid confusion in the receiving order caused by network transmission delays, the timestamp sent by the sensor is used as the basis for sorting; the status value of each attribute is stored according to the time axis. If the value has not changed, it does not need to be stored repeatedly, saving memory resources; the ID of each report record of the appliance is stored in the order of the sending timestamp, which is equivalent to establishing an index for each report record. This index can be used to query the latest status value set of all attributes at this time point;

[0120] Optionally, the embodiments of the present application have the following advantages:

[0121] (1) Robustness: Because the storage of state values ​​is based on the sending timestamp, the algorithm will not be affected even if the order of receiving data is inconsistent with the sending order, and bidirectional matching is performed on adjacent records.

[0122] (2) Strong scalability: Even if the attribute status reported by the sensor at a certain time is incomplete because the status of some attributes has not changed, it will not affect the execution of this matching algorithm, because this algorithm queries the latest status of all attributes accumulated at this deadline from Redis.

[0123] (3) Save memory resources: Because each attribute is stored in a time-based manner, only the value when the state changes is saved. This greatly reduces the storage of duplicate state values ​​without losing state information, saving valuable memory resources.

[0124] (4) Robustness: Because Redis independent storage is used, even if the application is restarted, the cached data will not be lost and the matching algorithm can still be executed.

[0125] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0126] According to another aspect of the embodiment of the present invention, there is also provided a triggering device for event reminder for implementing the triggering method of event reminder. Figure 12 As shown, the device includes:

[0127] A first acquiring unit 1202 is configured to acquire first status information reported by a target sensor in a target device, wherein the first status information includes a first reporting time point of reporting the first status information, first status data currently detected by the target sensor, and a target identifier of the target device, wherein the first status data is used to indicate a current operating status of the target device;

[0128] A first determining unit 1204 is configured to determine a target timeline according to the target identifier and the target data type of the first status data, wherein the target timeline is configured to store all status data of the target data type and corresponding reporting time points for reporting each status data;

[0129] The second determining unit 1206 is configured to determine a second reporting time point according to the first reporting time point, and search the target time axis for second status data corresponding to the second reporting time point;

[0130] The second acquiring unit 1208 is configured to compare the first state data with the second state data to acquire a comparison result;

[0131] The sending unit 1210 is configured to send event reminder information when the comparison result meets a preset condition, wherein the event reminder information is used to display a target reminder event associated with the current running state.

[0132] Optionally, in this embodiment, the triggering device of the event reminder can be, but is not limited to, applied to the triggering of reminder events in the field of smart home appliances in the Internet of Things; the target device can be, but is not limited to, a smart home appliance, such as a smart air conditioner, a smart TV, a smart washing machine, etc.; the target sensor can be, but is not limited to, used to collect the operating status of one or more parts of the target device, such as the on or off status of the target device, the operating intensity status of the target device, etc.; the target identifier can be, but is not limited to, used to represent the device identifier of the target device in the Internet of Things database; the target data type can be, but is not limited to, the data type recorded in the Internet of Things database; the target timeline can be, but is not limited to, a timeline that matches the target identifier and the target data type; the target reminder event can be, but is not limited to, a reminder event that matches the operating status, for example, if the operating status is on, the matching reminder event can be, but is not limited to, reminding the user that the target device has been turned on; the first status data can be, but is not limited to, a single status data, and can be, but is not limited to, a combination of multiple status data.

[0133] It should be noted that the first state information reported by the target sensor in the target device is obtained, wherein the first state information includes the first reporting time point of reporting the first state information, the first state data currently detected by the target sensor, and the target identifier of the target device, and the first state data is used to represent the current operating state of the target device; according to the target identifier and the target data type of the first state data, a target timeline is determined, wherein the target timeline is used to store all state data of the target data type and the corresponding reporting time point of reporting each state data; according to the first reporting time point, a second reporting time point is determined, and the second state data corresponding to the second reporting time point is searched in the target timeline; the first state data and the second state data are compared to obtain a comparison result; if the comparison result meets the preset conditions, an event reminder message is sent, wherein the event reminder message is used to display the target reminder event associated with the current operating state. Optionally, the timeline can be, but is not limited to, a Redis structure, wherein Redis can be, but is not limited to, an independent KV (key / value) structure cache system, providing an API to support applications to quickly read and write its value through the key, wherein the ordered set data structure is particularly supported, which can be stored and queried in order based on the score field value.

[0134] To illustrate further, the optional Figure 3 , including a target time axis 302, wherein the target time axis 302 records a plurality of state data, and the plurality of state data matches corresponding time tags, for example, the time tag "T1" matches the first state data 304, the time tag "T2" matches the second state data 306, and the time tag "Tn" matches the nth state data 308;

[0135] Optionally, for example, the first state data 304 is state data currently detected by a target sensor in the target device, and the target timeline 302 is determined by the target data type of the first state data 304 and the device identifier of the target device;

[0136] Further, for example, after obtaining the first state data 304 and determining the target timeline 302, a second reporting time is determined among all time identifiers in the target timeline 302 according to the first reporting time of the first state data 304, for example, the second reporting time is "T2";

[0137] Optionally, for example, the second state data 306 matching the time identifier “ T2 ” is searched in the target time axis 302 , and the first state data 304 and the second state data 306 are compared, and a comparison result is obtained.

[0138] According to an example of the present application, first state information reported by a target sensor in a target device is obtained, wherein the first state information includes a first reporting time point for reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, wherein the first state data is used to represent the current operating state of the target device; a target timeline is determined based on the target identifier and the target data type of the first state data, wherein the target timeline is used to store all state data of the target data type and the corresponding reporting time points for reporting each state data; a second reporting time point is determined based on the first reporting time point, and second state data corresponding to the second reporting time point is searched in the target timeline; the first state data is compared with the second state data to obtain a comparison result; and if the comparison result meets a preset condition, an event reminder message is sent, wherein the event reminder message is used to display a target reminder event associated with the current operating state, and the corresponding state value is searched in a database by the device identifier, the state data type, and the time point, and the state value corresponding to the current time point is compared with the state value corresponding to the previous or next time point, thereby achieving the purpose of improving the comprehensiveness of the information based on which the comparison result is obtained and achieving the effect of improving the triggering robustness of the event reminder.

[0139] As an optional solution, it includes:

[0140] a third acquiring unit, configured to acquire a time axis set before acquiring the first status information reported by the target sensor in the target device, wherein the time axis set is used to store all status data of all data types of all devices, and the time axis set includes multiple time axes including the target time axis;

[0141] A first establishing unit is configured to establish a first index relationship between each time axis in the time axis set and a device identifier of each device before obtaining first status information reported by a target sensor in the target device;

[0142] The second establishing unit is configured to establish a second index relationship between each time axis in the time axis set and a data type of each state data before acquiring the first state information reported by the target sensor in the target device.

[0143] It should be noted that a timeline set is obtained, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including the target timeline; a first index relationship is established between each timeline in the timeline set and the device identifier of each device; and a second index relationship is established between each timeline in the timeline set and the data type of each status data.

[0144] To further illustrate, the optional Figure 4 As shown, according to service requirements, a first index relationship between multiple time axes including the target time axis 302 and the target device identifier 402 is pre-established, and a second index relationship 408 between the target time axis 302 and the target data type 406 is established.

[0145] According to an example of the present application, a timeline set is obtained, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including a target timeline; a first index relationship is established between each timeline in the timeline set and the device identification of each device; a second index relationship is established between each timeline in the timeline set and the data type of each status data. By pre-establishing the index relationship between the device identification, data type and timeline respectively, the technical purpose of improving the timeline determination speed is achieved, thereby realizing the technical effect of timeline search efficiency.

[0146] As an optional solution, the first determining unit 1204 includes:

[0147] A first determining module, configured to determine, in the time axis set, a time axis subset that matches the target identifier based on the first index relationship;

[0148] The second determining module is configured to determine, in the time axis subset according to the second index relationship, a target time axis that matches the target data type.

[0149] It should be noted that, according to the first index relationship, a timeline subset matching the target identifier is determined in the timeline set; according to the second index relationship, a target timeline matching the target data type is determined in the timeline subset.

[0150] To further illustrate, the optional Figure 5As shown, according to the first index relationship 404, a timeline subset 502 matching the target device identifier 402 is determined in a preconfigured timeline set having multiple timelines; according to the second index relationship 408, a target timeline 302 matching the target data type 406 is determined in the timeline subset 502.

[0151] According to the example of the present application, based on the first index relationship, a timeline subset matching the target identifier is determined in the timeline set; based on the second index relationship, a target timeline matching the target data type is determined in the timeline subset, thereby achieving the technical purpose of quickly determining the target timeline, thereby achieving the technical effect of improving the efficiency of determining the target timeline.

[0152] As an optional solution, it includes:

[0153] A first inserting unit is configured to insert a first reporting time point on the target time axis after triggering a target reminder instruction when the comparison result meets a preset condition;

[0154] The second inserting unit is configured to insert the first status data at the first reporting time point on the target time axis after triggering the target reminder instruction when the comparison result meets the preset condition.

[0155] It should be noted that the first reporting time point is inserted on the target time axis; the first status data is inserted at the first reporting time point on the target time axis. Optionally, the first reporting time point can be inserted continuously with other reporting time points on the target time axis, but is not limited to it.

[0156] To further illustrate, the optional Figure 6 As shown, the specific steps are as follows: S602, inserting the first reporting time point 602 into the target time axis 302, wherein the insertion position of the first reporting time point 602 is related to other reporting time points inserted into the target time axis 302; S604, inserting the first status data 304 at the inserted first reporting time point 602.

[0157] According to the example of this application, the first reporting time point is inserted on the target time axis; at the first reporting time point on the target time axis, the first status data is inserted, thereby achieving the technical purpose of storing the reported data in a timely and orderly manner, thereby achieving the technical effect of improving the storage efficiency of the reported data.

[0158] As an optional solution, the second determining unit 1206 includes:

[0159] The first determining module is configured to determine a third reporting time point whose reporting time is earlier than the first reporting time point, and search the target time axis for third status data corresponding to the third reporting time point.

[0160] It should be noted that a third reporting time point whose reporting time is earlier than the first reporting time point is determined, and the third state data corresponding to the third reporting time point is searched in the target time axis.

[0161] To further illustrate, the optional Figure 7 As shown, a third reporting time point 702 whose reporting time is earlier than the first reporting time point 602 in the target time axis 302 is determined, and third state data 704 corresponding to the third reporting time point 702 is searched in the target time axis 302 .

[0162] According to the example of this application, a third reporting time point that is earlier than the first reporting time point is determined, and the third status data corresponding to the third reporting time point is searched in the target time axis, thereby achieving the technical purpose of quickly searching for status data earlier than the first reporting time point, thereby achieving the technical effect of improving the efficiency of searching for status data on the target time axis.

[0163] As an optional solution, the second determining unit 1206 includes:

[0164] The second determining module is configured to determine a fourth reporting time point whose reporting time is later than the first reporting time point, and search the target time axis for fourth status data corresponding to the fourth reporting time point.

[0165] It should be noted that the fourth reporting time point after the first reporting time point is determined, and the fourth state data corresponding to the fourth reporting time point is searched in the target time axis.

[0166] To further illustrate, the optional Figure 8 As shown, the fourth state data 804 corresponding to the fourth reporting time point 802 whose reporting time is later than the first reporting time point 602 is determined.

[0167] According to the example of this application, the fourth reporting time point whose reporting time is later than the first reporting time point is determined, and the fourth status data corresponding to the fourth reporting time point is searched in the target time axis, thereby achieving the technical purpose of quickly searching for status data later than the first reporting time point, thereby achieving the technical effect of improving the efficiency of searching for status data on the target time axis.

[0168] As an optional solution, it also includes:

[0169] a first deletion module, configured to, when the comparison result satisfies a preset condition and after triggering the target reminder instruction, compare the third state data with the first state data, and delete the first state data if the third state data is equal to the first state data;

[0170] The second deletion module is used to compare the fourth state data with the first state data, and when the fourth state data is equal to the first state data, insert the first reporting time point on the target time axis, insert the first state data at the first reporting time point, and delete the fourth state data.

[0171] It should be noted that the third state data is compared with the first state data, and when the third state data is equal to the first state data, the first state data is deleted; the fourth state data is compared with the first state data, and when the fourth state data is equal to the first state data, the first reporting time point is inserted on the target time axis, the first state data is inserted at the first reporting time point, and the fourth state data is deleted.

[0172] To further illustrate, the optional Figure 9 As shown, when comparing the third state data 704 with the first state data 304, and the third state data 704 is equal to the first state data 304, the following steps are performed: S902, deleting the first state data 304.

[0173] To further illustrate, the optional Figure 10 As shown, when the fourth state data 804 is compared with the first state data 304 and the fourth state data 804 is equal to the first state data 304, the following steps are performed: S1002, inserting the first state data 304 at the first reporting time point 602; S1004, deleting the fourth state data 1004.

[0174] According to the example of the present application, the third state data is compared with the first state data, and when the third state data is equal to the first state data, the first state data is deleted; the fourth state data is compared with the first state data, and when the fourth state data is equal to the first state data, the first reporting time point is inserted on the target time axis, and the first state data is inserted at the first reporting time point, and the fourth state data is deleted, thereby achieving the technical purpose of greatly reducing the storage of duplicate state data without losing state information, thereby achieving the technical effect of saving memory resources.

[0175] According to another aspect of the embodiment of the present invention, an electronic device for implementing the triggering method of the above event reminder is also provided. Figure 13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.

[0176] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0177] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0178] S1, obtaining first state information reported by a target sensor in a target device, wherein the first state information includes a first reporting time point of reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, the first state data being used to indicate a current operating state of the target device;

[0179] S2, determining a target time axis according to the target identifier and the target data type of the first status data, wherein the target time axis is used to store all status data of the target data type and the corresponding reporting time point for reporting each status data;

[0180] S3, determining a second reporting time point based on the first reporting time point, and searching the target time axis for second status data corresponding to the second reporting time point;

[0181] S4, comparing the first state data with the second state data to obtain a comparison result;

[0182] S5. When the comparison result meets the preset conditions, an event reminder message is sent, wherein the event reminder message is used to display a target reminder event associated with the current running state.

[0183] Alternatively, those skilled in the art will appreciate that Figure 13 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Figure 13 It does not limit the structure of the above electronic device. For example, the electronic device may also include Figure 13 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 13 Different configurations shown.

[0184] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the triggering method and device of event reminders in the embodiments of the present invention. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, realizing the triggering method of the above-mentioned event reminder. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely located relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 can be used to store, but is not limited to, first state data, second state data, and comparison results and other information. As an example, such as Figure 13 As shown, the memory 1302 may include, but is not limited to, the first acquisition unit 1202, the first determination unit 1204, the second determination unit 1206, the second acquisition unit 1208, and the sending unit 1210 in the triggering device for the event reminder. In addition, other module units in the triggering device for the event reminder may also be included but are not limited to, which will not be repeated in this example.

[0185] Optionally, the transmission device 1306 is configured to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one embodiment, the transmission device 1306 includes a network interface controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In one embodiment, the transmission device 1306 is a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

[0186] In addition, the electronic device further includes: a display 1308 for displaying information such as the first state data, the second state data, and comparison results; and a connection bus 1313 for connecting various module components in the electronic device.

[0187] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when run.

[0188] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0189] S1, obtaining first state information reported by a target sensor in a target device, wherein the first state information includes a first reporting time point of reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, the first state data being used to indicate a current operating state of the target device;

[0190] S2, determining a target time axis according to the target identifier and the target data type of the first status data, wherein the target time axis is used to store all status data of the target data type and corresponding reporting time points for reporting each status data;

[0191] S3, determining a second reporting time point based on the first reporting time point, and searching the target time axis for second status data corresponding to the second reporting time point;

[0192] S4, comparing the first state data with the second state data to obtain a comparison result;

[0193] S5. When the comparison result meets the preset conditions, an event reminder message is sent, wherein the event reminder message is used to display a target reminder event associated with the current running state.

[0194] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0195] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0196] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing one or more computer devices (such as personal computers, servers, or network devices) to execute all or part of the steps of the methods of various embodiments of the present invention.

[0197] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0198] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is merely a logical functional division. In actual implementation, there may be other division methods, such as combining or integrating multiple units or components into another system, or ignoring or not implementing some features. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of units or modules, and may be electrical or other forms.

[0199] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0200] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0201] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for triggering an event reminder, characterized in that: include: Acquire first state information reported by a target sensor in a target device, wherein the first state information includes a first reporting time point for reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, and the first state data is used to indicate a current operating state of the target device; Obtain a timeline set, determine a first timeline subset matching the target identifier based on a first index relationship, and determine a target timeline matching the target data type based on a second index relationship, wherein the target timeline is used to store all status data of the target data type and corresponding reporting time points for reporting each status data, and the status data stored in the target timeline are arranged in order of their corresponding reporting time points, the first index relationship is used to indicate a matching relationship between each timeline in the timeline set and a device identifier of each device, and the second index relationship is used to indicate a matching relationship between each timeline in the timeline set and a data type of each status data; Determine a second reporting time point that is smaller than the first reporting time point and is the closest to the first reporting time point according to the reporting time of a record before the first reporting time point, and search the target time axis for second status data corresponding to the second reporting time point; When the second state data is found, comparing the first state data with the second state data to obtain a comparison result; When the comparison result meets the preset condition, sending event reminder information, wherein the event reminder information is used to display the target reminder event associated with the current running state; If the second status data is not found, determine a fourth reporting time point that is greater than the first reporting time point and is the closest according to the reporting time of a record after the first reporting time point, and search the target time axis for fourth status data corresponding to the fourth reporting time point; When the fourth state data is found, the first state data is compared with the fourth state data, and if they match, the event reminder information is sent; If the fourth state data is not found, re-determine whether there is state information of the previous record; When the comparison result between the first status data and the second status data meets the preset condition, after sending the event reminder information, the method includes: inserting the first reporting time point on the target time axis; inserting the first status data at the first reporting time point on the target time axis; comparing the second status data with the first status data, and deleting the first status data when the second status data is equal to the first status data; When the comparison result between the first status data and the fourth status data meets the preset conditions, after sending the event reminder information, it includes: inserting the first reporting time point on the target timeline; inserting the first status data at the first reporting time point on the target timeline; comparing the fourth status data with the first status data, and deleting the fourth status data when the fourth status data is equal to the first status data.

2. The method according to claim 1, characterized in that Before the obtaining of the first status information reported by the target sensor in the target device, the method includes: Acquire a timeline set, wherein the timeline set is used to store all status data of all data types of all devices, and the timeline set includes multiple timelines including the target timeline; Establishing the first index relationship between each of the time axes in the time axis set and a device identifier of each device; The second index relationship between each of the time axes in the time axis set and the data type of each state data is established.

3. A triggering device for event reminder, characterized in that: include: a first acquisition unit, configured to acquire first state information reported by a target sensor in a target device, wherein the first state information includes a first reporting time point for reporting the first state information, first state data currently detected by the target sensor, and a target identifier of the target device, the first state data being used to indicate a current operating state of the target device, and the first reporting time being a reporting timestamp recorded in the target device and used to indicate when the target sensor reports the first state information; A first determination unit is used to obtain a timeline set, determine a first timeline subset matching the target identifier based on a first index relationship, and determine a target timeline matching the target data type based on a second index relationship, wherein the status data stored in the target timeline is arranged in order of the corresponding reporting time points, wherein the first index relationship is used to indicate a matching relationship between each timeline in the timeline set and a device identifier of each device, and the second index relationship is used to indicate a matching relationship between each timeline in the timeline set and a data type of each status data, wherein the target timeline is used to store all status data of the target data type and a corresponding reporting time point for reporting each status data; A second determining unit, configured to determine a second reporting time point that is smaller than the first reporting time point and is the closest to the first reporting time point according to a reporting time of a record before the first reporting time point, and to search the target time axis for second status data corresponding to the second reporting time point; a second acquiring unit, configured to compare the first state data with the second state data to acquire a comparison result when the second state data is found; A sending unit, configured to send event reminder information when the comparison result meets a preset condition, wherein the event reminder information is used to display a target reminder event associated with the current running state; The device is also used for: If the second status data is not found, determine a fourth reporting time point that is greater than the first reporting time point and is the closest according to the reporting time of a record after the first reporting time point, and search the target time axis for fourth status data corresponding to the fourth reporting time point; When the fourth state data is found, the first state data is compared with the fourth state data, and if they match, the event reminder information is sent; If the fourth state data is not found, re-determine whether there is state information of the previous record; When the comparison result between the first status data and the second status data meets the preset condition, after sending the event reminder information, the method includes: inserting the first reporting time point on the target time axis; inserting the first status data at the first reporting time point on the target time axis; comparing the second status data with the first status data, and deleting the first status data when the second status data is equal to the first status data; When the comparison result between the first status data and the fourth status data meets the preset conditions, after sending the event reminder information, it includes: inserting the first reporting time point on the target timeline; inserting the first status data at the first reporting time point on the target timeline; comparing the fourth status data with the first status data, and deleting the fourth status data when the fourth status data is equal to the first status data.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 2 when executed.

5. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 2 through the computer program.