System and methods for accurately synchronizing an event monitoring application and a cloud-based event monitoring service
Abstract
Example implementations include a method, apparatus and computer-readable medium for synchronizing an event monitoring application with an event monitoring service, comprising receiving, from the event monitoring service, based on subscribing to a control panel, a current state of the control panel. In addition, the implementations further include receiving, based on the subscribing, a first event message from the control panel. Further, the implementations further include determining, in response to a conflict between the first event message and the current state of the control panel, an updated state of the control panel based on comparing a first attribute of the first event message to a second attribute of a second event message of the current state of the control panel. Additionally, the implementations further include displaying the updated state of the control panel.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method for synchronizing an event monitoring application with an event monitoring service, comprising:
subscribing to receive a plurality of event messages from a control panel managed by the event monitoring service, the control panel configured to receive event information from one or more sensors in a physical location;
receiving, from the event monitoring service, based on the subscribing to receive the plurality of event messages, a current state of the control panel;
receiving, based on the subscribing to receive the plurality of event messages, a first event message from the control panel;
determining, in response to a conflict between the first event message and the current state of the control panel, an updated state of the control panel based on comparing a first attribute of the first event message to a second attribute of a second event message of the current state of the control panel; and
displaying the updated state of the control panel,
wherein the first attribute is a first sequence number generated by the event monitoring service in response to receipt of the first event message from the control panel and the second attribute is a second sequence number generated by the event monitoring service in response to receipt of the second event message from the control panel.
2. The method of claim 1 , wherein the subscribing to the control panel comprises subscribing to the control panel during an initialization process with the event monitoring service.
3. The method of claim 1 , wherein the plurality of event messages is a first plurality of event messages, the current state of the control panel includes a second plurality of event messages, and the determining the updated state of the control panel comprises:
dismissing the first event message or replacing the second event message with the first event message within the second plurality of event messages.
4. The method of claim 1 , wherein the determining the updated state of the control panel comprises identifying the conflict based at least in part on the first event message and the second event message having a common event identifier.
5. The method of claim 1 , wherein the determining the updated state of the control panel comprises identifying a difference between a first state of the control panel indicated in the first event message and a second state of the control panel indicated in the second event message.
6. The method of claim 1 , wherein the first attribute further includes a first timestamp generated by the control panel in response to an occurrence of an event corresponding to the first event message and the second attribute further includes a second timestamp generated by the control panel in response to an occurrence of an event corresponding to the second event message.
7. The method of claim 1 , wherein the determining the updated state of the control panel comprises comparing the first sequence number to the second sequence number based on a first timestamp of the first event message being equal to a second timestamp of the second event message.
8. An apparatus for synchronizing an event monitoring application with an event monitoring service, comprising:
a memory; and
a processor communicatively coupled with the memory and configured to:
subscribe to receive a plurality of event messages from a control panel managed by the event monitoring service, the control panel configured to receive event information from one or more sensors in a physical location;
receive, from the event monitoring service, based on the subscribing to receive the plurality of event messages, a current state of the control panel;
receive, based on the subscribing to receive a plurality of event messages, a first event message from the control panel;
determine, in response to a conflict between the first event message and the current state of the control panel, an updated state of the control panel based on comparing a first attribute of the first event message to a second attribute of a second event message of the current state of the control panel; and
display the updated state of the control panel,
wherein the first attribute is a first sequence number generated by the event monitoring service in response to receipt of the first event message from the control panel and the second attribute is a second sequence number generated by the event monitoring service in response to receipt of the second event message from the control panel.
9. The apparatus of claim 8 , wherein to subscribe to the control panel comprises to subscribe to the control panel during an initialization process with the event monitoring service.
10. The apparatus of claim 8 , wherein the plurality of event messages is a first plurality of event messages, the current state of the control panel includes a plurality of event messages, and to determine the updated state of the control panel comprises to:
dismiss the first event message or replacing the second event message with the first event message within the second plurality of event messages.
11. The apparatus of claim 8 , wherein to determine the updated state of the control panel comprises to identify the conflict based at least in part on the first event message and the second event message having a common event identifier.
12. The apparatus of claim 8 , wherein to determine the updated state of the control panel comprises to identify a difference between a first state of the control panel indicated in the first event message and a second state of the control panel indicated in the second event message.
13. The apparatus of claim 8 , wherein the first attribute further includes a first timestamp generated by the control panel in response to an occurrence of an event corresponding to the first event message and the second attribute further includes a second timestamp generated by the control panel in response to an occurrence of an event corresponding to the second event message.
14. The apparatus of claim 8 , wherein to determine the updated state of the control panel comprises comparing the first sequence number to the second sequence number based on a first timestamp of the first event message being equal to a second timestamp of the second event message.
15. A non-transitory computer-readable medium storing instructions for synchronizing an event monitoring application with an event monitoring service, wherein the instructions are executable by a processor to:
subscribe to receive a plurality of event messages from a control panel managed by the event monitoring service, the control panel configured to receive event information from one or more sensors in a physical location;
receive, from the event monitoring service, based on the subscribing to receive the plurality of event messages, a current state of the control panel;
receive, based on being subscribed to receive a plurality of event messages from the control panel, a first event message from the control panel;
determine, in response to a conflict between the first event message and the current state of the control panel, an updated state of the control panel based on comparing a first attribute of the first event message to a second attribute of a second event message of the current state of the control panel; and
display the updated state of the control panel,
wherein the first attribute is a first sequence number generated by the event monitoring service in response to receipt of the first event message from the control panel and the second attribute is a second sequence number generated by the event monitoring service in response to receipt of the second event message from the control panel.
16. The non-transitory computer-readable medium of claim 15 , wherein the first attribute further includes a first timestamp generated by the control panel in response to an occurrence of an event corresponding to the first event message and the second attribute further includes a second timestamp generated by the control panel in response to an occurrence of an event corresponding to the second event message.
17. The non-transitory computer-readable medium of claim 15 , wherein the determining the updated state of the control panel comprises comparing the first sequence number to the second sequence number based on a first timestamp of the first event message being equal to a second timestamp of the second event message.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.