CN113077615A - Alarm information processing method and device and electronic equipment - Google Patents
Alarm information processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN113077615A CN113077615A CN202110303024.4A CN202110303024A CN113077615A CN 113077615 A CN113077615 A CN 113077615A CN 202110303024 A CN202110303024 A CN 202110303024A CN 113077615 A CN113077615 A CN 113077615A
- Authority
- CN
- China
- Prior art keywords
- alarm
- information
- alarm information
- time
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 45
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims description 175
- 230000015654 memory Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 7
- 238000012546 transfer Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B25/00—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B25/00—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
- G08B25/14—Central alarm receiver or annunciator arrangements
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B29/00—Checking or monitoring of signalling or alarm systems; Prevention or correction of operating errors, e.g. preventing unauthorised operation
- G08B29/18—Prevention or correction of operating errors
- G08B29/20—Calibration, including self-calibrating arrangements
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Electric Clocks (AREA)
- Alarm Systems (AREA)
Abstract
The application provides an alarm information processing method, an alarm information processing device and electronic equipment, and belongs to the technical field of alarm. The method comprises the following steps: receiving current alarm information of alarm equipment, and acquiring alarm time information of the alarm equipment, wherein the alarm time information comprises a first time stamp and a second time stamp, the first time stamp is a time stamp for generating the current alarm information for the alarm equipment, and the second time stamp is a time stamp for generating historical alarm information for the alarm equipment; if the first time stamp is not later than the second time stamp, acquiring equipment time information of the alarm equipment and acquiring reference time information of local equipment; and processing the current alarm information based on the alarm time information, the equipment time information and the reference time information. According to the method, whether the current alarm information is the repeated alarm information can be determined only by acquiring a small amount of historical alarm information, and therefore the alarm information processing efficiency is improved on the basis of improving the alarm information processing accuracy.
Description
Technical Field
The present disclosure relates to the field of alarm technologies, and in particular, to an alarm information processing method and apparatus, and an electronic device.
Background
At present, as people's security awareness is gradually enhanced, alarm systems are increasingly widely applied. For example, in the process of performing burglar alarm, after an alarm device (e.g., a video monitoring device) in the alarm system detects that an illegal person intrudes into a defense area, alarm information can be sent to an alarm receiving platform of a security company, so that the security company and a user can know and process the alarm situation in time. Because the alarm device may repeatedly send alarm information to the alarm receiving platform, the alarm receiving platform needs to perform duplicate removal processing on the alarm information when receiving the alarm information.
In the related technology, each alarm message has a corresponding identifier, when an alarm receiving platform receives an alarm message, the identifier of the alarm message is compared with the identifier of the historically received alarm message, if the identifier of the historically received alarm message has the alarm message identical to the identifier of the alarm message, the alarm message is determined to be the repeated alarm message, and the alarm message is discarded.
In the above technology, each time an alarm message is received, the alarm message needs to be compared with the alarm messages received in the history, so the alarm message processing efficiency is low.
Disclosure of Invention
The application provides an alarm information processing method and device and electronic equipment, which can improve the efficiency of alarm information processing. The technical scheme comprises the following steps:
according to an aspect of an embodiment of the present application, there is provided an alarm information processing method, including:
receiving current alarm information of alarm equipment, and acquiring alarm time information of the alarm equipment, wherein the alarm time information comprises a first timestamp and a second timestamp, the first timestamp is a timestamp for generating the current alarm information by the alarm equipment, and the second timestamp is a timestamp for generating historical alarm information by the alarm equipment;
if the first time stamp is not later than the second time stamp, acquiring equipment time information of the alarm equipment and acquiring reference time information of local equipment;
and processing the current alarm information based on the alarm time information, the equipment time information and the reference time information.
In a possible implementation manner, the device time information includes a first time difference, where the first time difference is a time difference recorded by a clock of the alarm device from the alarm device being on-line to a current time; the reference time information comprises a second time difference, and the second time difference is an operation time difference from the on-line of the alarm device to the current time of the local device;
the processing the current alarm information based on the alarm time information, the device time information, and the reference time information includes:
determining a difference value between the first time difference and the second time difference to obtain a calibration time difference;
and processing the current alarm information based on the calibration time difference and the alarm time information.
In another possible implementation manner, the processing the current alarm information based on the alarm time information, the device time information, and the reference time information includes:
determining a calibration time difference based on the device time information and the reference time information;
if the third timestamp is later than the second timestamp, determining that the current alarm information is valid alarm information, and storing the current alarm information, wherein the third timestamp is the sum of the first timestamp and the calibration time difference;
and if the third timestamp is not later than the second timestamp, determining that the current alarm information is the repeated alarm information, and discarding the current alarm information.
In another possible implementation manner, the historical alarm information is last alarm information of the alarm device received by the local device; the acquiring of the alarm time information of the alarm device includes:
acquiring a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information;
and acquiring a second timestamp recorded by the clock of the alarm device when the alarm device generates the last piece of alarm information.
In another possible implementation manner, the method further includes: and if the first timestamp is later than the second timestamp, determining that the current alarm information is valid alarm information, and storing the current alarm information.
In another possible implementation manner, before the obtaining the device time information of the alarm device and the obtaining the reference time information of the local device if the first timestamp is not later than the second timestamp, the method further includes:
and if the transmission link of the current alarm information is different from the transmission link of the historical alarm information, determining whether the first time stamp is later than the second time stamp.
In another possible implementation manner, if the transmission link of the current alert information and the transmission link of the historical alert information are different transmission links, it is determined whether the first timestamp is later than the second timestamp, and the method further includes:
if the current alarm information is non-first alarm information sent after the alarm equipment is on-line, determining whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same;
the method further comprises the following steps:
and if the current alarm information is the first alarm information sent after the alarm equipment is on-line or the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, determining that the current alarm information is effective alarm information, and storing the current alarm information.
In another possible implementation manner, the transmission link between the alarm device and the local device for transmitting alarm information includes a first transmission link and a second transmission link, where the first transmission link is a transmission link from the alarm device to the local device, and the second transmission link is a transmission link from the alarm device to the local device and relayed by a relay device;
the alarm device and/or the transit device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
According to another aspect of an embodiment of the present application, there is provided an alarm information processing apparatus including:
the alarm device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for receiving current alarm information of alarm equipment and acquiring alarm time information of the alarm equipment, the alarm time information comprises a first timestamp and a second timestamp, the first timestamp is used for generating the current alarm information by the alarm equipment, and the second timestamp is used for generating historical alarm information by the alarm equipment;
the second obtaining module is used for obtaining the equipment time information of the alarm equipment and obtaining the reference time information of the local equipment if the first time stamp is not later than the second time stamp;
and the processing module is used for processing the current alarm information based on the alarm time information, the equipment time information and the reference time information.
In a possible implementation manner, the device time information includes a first time difference, where the first time difference is a time difference recorded by a clock of the alarm device from the alarm device being on-line to a current time; the reference time information comprises a second time difference, and the second time difference is an operation time difference from the on-line of the alarm device to the current time of the local device;
the processing module comprises:
a determining unit, configured to determine a difference between the first time difference and the second time difference to obtain a calibration time difference;
and the processing unit is used for processing the current alarm information based on the calibration time difference and the alarm time information.
In another possible implementation manner, the processing module includes:
the determining unit is used for determining a calibration time difference based on the equipment time information and the reference time information;
the processing unit is configured to determine that the current alarm information is valid alarm information and store the current alarm information if a third timestamp is later than the second timestamp, where the third timestamp is a sum of the first timestamp and the calibration time difference; and if the third timestamp is not later than the second timestamp, determining that the current alarm information is the repeated alarm information, and discarding the current alarm information.
In another possible implementation manner, the historical alarm information is last alarm information of the alarm device received by the local device; the first obtaining module is configured to obtain a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information; and acquiring a second timestamp recorded by the clock of the alarm device when the alarm device generates the last piece of alarm information.
In another possible implementation manner, the processing module is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the first timestamp is later than the second timestamp.
In another possible implementation manner, the apparatus further includes:
and the determining module is used for determining whether the first time stamp is later than the second time stamp if the transmission link of the current alarm information is different from the transmission link of the historical alarm information.
In another possible implementation manner, the determining module is further configured to determine whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link if the current alarm information is non-first alarm information sent after the alarm device is online;
the processing module is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the current alarm information is first alarm information sent after the alarm device is online or a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link.
In another possible implementation manner, the transmission link between the alarm device and the local device for transmitting alarm information includes a first transmission link and a second transmission link, where the first transmission link is a transmission link from the alarm device to the local device, and the second transmission link is a transmission link from the alarm device to the local device and relayed by a relay device; the alarm device and/or the transit device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
According to another aspect of the embodiments of the present application, there is provided an electronic device, which includes a processor and a memory, where at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the steps in the alarm information processing method described in the embodiments of the present application.
According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by an electronic device to implement the steps in the alarm information processing method described in the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is provided a computer program product, in which at least one program code is stored, and the at least one program code is loaded and executed by an electronic device to implement the steps in the alarm information processing method described in the embodiments of the present application.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, when the current alarm information of the alarm device is received, because the alarm device may generate a time calibration operation, the time for generating the current alarm information by the alarm device may not be later than the time stamp for generating the historical alarm information, so that on the basis of the alarm time information, the device time information of the alarm device and the reference time information of the local device are combined, and whether the current alarm information is the repeated alarm information or not can be accurately determined. Therefore, whether the current alarm information is the repeated alarm information can be determined by only acquiring a small amount of historical alarm information, and the alarm information processing efficiency is improved on the basis of improving the accuracy of alarm information processing.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic diagram illustrating an alarm system according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating an alert information processing method according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating an alert information processing method according to an exemplary embodiment;
FIG. 4 is a flow diagram illustrating an alert information processing method according to an exemplary embodiment;
FIG. 5 is a flow diagram illustrating an alert information processing method according to an exemplary embodiment;
FIG. 6 is a block diagram of an alarm information processing apparatus shown in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a schematic diagram illustrating an alarm system according to an exemplary embodiment. Referring to fig. 1, the alarm system includes at least one alarm device 10, an electronic device 20, and a relay device 30.
Wherein, each alarm device 10 is connected with the electronic device 20 through a wireless or wired network to form a first transmission link, i.e. a main link; each alarm device 10 is connected with the relay device 30 through a wireless or wired network to form a first transmission sublink, the relay device 30 is connected with the electronic device 20 through a wireless or wired network to form a second transmission sublink, and accordingly, the first transmission sublink and the second transmission sublink form a second transmission link, i.e., a backup link.
The alarm device 10 is configured to send alarm information to the electronic device 20 through the first transmission link and send alarm information to the relay device 30 through the second transmission link. In some embodiments, the alarm device 10 may be an alarm host or a video surveillance device.
The electronic device 20 is configured to receive the alarm information through the first transmission link and process the alarm information by using the alarm information processing method provided in the embodiment of the present application. For example, the electronic device 20 may be an alarm receiving platform.
And the relay device 30 is used for forwarding the alarm information to the electronic device 20 through a second transmission link and backing up and storing the alarm information.
In a possible implementation manner, when the first transmission link between the electronic device 20 and the alarm device 10 is disconnected, the electronic device 20 is further configured to switch from the first transmission link to the second transmission link, and receive the alarm information forwarded by the relay device 30 through the second transmission link. In another possible implementation, when the first transmission link is disconnected, the electronic device 20 is further configured to switch from the second transmission link to the first transmission link, and receive the alarm information sent by the alarm device 10 via the first transmission link.
With continued reference to fig. 1, the alarm system also includes a terminal 40. The terminal 40 is connected to the relay apparatus 30 through a wireless or wired network. The relay device 30 is further configured to send alarm information to the terminal 40. Accordingly, the terminal 40 is configured to receive the alarm information sent by the relay device 30.
The terminal 40 has installed thereon a target application program that is served by the relay device 30, and the terminal 40 can implement functions such as data transmission, information interaction, and the like through the target application program. In one possible implementation, the target application is an application in the operating system of the terminal 40 or an application provided by a third party. In one possible implementation manner, the target application is any application having an alarm function, for example, the target application is an alarm application or a smart home application. In this embodiment of the application, when the terminal 40 receives the alarm information sent by the transit device 30, the alarm information is displayed through the target application program, and accordingly, the user can know the alarm information through the target application program on the terminal 40.
The transfer device 30 may be provided as a server, and accordingly, the server may be at least one of a server, a server cluster composed of a plurality of servers, a cloud server, a cloud computing platform, and a virtualization center. The terminal 40 is at least one of a mobile phone, a tablet computer, and a pc (personal computer) device.
FIG. 2 is a flow diagram illustrating an alarm information processing method according to an exemplary embodiment. Referring to fig. 2, the method is used in an electronic device, and includes the following steps:
step 201: receiving current alarm information of the alarm device, and acquiring alarm time information of the alarm device, wherein the alarm time information comprises a first time stamp and a second time stamp, the first time stamp is a time stamp for generating the current alarm information for the alarm device, and the second time stamp is a time stamp for generating historical alarm information for the alarm device.
Step 202: and if the first time stamp is not later than the second time stamp, acquiring the equipment time information of the alarm equipment and acquiring the reference time information of the local equipment.
Step 203: and processing the current alarm information based on the alarm time information, the equipment time information and the reference time information.
In one possible implementation manner, the device time information includes a first time difference, where the first time difference is a time difference recorded by a clock of the alarm device from the alarm device being on-line to a current time; the reference time information comprises a second time difference, and the second time difference is the running time difference from the on-line of the alarm device to the current time of the local device;
the processing the current alarm information based on the alarm time information, the device time information and the reference time information includes:
determining a difference value between the first time difference and the second time difference to obtain a calibration time difference;
and processing the current alarm information based on the calibration time difference and the alarm time information.
In another possible implementation manner, the processing the current alarm information based on the alarm time information, the device time information, and the reference time information includes:
determining a calibration time difference based on the device time information and the reference time information;
if the third timestamp is later than the second timestamp, determining the current alarm information as effective alarm information, and storing the current alarm information, wherein the third timestamp is the sum of the first timestamp and the calibration time difference;
and if the third timestamp is not later than the second timestamp, determining that the current alarm information is the repeated alarm information, and discarding the current alarm information.
In another possible implementation manner, the historical alarm information is the last alarm information of the alarm device received by the local device; the method for acquiring the alarm time information of the alarm device comprises the following steps:
acquiring a first timestamp recorded by a clock of the alarm equipment when the alarm equipment generates the current alarm information;
and acquiring a second timestamp recorded by the clock of the alarm device when the alarm device generates the last piece of alarm information.
In another possible implementation manner, the method further includes: and if the first time stamp is later than the second time stamp, determining the current alarm information as effective alarm information, and storing the current alarm information.
In another possible implementation manner, before the obtaining the device time information of the alarm device and the obtaining the reference time information of the local device if the first timestamp is not later than the second timestamp, the method further includes:
and if the transmission link of the current alarm information is different from the transmission link of the historical alarm information, determining whether the first time stamp is later than the second time stamp.
In another possible implementation manner, if the transmission link of the current alert information is different from the transmission link of the historical alert information, it is determined whether the first time stamp is later than the second time stamp, and the method further includes:
if the current alarm information is the non-first alarm information sent after the alarm equipment is on-line, determining whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link;
the method further comprises the following steps:
and if the current alarm information is the first alarm information sent after the alarm equipment is on-line or the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, determining the current alarm information as effective alarm information, and storing the current alarm information.
In another possible implementation manner, the transmission link between the alarm device and the local device for transmitting alarm information includes a first transmission link and a second transmission link, where the first transmission link is a transmission link from the alarm device to the local device, and the second transmission link is a transmission link from the alarm device to the local device and relayed by a relay device;
the alarm device and/or the relay device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
In the embodiment of the application, when the current alarm information of the alarm device is received, because the alarm device may generate a time calibration operation, the time for generating the current alarm information by the alarm device may not be later than the time stamp for generating the historical alarm information, so that on the basis of the alarm time information, the device time information of the alarm device and the reference time information of the local device are combined, and whether the current alarm information is the repeated alarm information or not can be accurately determined. Therefore, whether the current alarm information is the repeated alarm information can be determined by only acquiring a small amount of historical alarm information, and the alarm information processing efficiency is improved on the basis of improving the accuracy of alarm information processing.
FIG. 3 is a flow diagram illustrating an alarm information processing method according to an exemplary embodiment. Referring to fig. 3, the method is used in an electronic device, and includes the following steps:
step 301: the electronic equipment receives current alarm information of the alarm equipment.
Two transmission links are arranged between the alarm device and the electronic device, and the two transmission links are a first transmission link and a second transmission link respectively. The first transmission link is a link formed by directly connecting the alarm equipment with the electronic equipment through a network, namely a transmission link through which the alarm equipment directly reaches the local equipment; the second transmission link is a link formed by the alarm device being relayed by the relay device to realize network connection with the local device. The local device is the electronic device.
In the embodiment of the application, the alarm device and/or the transit device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the electronic device receives the cached alarm information based on another transmission link. However, when the transmission link is switched, the electronic device may receive duplicate alarm information because the alarm device sends the alarm information to the electronic device through two transmission links. Since the repeated alarm information is the alarm information that the electronic device has received, that is, the invalid alarm information, after the electronic device receives the alarm information, it is necessary to determine whether the alarm information is valid alarm information.
The target number is not specifically limited in this application. It should be noted that the current alarm information may be one or more pieces of alarm information, and correspondingly, the electronic device determines whether each piece of alarm information is valid alarm information.
In this embodiment of the application, after the electronic device receives the current alarm information again, the operation of step 302 is executed, the alarm time information of the alarm device is obtained, and then whether the alarm information is valid alarm information is determined based on the alarm time information.
Step 302: the electronic equipment acquires alarm time information of the alarm equipment, wherein the alarm time information comprises a first time stamp and a second time stamp, the first time stamp is a time stamp for generating current alarm information for the alarm equipment, and the second time stamp is a time stamp for generating historical alarm information for the alarm equipment.
The alarm information sent by the alarm device carries a timestamp recorded by a clock of the alarm device when the alarm information is generated, so that the electronic device can determine the alarm time information based on the timestamp carried by the current alarm information. The historical alarm information can be any piece of historical alarm information of the alarm device received by the local device. In some embodiments, the historical alarm information is the last alarm information of the alarm device received by the local device, and accordingly, the implementation manner of the step includes the following steps (1) - (2):
(1) the electronic device obtains a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information.
For example, the current alarm information is alarm B, the first timestamp is DAT, and DAT is 10: 00.
(2) And when the electronic equipment acquires the last piece of alarm information generated by the alarm equipment, the second timestamp recorded by the clock of the alarm equipment.
The number of the alarm devices is at least one, so that the alarm information needs to include the device identifier of the alarm device, so that the electronic device can distinguish the alarm devices.
The device identification is used to uniquely identify the alarm device. The setting of the device identifier is not specifically limited in the embodiment of the present application; for example, the device identification is a serial number of the alerting device.
In a possible implementation manner, the electronic device stores a corresponding relationship between the device identifier of each alarm device and each piece of alarm information sent by the alarm device. Correspondingly, the electronic equipment acquires an equipment identifier from the current alarm information, determines at least one piece of historical alarm information matched with the equipment identifier, acquires a latest piece of historical alarm information sent by the alarm equipment from the at least one piece of historical alarm information, and takes the latest piece of historical alarm information as the last piece of alarm information of the current alarm information.
For example, the last alarm information of the current alarm information is alarm a, the second timestamp is DATL, and DATL is 10: 30.
The alarm time information can reflect the time stamp of two adjacent alarm information when being generated, so that the electronic equipment can determine whether the received current alarm information is effective alarm or not based on the alarm time information.
In the embodiment of the application, since the alarm device records the timestamp of each piece of alarm information when generating, by acquiring the timestamp, data support is provided for subsequently determining the real generation time of the alarm information.
It should be noted that the alarm device generates the alarm information when triggering the alarm, and therefore, in a possible implementation manner, the first timestamp and the second timestamp are both timestamps when generating the alarm information. Due to the fact that the alarm device is connected with the electronic device through the network, when the network connection is normal, normal data interaction can be achieved between the alarm device and the electronic device, namely after the alarm device generates alarm information, the alarm information can be immediately sent to the electronic device. Accordingly, the first time stamp and the second time stamp may also be time stamps for sending alarm information.
In another possible implementation manner, the network between the alarm device and the electronic device may be abnormal, and at this time, even if the alarm device generates the alarm information, the alarm information cannot be immediately sent to the electronic device, that is, the alarm device can send the alarm information to the electronic device only when the network is recovered to be normal. Correspondingly, the first time stamp and the second time stamp are time stamps when the alarm information is generated, and are not time stamps when the alarm device sends the alarm information.
For example, a 10:00 alarm device generates alarm information, but the alarm device sends the alarm information to the electronic device until the 11:00 network returns to normal due to abnormal network connection, so that the timestamp when the alarm information is generated is 10:00, and the timestamp when the alarm information is sent is 11: 00.
In one possible implementation, the electronic device may determine whether the current alarm information is valid alarm information based on the alarm time information. In this implementation, if the first timestamp is later than the second timestamp, the current alarm information is determined to be valid alarm information, and the current alarm information is processed.
The implementation manner of processing the current alarm information by the electronic device includes: storing the current alarm information; or displaying the current alarm information so as to facilitate a technician to check the current alarm information. The processing operation may be set and changed as necessary, and the present application is not particularly limited thereto.
For example, the second timestamp of the historical alarm information is 10:30, if the alarm device performs the time calibration operation at 11:00, the time after the time calibration is 10:00, in the case that the network is normal, the alarm device sends the current alarm information, and the first timestamp of the current alarm information is 10:40, so that it can be seen that the first timestamp is later than the second timestamp, which indicates that the current alarm information corresponding to the first timestamp is valid alarm information.
The Time calibration refers to the Time change of the alarm device, and may be manual Time calibration by a user through the alarm device, or automatic Time calibration by a Network Time controller (NTP) of the alarm device, and the like. The time calibration includes forward time calibration and backward time calibration, for example, adjusting the time of the device forward at the end of daylight saving time.
In the embodiment of the application, if the first timestamp carried by the current alarm information sent by the alarm device is later than the second timestamp, the real generation time of the current alarm information is later than the real generation time of the historical alarm information, so that the current alarm information is directly used as effective alarm information, and the alarm information processing efficiency is higher.
In this implementation manner, if the first timestamp is not later than the second timestamp, it indicates that a repeat alarm may occur, so the operation of step 303 is continuously performed to obtain the device time information and the reference time information, so as to further determine whether the current alarm information is a repeat alarm, thereby improving the accuracy of alarm information processing.
Step 303: and if the first time stamp is not later than the second time stamp, the electronic equipment acquires the equipment time information of the alarm equipment and acquires the reference time information of the local equipment.
In one possible implementation, the clock of the alarm device is aligned with the clock of the electronic device, so that if the alarm device is not time-corrected after the clocks are aligned, the current time recorded by the clock of the alarm device is the same as the current time recorded by the clock of the electronic device. When the alarm device is calibrated after the clocks are aligned, the time information of the alarm device is the current time recorded by the clocks of the alarm device; the reference time information is the current time recorded by the clock of the electronic equipment.
In the implementation mode, the equipment time information and the reference time information can be determined only by respectively acquiring the current time recorded by the clocks of the alarm equipment and the electronic equipment, and the information acquisition efficiency is high.
In another possible implementation, if the alarm device and the electronic device are not clock-aligned, or even if the clocks are clock-aligned, the clocks of the alarm device and the electronic device may be subsequently deviated due to other reasons. Accordingly, the electronic device may determine the device time information and the reference time information, respectively, based on the time difference from the alarm device being on-line to the current time.
In this implementation, the device time information includes a first time difference, where the first time difference is a time difference recorded by a clock of the alarm device from the alarm device being online to a current time; the reference time information comprises a second time difference, and the second time difference is an operation time difference from the on-line of the alarm device to the current time of the local device.
Wherein the first time difference is a difference between the fourth time stamp and the fifth time stamp. The fourth timestamp is a timestamp recorded by a clock of the alarm device when the alarm device is on line; the fifth timestamp is the current time recorded by the clock of the alarm device. And the electronic equipment respectively acquires the fourth timestamp and the fifth timestamp through a clock protocol with the alarm equipment.
For example, if the fourth timestamp DT1 is 9:30 and the fifth timestamp DT2(DAT) is 10:00, the first time difference DRT 2-DT 1 is 10: 00-9: 30 for 30 minutes, i.e., DRT is 0.5 hour.
In this implementation, the second time difference is a difference between the first operating time period and the second operating time period. The first operation time length is the operation time length of the electronic equipment when the alarm equipment is on line; the second operation duration is the operation duration of the current time of the electronic equipment. The running time duration may be a running time duration of a processor of the electronic device.
For example, if the first operating time period CT1 is 2 hours and the second operating time period CT2 is 3.5 hours, the second time difference CRT is CT2 to CT1 is 3.5 to 2 is 1.5 hours.
In the implementation mode, the device time information and the reference time information are determined by the time difference from the time of the alarm device to the current time, so that the phenomenon that the information acquisition is inaccurate due to the time deviation of the clock records of the electronic device and the alarm device is avoided, and the accuracy of the information acquisition is high.
Step 304: the electronic device determines a calibration time difference based on the device time information and the reference time information.
In a possible implementation manner, since the device time information is time information of the alarm device, and the alarm device may have time correction that may cause inaccuracy of the device time information, but the reference time information is a running time difference of the electronic device, and the running time difference is real, the electronic device may calibrate the device time information based on the reference time information, and accordingly, the implementation manner of step 304 may be: and the electronic equipment determines the difference value between the first time difference and the second time difference to obtain a calibration time difference.
The difference is a difference between the first time stamp of the current alarm information and the real generation time of the current alarm information, that is, a time difference caused by the calibration operation. It should be noted that the difference is an absolute value, i.e., the calibration time difference is a positive real number.
For example, if the first time difference DRT is 0.5 hour and the second time difference CRT is 1.5 hour, the calibration time difference TDA | DRT-CRT |0.5-1.5| 1 hour.
In the embodiment of the application, the device time information is the time information of the alarm device, and the reference time information is the real running time length of the electronic device, so that the time difference value caused by calibration operation can be obtained by calculating the difference value of the device time information and the reference time information, and data support is provided for the subsequent determination of the real alarm time.
Step 305: and the electronic equipment processes the current alarm information based on the calibration time difference and the alarm time information.
Wherein the alarm time information includes a first time stamp and a second time stamp, and the time calibration information includes a calibration time difference. Correspondingly, the implementation manner of this step at least includes the following two cases:
in a first case, if the third timestamp is later than the second timestamp, the electronic device determines that the current alarm information is valid alarm information, and stores the current alarm information, where the third timestamp is a sum of the first timestamp and the calibration time difference.
For example, if the first time stamp DAT is 10:00, the calibrated time difference TDA is 1 hour, and the third time stamp is 11:00, and if the second time stamp DATL is 10:30, that is, DAT + TDA > DATL, it is seen that the third time stamp is later than the second time stamp, the electronic device determines that the current alarm information is valid alarm information.
In the second case, if the third timestamp is not later than the second timestamp, the electronic device determines that the current alarm information is duplicate alarm information, and discards the current alarm information.
Wherein, for the repeated alarm information, the electronic device has processed the alarm information, so the alarm information is discarded. For example, the third timestamp is 10:20, the second timestamp DATL is 10:30, i.e. DAT + TDA < DATL, it can be seen that the third timestamp is earlier than the second timestamp, then the current alarm information is duplicate alarm information.
It is thus clear that, in this application embodiment, to effective alarm information storage, abandon to repetition alarm information, that is to say, the alarm information of storage all is effective alarm information among the electronic equipment, and the second timestamp that electronic equipment obtained can be the timestamp of storage, alarm equipment generation historical alarm information among the electronic equipment, because this timestamp is the timestamp of effective alarm information, consequently if first timestamp is not later than the second timestamp, then current alarm information is probably repetition alarm information.
In this application embodiment, because the real trigger time of the warning that this alarm information corresponds can be represented to calibration time difference and first time stamp sum, consequently can confirm whether current alarm information is same alarm information with last alarm information based on the precedence order of third time stamp and second time stamp in time, and then realized going repeatedly the judgement operation to current alarm information, improved the accuracy that alarm information handled.
FIG. 4 is a flow diagram illustrating an alarm information processing method according to an exemplary embodiment. Referring to fig. 4, the method is used in an electronic device, and includes the following steps:
step 401: the electronic equipment receives current alarm information of the alarm equipment.
Step 402: the electronic equipment acquires alarm time information of the alarm equipment, wherein the alarm time information comprises a first time stamp and a second time stamp, the first time stamp is a time stamp for generating current alarm information for the alarm equipment, and the second time stamp is a time stamp for generating historical alarm information for the alarm equipment.
In some embodiments, the implementation manners of steps 401 to 402 are similar to the implementation manners of steps 301 to 302, and are not described herein again.
Step 403: if the current alarm information is the non-first alarm information sent after the alarm device is on-line, the electronic device determines whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link.
The alarm device is on-line, namely the alarm device is successfully connected with the electronic device. The online operation can be starting up, networking and the like. In this step, when the alarm device is on line, an on-line request is sent to the electronic device, and the electronic device receives the on-line request and determines that a timestamp for receiving the on-line request is a fourth timestamp.
It should be noted that, because two transmission links exist between the alarm device and the electronic device, the connection between the alarm device and the electronic device can be realized through any one transmission link, and even if one transmission link is disconnected, the alarm device can be connected with the electronic device through the other transmission link to maintain the on-line state.
In the first situation, if the current alarm information is the first alarm information sent after the alarm device is on-line, the electronic device determines that the current alarm information is valid alarm information, and stores the current alarm information.
Even if the transmission link is switched when the first alarm information is sent after the alarm device is on line, repeated alarm cannot occur, so that the electronic device can directly take the first alarm information as effective alarm information, and the alarm information processing efficiency is high.
In the second case, if the current alarm information is the non-first alarm information after the alarm device is on-line, it indicates that the switching of the transmission link may occur when the current alarm information is sent, that is, the repeated alarm may occur, and therefore, the electronic device may further determine whether the current alarm information is the repeated alarm information by determining whether the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, and the accuracy of alarm information processing is higher.
In some embodiments, the alert information carries a link identification. Each transmission link is provided with a link identifier, and accordingly, the implementation mode that whether the transmission link of the current alarm information and the transmission link of the historical alarm information are the same is determined by the electronic device is as follows: the electronic equipment respectively acquires link identifications from the current alarm information and the historical alarm information, and if the acquired link identifications are the same, the electronic equipment determines that a transmission link of the alarm information and a transmission link of the historical alarm information are the same; if the obtained link identifiers are different, the electronic equipment determines that the transmission link of the alarm information and the transmission link of the historical alarm information are different.
In other embodiments, the alarm information carries a device identifier, and the device identifier is used to uniquely identify the alarm device or the relay device. Correspondingly, if the current alarm information is directly sent to the electronic equipment by the alarm equipment through the first transmission link, the current alarm information only carries the equipment identifier of the alarm equipment; if the current alarm information is transmitted to the electronic device through the second transmission link by the alarm device, namely, through the transfer device, the current alarm information carries the equipment identifier of the alarm device and the equipment identifier of the transfer device.
Correspondingly, if the current alarm information and the historical alarm information both carry the equipment identifier of the transfer equipment, the electronic equipment determines that the transmission link of the alarm information and the transmission link of the historical alarm information are the same transmission link; if only one of the current alarm information and the historical alarm information carries the equipment identifier of the transfer equipment, the electronic equipment determines that the transmission link of the alarm information and the transmission link of the historical alarm information are different transmission links.
In a possible implementation manner, if the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, the electronic device determines that the current alarm information is valid alarm information, and stores the current alarm information.
In the embodiment of the application, if the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, the fact that the transmission link is not switched in the process of sending the current alarm information is shown, repeated alarm cannot occur, therefore, the current alarm information is directly used as effective alarm information, and the alarm information processing efficiency is high.
In another possible implementation manner, if the transmission link of the current alert information is different from the transmission link of the historical alert information, the electronic device performs the operation of step 404 to further determine whether the current alert information is the duplicate alert information by determining whether the first time stamp is later than the second time stamp.
Step 404: if the transmission link of the current alarm information is different from the transmission link of the historical alarm information, the electronic device determines whether the first time stamp is later than the second time stamp.
In the embodiment of the application, if the transmission link of the current alarm information and the transmission link of the historical alarm information are different, it indicates that the transmission links are switched in the process of sending the alarm information. The alarm equipment and/or the relay equipment caches the alarm information of the target quantity, so that the influence of untimely alarm information processing caused by alarm information omission due to link disconnection is reduced, and therefore when the link is disconnected, the alarm equipment or the relay equipment can possibly send the locally cached alarm information to the electronic equipment, and repeated alarm can possibly occur. Accordingly, the electronic device further determines whether the current alert information is duplicate alert information by determining whether the first timestamp is later than the second timestamp.
Step 405: and if the first time stamp is not later than the second time stamp, the electronic equipment acquires the equipment time information of the alarm equipment and acquires the reference time information of the local equipment.
Step 406: the electronic device determines a calibration time difference based on the device time information and the reference time information.
Step 407: and the electronic equipment processes the current alarm information based on the calibration time difference and the alarm time information.
For example, the historical alarm information may be previous alarm information, referring to fig. 5, when the alarm device is online, the electronic device obtains a current time DT1 of the alarm device and a first operation duration CT1 of the local device, the received current alarm information is a, the first timestamp is DAT, the second timestamp is DATL is obtained, and if there is no previous alarm information, that is, a is the first alarm information, it is determined that a is valid alarm information; if the last alarm information exists and A and the last alarm information come from the same link, determining A as effective alarm information; if the A and the last alarm information come from different links and DAT is greater than DATL, determining that the A is effective alarm information; if DAT < DATL, acquiring a fifth time stamp DT2 of the alarm device and a second running time CT2 of the local device, further determining that the calibration time difference is TDA ═ DRT-CRT |, if DAT + TDA > DATL, determining that A is effective alarm information, and otherwise, discarding A.
In some embodiments, the implementation of steps 405-407 is similar to the implementation of steps 303-305, and is not described herein again.
In the embodiment of the application, when the current alarm information of the alarm device is received, because the alarm device may generate a time calibration operation, the time for generating the current alarm information by the alarm device may not be later than the time stamp for generating the historical alarm information, so that on the basis of the alarm time information, the device time information of the alarm device and the reference time information of the local device are combined, and whether the current alarm information is the repeated alarm information or not can be accurately determined. Therefore, whether the current alarm information is the repeated alarm information can be determined by only acquiring a small amount of historical alarm information, and the alarm information processing efficiency is improved on the basis of improving the accuracy of alarm information processing.
FIG. 6 is a block diagram illustrating an alarm information processing apparatus 60 according to an exemplary embodiment. The device 60 is adapted to perform the steps performed by the method described above, and with reference to fig. 6, the device 60 comprises:
a first obtaining module 601, configured to receive current alarm information of an alarm device, and obtain alarm time information of the alarm device, where the alarm time information includes a first timestamp and a second timestamp, the first timestamp is a timestamp for generating the current alarm information by the alarm device, and the second timestamp is a timestamp for generating historical alarm information by the alarm device;
a second obtaining module 602, configured to obtain device time information of the alarm device and obtain reference time information of a local device if the first timestamp is not later than the second timestamp;
a processing module 603, configured to process the current alarm information based on the alarm time information, the device time information, and the reference time information.
In one possible implementation manner, the device time information includes a first time difference, where the first time difference is a time difference recorded by a clock of the alarm device from the alarm device being on-line to a current time; the reference time information comprises a second time difference, and the second time difference is the running time difference from the on-line of the alarm device to the current time of the local device;
the processing module 603 includes:
the determining unit is used for determining the difference value between the first time difference and the second time difference to obtain a calibration time difference;
and the processing unit is used for processing the current alarm information based on the calibration time difference and the alarm time information.
In another possible implementation manner, the processing module 603 includes:
the determining unit is used for determining a calibration time difference based on the device time information and the reference time information;
the processing unit is configured to determine the current alarm information as valid alarm information and store the current alarm information if a third timestamp is later than the second timestamp, where the third timestamp is a sum of the first timestamp and the calibration time difference; and if the third timestamp is not later than the second timestamp, determining that the current alarm information is the repeated alarm information, and discarding the current alarm information.
In another possible implementation manner, the historical alarm information is the last alarm information of the alarm device received by the local device; the first obtaining module 601 is configured to obtain a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information; and acquiring a second timestamp recorded by the clock of the alarm device when the alarm device generates the last piece of alarm information.
In another possible implementation manner, the processing module 603 is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the first time stamp is later than the second time stamp.
In another possible implementation manner, the apparatus further includes:
and the determining module is used for determining whether the first time stamp is later than the second time stamp if the transmission link of the current alarm information is different from the transmission link of the historical alarm information.
In another possible implementation manner, the determining module is further configured to determine whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link if the current alarm information is non-first alarm information sent after the alarm device is online;
the processing module 603 is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the current alarm information is the first alarm information sent after the alarm device is online or a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link.
In another possible implementation manner, the transmission link between the alarm device and the local device for transmitting alarm information includes a first transmission link and a second transmission link, where the first transmission link is a transmission link from the alarm device to the local device, and the second transmission link is a transmission link from the alarm device to the local device and relayed by a relay device; the alarm device and/or the relay device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
In the embodiment of the application, when the current alarm information of the alarm device is received, because the alarm device may generate a time calibration operation, the time for generating the current alarm information by the alarm device may not be later than the time stamp for generating the historical alarm information, so that on the basis of the alarm time information, the device time information of the alarm device and the reference time information of the local device are combined, and whether the current alarm information is the repeated alarm information or not can be accurately determined. Therefore, whether the current alarm information is the repeated alarm information can be determined by only acquiring a small amount of historical alarm information, and the alarm information processing efficiency is improved on the basis of improving the accuracy of alarm information processing.
It should be noted that: in the alarm information processing device provided in the above embodiment, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
In one possible implementation, the electronic device 20 may be provided as a server, and fig. 7 is a block diagram of a server 200 shown according to an exemplary embodiment, where the server 200 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 2001 and one or more memories 2002, where the memories 2002 store at least one program code, and the at least one program code is loaded and executed by the processors 2001 to implement the alarm information Processing method provided by the above-mentioned method embodiments. Of course, the server 200 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 200 may also include other components for implementing the functions of the device, which is not described herein again.
In an embodiment of the present application, a computer-readable storage medium is further provided, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by an electronic device to implement the alarm information processing method in the foregoing embodiment. The computer readable storage medium may be a memory. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact disk Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an embodiment of the present application, a computer program product is further provided, where at least one program code is stored in the computer program product, and the at least one program code is loaded and executed by an electronic device to implement the alarm information processing method in the foregoing embodiment.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be described in detail here.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (11)
1. An alarm information processing method, characterized by comprising:
receiving current alarm information of alarm equipment, and acquiring alarm time information of the alarm equipment, wherein the alarm time information comprises a first timestamp and a second timestamp, the first timestamp is a timestamp for generating the current alarm information by the alarm equipment, and the second timestamp is a timestamp for generating historical alarm information by the alarm equipment;
if the first time stamp is not later than the second time stamp, acquiring equipment time information of the alarm equipment and acquiring reference time information of local equipment;
and processing the current alarm information based on the alarm time information, the equipment time information and the reference time information.
2. The method of claim 1, wherein the device time information comprises a first time difference recorded by a clock of the alarm device from a time the alarm device is on-line to a current time; the reference time information comprises a second time difference, and the second time difference is an operation time difference from the on-line of the alarm device to the current time of the local device;
the processing the current alarm information based on the alarm time information, the device time information, and the reference time information includes:
determining a difference value between the first time difference and the second time difference to obtain a calibration time difference;
and processing the current alarm information based on the calibration time difference and the alarm time information.
3. The method according to claim 1 or 2, wherein the processing the current alarm information based on the alarm time information, the device time information, and the reference time information includes:
determining a calibration time difference based on the device time information and the reference time information;
if the third timestamp is later than the second timestamp, determining that the current alarm information is valid alarm information, and storing the current alarm information, wherein the third timestamp is the sum of the first timestamp and the calibration time difference;
and if the third timestamp is not later than the second timestamp, determining that the current alarm information is the repeated alarm information, and discarding the current alarm information.
4. The method of claim 1, wherein the historical alert information is last alert information of the alert device received by the local device; the acquiring of the alarm time information of the alarm device includes:
acquiring a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information;
and acquiring a second timestamp recorded by the clock of the alarm device when the alarm device generates the last piece of alarm information.
5. The method of claim 1, further comprising: and if the first timestamp is later than the second timestamp, determining that the current alarm information is valid alarm information, and storing the current alarm information.
6. The method of claim 1, wherein before the obtaining the device time information of the alerting device and the reference time information of the local device if the first timestamp is not later than the second timestamp, the method further comprises:
and if the transmission link of the current alarm information is different from the transmission link of the historical alarm information, determining whether the first time stamp is later than the second time stamp.
7. The method of claim 6, wherein if the transmission link of the current alert information and the transmission link of the historical alert information are different transmission links, determining whether the first timestamp is later than the second timestamp, the method further comprising:
if the current alarm information is non-first alarm information sent after the alarm equipment is on-line, determining whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same;
the method further comprises the following steps:
and if the current alarm information is the first alarm information sent after the alarm equipment is on-line or the transmission link of the current alarm information and the transmission link of the historical alarm information are the same transmission link, determining that the current alarm information is effective alarm information, and storing the current alarm information.
8. The method of claim 6, wherein the transmission link between the alarm device and the local device for transmitting alarm information comprises a first transmission link from the alarm device to the local device and a second transmission link from the alarm device to the local device and relayed by a relay device;
the alarm device and/or the transit device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
9. An alarm information processing apparatus, characterized in that the apparatus comprises:
the alarm device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for receiving current alarm information of alarm equipment and acquiring alarm time information of the alarm equipment, the alarm time information comprises a first timestamp and a second timestamp, the first timestamp is used for generating the current alarm information by the alarm equipment, and the second timestamp is used for generating historical alarm information by the alarm equipment;
the second obtaining module is used for obtaining the equipment time information of the alarm equipment and obtaining the reference time information of the local equipment if the first time stamp is not later than the second time stamp;
and the processing module is used for processing the current alarm information based on the alarm time information, the equipment time information and the reference time information.
10. The apparatus of claim 9, wherein the device time information comprises a first time difference recorded by a clock of the alarm device from a time the alarm device is on-line to a current time; the reference time information comprises a second time difference, and the second time difference is an operation time difference from the on-line of the alarm device to the current time of the local device;
the processing module comprises:
a determining unit, configured to determine a difference between the first time difference and the second time difference to obtain a calibration time difference; the processing unit is used for processing the current alarm information based on the calibration time difference and the alarm time information; or,
the processing module comprises:
the determining unit is used for determining a calibration time difference based on the equipment time information and the reference time information; the processing unit is configured to determine that the current alarm information is valid alarm information and store the current alarm information if a third timestamp is later than the second timestamp, where the third timestamp is a sum of the first timestamp and the calibration time difference; if the third timestamp is not later than the second timestamp, determining that the current alarm information is repeated alarm information, and discarding the current alarm information;
the historical alarm information is the last alarm information of the alarm equipment received by the local equipment; the first obtaining module is configured to obtain a first timestamp recorded by a clock of the alarm device when the alarm device generates the current alarm information; acquiring a second timestamp recorded by a clock of the alarm device when the alarm device generates the last piece of alarm information;
the processing module is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the first timestamp is later than the second timestamp;
the device further comprises:
the determining module is used for determining whether the first time stamp is later than the second time stamp if the transmission link of the current alarm information is different from the transmission link of the historical alarm information;
the determining module is further configured to determine whether a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link if the current alarm information is non-first alarm information sent after the alarm device is online;
the processing module is further configured to determine that the current alarm information is valid alarm information and store the current alarm information if the current alarm information is first alarm information sent after the alarm device is online or a transmission link of the current alarm information and a transmission link of the historical alarm information are the same transmission link;
the transmission link used for transmitting alarm information between the alarm device and the local device comprises a first transmission link and a second transmission link, wherein the first transmission link is a transmission link from the alarm device to the local device, and the second transmission link is a transmission link from the alarm device to the local device and transferred by a transfer device; the alarm device and/or the transit device caches the alarm information of the target quantity, and in response to disconnection of any transmission link, the local device receives the cached alarm information based on another transmission link.
11. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the steps in the alarm information processing method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110303024.4A CN113077615B (en) | 2021-03-22 | 2021-03-22 | Alarm information processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110303024.4A CN113077615B (en) | 2021-03-22 | 2021-03-22 | Alarm information processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113077615A true CN113077615A (en) | 2021-07-06 |
CN113077615B CN113077615B (en) | 2022-09-23 |
Family
ID=76613282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110303024.4A Active CN113077615B (en) | 2021-03-22 | 2021-03-22 | Alarm information processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113077615B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09115075A (en) * | 1995-10-17 | 1997-05-02 | Hochiki Corp | Alarm transmission level correcting method for smoke sensor |
US5781852A (en) * | 1994-03-07 | 1998-07-14 | Gropper; Daniel R. | Alert receiver interface |
WO2006131998A1 (en) * | 2005-06-08 | 2006-12-14 | Matsushita Electric Works, Ltd. | Fire alarm system |
CN101711402A (en) * | 2007-06-09 | 2010-05-19 | E信息无线资讯服务德国有限责任公司 | System and method for transmitting a warning message via a radio network |
WO2014041763A1 (en) * | 2012-09-12 | 2014-03-20 | パナソニック株式会社 | Wireless communication system |
CN108734922A (en) * | 2010-08-19 | 2018-11-02 | 斐拉迪米尔·克兰兹 | Position determination and alarm activation of persons in dangerous situations |
CN111078513A (en) * | 2018-10-22 | 2020-04-28 | 杭州海康威视数字技术股份有限公司 | Log processing method, device, equipment, storage medium and log alarm system |
-
2021
- 2021-03-22 CN CN202110303024.4A patent/CN113077615B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5781852A (en) * | 1994-03-07 | 1998-07-14 | Gropper; Daniel R. | Alert receiver interface |
JPH09115075A (en) * | 1995-10-17 | 1997-05-02 | Hochiki Corp | Alarm transmission level correcting method for smoke sensor |
WO2006131998A1 (en) * | 2005-06-08 | 2006-12-14 | Matsushita Electric Works, Ltd. | Fire alarm system |
CN101711402A (en) * | 2007-06-09 | 2010-05-19 | E信息无线资讯服务德国有限责任公司 | System and method for transmitting a warning message via a radio network |
CN108734922A (en) * | 2010-08-19 | 2018-11-02 | 斐拉迪米尔·克兰兹 | Position determination and alarm activation of persons in dangerous situations |
WO2014041763A1 (en) * | 2012-09-12 | 2014-03-20 | パナソニック株式会社 | Wireless communication system |
CN111078513A (en) * | 2018-10-22 | 2020-04-28 | 杭州海康威视数字技术股份有限公司 | Log processing method, device, equipment, storage medium and log alarm system |
Also Published As
Publication number | Publication date |
---|---|
CN113077615B (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113238913B (en) | Intelligent pushing method, device, equipment and storage medium for server faults | |
US11201810B2 (en) | Data transmission method and apparatus | |
US7668207B2 (en) | System, method, and article of manufacture for synchronizing time of day clocks on first and second computers | |
US8037207B2 (en) | Apparatus and method for synchronizing presence attribute data between terminal and server | |
CN110492967B (en) | Time synchronization method, relay equipment and device | |
CN110912805B (en) | Message reading state synchronization method, terminal, server and system | |
CN110601786B (en) | Time synchronization method, relay equipment and device | |
CN112630557A (en) | Equipment state detection method, device, equipment and medium | |
CN113077615B (en) | Alarm information processing method and device and electronic equipment | |
CN103139820A (en) | Link detection method and network elements | |
CN117480067A (en) | Electric vehicle charge management and client device | |
CN110585724B (en) | Method and device for updating form data in game client | |
CN114296979A (en) | Method and device for detecting abnormal state of Internet of things equipment | |
CN114625578A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN116886755B (en) | Keep-alive method and keep-alive device for tested server | |
JP2003178388A (en) | Reporting system | |
CN114189565B (en) | Head area restoration system, method and related equipment | |
CN116452077A (en) | Data processing method, device, medium and electronic equipment | |
CN117389907A (en) | Method and device for detecting synchronization problem of service data | |
CN114070810A (en) | Information push system and information push method | |
CN117596288A (en) | Message transmission method and device, electronic equipment and storage medium | |
CN118612175A (en) | Offline message transmission method and device, electronic equipment and readable medium | |
CN117729039A (en) | Message detection method and device | |
US20070263670A1 (en) | State synchronization apparatuses and methods | |
CN117609171A (en) | Authority data synchronization method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |