A device alarm state updating method, device, system and electronic device
Patent Information
- Application Number
- CN202110729331.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2041-06-29
AI Technical Summary
[0004]为了能及时展现设备告警状态,I1会设定得较小,通常I1会小于I2,因此在一个I2时间段内会有多个设备告警状态变更消息到达呈现装置,所述场景下会产生设备告警时序问题,即设备的告警早于告警恢复上报,但告警恢复先于告警处理完成,从而导致呈现的设备告警状态是错误的
[0039] The device alarm status update method of this invention eliminates the problem of false alarms caused by the out-of-order processing of device alarms and alarm recovery due to the parallel processing of device alarm status change messages. It significantly enhances the accuracy of device alarm status presentation and improves the ability of the network management system to process alarm information, thereby meeting the user's demand for the network management system to accurately and timely display the device alarm status in the telecommunications network.
Smart Images

Figure CN115550136B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network management of telecommunications equipment, and in particular to a method, device, system, electronic device and computer storage medium for updating the alarm status of equipment. Background Technique
[0002] Devices in a telecommunications network generate alarms when anomalies occur and generate alarm recoveries when the anomalies are eliminated, that is, the alarm status of the devices changes. A telecommunications equipment network management system (hereinafter referred to as the network management) needs to display the alarm status of the above devices, and accuracy and timeliness are the basic requirements of this function.
[0003] The device alarm status change collection device of the network management (hereinafter referred to as the collection device) periodically (the cycle duration is denoted as I1) collects a list of device IDs whose alarm status has changed in the network, and sends a device alarm status change message containing the list of device IDs whose alarm status has changed to the device alarm status presentation device of the network management (hereinafter referred to as the presentation device). After receiving a device alarm status change message, the presentation device extracts the list of device IDs whose alarm status has changed from the message, and sends a request containing the list of device IDs whose alarm status has changed to the device alarm status query device (hereinafter referred to as the query device), queries the alarm status of the devices corresponding to the list of device IDs whose alarm status has changed, the query device returns a response containing the alarm status of the devices corresponding to the list of device IDs whose alarm status has changed, and the presentation device updates the relevant device alarm status accordingly. The process from the presentation device sending the query request to receiving the response and completing the update display is called a device alarm status change message processing flow, and the duration of this process is denoted as I2.
[0004] In order to display the device alarm status in a timely manner, I1 is set to be relatively small. Usually, I1 is less than I2. Therefore, within an I2 time period, multiple device alarm status change messages will reach the presentation device. In this scenario, a device alarm timing problem will occur, that is, the alarm of the device is reported earlier than the alarm recovery, but the alarm recovery is completed earlier than the alarm processing, resulting in an incorrect displayed device alarm status. As Figure 1 shown, the alarm status change message corresponding to the device alarm at time T0 triggered a query request. The result of this query was to return the alarm status corresponding to the device alarm. The presentation device updated the display accordingly, consuming I2 (T3 - T0); the alarm status change message corresponding to the device alarm recovery at time T1 (T0 + I1) triggered another query request. The result of this query was to return the alarm status corresponding to the device alarm recovery. The presentation device updated the display accordingly, consuming I3 (T2 - T1); the alarm recovery was completed earlier than the alarm being processed (T2 < T3). Finally, the displayed device alarm status was the status with an alarm, which was inconsistent with the actual alarm recovery result, causing a false alarm problem. Summary of the Invention
[0005] To address the aforementioned technical problems, the purpose of this invention is to provide a device alarm status update method that can accurately and promptly reflect the device alarm status.
[0006] The above-mentioned technical objective disclosed in this invention is achieved through the following technical solutions:
[0007] In a first aspect, the device alarm status update method provided in the embodiments of the present invention is applied to a device alarm status presentation device, and includes the following steps:
[0008] The device identifier set is obtained by parsing the received alarm status change message, wherein the device identifier set contains the device identifier of the device whose alarm status has changed;
[0009] Update the globally unique marker based on the alarm status change message;
[0010] Send a query request carrying a set of device identifiers to the querying party;
[0011] Based on the query response and globally unique identifier returned by the querying party, determine whether to update the device alarm status.
[0012] Secondly, to achieve the above objectives, the device alarm status update method provided in this embodiment of the invention is applied to a device alarm status query device, and includes the following steps:
[0013] After the presentation device updates the globally unique marker according to the alarm status change message, the querying party receives the query request sent by the presentation device. The query request carries the set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0014] The querying party uses the device identifier carried in the query request to query the alarm status of the corresponding device;
[0015] The query direction presentation device provides a corresponding query response so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique identifier.
[0016] Thirdly, to achieve the above objectives, embodiments of the present invention also provide a device alarm status presentation apparatus, comprising:
[0017] The first receiving module is used to receive alarm status change messages and parse the device identifier set from the received alarm status change messages. The device identifier set includes the device identifiers of the devices whose alarm status has changed.
[0018] The update module is used to update the globally unique marker based on the received alarm status change message;
[0019] The first sending module is used to send a query request carrying a set of device identifiers to the querying party;
[0020] The judgment module is used to update the device alarm status based on the query response and globally unique identifier returned by the querying party.
[0021] Fourthly, to achieve the above objectives, embodiments of the present invention also provide a device for querying device alarm status, comprising:
[0022] The second receiving module is used to receive a query request sent by the presentation device after the presentation device updates the globally unique tag according to the alarm status change message. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0023] The query module is used to query the alarm status of the corresponding device based on the device identifier carried in the query request.
[0024] The second sending module is used to return a query response to the presentation device, so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique tag.
[0025] Fifthly, to achieve the above objectives, embodiments of the present invention also provide a device alarm status update system, comprising:
[0026] The collection device is used to periodically collect a set of device identifiers in the network whose device alarm status has changed, and send the set of device identifiers as a device alarm status change message to the presentation device.
[0027] The presentation device is used to receive device alarm status change messages containing a set of device identifiers sent by the collection device;
[0028] Update the globally unique marker based on the alarm status change message;
[0029] Send a query request carrying a set of device identifiers to the querying party;
[0030] The query device is used to receive query requests for the alarm status of the equipment.
[0031] Provide the corresponding query response based on the received query request;
[0032] The presentation device is also used to determine whether to update the device alarm status based on the query response returned by the querying party and the globally unique identifier.
[0033] Sixthly, to achieve the above objectives, embodiments of the present invention also provide an electronic device, including a processor; and
[0034] The memory is configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the device alarm status update method of the first aspect described above.
[0035] Seventhly, to achieve the above objectives, embodiments of the present invention also provide an electronic device, including a processor; and
[0036] The memory is configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the device alarm status update method described in the second aspect above.
[0037] Eighthly, to achieve the above objectives, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform the steps of the device alarm status update method of the first aspect described above.
[0038] Ninthly, to achieve the above objectives, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform the steps of the device alarm status update method of the second aspect described above.
[0039] The device alarm status update method of this invention eliminates the problem of false alarms caused by the out-of-order processing of device alarms and alarm recovery due to the parallel processing of device alarm status change messages. It significantly enhances the accuracy of device alarm status presentation and improves the ability of the network management system to process alarm information, thereby meeting the user's demand for the network management system to accurately and timely display the device alarm status in the telecommunications network. Attached Figure Description
[0040] Figure 1 This is a flowchart illustrating the out-of-order update process of device alarm status in existing technologies;
[0041] Figure 2 This is a schematic flowchart of a device alarm status update method provided in an embodiment of the present invention;
[0042] Figure 3 This is a schematic diagram of another device alarm status update method provided in this embodiment of the invention;
[0043] Figure 4 This is a schematic diagram of an example of a device alarm status presentation device provided in an embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of an example of a device alarm status query device provided in an embodiment of the present invention;
[0045] Figure 6 This is a schematic diagram of an example device alarm status update system provided in an embodiment of the present invention;
[0046] Figure 7 This is a schematic diagram illustrating a specific process of one embodiment of the device alarm status update according to an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram illustrating the specific process of another implementation method for updating the device alarm status according to an embodiment of the present invention;
[0048] Figure 9 This is a schematic diagram illustrating a specific process of another implementation of the device alarm status update according to an embodiment of the present invention;
[0049] Figure 10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0050] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.
[0051] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings.
[0052] This invention provides a device alarm status update method, applied to a device alarm status presentation device, comprising:
[0053] The device identifier set is obtained by parsing the received alarm status change message, wherein the device identifier set contains the device identifier of the device whose alarm status has changed;
[0054] Update the globally unique marker based on the alarm status change message;
[0055] Send a query request carrying a set of device identifiers to the querying party;
[0056] Based on the query response and globally unique identifier returned by the querying party, determine whether to update the device alarm status.
[0057] Example 1
[0058] Figure 2 This is a schematic flowchart of a device alarm status update method provided in an embodiment of the present invention. The following will refer to... Figure 2 The process of updating the device alarm status according to an embodiment of the present invention will be described in detail.
[0059] First, in step 101, the device identifier set is obtained by parsing the received alarm status change message, wherein the device identifier set contains the device identifier of the device whose alarm status has changed.
[0060] Preferably, the collection device periodically collects a set of device identifiers in the network whose alarm status has changed.
[0061] Preferably, the device identifier set is a list of device IDs.
[0062] Preferably, the list of device IDs whose alarm status has changed is sent by the collection device to the presentation device in the form of a device alarm status change message.
[0063] Preferably, the presentation device receives the alarm status change message and parses the device identifier set from the alarm status change message.
[0064] In step 102, the globally unique marker is updated according to the alarm status change message.
[0065] In this embodiment of the invention, the globally unique identifier can be any form of unique identifier, not limited to a timestamp; the above-mentioned updating of the locally maintained globally unique identifier according to the received alarm status change message means that for each received device alarm status change message, a globally unique identifier is updated accordingly; because the collection device periodically collects device identifiers whose device alarm status has changed, each device alarm status change message may contain multiple device identifiers whose device alarm status has changed.
[0066] Preferably, the globally unique identifier is a globally unique time-incrementing identifier TiGID.
[0067] Preferably, the device locally maintains a globally unique time-increasing identifier (TiGID).
[0068] Preferably, the globally unique time-incrementing identifier is not limited to local maintenance, but can be maintained in other storage spaces or the cloud.
[0069] Preferably, the aforementioned identifier TiGID has the attribute of increasing over time (of course, it can also be given the attribute of changing over time as needed), that is, each time a device alarm status change message is received, a new identifier TiGID will be obtained and the old identifier TiGID will be overwritten, that is, the identifier TiGID will be updated.
[0070] Preferably, the aforementioned identifier TiGID can be generated by the presentation device, the collection device, or other independent device.
[0071] In step 103, a query request carrying a set of device identifiers is sent to the querying party.
[0072] Preferably, the presenting device parses the list of device IDs whose alarm status has changed from the device alarm status change message, and sends a query request to the querying device to query the device alarm status corresponding to the list of device IDs whose alarm status has changed.
[0073] Preferably, the query request sent by the presentation device contains the following fields:
[0074] The TiGID field represents the current TiGID maintained by the presentation device.
[0075] The Device IDs List Field, which is the list of device IDs whose alarm status has changed, parsed from the device alarm status change message.
[0076] Preferably, a query request carrying a set of device identifiers is sent to the querying party so that the querying party can query the alarm status of the device corresponding to each device identifier in the set of device identifiers.
[0077] Preferably, the query request carries an updated list of globally unique identifiers and device IDs.
[0078] Preferably, after receiving a query request, the query device queries the maintained device alarm information for the corresponding device alarm status based on the list of device IDs whose alarm status has changed in the query request, and returns the corresponding device alarm status and the TiGID copied from the query request to the presentation device.
[0079] In step 104, based on the query response and globally unique identifier returned by the querying party, it is determined whether to update the device alarm status.
[0080] Preferably, based on the query response returned by the querying party, it is determined whether the globally unique identifier carried in the query response is consistent with the globally unique identifier maintained locally.
[0081] Preferably, after receiving the response from the query device, the presentation device compares its current TiGID with the TiGID in the response to determine whether to present the alarm status in the response.
[0082] Preferably, if the judgment result is yes (i.e., the same TiGID), the device alarm status corresponding to each device identifier in the query response is presented.
[0083] Preferably, if the current TiGID and the TiGID in the response are equal, the display device updates the display according to the device alarm status in the response.
[0084] Preferably, if the judgment result is negative (i.e., the two are not the same TiGID), then discard and do not process.
[0085] Preferably, if the current TiGID and the TiGID in the response are not equal, it means that the presentation device has received a new device alarm status change message, and the presentation device discards the response and does not process it.
[0086] The device alarm status update method of this invention eliminates the problem of false alarms caused by the out-of-order processing of device alarms and alarm recovery due to the parallel processing of device alarm status change messages. It significantly enhances the accuracy of device alarm status presentation and improves the ability of the network management system to process alarm information, thereby meeting the user's demand for the network management system to accurately and timely display the device alarm status in the telecommunications network.
[0087] This invention also provides a device alarm status update method, applied to a device alarm status query device, comprising:
[0088] After the presentation device updates the globally unique marker according to the alarm status change message, the querying party receives the query request sent by the presentation device. The query request carries the set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0089] The querying party uses the device identifier carried in the query request to query the alarm status of the corresponding device;
[0090] The query direction presentation device provides a corresponding query response so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique identifier.
[0091] Example 2
[0092] Figure 3 This is a schematic flowchart of another device alarm status update method provided in this embodiment of the invention. The following will refer to... Figure 3 The process of updating the device alarm status according to an embodiment of the present invention will be described in detail.
[0093] First, in step 201, after the presentation device updates the globally unique tag according to the alarm status change message, the querying party receives a query request sent by the presentation device. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0094] Preferably, the presentation device updates the globally unique marker based on the alarm status change message.
[0095] Preferably, the device locally maintains a globally unique time-increasing identifier (TiGID).
[0096] Preferably, the globally unique time-incrementing identifier is not limited to local maintenance, but can be maintained in other storage spaces or the cloud.
[0097] Preferably, the aforementioned identifier TiGID has the attribute of increasing over time (of course, it can also be given the attribute of changing over time as needed), that is, each time a device alarm status change message is received, a new identifier TiGID will be obtained and the old identifier TiGID will be overwritten, that is, the identifier TiGID will be updated.
[0098] Preferably, the query device receives a query request for the device alarm status issued by the presentation device.
[0099] Preferably, the query request for the device alarm status issued by the presenting device carries a set of device identifiers obtained by parsing the alarm status change message.
[0100] Preferably, the device identifier set includes the device identifiers of devices whose alarm status has changed.
[0101] In step 202, the querying party queries the corresponding device alarm status based on the device identifier carried in the query request.
[0102] Preferably, the query request carries a set of device identifiers.
[0103] Preferably, the query device queries the alarm status of the corresponding device based on each device identifier.
[0104] Preferably, the query request carries an updated list of globally unique identifiers and device IDs.
[0105] Preferably, after receiving a query request, the query device queries the maintained device alarm information for the corresponding device alarm status based on the list of device IDs whose alarm status has changed in the query request, and copies the TiGID obtained from the query request.
[0106] In step 203, the query direction provides a corresponding query response to the presentation device, so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique tag.
[0107] Preferably, the query device returns the corresponding query response to the presentation device.
[0108] Preferably, the query response carries the TIGID copied from the query request, and the corresponding device alarm status retrieved from the maintained device alarm information based on the list of device IDs whose alarm status has changed according to the query request.
[0109] Preferably, the presentation device determines, based on the query response, whether the globally unique identifier carried in the query response is consistent with the globally unique identifier maintained locally.
[0110] Preferably, the device compares the current TiGID it maintains with the TiGID in the response to determine whether to update the device alarm status.
[0111] If the judgment result is yes (i.e., the same TiGID), the device alarm status corresponding to each device identifier in the query response will be displayed.
[0112] Preferably, if the current TiGID and the TiGID in the response are equal, the display is updated according to the device alarm status in the response.
[0113] Preferably, if the judgment result is negative (i.e., the two are not the same TiGID), then discard and do not process.
[0114] Preferably, if the current TiGID and the TiGID in the response are not equal, it indicates that there is a new device alarm status change message, and the response is discarded and not processed.
[0115] The device alarm status update method of this invention eliminates the problem of false alarms caused by the out-of-order processing of device alarms and alarm recovery due to the parallel processing of device alarm status change messages. It significantly enhances the accuracy of device alarm status presentation and improves the ability of the network management system to process alarm information, thereby meeting the user's demand for the network management system to accurately and timely display the device alarm status in the telecommunications network.
[0116] This invention also provides a device for presenting device alarm status, comprising:
[0117] The first receiving module is used to receive alarm status change messages and parse the device identifier set from the received alarm status change messages. The device identifier set includes the device identifiers of the devices whose alarm status has changed.
[0118] The update module is used to update the globally unique marker based on the received alarm status change message;
[0119] The first sending module is used to send a query request carrying a set of device identifiers to the querying party;
[0120] The judgment module is used to update the device alarm status based on the query response and globally unique identifier returned by the querying party.
[0121] Example 3
[0122] Figure 4 This is a schematic diagram of an example device alarm presentation device provided in an embodiment of the present invention, as shown below. Figure 4 As shown, the device alarm status presentation device of this embodiment includes a first receiving module 301, an updating module 302, a first sending module 303, and a judging module 304, wherein...
[0123] The first receiving module 301 is used to receive alarm status change messages and parse the received alarm status change messages to obtain a set of device identifiers, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0124] Preferably, the device identifier set is a list of device IDs.
[0125] Preferably, since the device identifiers whose alarm status changes are collected periodically, each alarm status change message may contain one or more device identifiers whose alarm status has changed.
[0126] The update module 302 is used to update the locally maintained globally unique marker based on the received alarm status change message.
[0127] Preferably, the update module 302 will update the locally maintained globally unique marker as soon as it receives an alarm status change message.
[0128] The first sending module 303 is used to send a query request carrying a set of device identifiers to the querying party, so that the querying party can query the alarm status of the device corresponding to each device identifier in the set of device identifiers.
[0129] The judgment module 304 is used to update the device alarm status based on the query response and globally unique identifier returned by the querying party.
[0130] Preferably, based on the query response returned by the querying party, it is determined whether the globally unique identifier carried in the query response is consistent with the globally unique identifier maintained locally.
[0131] Preferably, the globally unique identifier is the time-incrementing identifier TiGID.
[0132] Preferably, if the judgment result is positive, the device alarm status corresponding to each device identifier in the query response is displayed; if the judgment result is negative, the alarm is discarded and not processed.
[0133] This invention also provides a device for querying device alarm status, comprising:
[0134] The second receiving module is used to receive a query request sent by the presentation device after the presentation device updates the globally unique tag according to the alarm status change message. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0135] The query module is used to query the alarm status of the corresponding device based on the device identifier carried in the query request.
[0136] The second sending module is used to return a query response to the presentation device, so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique tag.
[0137] Example 4
[0138] Figure 5 This is a schematic diagram of a device alarm status query device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the device alarm status query device of this embodiment includes a second receiving module 401, a query module 402, and a second sending module 403, wherein...
[0139] The second receiving module 401 is used to receive a query request from the presentation device after the presentation device updates the globally unique tag according to the alarm status change message. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed.
[0140] Preferably, the presentation device updates the globally unique marker based on the alarm status change message.
[0141] Preferably, the presentation device updates the locally maintained globally unique marker whenever it receives an alarm status change message.
[0142] Preferably, the globally unique identifier is the time-incrementing identifier TiGID.
[0143] Preferably, the query request carries a set of device identifiers so that the querying party can query the alarm status of the device corresponding to each device identifier in the set of device identifiers.
[0144] The query module 402 is used to query the corresponding device alarm status based on the device identifier carried in the query request.
[0145] Preferably, the corresponding device alarm status stored in the query device is queried based on the device identifier carried in the query request.
[0146] Preferably, the query response carries a globally unique identifier from the query request and the corresponding device alarm status in the device alarm information for the device ID list in the query request.
[0147] The second sending module 403 is used to return a query response to the presentation device, so that the presentation device can determine whether to update the device alarm status based on the query response and the globally unique tag.
[0148] Preferably, the presentation device determines whether to update the device alarm status based on the globally unique identifier in the query response and the maintained globally unique identifier.
[0149] Preferably, if the judgment result is positive, the device alarm status corresponding to each device identifier in the query response is displayed; if the judgment result is negative, the alarm is discarded and not processed.
[0150] This invention also provides a device alarm status update system, which includes:
[0151] The collection device is used to periodically collect a set of device identifiers in the network whose device alarm status has changed, and send the set of device identifiers as a device alarm status change message to the presentation device.
[0152] A presentation device is used to receive device alarm status change messages containing a set of device identifiers sent by the collection device;
[0153] Update the globally unique marker based on the alarm status change message;
[0154] Send a query request carrying a set of device identifiers to the querying party;
[0155] The query device is used to receive query requests for the alarm status of the equipment.
[0156] Provide the corresponding query response based on the received query request;
[0157] The presentation device is also used to determine whether to update the device alarm status based on the query response returned by the querying party and the globally unique identifier.
[0158] Example 5
[0159] Figure 6 This is a schematic diagram of an example device alarm status update system provided in an embodiment of the present invention, as shown below. Figure 6As shown, the device alarm status update system of this embodiment includes a collection device 501, a presentation device 502, and a query device 503; wherein, the presentation device is as follows: Figure 4 As shown, the presentation device also includes a first receiving module 301, an updating module 302, a first sending module 303, and a judging module 304.
[0160] Preferably, the collection device 501 is used to periodically collect a set of device identifiers in the network whose device alarm status has changed, and send the set of device identifiers as a device alarm status change message to the presentation device 502.
[0161] Preferably, the device identifier set is a list of device IDs, or a device identifier set that is equivalent to a list of device IDs.
[0162] Preferably, the collection device 501 is used to periodically collect a list of device IDs in the network whose alarm status has changed, and send them to the presentation device 502 as device alarm status change messages.
[0163] Preferably, the presentation device 502 is used to receive device alarm status change messages sent by the collection device 501.
[0164] Preferably, the presentation device 502 is used to maintain a globally unique time-incrementing identifier TiGID.
[0165] Preferably, the presentation device 502 is used to obtain a new TiGID and overwrite the old TiGID after receiving a new device alarm status change message, that is, to update the TiGID.
[0166] Preferably, the presentation device 502 is used to parse the list of device IDs whose alarm status has changed from the device alarm status change message, and send a query request containing the TiGID and the list of device IDs whose alarm status has changed to the query device 503 to query the device alarm status corresponding to the list of device IDs whose alarm status has changed.
[0167] Preferably, the query device 503 copies the TiGID from the query request.
[0168] The query device 503 is used to provide a corresponding query response based on the received query request.
[0169] Preferably, the presentation device 502 is used to, upon receiving a response from the query device 503 containing a list of copied TiGIDs and device IDs whose alarm status has changed, compare its maintained current TiGID with the TiGID in the response to determine whether to present the alarm status in the response.
[0170] Preferably, the presentation device 502 is used to update the display according to the device alarm status in the response if the maintained current TiGID and the TiGID in the response are consistent; if the maintained current TiGID and the TiGID in the response are inconsistent, the presentation device 502 discards the response and does not perform any processing.
[0171] Preferably, the first receiving module 301 is used to receive alarm status change messages and parse the device identifier set from the alarm status change messages.
[0172] Preferably, the update module 302 is used to update the locally maintained globally unique marker according to the received alarm status change message.
[0173] Preferably, the first sending module 303 is used to send a query request carrying a set of device identifiers to the querying party, so that the querying party can query and determine the alarm status of the device corresponding to each device identifier in the set of device identifiers.
[0174] Preferably, the judgment module 304 is used to update the device alarm status based on the query response returned by the querying party and the globally unique tag.
[0175] Preferably, the query device 503 is used to, when receiving a query request sent by the presentation device 502, query the corresponding device alarm status in the maintained device alarm information according to the list of device IDs whose alarm status has changed in the query request, and return the TiGID in the request to the presentation device 502.
[0176] Preferably, the query request carries an updated list of globally unique identifiers and device IDs.
[0177] Preferably, the query device 503 is used to query the device alarm status corresponding to the device identifier set in the maintained device alarm status information, and return the corresponding device alarm status and the globally unique identifier copied from the query request to the presentation device 502.
[0178] Preferably, the device identifier set is a list of device IDs; the globally unique identifier is a time-incrementing identifier TiGID.
[0179] Preferably, the query request contains the following fields: a TiGID field, which is the currently maintained TiGID; and a device ID list field, which is a list of device IDs parsed from the device alarm status change message.
[0180] Example 6
[0181] Figure 7 This is a detailed flowchart illustrating one implementation method of updating the device alarm status according to an embodiment of the present invention. The following will refer to... Figure 7, a detailed description of the method for updating the device alarm status in the embodiments of the present invention will be given.
[0182] In the embodiments of the present invention, the timestamp is used as the TiGID for illustration, but the TiGID is not limited to the timestamp. The timestamp format uses the Unix timestamp, that is, the total number of seconds from January 1, 1970, 00:00:00 GMT to the present. The specific steps are as follows:
[0183] First, when an alarm occurs, device 1 generates an alarm at time T0;
[0184] Step 110, send the device alarm status change message 1.
[0185] Preferably, the collection device sends the device alarm status change message 1 to the presentation device at time T1 (T1>T0 and T1-T0<I1).
[0186] Preferably, the device ID list with the changed alarm status in the device alarm status change message 1 only contains device 1.
[0187] Preferably, since the device ID list with the changed alarm status in the network is collected periodically, although the alarm is generated at time T0, the device alarm status change message may be received at time T1.
[0188] Step 111, update the globally unique identifier.
[0189] Preferably, the presentation device receives the device alarm status change message 1 at time T1, obtains the new TiGID = T1 and overwrites the old TiGID, that is, updates TiGID = T1;
[0190] Step 112, query request.
[0191] Preferably, the presentation device analyzes the device ID list with the changed alarm status that only contains device 1 from the device alarm status change message 1, and sends a query request containing the identification number at time T1 and the device ID list with the changed alarm status to the query device to query the alarm status of device 1;
[0192] Step 113, query response.
[0193] Preferably, the query device returns the alarm status (alarm) of device 1 queried in the maintained device alarm information and the identification number at time T1 copied from the query request to the presentation device;
[0194] Step 114, comparison.
[0195] Preferably, the presentation device receives a response at time T4 (T4 > T3). At this time, the current TiGID it maintains has been updated to the identification serial number at time T3 in step 121. Comparing the current TiGID = T3 with the TiGID = T1 in the response, the two are not equal, and the response is discarded without further processing.
[0196] Then, when the alarm is restored, device 1 generates an alarm restoration at time T2.
[0197] Step 120, send the device alarm status change message 2.
[0198] Preferably, the collection device sends the device alarm status change message 2 (i.e., the alarm status change message corresponding to the alarm restoration) to the presentation device at time T3 (0 < T3 - T2 < I1 and T3 = T1 + I1).
[0199] Preferably, the device ID list of the devices whose alarm status has changed in the device alarm status change message 2 only contains device 1;
[0200] Step 121, update the globally unique mark.
[0201] Preferably, the presentation device receives the device alarm status change message 2 (i.e., the alarm status change message corresponding to the alarm restoration) at time T3, obtains the new TiGID = T3 and overwrites the old TiGID, that is, updates TiGID = T3;
[0202] Step 122, query request.
[0203] Preferably, the presentation device analyzes the device ID list of the devices whose alarm status has changed and only contains device 1 from the device alarm status change message 2, and sends a request containing the identification serial number at time T3 and the device ID list of the devices whose alarm status has changed to the query device to query the alarm status of device 1;
[0204] Step 123, query response.
[0205] Preferably, the query device returns the alarm status of device 1 (alarm restoration) queried in the device alarm status information it maintains and the identification serial number at time T3 copied from the request to the presentation device;
[0206] Step 124, comparison.
[0207] Preferably, the presentation device receives the response at time T5 (T5 > T4), compares the current TiGID = T3 with the TiGID = T3 in the response, the two are equal, and continues to process the response;
[0208] Step 125, present the result.
[0209] Preferably, the presentation device updates the display according to the device 1 alarm status (alarm recovery) contained in the response.
[0210] Preferably, the final device 1 alarm status is presented as alarm recovery in the presentation device.
[0211] Preferably, corresponding presentation is performed according to the alarm status (alarm recovery).
[0212] Embodiment 7
[0213] Figure 8 is a schematic diagram of the specific process of another implementation manner of the device alarm status update in the embodiments of the present invention. Below, reference will be made to Figure 8 to describe in detail the device alarm status update method in the embodiments of the present invention.
[0214] The processing flow of the device alarm status update in this embodiment is as Figure 8 shown, and TiGID is the same as in Embodiment 6. Specifically, it includes the following steps:
[0215] First, when an alarm occurs, device 1 generates an alarm at time T0;
[0216] Step 210, send device alarm status change message 1.
[0217] Preferably, the collection device sends device alarm status change message 1 to the presentation device at time T1 (T1 > T0 and T1 - T0 < I1).
[0218] Preferably, the device ID list with the changed alarm status in device alarm status change message 1 only contains device 1.
[0219] Step 211, update the globally unique mark.
[0220] Preferably, the presentation device receives device alarm status change message 1 at time T1, obtains the new TiGID = T1 and overwrites the old TiGID, that is, updates TiGID = T1;
[0221] Step 212, query request.
[0222] Preferably, the presentation device analyzes the device ID list with the changed alarm status that only contains device 1 from device alarm status change message 1, and sends a query request containing the identification number at time T1 and the device ID list with the changed alarm status to the query device to query the device 1 alarm status;
[0223] Step 213, query response.
[0224] Preferably, the query device returns the alarm status (alarm) of device 1 queried from the device alarm information under maintenance, together with the identification serial number at time T1 copied from the query request, to the presentation device;
[0225] Step 214, comparison.
[0226] Preferably, the presentation device receives the reply at time T5 (T5>T4>T3). At this time, the current TiGID it maintains has been updated to the identification serial number at time T3 in step 221. Compare the current TiGID = T3 and the TiGID = T1 in the reply. The two are not equal, and the reply is discarded without processing.
[0227] Then, when the alarm is restored, device 1 generates an alarm restoration at time T2;
[0228] Step 220, send the device alarm status change message 2.
[0229] Preferably, the collection device sends the device alarm status change message 2 (that is, the alarm status change information corresponding to the alarm restoration) to the presentation device at time T3 (0<T3-T2<I1 and T3 = T1+I1).
[0230] Preferably, the device ID list with the changed alarm status in the device alarm status change message 2 only contains device 1;
[0231] Step 221, update the globally unique mark.
[0232] Preferably, the presentation device receives the device alarm status change message 2 (that is, the alarm status change information corresponding to the alarm restoration) at time T3, obtains the new TiGID = T3 and overwrites the old TiGID, that is, updates TiGID = T3;
[0233] Step 222, query request.
[0234] Preferably, the presentation device analyzes from the device alarm status change message 2 the device ID list with the changed alarm status that only contains device 1, and sends a request containing the identification serial number at time T3 and the device ID list with the changed alarm status to the query device to query the alarm status of device 1;
[0235] Step 223, query reply.
[0236] Preferably, the query device queries the alarm status of device 1 (alarm restoration) from the device alarm information under maintenance, and returns it to the presentation device together with the identification serial number at time T3 copied from the query request;
[0237] Step 224, comparison.
[0238] Preferably, the presentation device receives a response at time T4 (T3 < T4 < T5). Compare the current TiGID = T3 with the TiGID = T3 in the response. Since they are equal, continue to process the response;
[0239] Step 225, presentation result.
[0240] Preferably, the presentation device updates the display according to the alarm status of Device 1 (alarm recovery) contained in the response.
[0241] Preferably, the final alarm status of Device 1 is presented as alarm recovery in the presentation device.
[0242] Preferably, corresponding presentation is performed according to the alarm status (alarm recovery).
[0243] Embodiment 8
[0244] Figure 9 is a schematic diagram of the specific process of another implementation manner of the device alarm status update in the embodiments of the present invention. Below, reference will be made to Figure 9 , and the device alarm status update method in the embodiments of the present invention will be described in detail.
[0245] The processing flow of the device alarm status update in this embodiment is as Figure 9 shown, where TiGID is the same as in Embodiment 6. Specifically, it includes the following steps:
[0246] First, when an alarm occurs, Device 1 generates an alarm at time T0;
[0247] Step 310, send the device alarm status change message 1.
[0248] Preferably, the collection device sends the device alarm status change message 1 to the presentation device at time T1 (T1 > T0 and T1 - T0 < I1).
[0249] Preferably, the device ID list with the changed alarm status in the device alarm status change message 1 only contains Device 1;
[0250] Step 311, update the globally unique mark.
[0251] Preferably, the presentation device receives the device alarm status change message 1 at time T1, obtains the new TiGID = T1 and overwrites the old TiGID, that is, updates TiGID = T1;
[0252] Step 312, query request.
[0253] Preferably, the presentation device analyzes from the device alarm status change message 1 the device ID list in which only the alarm status of device 1 has changed, and sends a query request containing the identification serial number at time T1 and the device ID list in which the alarm status has changed to the query device to query the alarm status of device 1;
[0254] Step 313, query response.
[0255] Preferably, the query device returns to the presentation device the alarm status of device 1 (alarm) queried from the maintained device alarm information and the identification serial number at time T1 copied from the request;
[0256] Step 314, comparison.
[0257] Preferably, when the presentation device receives the response, the current TiGID it maintains is the identification serial number at time T1. Compare the current TiGID = T1 and the TiGID in the response = T1. If the two are equal, continue to process the response;
[0258] Step 315, present the result.
[0259] Preferably, the presentation device completes the update display at time T2 according to the alarm status of device 1 contained in the response.
[0260] Then, when the alarm is restored, device 1 generates an alarm restoration at time T3 (T3 > T2);
[0261] Step 320, send device alarm status change message 2.
[0262] Preferably, the collection device sends device alarm status change message 2 (i.e., the alarm status change information corresponding to the alarm restoration) to the presentation device at time T4 (0 < T4 - T3 < I1 and T4 = T1 + I1).
[0263] Preferably, the device ID list in which the alarm status has changed in device alarm status change message 2 only contains device 1;
[0264] Step 321, update the globally unique tag.
[0265] Preferably, the presentation device receives device alarm status change message 2 (i.e., the alarm status change information corresponding to the alarm restoration) at time T4, obtains the new TiGID = T4 and overwrites the old TiGID, that is, updates TiGID = T4;
[0266] Step 322, query request.
[0267] Preferably, the presenting device parses the device alarm status change message 2 to extract a list of device IDs containing only device 1 whose alarm status has changed, and sends a query request to the querying device containing the identifier number at time T4 and the list of device IDs whose alarm status has changed, to query the alarm status of device 1.
[0268] Step 323: Query the response.
[0269] Preferably, the query device will query the alarm status (alarm recovery) of device 1 in the maintained device alarm information and return it to the presentation device together with the identifier number of time T4 copied from the query request;
[0270] Step 324, comparison.
[0271] Preferably, when the presentation device receives a response, it compares the current TiGID=T4 with the TiGID=T4 in the response. If they are equal, it continues to process the response.
[0272] Step 325: Present the results.
[0273] Preferably, the display device updates the display at time T5 based on the alarm status (alarm recovery) of device 1 contained in the response.
[0274] Preferably, the final alarm status of device 1 is presented as alarm recovery in the presentation device.
[0275] Preferably, the alarm status (alarm recovery) is displayed accordingly.
[0276] Example 9
[0277] Figure 10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, such as... Figure 10 As shown, at the hardware level, this electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or it may include non-volatile memory, such as at least one disk drive. Of course, this electronic device may also include other hardware required for other business operations.
[0278] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0279] Memory is used to store programs. Specifically, programs can include program code, which includes computer operation instructions.
[0280] The processor reads the corresponding computer program from non-volatile memory into memory and then runs it, forming a shared resource access control device at the logical level. The processor executes the program stored in memory, specifically for executing the device alarm status update method in Embodiment 1 above.
[0281] Example 10
[0282] Example 10 in this invention is also like this. Figure 10 The electronic device structure diagram shown is different from Embodiment 9 in that the processor of this embodiment executes the device alarm status update method in Embodiment 2 above.
[0283] Example 11
[0284] This invention also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by a portable electronic device including multiple applications, enable the portable electronic device to perform the methods of the embodiments shown in the accompanying drawings, and specifically to perform the device alarm status update method in Embodiment 1 above.
[0285] Example 12
[0286] This invention also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by a portable electronic device including multiple applications, enable the portable electronic device to perform the methods of the embodiments shown in the accompanying drawings, and specifically to perform the device alarm status update method in embodiment 2 above.
[0287] While the embodiments disclosed in this invention are as described above, they are merely illustrative of the embodiments to facilitate understanding of the invention and are not intended to limit the invention. Any person skilled in the art to which this invention pertains may make any modifications and variations in the form and details of the implementation without departing from the spirit and scope disclosed herein; however, the scope of patent protection for this invention shall still be determined by the scope defined in the appended claims.
Claims
1. A method for updating equipment alarm status, applied to an equipment alarm status presentation device, characterized in that, include: The device identifier set is obtained by parsing the received alarm status change message, wherein the device identifier set includes the device identifier of the device whose alarm status has changed; The globally unique marker is updated according to the alarm status change message; the globally unique marker is a globally unique marker. Send a query request to the querying party, which carries the set of device identifiers and the updated globally unique identifier. Based on the query response returned by the querying party and the currently maintained globally unique tag, determine whether to update the device alarm status; the query response carries the alarm status corresponding to each device in the device identifier set and the globally unique tag copied from the query request.
2. The method as described in claim 1, characterized in that, The step of determining whether to update the device alarm status based on the query response returned by the querying party and the currently maintained globally unique tag further includes: Determine whether the globally unique identifier carried in the query response is consistent with the currently maintained globally unique identifier; if the determination result is yes, then present the device alarm status corresponding to each device identifier in the query response; if the determination result is no, then discard and do not process.
3. The method as described in claim 1, characterized in that, The globally unique identifier is a locally maintained, time-incrementing identifier TiGID; the device identifier set is a list of device IDs.
4. The method as described in claim 3, characterized in that, The query request contains the following fields: The TiGID field is the currently maintained TiGID; The device ID list field is the list of device IDs parsed from the alarm status change message.
5. The method as described in claim 4, characterized in that, The system receives a query response from the querying party. The query response includes the device alarm status corresponding to the device ID list in the query request in the device alarm information, as well as the TiGID.
6. A method for updating equipment alarm status, applied to an equipment alarm status query device, characterized in that, include: After the presentation device updates the globally unique tag according to the alarm status change message, the querying party receives a query request from the presentation device. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed; the globally unique tag is a globally unique tag; the query request also carries the updated globally unique tag. The querying party queries the corresponding device alarm status based on the device identifier carried in the query request. The querying party provides a corresponding query response to the presentation device, so that the presentation device can determine whether to update the device alarm status based on the query response and the currently maintained globally unique tag; the query response carries the alarm status corresponding to each device in the device identifier set and the globally unique tag copied from the query request.
7. A device for displaying equipment alarm status, characterized in that, include: The first receiving module is configured to receive an alarm status change message and parse a device identifier set from the received alarm status change message, wherein the device identifier set includes the device identifier of the device whose alarm status has changed. The update module is used to update the globally unique marker according to the received alarm status change message; the globally unique marker is a globally unique marker. The first sending module is used to send a query request carrying the set of device identifiers to the querying party. The query request also carries an updated globally unique identifier. The judgment module is used to update the device alarm status based on the query response returned by the querying party and the currently maintained globally unique tag; the query response carries the alarm status corresponding to each device in the device identifier set and the globally unique tag copied from the query request.
8. The apparatus as claimed in claim 7, characterized in that, The judgment module is used to determine whether the globally unique identifier carried in the query response is consistent with the currently maintained globally unique identifier; if the judgment result is yes, the device alarm status corresponding to each device identifier in the query response is presented; If the result is negative, the data is discarded without further processing.
9. The apparatus as claimed in claim 7, characterized in that, The globally unique identifier is a locally maintained, time-incrementing identifier TiGID; the device identifier set is a list of device IDs.
10. The apparatus as claimed in claim 9, characterized in that, The query request contains the following fields: The TiGID field is the currently maintained TiGID; The device ID list field is the list of device IDs parsed from the alarm status change message.
11. The apparatus as claimed in claim 10, characterized in that, The system receives a query response from the querying party. The query response includes the device alarm status corresponding to the device ID list in the query request in the device alarm information, as well as the TiGID.
12. A device for querying equipment alarm status, characterized in that, include: The second receiving module is configured to receive a query request from the presentation device after the presentation device updates the globally unique tag according to the alarm status change message. The query request carries a set of device identifiers obtained by parsing the alarm status change message, wherein the set of device identifiers includes the device identifiers of the devices whose alarm status has changed; the globally unique tag is a globally unique tag; and the query request also carries the updated globally unique tag. The query module is used to query the corresponding device alarm status based on the device identifier carried in the query request; The second sending module is used to return a query response to the presentation device so that the presentation device can determine whether to update the device alarm status based on the query response and the currently maintained globally unique tag; the query response carries the alarm status corresponding to each device in the device identifier set and the globally unique tag copied from the query request.
13. A device alarm status update system, characterized in that, The system includes: A collection device is used to periodically collect a set of device identifiers in the network whose device alarm status has changed, and send the set of device identifiers as a device alarm status change message to a presentation device; A presentation device is used to receive a device alarm status change message containing the device identifier set sent by the collection device; The globally unique marker is updated according to the alarm status change message; the globally unique marker is a globally unique marker. Send a query request carrying the set of device identifiers to the querying party; the query request also carries an updated globally unique identifier; A query device, wherein the query device is used to receive query requests for the alarm status of the equipment; Based on the received query request, provide the corresponding query response; The presentation device is also used to determine whether to update the device alarm status based on the query response returned by the querying party and the currently maintained globally unique tag; the query response carries the alarm status corresponding to each device in the device identifier set and the globally unique tag copied from the query request.
14. An electronic device comprising: processor; as well as A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the device alarm status update method according to any one of claims 1-5.
15. An electronic device comprising: processor; as well as A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the device alarm status update method of claim 6.
16. A computer-readable storage medium storing one or more programs, which, when executed, perform the steps of the device alarm status update method according to any one of claims 1-5.
17. A computer-readable storage medium storing one or more programs, which, when executed, perform the steps of the device alarm status update method of claim 6.
Citation Information
Patent Citations
Method and system for synchronously realizing network management and alarm
CN105721213A
Cloud monitoring system warning method and system
CN107222356A