WO2015184772A1 - 告警信息的存储方法及装置 - Google Patents

告警信息的存储方法及装置 Download PDF

Info

Publication number
WO2015184772A1
WO2015184772A1 PCT/CN2014/094855 CN2014094855W WO2015184772A1 WO 2015184772 A1 WO2015184772 A1 WO 2015184772A1 CN 2014094855 W CN2014094855 W CN 2014094855W WO 2015184772 A1 WO2015184772 A1 WO 2015184772A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm information
information
address
alarm
index pointer
Prior art date
Application number
PCT/CN2014/094855
Other languages
English (en)
French (fr)
Inventor
卢至锋
江洪波
孙浩
洪小芹
孟燕妮
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184772A1 publication Critical patent/WO2015184772A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for storing alarm information.
  • the fault alarm processing module takes effective measures to ensure the safe and reliable operation of the power supply when the power system is abnormal. It also saves historical fault alarm information and facilitates quick analysis and positioning by technicians.
  • FIG. 1 is a schematic structural diagram of a historical fault alarm management module in the related art, and the management module includes: a fault alarm signal. Analysis unit, fault alarm processing unit, fault alarm information storage unit.
  • the workflow of the historical fault alarm management module is as follows:
  • Step S1 an external fault alarm signal (such as an overcurrent and overvoltage signal) triggers an alarm and transmits to the fault alarm signal analysis unit;
  • an external fault alarm signal such as an overcurrent and overvoltage signal
  • Step S2 the fault alarm signal analysis unit parses the fault alarm signal to generate a corresponding operation command
  • Step S3 the operation command is transmitted to the fault alarm processing unit, and the corresponding protection action is performed according to the operation command;
  • Step S4 The fault alarm signal is transmitted to the fault alarm storage unit, and the fault alarm signal is saved in real time to prevent loss of power loss, for analysis by the staff, and the fault cause and location are generated by the positioning.
  • step S5 the storage of the historical fault alarm information is mostly performed in a linear storage manner, and the historical fault alarm information is sequentially stored in the storage space by the address increment.
  • the storage mechanism of the related art has the following problems: First, since the storage space is linearly proportional to the amount of fault alarm information, and the occurrence of the fault alarm is uncertain, the storage space size is uncertain and can only be pre-prepared. Second, the storage space is large; because the storage mechanism stores all the historical fault alarms linearly in sequence, the storage space cannot be recycled, which results in a large storage space. Although this method can save historical fault alarm information to the utmost, For the power system, the number of fault alarms has the greatest reference value for fault analysis and location.
  • the storage of the historical fault alarm information by the power management system in the related art is stored in chronological order. Due to the uncertainty of the historical fault alarm information, the storage space needs to be estimated by default, or the historical fault alarm information is reported and transmitted to The upper manager, which results in a large storage space, requires external expansion of the memory, increases the cost, and the system structure is complicated in this way.
  • the main purpose of the embodiments of the present invention is to provide a method and a device for storing alarm information, so as to at least solve the problem that the space for storing alarm information is large in the related art, and the structure of the alarm system is complicated.
  • a method for storing an alarm including: acquiring first address information of a first alarm information in a history record; and storing the currently generated second alarm information in a preset storage space. Decoding a storage address indicated by the first address information, and covering the first alarm information.
  • storing the second alarm information that is currently generated to the storage address indicated by the first address information in the preset storage space, and covering the first alarm information includes: generating, in the second alarm information And updating an index pointer of the preset storage space; and using the address pointed by the updated index pointer as the first address information.
  • the method further includes: when the updated index pointer is equal to the maximum value allowed by the preset storage space, performing initialization processing on the index pointer, and using the address pointed to by the initialized index pointer as The first address information.
  • updating the index pointer of the preset storage space includes: calculating a sum of the number of bytes of the index pointer and the second alarm information, and using the sum of the two as an updated index pointer.
  • the obtaining the first address information of the first alarm information in the history record includes: determining whether the first address information of the first alarm information is valid; and when the first address information is valid, acquiring the first Address information.
  • the first alarm information is the first alarm information stored in the history record.
  • a storage device for alarm information including: an obtaining module, configured to acquire first address information of a first alarm information in a history record; and a storage module configured to be currently generated
  • the second alarm information is stored in the storage address indicated by the first address information in the preset storage space, and covers the first alarm information.
  • the device includes: an update module, configured to update an index pointer of the preset storage space when the second alarm information is generated; and use an address pointed by the updated index pointer as the first Address information.
  • the device further includes: an initialization module, configured to initialize the index pointer when the updated index pointer is equal to a maximum value allowed by the preset storage space, and initialize the The address pointed to by the index pointer is used as the first address information.
  • an initialization module configured to initialize the index pointer when the updated index pointer is equal to a maximum value allowed by the preset storage space, and initialize the The address pointed to by the index pointer is used as the first address information.
  • the updating module is further configured to calculate a sum of the number of bytes of the index pointer and the second alarm information, and use the sum of the two as an updated index pointer.
  • the first address information of the first alarm information in the history record is obtained by using the first address information in the history record, and the second alarm information generated in the preset storage space is stored in the storage address indicated by the first address information in the preset storage space, and the first address is covered.
  • the method of the alarm information solves the problem that the space for storing alarm information is large in the related art, and the structure of the alarm system is complicated, and the local storage is saved, and the complexity of the system is reduced without being uploaded to the remote end, and the coverage of the alarm information is saved.
  • the storage space for alarm information is obtained by using the first address information in the history record, and the second alarm information generated in the preset storage space is stored in the storage address indicated by the first address information in the preset storage space, and the first address is covered.
  • FIG. 1 is a schematic structural diagram of a historical fault alarm management module in the related art
  • FIG. 2 is a schematic flowchart of a method for storing alarm information according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a storage device for alarm information according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram 1 of an optional structure of an alarm information storage device according to an embodiment of the present invention.
  • FIG. 5 is a second schematic diagram of an optional structure of an alarm information storage device according to an embodiment of the present invention.
  • FIG. 6 is a historical fault alarm storage information and a storage location map according to an alternative embodiment of the present invention.
  • FIG. 7 is a schematic flow chart of a method for storing historical fault alarm information in a power management system according to an alternative embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for storing alarm information according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step S202 Acquire first address information of the first alarm information in the history record
  • Step S204 Store the currently generated second alarm information to the storage address indicated by the first address information in the preset storage space, and overwrite the first alarm information.
  • the first address information of the first alarm information in the history record is obtained, and the second alarm information generated in the current storage space is stored in the storage address indicated by the first address information in the preset storage space, thereby covering the first
  • the method of the alarm information solves the problem that the space for storing alarm information is large in the related art, and the structure of the alarm system is complicated, and the local storage is saved, and the complexity of the system is reduced without being uploaded to the remote end, and the coverage of the alarm information is saved.
  • the storage space for alarm information is obtained.
  • step S204 further includes: updating an index pointer of the preset storage space when the second alarm information is generated; and using the address pointed to by the updated index pointer as the first address information.
  • the method of this embodiment further includes: initializing the index pointer when the updated index pointer is equal to the maximum value allowed by the preset storage space, and using the address pointed to by the initialized index pointer as the first address. information.
  • updating the index pointer of the preset storage space includes: calculating a sum of the index pointer and the number of bytes of the second alarm information, and using the sum of the two as the updated index pointer.
  • the step S202 includes: determining whether the first address information of the first alarm information is valid; and acquiring the first address information when the first address information is valid.
  • the first alarm information is the first alarm information stored in the history record.
  • FIG. 3 is a schematic structural diagram of a storage device for alarm information according to an embodiment of the present invention, as shown in FIG.
  • the device may include: an obtaining module 32, configured to acquire first address information of the first alarm information in the history record; the storage module 34 is coupled to the obtaining module 32, and configured to store the currently generated second alarm information to the preset storage.
  • the storage address indicated by the first address information in the space and covers the first alarm information.
  • the modules and units involved in the embodiments of the present invention may be implemented by software or by hardware.
  • the described modules and units in this embodiment may also be disposed in a processor.
  • a processor includes an acquisition module and a storage module.
  • the name of these modules does not constitute a limitation on the module itself in some cases.
  • the obtaining module may also be described as “a module configured to acquire first address information of the first alarm information in the history record”.
  • FIG. 4 is a schematic diagram 1 of an optional structure of an alarm information storage device according to an embodiment of the present invention.
  • the device includes: an update module 42 configured to be in a second alarm, in addition to the module included in FIG.
  • the index pointer of the preset storage space is updated; the address pointed to by the updated index pointer is used as the first address information.
  • the update module is further configured to calculate a sum of the index pointer and the number of bytes of the second alarm information, and use the sum of the two as the updated index pointer.
  • FIG. 5 is a second schematic diagram of an optional structure of an alarm information storage device according to an embodiment of the present invention.
  • the device further includes: an initialization module 52, configured to be equal to the preset storage space allowed by the preset storage space. At the maximum value, the index pointer is initialized, and the address pointed to by the initialized index pointer is used as the first address information.
  • the optional embodiment of the present invention provides a storage mechanism for storing historical fault alarm information in a storage space, and adopts a cyclic queue to guide the storage mode.
  • the internal processor has a readable and writable memory (such as EEPROM), and does not need to expand the memory.
  • the storage period can meet the requirements, and the local storage of historical fault alarm information is completed.
  • the main idea of the invention of the optional embodiment of the present invention is to: utilize the internal resources of the controller as much as possible; in the analysis and positioning of the power failure, generally only need to analyze the latest fault alarms or other information to locate the cause of the fault, because of its scientific research value. The highest, not only controls the cost, simplifies the peripheral circuit design, but also reduces system complexity and improves system reliability.
  • the optional embodiment of the present invention saves the latest N times historical faults and alarm information to be saved in the power system; and saves an index pointer pointing to the latest historical fault alarm; and uses a circular queue to guide the storage mode.
  • the index pointer (Index) is first added with a frame fault alarm byte number, the index adjustment is directed to the address of the oldest fault alarm, and the latest fault alarm information is written to the address, which is the oldest. The fault alarm information is overwritten, and the index word points to the address of the latest fault alarm information.
  • the index byte is added with the number of bytes corresponding to the fault alarm or other information.
  • the storage space quantity requirement is determined, which is convenient for controller selection; the storage space is small, the storage space utilization rate is high, and the cost is low.
  • the storage space stores the latest N historical fault alarms or other information, which has high research value and reduces the redundancy of historical fault alarm information.
  • the optional embodiment of the present invention achieves the following effects: 1. One is locally saved, does not need to be uploaded to the remote end, is simple, practical, and efficient; 2. Fast storage, less storage space, with an index pointer, each time the latest information Cover the oldest information, less information stored in a single time, after power-off and then re-powered (power return), according to the storage pointer can find the latest information, the oldest information, easy to locate power failure.
  • the processor internal E2PROM is divided into two fixed areas Bank0, Bank1;
  • N secondary storage blocks are designed according to the size of the storage space, and each secondary storage block stores a historical fault alarm.
  • Bank0 includes N frame history fault information, index pointer Index0; each frame of information is in 16 full-byte units, which are respectively fault status byte, time byte, reserved extended byte;
  • Bank0 address range is 0x00 ⁇ 0xN0, The fault information is stored in the start address of 0x00, 0x10, .0x20, and so on, and the index pointer Index0 is stored in the fixed address 0xN0 address.
  • Bank1 includes N-frame historical alarm information, index pointer Index1; each frame of information is in 16 full-byte units, which are respectively alarm status byte, time byte, reserved extended byte; Bank1 address range (N+1) ⁇ 0x10 ⁇ (2N+1) ⁇ 0x10; the historical alarm information is stored in the starting address of (N+1) ⁇ 0x10, (N+2) ⁇ 0x10,... and so on, and the alarm information index pointer is fixedly stored in 2 (N+1) ⁇ 0x10 address.
  • the historical fault alarm information storage space distribution diagram is shown in Figure 2.
  • the EEPROM storage space is initialized; the Index0 byte is initialized to 0, pointing to the fault information address 0x00, and the Index1 byte is initialized to (N+1) ⁇ 0x10, pointing to the alarm information address (N+1) ⁇ 0x10, and the other bytes are 0x00;
  • the historical fault alarm information is stored; whenever a new fault or alarm is generated, the corresponding fault status byte or alarm status byte is updated, the index pointer Index0 or Index1 is incremented by 16, and when Index0 is equal to N ⁇ 0x10, Index0 is reset. 0x00, when Index1 is equal to 2(N+1) ⁇ 0x10, it is reset to (N+1) ⁇ 0x10, and the updated storage fault status byte or alarm status byte, and the time of occurrence, are written to Index0 or Index1. In the address space, the oldest fault status information and alarm information are overwritten, and the index pointer Index0 or Index1 always points to the latest fault information or the latest alarm information. The fault information or the alarm information and the corresponding index pointer form a circular queue.
  • the fault information stored in the Bank0 area is always the N fault information that has occurred recently, and the alarm information stored in the Bank1 area is always the latest N alarm information.
  • FIG. 7 is a schematic flowchart of a method for storing historical fault alarm information in a power management system according to an alternative embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
  • Step S702 Check whether the storage space data is valid; after confirming that the storage space failure alarm information is valid, step S704 is performed, and after confirming that the storage space failure alarm information is invalid, step S706 is performed;
  • the uninitialized storage space data defaults to 0xff;
  • Step S704 reading historical alarm fault information and an index pointer
  • Step S706 Initialize Index0 storage space data to 0x00, Index1 storage space data is (N+1) ⁇ 0x10, and other spatial data are all 0x00;
  • Step S708 detecting whether a new fault alarm is generated; after detecting that a new fault or alarm occurs, step S710 is performed; otherwise, step S708 is continued;
  • Step S710 Update the corresponding fault status byte bit or the alarm status byte bit
  • Step S712 Update the corresponding index pointer, and the index pointer is incremented by 16, that is, the number of bytes corresponding to each frame of data;
  • Step S714 detecting whether the index pointer is out of bounds; if the index pointer is out of bounds, step S716 is performed; if the index pointer is not out of bounds, step S718 is performed;
  • Step S716 reset the index pointer, Index0 is reset to 0x00, and Index1 is reset to (N+1) ⁇ 0x10;
  • Step S718 The updated fault status byte or alarm status byte, the occurrence time, and the corresponding index pointer are sequentially written into the start address space corresponding to the index pointer.
  • a cyclic queue is used to guide the storage mode, and a processor having a readable and writable memory (such as an EEPROM) is provided therein, and the storage period of the built-in memory can be used to meet the requirement, and the historical fault alarm information is completed. Local storage. The storage space of the alarm information is saved, and the complexity of the system structure is reduced.
  • a processor having a readable and writable memory such as an EEPROM
  • the optional embodiments of the present invention are only an optional embodiment, and are not intended to limit the scope of the present invention.
  • the storage information includes but is not limited to history. Fault alarms, all modifications, equivalent replacements, improvements, etc., made in the technical solutions of this patent are within the protection scope of this patent.
  • the first address information of the first alarm information in the history record is obtained by using the first address information in the history record, and the second alarm information generated in the preset storage space is stored in the storage address indicated by the first address information in the preset storage space, and the first address is covered.
  • the method of the alarm information solves the problem that the space for storing alarm information is large in the related art, and the structure of the alarm system is complicated, and the local storage is saved, and the complexity of the system is reduced without being uploaded to the remote end, and the coverage of the alarm information is saved.
  • the storage space for alarm information is obtained by using the first address information in the history record, and the second alarm information generated in the preset storage space is stored in the storage address indicated by the first address information in the preset storage space, and the first address is covered.

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Alarm Systems (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明提供了一种告警信息的存储方法及装置,其中,该方法包括:获取历史记录中第一告警信息的第一地址信息;将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,并覆盖第一告警信息。通过本发明,解决了相关技术中存储告警信息的空间大,告警系统结构复杂的问题,实现了本地保存,不需上传至远端进而降低了系统的复杂度,并通过告警信息的覆盖节省了告警信息的存储空间。

Description

告警信息的存储方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种告警信息的存储方法及装置。
背景技术
电源技术正朝着数字化,智能化,系统化方向发展,电源管理任务增加,复杂度提高,对电源管理性能要求越来越高。故障告警处理模块作为电源管理系统中重要一环,当电源系统出现异常时,及时采取有效措施,保证电源安全可靠运行;保存历史故障告警信息,亦便于技术人员快速分析、定位。
相关技术中为实现故障告警信号的本地保存,采用的故障告警管理模块结构方图如图1所示,图1是相关技术中历史故障告警管理模块的结构示意图,该管理模块包括:故障告警信号分析单元,故障告警处理单元,故障告警信息存储单元。历史故障告警管理模块工作流程如下:
步骤S1:外部故障告警信号(如过流过压信号)触发告警,传送至故障告警信号分析单元;
步骤S2:故障告警信号分析单元解析故障告警信号,产生相应操作命令;
步骤S3:操作命令传送至故障告警处理单元,根据操作命令,执行相应保护动作;
步骤S4:故障告警信号传送至故障告警存储单元,实时保存故障告警信号,防止掉电丢失,以供工作人员分析,定位产生故障原因和位置。
步骤S5:中针对历史故障告警信息的存储,大多数采用线性存储方式,按时间顺序依次将历史故障告警信息,在存储空间中按地址递增的方式保存。
但相关技术中的这种存储机制存在着以下问题:第一,由于存储空间与故障告警信息量成线性比例关系,而故障告警的发生不确定,故存储空间大小需求不确定,只能进行预估;第二,存储空间大;由于该种存储机制将全部历史故障告警信息依次线性存储,存储空间无法循环利用,故导致存储空间大,该种方式虽然可以最大限度保存历史故障告警信息,但对于电源系统,近几次故障告警信息对故障分析定位的参考价值最大。
在电源系统管理模式中还有一种方式是将历史告警信息上报,上传至远端管理器,实现远端存储,本地不对历史告警信息进行存储,该种方式,系统结构复杂,成本提升,空间限制较大,不利于电源的应用和推广。
可见相关技术中电源管理系统对历史故障告警信息的存储,按时间顺序依次存储,由于历史故障告警信息的不确定性,设计时需预设估算存储空间,或者将历史故障告警信息上报,传送至上层管理器,这样导致存储空间大,须外扩存储器,提高了成本,并且此种方式系统结构复杂。
针对相关技术中存储告警信息的空间大,告警系统结构复杂的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例的主要目的在于提供一种告警信息的存储方法及装置,以至少解决相关技术中存储告警信息的空间大,告警系统结构复杂的问题。
根据本发明实施例的一个方面,提供了一种告警的存储方法,包括:获取历史记录中第一告警信息的第一地址信息;将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息。
进一步地,将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息之前,包括:在所述第二告警信息产生时,更新所述预设存储空间的索引指针;将更新后的所述索引指针所指向的地址作为所述第一地址信息。
进一步地,还包括:在更新后的所述索引指针等于所述预设存储空间所允许的最大值时,对所述索引指针进行初始化处理,将初始化后的所述索引指针所指向的地址作为所述第一地址信息。
进一步地,更新所述预设存储空间的索引指针包括:计算所述索引指针与所述第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
进一步地,获取历史记录中第一告警信息的第一地址信息包括:判断所述第一告警信息的所述第一地址信息是否有效;在所述第一地址信息有效时,获取所述第一地址信息。
进一步地,所述第一告警信息为所述历史记录中最先存储的告警信息。
根据本发明实施例的另一个方面,提供了一种告警信息的存储装置,包括:获取模块,设置为获取历史记录中第一告警信息的第一地址信息;存储模块,设置为将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息。
进一步地,该装置包括:更新模块,设置为在所述第二告警信息产生时,更新所述预设存储空间的索引指针;将更新后的所述索引指针所指向的地址作为所述第一地址信息。
进一步地,所述装置还包括:初始化模块,设置为在更新后的所述索引指针等于所述预设存储空间所允许的最大值时,对所述索引指针进行初始化处理,将初始化后的所述索引指针所指向的地址作为所述第一地址信息。
进一步地,所述更新模块还设置为,计算所述索引指针与所述第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
通过本发明实施例,采用获取历史记录中第一告警信息的第一地址信息;将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,并覆盖第一告警信息的方式,解决了相关技术中存储告警信息的空间大,告警系统结构复杂的问题,实现了本地保存,不需上传至远端进而降低了系统的复杂度,并通过告警信息的覆盖节省了告警信息的存储空间。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中历史故障告警管理模块的结构示意图;
图2是根据本发明实施例的告警信息的存储方法的流程示意图;
图3是根据本发明实施例的告警信息的存储装置的结构示意图;
图4是根据本发明实施例的告警信息存储装置的可选结构示意图一;
图5是根据本发明实施例的告警信息存储装置的可选结构示意图二;
图6是根据本发明可选实施例的历史故障告警存储信息及存储位置映射图;
图7是根据本发明可选实施例的电源管理系统中历史故障告警信息存储方法的流程示意图。
具体实施方式
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本实施例提供了一种告警的存储方法,图2是根据本发明实施例的告警信息的存储方法的流程示意图,如图2所示,该方法包括如下步骤:
步骤S202:获取历史记录中第一告警信息的第一地址信息;
步骤S204:将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,并覆盖第一告警信息。
通过本实施例,采用获取历史记录中第一告警信息的第一地址信息;并将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,进而覆盖第一告警信息的方式,解决了相关技术中存储告警信息的空间大,告警系统结构复杂的问题,实现了本地保存,不需上传至远端进而降低了系统的复杂度,并通过告警信息的覆盖节省了告警信息的存储空间。
可选地,步骤S204进一步包括:在第二告警信息产生时,更新预设存储空间的索引指针;将更新后的索引指针所指向的地址作为第一地址信息。
可选地,本实施例方法还包括:在更新后的索引指针等于预设存储空间所允许的最大值时,对索引指针进行初始化处理,将初始化后的索引指针所指向的地址作为第一地址信息。
可选地,更新预设存储空间的索引指针包括:计算索引指针与第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
可选地,步骤S202包括:判断第一告警信息的第一地址信息是否有效;在第一地址信息有效时,获取第一地址信息。
可选地,第一告警信息为历史记录中最先存储的告警信息。
本实施例还提供了一种告警信息的存储装置,该装置用于实现上述小区干扰的处理方法,图3是根据本发明实施例的告警信息的存储装置的结构示意图,如图3所示,该装置可以包括:获取模块32,设置为获取历史记录中第一告警信息的第一地址信息;存储模块34与获取模块32耦合连接,设置为将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,并覆盖第一告警信息。
本发明的实施例中所涉及到的模块、单元可以通过软件的方式实现,也可以通过硬件的方式来实现。本实施例中的所描述的模块、单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取模块和存储模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,获取模块还可以被描述为“设置为获取历史记录中第一告警信息的第一地址信息的模块”。
图4是根据本发明实施例的告警信息存储装置的可选结构示意图一,如图4所示,该装置除了图3中包括的模块之外还包括:更新模块42,设置为在第二告警信息产生时,更新预设存储空间的索引指针;将更新后的索引指针所指向的地址作为第一地址信息。
可选地,更新模块还设置为,计算索引指针与第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
图5是根据本发明实施例的告警信息存储装置的可选结构示意图二,如图5所示,装置还包括:初始化模块52,设置为在更新后的索引指针等于预设存储空间所允许的最大值时,对索引指针进行初始化处理,将初始化后的索引指针所指向的地址作为第一地址信息。
下面结合本发明可选实施例对本发明进行举例说明。
本发明可选实施例提出了一种节省存储空间的历史故障告警信息存储机理,采用循环队列指引存储方式,内部具有可读写存储器(如EEPROM)的处理器,无需外扩存储器,利用自带的存储期即可满足要求,完成历史故障告警信息的本地存储。
本发明可选实施例的发明主要思想为:尽可能利用控制器内部资源;在电源故障分析定位中,一般只需分析最新几次故障告警或其他信息,即可定位故障缘由,因其科研价值最高,不仅控制了成本,简化外围电路设计,还降低系统复杂度,提高系统可靠性。
本发明可选实施例保存电源系统中最新的N次需保存的历史故障,告警信息;并保存指向最新历史故障告警的索引指针;采用循环队列指引存储方式。
当电源系统产生故障告警,索引指针(Index)先加上一帧故障告警字节数,将Index调整指向最旧的故障告警的地址,再把最新的故障告警信息写入该地址,将最旧的故障告警信息覆盖,此时索引字则指向最新故障告警信息地址。每存储一次,索引字节加上故障告警或其他信息对应的字节数,当索引字节指向划分的某块固定区域的尾端时,将其复位,重新指向该块固定区域首端。
采用该种方式,存储空间量需求确定,便于控制器选型;存储空间小、存储空间利用率高、成本低。存储空间中保存最近N次新的历史故障告警或其他信息,研究价值高,减少了历史故障告警信息的冗余。
本发明可选实施例实现了以下效果:1.一个是本地保存,不需上传至远端,简单,实用,高效;2.快速存储,存储空间少,附带一个索引指针,每次最新的信息覆盖最旧的信息,单次存储信息少,断电再重新上电之后(电源返还),依据存储指针即可查找最新信息,最旧信息,便于定位电源故障。
本发明可选实施例应用范围包括所有可读写掉电非丢失存储介质,为了更清楚,更准确,更完整地描述本发明的技术方案,以处理器内部自带的EEPROM为例进行说明,并结合附图详细介绍一下本专利的具体实施方式。图6是根据本发明可选实施例的历史故障告警存储信息及存储位置映射图,下面对图进行详细的说明:
首先,将处理器内部E2PROM划分为两个固定区域Bank0,Bank1;
根据存储空间的大小设计N个二级存储块,每一个二级存储块存放一条历史故障告警信息。其中Bank0包括N帧历史故障信息,索引指针Index0;每帧信息以16个整字节为单位,依次分别为故障状态字节,时间字节,保留扩展字节;Bank0地址范围为0x00~0xN0,故障信息存储在以0x00,0x10,.0x20…依次类推的起始地址中,索引指针Index0存储在固定地址0xN0地址中。
Bank1包括N帧历史告警信息,索引指针Index1;每帧信息以16个整字节为单位,依次分别为告警状态字节,时间字节,保留扩展字节;Bank1地址范围(N+1)×0x10~(2N+1)×0x10;历史告警信息分别存储在以(N+1)×0x10,(N+2)×0x10,…依次类推的起始地址中,告警信息索引指针固定存储在2(N+1)×0x10地址中。历史故障告警信息存储空间分布图如图2所示。
其次,初始化EEPROM存储空间;将Index0字节初始化为0,指向故障信息地址0x00,Index1字节初始化为(N+1)×0x10,指向告警信息地址(N+1)×0x10,其他字节为0x00;
最后,存储历史故障告警信息;每当产生一次新的故障或告警,更新对应的故障状态字节或告警状态字节,索引指针Index0或Index1自加16,当Index0等于N×0x10时,Index0复位为0x00,当Index1等于2(N+1)×0x10时复位为(N+1)×0x10,将更新的存储故障状态字节或告警状态字节,以及发生的时间,写入Index0或Index1对应的地址空间中,覆盖最旧的故障状态信息和告警信息,索引指针Index0或Index1始终指向最新的故障信息或最新的告警信息。故障信息或告警信息与对应的索引指针构成一个循环队列,Bank0区域存储的故障信息始终为最近发生的N次故障信息,而Bank1区域存储的告警信息则始终为最近发生的N次告警信息。
图7是根据本发明可选实施例的电源管理系统中历史故障告警信息存储方法的流程示意图,如图7所示,该方法包括如下步骤:
步骤S702:检查存储空间数据是否有效;在确认存储空间故障告警信息有效后,执行步骤S704,在确认存储空间故障告警信息无效后,执行步骤S706;
其中,未初始化的存储空间数据默认为0xff;
步骤S704:读取历史告警故障信息和索引指针;
步骤S706:将Index0存储空间数据初始化为0x00,Index1存储空间数据为(N+1)×0x10,其他空间数据全为0x00;
步骤S708:检测是否有新的故障告警产生;在检测到有新故障或告警发生后,执行步骤S710,否则继续执行步骤S708;
步骤S710:更新对应的故障状态字节位或告警状态字节位;
步骤S712:更新对应的索引指针,索引指针自加16,即每帧数据对应字节数;
步骤S714:检测索引指针是否越界;如索引指针越界则执行步骤S716;若索引指针没有越界则执行步骤S718;
其中,检测Index0是否等于N×0x10,Index1是否等于(2N+1)×0x10;
步骤S716:,则复位索引指针,Index0复位为0x00,Index1复位为(N+1)×0x10;
步骤S718:将更新的故障状态字节或告警状态字节、发生时间、对应的索引指针依次写入索引指针对应的起始地址空间。
通过本发明可选实施例,采用循环队列指引存储方式,内部具有可读写存储器(如EEPROM)的处理器,无需外扩存储器,利用自带的存储期即可满足要求,完成历史故障告警信息的本地存储。节省了告警信息的存储空间,降低了系统结构的复杂程度。
需要说明的是,本发明可选实施例仅为一个可选的实施例,并不用于限制本发明的权利保护范围,对于本发明的存储介质包括但不限于EEPORM,存储信息包括但不限于历史故障告警,凡在本专利所在技术方案,思路上所做的一切修改,等同替换,改进等等均在本专利的保护范围之内。
以上仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
通过本发明实施例,采用获取历史记录中第一告警信息的第一地址信息;将当前产生的第二告警信息存储至预设存储空间内第一地址信息所指示的存储地址,并覆盖第一告警信息的方式,解决了相关技术中存储告警信息的空间大,告警系统结构复杂的问题,实现了本地保存,不需上传至远端进而降低了系统的复杂度,并通过告警信息的覆盖节省了告警信息的存储空间。

Claims (10)

  1. 一种告警信息的存储方法,包括:
    获取历史记录中第一告警信息的第一地址信息;
    将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息。
  2. 根据权利要求1所述的方法,其中,将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息之前,包括:
    在所述第二告警信息产生时,更新所述预设存储空间的索引指针;将更新后的所述索引指针所指向的地址作为所述第一地址信息。
  3. 根据权利要求2所述的方法,其中,还包括:
    在更新后的所述索引指针等于所述预设存储空间所允许的最大值时,对所述索引指针进行初始化处理,将初始化后的所述索引指针所指向的地址作为所述第一地址信息。
  4. 根据权利要求2所述的方法,其中,更新所述预设存储空间的索引指针包括:
    计算所述索引指针与所述第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
  5. 根据权利要求1所述的方法,其中,获取历史记录中第一告警信息的第一地址信息包括:
    判断所述第一告警信息的所述第一地址信息是否有效;在所述第一地址信息有效时,获取所述第一地址信息。
  6. 根据权利要求1至5中任一项所述的方法,其中,所述第一告警信息为所述历史记录中最先存储的告警信息。
  7. 一种告警信息的存储装置,包括:
    获取模块,设置为获取历史记录中第一告警信息的第一地址信息;
    存储模块,设置为将当前产生的第二告警信息存储至预设存储空间内所述第一地址信息所指示的存储地址,并覆盖所述第一告警信息。
  8. 根据权利要求7所述的装置,其中,该装置包括:
    更新模块,设置为在所述第二告警信息产生时,更新所述预设存储空间的索引指针;将更新后的所述索引指针所指向的地址作为所述第一地址信息。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:
    初始化模块,设置为在更新后的所述索引指针等于所述预设存储空间所允许的最大值时,对所述索引指针进行初始化处理,将初始化后的所述索引指针所指向的地址作为所述第一地址信息。
  10. 根据权利要求8所述的装置,其中,所述更新模块还设置为,计算所述索引指针与所述第二告警信息的字节数之和,将两者之和作为更新后的索引指针。
PCT/CN2014/094855 2014-10-20 2014-12-24 告警信息的存储方法及装置 WO2015184772A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410560302.4A CN105589854A (zh) 2014-10-20 2014-10-20 告警信息的存储方法及装置
CN201410560302.4 2014-10-20

Publications (1)

Publication Number Publication Date
WO2015184772A1 true WO2015184772A1 (zh) 2015-12-10

Family

ID=54766030

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094855 WO2015184772A1 (zh) 2014-10-20 2014-12-24 告警信息的存储方法及装置

Country Status (2)

Country Link
CN (1) CN105589854A (zh)
WO (1) WO2015184772A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677286A (zh) * 2019-09-24 2020-01-10 京信通信系统(中国)有限公司 电源掉电告警监测方法、装置和系统
CN111475804A (zh) * 2020-03-05 2020-07-31 浙江省北大信息技术高等研究院 一种告警预测方法及系统
CN111563003A (zh) * 2020-06-12 2020-08-21 广东浪潮大数据研究有限公司 一种设备状态监控装置、方法、设备及介质
CN111817899A (zh) * 2020-07-24 2020-10-23 济南浪潮数据技术有限公司 一种告警方法、系统、设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243993A (zh) * 1999-09-09 2000-02-09 北京声迅电子有限公司 一种报警联网系统
CN1731339A (zh) * 2004-08-05 2006-02-08 国际商业机器公司 将数据净荷从第一扇区格式转换成第二扇区格式的装置和方法
CN201449412U (zh) * 2009-08-24 2010-05-05 江阴爱康太阳能器材有限公司 太阳能发电监测报警装置
CN102722965A (zh) * 2012-05-28 2012-10-10 深圳市邦健电子有限公司 报警管理及监护装置
CN103034705A (zh) * 2012-12-07 2013-04-10 中联重科股份有限公司 工程机械设备的多故障数据显示装置和方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858805A (zh) * 2005-12-17 2006-11-08 华为技术有限公司 记录电池工作信息的方法、电池及其电子产品与充电器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243993A (zh) * 1999-09-09 2000-02-09 北京声迅电子有限公司 一种报警联网系统
CN1731339A (zh) * 2004-08-05 2006-02-08 国际商业机器公司 将数据净荷从第一扇区格式转换成第二扇区格式的装置和方法
CN201449412U (zh) * 2009-08-24 2010-05-05 江阴爱康太阳能器材有限公司 太阳能发电监测报警装置
CN102722965A (zh) * 2012-05-28 2012-10-10 深圳市邦健电子有限公司 报警管理及监护装置
CN103034705A (zh) * 2012-12-07 2013-04-10 中联重科股份有限公司 工程机械设备的多故障数据显示装置和方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677286A (zh) * 2019-09-24 2020-01-10 京信通信系统(中国)有限公司 电源掉电告警监测方法、装置和系统
CN110677286B (zh) * 2019-09-24 2022-07-22 京信网络系统股份有限公司 电源掉电告警监测方法、装置和系统
CN111475804A (zh) * 2020-03-05 2020-07-31 浙江省北大信息技术高等研究院 一种告警预测方法及系统
CN111475804B (zh) * 2020-03-05 2023-10-24 杭州未名信科科技有限公司 一种告警预测方法及系统
CN111563003A (zh) * 2020-06-12 2020-08-21 广东浪潮大数据研究有限公司 一种设备状态监控装置、方法、设备及介质
CN111817899A (zh) * 2020-07-24 2020-10-23 济南浪潮数据技术有限公司 一种告警方法、系统、设备及计算机可读存储介质
CN111817899B (zh) * 2020-07-24 2022-04-22 济南浪潮数据技术有限公司 一种告警方法、系统、设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN105589854A (zh) 2016-05-18

Similar Documents

Publication Publication Date Title
WO2015184772A1 (zh) 告警信息的存储方法及装置
SE1551351A1 (en) Methods, systems, and computer readable media for monitoring and management of a power distribution system
EP2987387B1 (en) System, method, and device for exposing wireless module data storage
US20210117107A1 (en) Method for storing uav system log and uav image transmission system
RU2014124332A (ru) Способ защиты вычислительного устройства
CN103123484A (zh) 变电站状态监测数据标准化接入系统及方法
CN102289388B (zh) 服务器管理ipmi接口协议的扩展方法
CN106909641B (zh) 一种实时数据存储器
CN104346264A (zh) 系统事件日志处理系统及方法
CN102625082A (zh) 一种视频监控系统
CN202758389U (zh) 基于物联网的智能档案管理装置
CN112433861B (zh) 双芯智能电表的事件记录方法和双芯智能电表
CN105737338A (zh) 电量信息计算方法、装置、多联机空调器系统及其外机
CN105840433B (zh) 风电机组点检信息管理系统和风电机组点检管理系统
CN113050020A (zh) 双芯智能电表的超差事件记录方法、装置和计算机设备
CN112367395A (zh) 一种报警阈值的修改方法、设备及计算机可读存储介质
CN106888128A (zh) 一种变电站内网监测系统及其监测方法
CN204666716U (zh) 一种多用途智能电压监测装置
CN107342950B (zh) 一种机电设备物联网系统中减少服务器压力的方法
US10965403B2 (en) Gap data collection for low energy devices
US9575554B1 (en) Dynamic time sliced sensor sampling for reduced power consumption
CN104331359A (zh) 异常信息的记录方法和装置
CN208890822U (zh) 一种具有安全识别的rfid电子配线架系统
CN102412625B (zh) 一种遥信数据采集方法及装置
CN107506283B (zh) 一种主机向san存储推送信息的方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14894068

Country of ref document: EP

Kind code of ref document: A1