A method, device, equipment and medium for managing abnormal events of electric energy meters

By monitoring the operating status of the power meter in real time and recording key information about abnormal events, the problem that the power meter cannot accurately restore abnormal event information after power failure is solved, and the accurate recording and recovery of information is achieved, avoiding garbled information and errors.

CN118861955BActive Publication Date: 2025-02-21QINGDAO TOPSCOMM COMM +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411345211.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-02-21
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

In the prior art, after removing the internal power supply, the power meter cannot accurately recover the information of abnormal events, and the information is easily garbled and error-based.

Method used

By monitoring the operating status of the power meter in real time, determining whether an abnormal event has occurred, and using a 1-bit storage unit to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of abnormal events, and writing it to the state of the power meter and storage space. When the power meter is powered back on, read this information to restore the complete information of the abnormal event.

Benefits of technology

It realizes accurate recording and recovery of abnormal events after the power meter is powered off, avoids the problems of garbled information and errors, and improves the integrity and reliability of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861955B_ABST
    Figure CN118861955B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for managing abnormal events of an electric energy meter, belonging to the technical field of electric energy meters. The method comprises: monitoring the operating state of the electric energy meter; when it is detected that the electric energy meter loses power, judging whether an abnormal event occurs during the operation of the electric energy meter according to the monitoring information; if so, using a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and writing the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter; when the electric energy meter is powered on again, reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter respectively to recover the abnormal event. The method can avoid the problem of garbled information and errors in the process of recovering abnormal events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy meters, and in particular to a method, device, equipment and medium for managing abnormal events of electric energy meters. Background Art

[0002] The electric energy meters on the market are becoming increasingly small in design, and some electric energy meters even have their internal power supply removed. If the electric energy meter loses power at this time, it is possible that the electric energy meter will not be able to fully record the operation information related to the abnormal event in time. In this case, when restoring the information corresponding to the abnormal event, there may be garbled information and errors. At present, there is no effective solution to this technical problem. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for managing abnormal events of an electric energy meter, so as to solve the technical problem in the prior art that after removing the power supply inside the electric energy meter, the abnormal events encountered by the electric energy meter cannot be accurately restored. The specific scheme is as follows:

[0004] In order to solve the above technical problems, the present invention provides a method for managing abnormal events of an electric energy meter, comprising:

[0005] Performing real-time monitoring on the operating status of the electric energy meter to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter;

[0006] When it is detected that the electric energy meter loses power, it is determined whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information;

[0007] If so, use a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter;

[0008] When the electric energy meter is powered on again, the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter is read respectively to restore the information corresponding to the abnormal event.

[0009] Preferably, the method of using a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time, and event end information of the abnormal event and writing them into the state of the electric energy meter, and writing the number of occurrences, occurrence time, event occurrence information, end time, and event end information of the abnormal event into the storage space of the electric energy meter includes:

[0010] Step S101: using the first storage unit in the electric energy meter to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter;

[0011] Step S102: using the second storage unit in the electric energy meter to record the occurrence time of the abnormal event and write it into the state of the electric energy meter, and writing the occurrence time of the abnormal event into the second storage space of the electric energy meter;

[0012] Step S103: using the third storage unit in the electric energy meter to record the event occurrence information of the abnormal event and write it into the state of the electric energy meter, and writing the event occurrence information of the abnormal event into the third storage space of the electric energy meter;

[0013] Step S104: determine whether the abnormal event is a delay event; if so, continue to execute steps S105 to S106; if not, end the process;

[0014] Step S105: using the fourth storage unit in the electric energy meter to record the end time of the abnormal event and write it into the state of the electric energy meter, and writing the end time of the abnormal event into the fourth storage space of the electric energy meter;

[0015] Step S106: Use the fifth storage unit in the electric energy meter to record the event end information of the abnormal event and write it into the state of the electric energy meter, and write the event end information of the abnormal event into the fifth storage space of the electric energy meter; wherein the storage space occupied by the first storage unit, the second storage unit, the third storage unit, the fourth storage unit and the fifth storage unit is 1 bit.

[0016] Preferably, the step of using the first storage unit in the electric energy meter to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter includes:

[0017] Setting the status flag of the first storage unit in the electric energy meter to 1, so as to write the number of occurrences of the abnormal event into the status of the electric energy meter for recording; wherein the storage space occupied by the status flag of the first storage unit is 1 bit;

[0018] Writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter, and updating the data stored in the first storage space;

[0019] When the data stored in the first storage space is updated, the status flag of the first storage unit is set to 0.

[0020] Preferably, the electric energy meter is further provided with a sixth storage space which is redundant with the first storage space.

[0021] Preferably, the respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0022] Reading the status identifier stored in the status flag bit of the first storage unit;

[0023] If the state flag bit of the first storage unit is set to 0, the data recorded in the first storage space is read to obtain first read data, and the data recorded in the sixth storage space is read to obtain second read data;

[0024] verifying the first read data and the second read data;

[0025] If both the first read data and the second read data pass verification, determining the number of occurrences of the abnormal event according to the first read data to obtain a first read number, and determining the number of occurrences of the abnormal event according to the second read data to obtain a second read number;

[0026] Determine whether the first reading number and the second reading number are equal;

[0027] If yes, determining the first reading number or the second reading number as the actual occurrence number of the abnormal event;

[0028] If not, the maximum value between the first reading number and the second reading number is selected to obtain a target reading number, and the target reading number is determined as the actual number of occurrences of the abnormal event.

[0029] Preferably, the respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0030] Reading the status identifier stored in the status flag bit of the first storage unit;

[0031] If the status flag of the first storage unit is set to 1, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has not been fully recorded, the record information corresponding to the abnormal event is restored based on the data recorded when the electric energy meter is powered on again.

[0032] Preferably, the respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0033] Reading the status identifier stored in the status flag bit of the first storage unit;

[0034] If the status flag of the first storage unit is set to 0, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has been completely recorded, it is determined that the record information of the abnormal event is lost.

[0035] In order to solve the above technical problems, the present invention also provides a management device for abnormal events of an electric energy meter, comprising:

[0036] An information monitoring module, used to monitor the operating status of the electric energy meter in real time to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter;

[0037] An event judgment module, for judging whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information when the electric energy meter is detected to be powered off;

[0038] An event recording module, which is used to, when the determination result of the event determination module is yes, respectively use a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter;

[0039] The event recovery module is used to read the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter respectively when the electric energy meter is powered on again, so as to recover the information corresponding to the abnormal event.

[0040] In order to solve the above technical problem, the present invention further provides an electronic device, comprising:

[0041] Memory for storing computer programs;

[0042] The processor is used to implement the steps of the method for managing abnormal events of an electric energy meter as disclosed above when executing the computer program.

[0043] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for managing abnormal events of an electric energy meter as disclosed above are implemented.

[0044] Beneficial effect: In the management method of abnormal events of the electric energy meter provided by the present invention, first, the operating status of the electric energy meter is monitored in real time to obtain target monitoring information; wherein, the electric energy meter is a passive electric energy meter; when it is monitored that the electric energy meter loses power, it is determined whether an abnormal event occurs during the operation of the electric energy meter based on the target monitoring information; if so, a 1-bit storage unit in the electric energy meter is used to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the status of the electric energy meter, and the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event are written into the storage space of the electric energy meter; when the electric energy meter is powered on again, the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter are read respectively to restore the information corresponding to the abnormal event.

[0045] Compared with the prior art, in the present invention, according to the importance of key information in the abnormal event in the electric energy meter, the complete information of the abnormal event is divided into five parts: the number of occurrences, the time of occurrence, the event occurrence information, the end time and the event end information. When the electric energy meter loses power, the number of occurrences, the time of occurrence, the event occurrence information, the end time and the event end information of the abnormal event are recorded in the state of the electric energy meter using a 1-bit storage unit in the electric energy meter, and the number of occurrences, the time of occurrence, the event occurrence information, the end time and the event end information of the abnormal event are written into the storage space of the electric energy meter. Obviously, because it takes less time to record a few bits of data than to record the complete information corresponding to the abnormal event, the method can store each part of the key information in the abnormal event in the electric energy meter in turn according to the importance of the key information in the abnormal event, and the method also records the state of each part of the key information in the abnormal event being written into the electric energy meter, so that the electric energy meter can store more useful information in a limited time when the power failure occurs. In addition, when the electric energy meter is powered on again, each storage unit and each part of the information recorded in the electric energy meter storage space are read respectively to restore the complete information corresponding to the abnormal event. In this case, the status information recorded in each storage unit can be used to determine whether each part of the information written to the electric energy meter storage space is complete and accurate, so that the problem of garbled information and errors can be avoided in the process of restoring the information corresponding to the abnormal event.

[0046] Correspondingly, the management device, equipment and medium for abnormal events of electric energy meters provided by the present invention also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0048] Figure 1 A flow chart of a method for managing abnormal events of an electric energy meter provided by an embodiment of the present invention;

[0049] Figure 2 A flow chart for recording abnormal events in an electric energy meter provided by an embodiment of the present invention;

[0050] Figure 3 A structural diagram of a management device for abnormal events of an electric energy meter provided by an embodiment of the present invention;

[0051] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] See also Figure 1 , Figure 1 A flow chart of a method for managing abnormal events of an electric energy meter provided by an embodiment of the present invention, the method comprising:

[0054] Step S11: monitor the operating status of the electric energy meter in real time to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter;

[0055] Step S12: when it is detected that the electric energy meter loses power, it is determined whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information; if so, step S13 is executed;

[0056] Step S13: using a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter;

[0057] Step S14: when the electric energy meter is powered on again, the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter is read respectively to restore the information corresponding to the abnormal event.

[0058] In this embodiment, a method for managing abnormal events of an electric energy meter is provided. This method can not only accurately record the information corresponding to the electric energy meter when an abnormal event occurs, but also avoid the problems of garbled information and errors that occur during the recovery process of the abnormal event.

[0059] The method is described with the processor in the electric energy meter as the execution subject. In this embodiment, the electric energy meter refers to a passive electric energy meter, that is, the electric energy meter does not contain a power supply. In the method, the operating state of the electric energy meter is first monitored in real time to obtain target monitoring information. Because the target monitoring information contains various operating state information of the electric energy meter, the operating state of the electric energy meter and whether the electric energy meter encounters an abnormal event can be determined based on the target monitoring information.

[0060] When power failure is detected in the electric energy meter, if it is determined that an abnormal event has occurred in the electric energy meter based on the target monitoring information, the 1-bit storage unit in the electric energy meter can be used to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the status of the electric energy meter, and the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event can be written into the storage space of the electric energy meter.

[0061] The event occurrence information refers to the information corresponding to the energy meter when an abnormal event occurs, such as the voltage information, current information, power information, and operating condition information corresponding to the energy meter when the abnormal event occurs. The event end information refers to the information corresponding to the energy meter when the abnormal event ends, such as the voltage information, current information, power information, and operating condition information corresponding to the energy meter when the abnormal event ends.

[0062] It should be noted that when the electric energy meter loses power, the electric energy meter will record the relevant information of the abnormal event according to the following steps. That is, step 1: the processor will use a 1-bit storage unit to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and then write the number of occurrences of the abnormal event into the storage space of the electric energy meter; step 2: the processor will use a 1-bit storage unit to record the occurrence time of the abnormal event and write it into the state of the electric energy meter, and then write the occurrence time of the abnormal event into the storage space of the electric energy meter; step 3: the processor will use a 1-bit storage unit to record the event occurrence information of the abnormal event and write it into the state of the electric energy meter, and then write the event occurrence information of the abnormal event into the storage space of the electric energy meter; step 4: the processor will use a 1-bit storage unit to record the end time of the abnormal event and write it into the state of the electric energy meter, and then write the end time of the abnormal event into the storage space of the electric energy meter; step 5: the processor will use a 1-bit storage unit to record the event end information of the abnormal event and write it into the state of the electric energy meter, and then write the event end information of the abnormal event into the storage space of the electric energy meter.

[0063] In addition, it should be noted that when the processor executes the above steps, the power stored in the electric energy meter may be exhausted. In this case, if the processor has just completed step 1 and has not yet executed step 2, the processor will not execute step 2 and its subsequent process steps.

[0064] It is understandable that because it takes less time to record a few bits of data than to record the data corresponding to the entire abnormal event, the method can accurately record the number of occurrences, occurrence time, event occurrence information, end time, and event end information corresponding to the abnormal event into the state of the electric energy meter. At the same time, in the process of recording the information related to the abnormal event, the state of writing the number of abnormal event occurrences into the electric energy meter is put first, so that the most important and critical information in the abnormal event can be stored in the electric energy meter, thereby ensuring the accuracy and reliability of the recorded information.

[0065] When the electric energy meter is powered on again, the processor will read the information recorded in each storage unit and the storage space of the electric energy meter respectively, and will recover the information corresponding to the abnormal event based on the read information. Through this data recovery method, the status information recorded in each storage unit can be used to determine whether the information written to the storage space of the electric energy meter is complete and accurate, so that the problem of garbled information and errors can be avoided in the process of recovering abnormal events.

[0066] In addition, when the method is used to recover abnormal events in the electric energy meter, it not only effectively solves the problems of garbled information and errors that occur when recovering abnormal events in the prior art, but also does not increase the cost required to recover abnormal events in the electric energy meter.

[0067] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. Figure 2 , Figure 2 A flowchart for recording abnormal events in an electric energy meter provided by an embodiment of the present invention. As a preferred implementation, the above steps: using a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time, and event end information of abnormal events and write them into the state of the electric energy meter, and writing the number of occurrences, occurrence time, event occurrence information, end time, and event end information of abnormal events into the storage space of the electric energy meter, include:

[0068] Step S101: using the first storage unit in the electric energy meter to record the number of occurrences of abnormal events and write them into the state of the electric energy meter, and writing the number of occurrences of abnormal events into the first storage space of the electric energy meter;

[0069] Step S102: using the second storage unit in the electric energy meter to record the occurrence time of the abnormal event and write it into the state of the electric energy meter, and write the occurrence time of the abnormal event into the second storage space of the electric energy meter;

[0070] Step S103: using the third storage unit in the electric energy meter to record the event occurrence information of the abnormal event and write it into the state of the electric energy meter, and writing the event occurrence information of the abnormal event into the third storage space of the electric energy meter;

[0071] Step S104: determine whether the abnormal event is a delay event; if so, continue to execute steps S105 to S106; if not, end the process;

[0072] Step S105: using the fourth storage unit in the electric energy meter to record the end time of the abnormal event and write it into the state of the electric energy meter, and writing the end time of the abnormal event into the fourth storage space of the electric energy meter;

[0073] Step S106: Use the fifth storage unit in the electric energy meter to record the event end information of the abnormal event and write it into the status of the electric energy meter, and write the event end information of the abnormal event into the fifth storage space of the electric energy meter; wherein the storage space occupied by the first storage unit, the second storage unit, the third storage unit, the fourth storage unit and the fifth storage unit is 1 bit.

[0074] In this embodiment, the recording process of abnormal events in the electric energy meter is specifically described. Among them, the delayed event refers to the event that the electric energy meter has an abnormal situation and takes a long time to complete, not instantaneously, and will last for a period of time, such as: the overcurrent event, overvoltage event, and overpower event encountered by the electric energy meter. The non-delayed event refers to the event that the electric energy meter has an abnormal situation and is completed instantly, such as: the power failure event of the electric energy meter, etc.

[0075] It should be noted that when a non-delayed event occurs in the electric energy meter, the abnormal situation of the electric energy meter is completed in an instant. At this time, the occurrence time and end time of the abnormal event are the same, and the event occurrence information and event end information of the abnormal event are the same. In this case, when the processor records the relevant information of the abnormal event, it can either execute steps S101 to S103 in sequence; it can also execute steps S101, S102 and S106 in sequence; it can also execute steps 101, S104 and S105 in sequence.

[0076] Through the above process steps, the key information of each part of the abnormal event can be recorded in the electric energy meter in order of priority of the key information in the abnormal event, thereby accurately recording the relevant information when the electric energy meter has an abnormal event during power failure.

[0077] Obviously, the technical solution provided by this embodiment can ensure the accuracy and reliability of recording information related to abnormal events.

[0078] As a preferred implementation, the above step of using the first storage unit in the electric energy meter to record the number of occurrences of abnormal events and write them into the state of the electric energy meter, and writing the number of occurrences of abnormal events into the first storage space of the electric energy meter includes:

[0079] The state flag bit of the first storage unit in the electric energy meter is set to 1, so as to write the number of occurrences of abnormal events into the state of the electric energy meter for recording; wherein the storage space occupied by the state flag bit of the first storage unit is 1 bit;

[0080] Writing the number of occurrences of abnormal events into the first storage space of the electric energy meter, and updating the data stored in the first storage space;

[0081] When the data stored in the first storage space is updated, the status flag of the first storage unit is set to 0.

[0082] When recording the number of occurrences of abnormal events, the state flag of the first storage unit in the electric energy meter is first set to 1. The purpose of this operation is to use the state flag of the first storage unit to identify the number of occurrences of abnormal events and write it into the state of the electric energy meter.

[0083] When the status flag position of the first storage unit in the electric energy meter is set to 1, the number of occurrences of the abnormal event is written into the first storage space of the electric energy meter, and the data stored in the first storage space is updated. When the data stored in the first storage space is updated, the status flag position of the first storage unit is set to 0, so as to wait for the next abnormal event to be triggered.

[0084] Of course, here we only use the example of the processor recording the number of occurrences of abnormal events. According to the same method, the occurrence time, event occurrence information, end time and event end information of the abnormal event can be written into the status of the electric energy meter, and the occurrence time, event occurrence information, end time and event end information of the abnormal event can be written into the storage space of the electric energy meter for recording. I will not go into details here.

[0085] Obviously, through the method provided in this embodiment, the number of occurrences of abnormal events of the electric energy meter can be accurately recorded.

[0086] As a preferred implementation, the electric energy meter is further provided with a sixth storage space which is redundant with the first storage space.

[0087] Since the number of occurrences of abnormal events is the most critical information in the information related to abnormal events compared to other information of abnormal events, in order to ensure the accuracy and reliability of the recovery result when recovering the abnormal events, a sixth storage space that is redundant with the first storage space can also be set in the electric energy meter. That is, the sixth storage space is used to record the number of occurrences of abnormal events.

[0088] As a preferred implementation, the above step of respectively reading the information recorded in each storage unit and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0089] Reading the state identifier stored in the state flag bit of the first storage unit;

[0090] If the status flag bit of the first storage unit is set to 0, the data recorded in the first storage space is read to obtain the first read data, and the data recorded in the sixth storage space is read to obtain the second read data;

[0091] Verifying the first read data and the second read data;

[0092] If both the first read data and the second read data pass verification, determining the number of occurrences of the abnormal event according to the first read data to obtain a first read number, and determining the number of occurrences of the abnormal event according to the second read data to obtain a second read number;

[0093] Determine whether the first reading number and the second reading number are equal;

[0094] If yes, the first reading number or the second reading number is determined as the actual number of occurrences of the abnormal event;

[0095] If not, the maximum value of the first reading number and the second reading number is selected to obtain the target reading number, and the target reading number is determined as the actual number of occurrences of the abnormal event.

[0096] In the process of recovering the number of occurrences of abnormal events, the status identifier stored in the status flag of the first storage unit can be read first. If the status flag of the first storage unit is set to 0, it means that the data stored in the first storage space and the sixth storage space are complete. At this time, the data recorded in the first storage space and the sixth storage space are read respectively to obtain the first read data and the second read data.

[0097] Then, the first read data and the second read data are verified. If the first read data and the second read data pass the verification, it means that the first read data and the second read data have not been tampered with or missing. At this time, the number of occurrences of the abnormal event is determined based on the first read data and the second read data, respectively, to obtain the first read number and the second read number.

[0098] Afterwards, it is determined whether the first reading number and the second reading number are equal. If the first reading number and the second reading number are equal, the first reading number or the second reading number is determined as the actual number of occurrences of the abnormal event. If the first reading number and the second reading number are not equal, it means that one of the mutually redundant first storage space and the sixth storage space does not record the complete information of the number of occurrences of the abnormal event. At this time, the maximum value of the first reading number and the second reading number is determined as the actual number of occurrences of the abnormal event.

[0099] Obviously, through the technical solution provided in this embodiment, the number of occurrences of abnormal events can be accurately restored.

[0100] As a preferred implementation, the above step of respectively reading the information recorded in each storage unit and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0101] Reading the state identifier stored in the state flag bit of the first storage unit;

[0102] If the status flag of the first storage unit is set to 1, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has not been fully recorded, the record information corresponding to the abnormal event is restored based on the data recorded when the electric energy meter is powered on again.

[0103] In the process of recovering the information corresponding to the abnormal event, if it is found that the status flag of the first storage unit is set to 1, and the data written in the first storage space is not fully recorded, it means that the first storage unit has completed recording the status of writing the number of abnormal event occurrences into the electric energy meter, but the first storage space has not had time to fully record the number of abnormal event occurrences.

[0104] In this case, it is necessary to retain the status identifier stored in the status flag bit in the first storage unit, and restore the record information of the abnormal event according to the data recorded when the electric energy meter is powered on again.

[0105] Obviously, through the technical solution provided by this embodiment, the relevant information of the abnormal event can be accurately restored.

[0106] As a preferred implementation, the above step of respectively reading the information recorded in each storage unit and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes:

[0107] Reading the state identifier stored in the state flag bit of the first storage unit;

[0108] If the status flag of the first storage unit is set to 0, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has been completely recorded, it is determined that the record information of the abnormal event is lost.

[0109] In the process of recovering the information of abnormal events, if it is found that the status flag of the first storage unit is set to 0, and it is determined based on the data recorded in the first storage space that the number of occurrences of abnormal events has been completely recorded, it means that the number of occurrences of abnormal events recorded in the first storage space is the number of occurrences corresponding to the last abnormal event that occurred in the electric energy meter, and the number of occurrences of the latest abnormal event is written to the state of the electric energy meter but not stored in the first storage unit, and the time of occurrence of the latest abnormal event is not written into the first storage space of the electric energy meter. In this case, it is determined that the recorded information of the abnormal event is lost. That is, the electric energy meter does not record the latest abnormal event when the power is off.

[0110] Obviously, the technical solution provided in this embodiment can ensure the accuracy and reliability when recovering from abnormal events in the electric energy meter.

[0111] See also Figure 3 , Figure 3 A structural diagram of a management device for abnormal events of an electric energy meter provided by an embodiment of the present invention, the device comprising:

[0112] The information monitoring module 21 is used to monitor the operating status of the electric energy meter in real time to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter;

[0113] An event judgment module 22 is used to judge whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information when the electric energy meter is detected to be powered off;

[0114] An event recording module 23 is used for, when the determination result of the event determination module is yes, using a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter;

[0115] The event recovery module 24 is used to read the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter respectively when the electric energy meter is powered on again, so as to recover the information corresponding to the abnormal event.

[0116] Preferably, the event recording module includes:

[0117] The first execution submodule is used to execute step S101: using the first storage unit in the electric energy meter to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and write the number of occurrences of the abnormal event into the first storage space of the electric energy meter;

[0118] The second execution submodule is used to execute step S102: using the second storage unit in the electric energy meter to record the occurrence time of the abnormal event and write it into the state of the electric energy meter, and write the occurrence time of the abnormal event into the second storage space of the electric energy meter;

[0119] A third execution submodule is used to execute step S103: using a third storage unit in the electric energy meter to record the event occurrence information of the abnormal event and write it into the state of the electric energy meter, and write the event occurrence information of the abnormal event into the third storage space of the electric energy meter;

[0120] The event judgment submodule is used to execute step S104: determine whether the abnormal event is a delay event; if so, continue to execute steps S105 to S106; if not, end the process;

[0121] The fourth execution submodule is used to execute step S105: using the fourth storage unit in the electric energy meter to record the end time of the abnormal event and write it into the state of the electric energy meter, and write the end time of the abnormal event into the fourth storage space of the electric energy meter;

[0122] The fifth execution submodule is used for step S106: using the fifth storage unit in the electric energy meter to record the event end information of the abnormal event and write it into the state of the electric energy meter, and writing the event end information of the abnormal event into the fifth storage space of the electric energy meter; wherein the storage space occupied by the first storage unit, the second storage unit, the third storage unit, the fourth storage unit and the fifth storage unit is 1 bit.

[0123] Preferably, the first execution submodule includes:

[0124] A status flag unit, used to set the status flag bit of the first storage unit in the electric energy meter to 1, so as to write the number of occurrences of the abnormal event into the status of the electric energy meter for recording; wherein the storage space occupied by the status flag bit of the first storage unit is 1 bit;

[0125] a data updating unit, configured to write the number of occurrences of the abnormal event into the first storage space of the electric energy meter and update the data stored in the first storage space;

[0126] The flag is set as a unit, and is used to set the status flag position of the first storage unit to 0 when the data stored in the first storage space is updated.

[0127] Preferably, the event recovery module 24 includes:

[0128] An identification reading submodule, used for reading the status identification stored in the status flag bit of the first storage unit;

[0129] a data reading submodule, configured to read the data recorded in the first storage space to obtain first read data if the status flag bit of the first storage unit is set to 0, and read the data recorded in the sixth storage space to obtain second read data;

[0130] A data verification submodule, used for verifying the first read data and the second read data;

[0131] a data determination submodule, configured to determine the number of occurrences of the abnormal event according to the first read data to obtain a first read number, and to determine the number of occurrences of the abnormal event according to the second read data to obtain a second read number if both the first read data and the second read data pass verification;

[0132] A times determination submodule, used to determine whether the first reading times and the second reading times are equal;

[0133] A first determination submodule, configured to determine the first reading number or the second reading number as the actual number of occurrences of the abnormal event when the determination result of the number determination submodule is yes;

[0134] The second determination submodule is used to select the maximum value of the first reading number and the second reading number to obtain a target reading number when the determination result of the number determination submodule is no, and determine the target reading number as the actual number of occurrences of the abnormal event.

[0135] Preferably, the event recovery module 24 includes:

[0136] A status reading submodule, used for reading the status identifier stored in the status flag bit of the first storage unit;

[0137] An information recovery submodule is used to recover the recorded information corresponding to the abnormal event according to the data recorded by the electric energy meter when it is powered on again if the status flag of the first storage unit is set to 1 and it is determined according to the data recorded in the first storage space that the number of occurrences of the abnormal event has not been fully recorded.

[0138] Preferably, the event recovery module 24 includes:

[0139] A data reading submodule, used for reading the status identifier stored in the status flag bit of the first storage unit;

[0140] The information determination submodule is used to determine that the recorded information of the abnormal event is lost if the status flag of the first storage unit is set to 0 and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has been completely recorded.

[0141] An abnormal event management device for an electric energy meter provided in an embodiment of the present invention has the beneficial effects of the abnormal event management method for an electric energy meter disclosed above.

[0142] See also Figure 4 , Figure 4 A structural diagram of an electronic device provided by an embodiment of the present invention, the electronic device comprising:

[0143] A memory 31, used for storing computer programs;

[0144] The processor 32 is used to implement the steps of the method for managing abnormal events of an electric energy meter as disclosed above when executing the computer program.

[0145] An electronic device provided by an embodiment of the present invention has the beneficial effects of the aforementioned method for managing abnormal events of an electric energy meter.

[0146] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for managing abnormal events of an electric energy meter as disclosed above are implemented.

[0147] A computer-readable storage medium provided in an embodiment of the present invention has the beneficial effects of the aforementioned method for managing abnormal events of an electric energy meter.

[0148] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0149] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0150] The above is a detailed introduction to the management method, device, equipment and medium for abnormal events of an electric energy meter provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for managing abnormal events of electric energy meters, characterized in that: include: Performing real-time monitoring on the operating status of the electric energy meter to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter; When it is detected that the electric energy meter loses power, it is determined whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information; If so, use a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter; When the electric energy meter is powered on again, the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter is read respectively to restore the information corresponding to the abnormal event.

2. A method for managing abnormal events of electric energy meters according to claim 1, characterized in that: The method of using a 1-bit storage unit in the electric energy meter to record the number of occurrences, the time of occurrence, the event occurrence information, the end time, and the event end information of the abnormal event and writing them into the state of the electric energy meter, and writing the number of occurrences, the time of occurrence, the event occurrence information, the end time, and the event end information of the abnormal event into the storage space of the electric energy meter includes: Step S101: using the first storage unit in the electric energy meter to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter; Step S102: using the second storage unit in the electric energy meter to record the occurrence time of the abnormal event and write it into the state of the electric energy meter, and write the occurrence time of the abnormal event into the second storage space of the electric energy meter; Step S103: using the third storage unit in the electric energy meter to record the event occurrence information of the abnormal event and write it into the state of the electric energy meter, and writing the event occurrence information of the abnormal event into the third storage space of the electric energy meter; Step S104: determine whether the abnormal event is a delay event; if so, continue to execute steps S105 to S106; if not, end the process; Step S105: using the fourth storage unit in the electric energy meter to record the end time of the abnormal event and write it into the state of the electric energy meter, and writing the end time of the abnormal event into the fourth storage space of the electric energy meter; Step S106: Use the fifth storage unit in the electric energy meter to record the event end information of the abnormal event and write it into the state of the electric energy meter, and write the event end information of the abnormal event into the fifth storage space of the electric energy meter; wherein the storage space occupied by the first storage unit, the second storage unit, the third storage unit, the fourth storage unit and the fifth storage unit is 1 bit.

3. A method for managing abnormal events of electric energy meters according to claim 2, characterized in that: The method of using the first storage unit in the electric energy meter to record the number of occurrences of the abnormal event and write it into the state of the electric energy meter, and writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter, comprises: Setting the status flag of the first storage unit in the electric energy meter to 1, so as to write the number of occurrences of the abnormal event into the status of the electric energy meter for recording; wherein the storage space occupied by the status flag of the first storage unit is 1 bit; Writing the number of occurrences of the abnormal event into the first storage space of the electric energy meter, and updating the data stored in the first storage space; When the data stored in the first storage space is updated, the status flag of the first storage unit is set to 0.

4. A method for managing abnormal events of electric energy meters according to claim 3, characterized in that: The electric energy meter is also provided with a sixth storage space which is redundant with the first storage space.

5. A method for managing abnormal events of electric energy meters according to claim 4, characterized in that: The step of respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes: Reading the status identifier stored in the status flag bit of the first storage unit; If the state flag bit of the first storage unit is set to 0, the data recorded in the first storage space is read to obtain first read data, and the data recorded in the sixth storage space is read to obtain second read data; verifying the first read data and the second read data; If both the first read data and the second read data pass verification, determining the number of occurrences of the abnormal event according to the first read data to obtain a first read number, and determining the number of occurrences of the abnormal event according to the second read data to obtain a second read number; Determining whether the first reading number is equal to the second reading number; If yes, determining the first reading number or the second reading number as the actual occurrence number of the abnormal event; If not, the maximum value between the first reading number and the second reading number is selected to obtain a target reading number, and the target reading number is determined as the actual number of occurrences of the abnormal event.

6. A method for managing abnormal events of electric energy meters according to claim 3, characterized in that: The step of respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes: Reading the status identifier stored in the status flag bit of the first storage unit; If the status flag of the first storage unit is set to 1, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has not been fully recorded, the record information corresponding to the abnormal event is restored based on the data recorded when the electric energy meter is powered on again.

7. A method for managing abnormal events of electric energy meters according to claim 3, characterized in that: The step of respectively reading the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter to restore the information corresponding to the abnormal event includes: Reading the status identifier stored in the status flag bit of the first storage unit; If the status flag of the first storage unit is set to 0, and it is determined based on the data recorded in the first storage space that the number of occurrences of the abnormal event has been completely recorded, it is determined that the record information of the abnormal event is lost.

8. A management device for abnormal events of electric energy meters, characterized in that: include: An information monitoring module, used to monitor the operating status of the electric energy meter in real time to obtain target monitoring information; wherein the electric energy meter is a passive electric energy meter; An event judgment module, for judging whether an abnormal event occurs during the operation of the electric energy meter according to the target monitoring information when the electric energy meter is detected to be powered off; An event recording module, which is used to, when the determination result of the event determination module is yes, respectively use a 1-bit storage unit in the electric energy meter to record the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event and write them into the state of the electric energy meter, and write the number of occurrences, occurrence time, event occurrence information, end time and event end information of the abnormal event into the storage space of the electric energy meter; The event recovery module is used to read the information recorded in each storage unit in the electric energy meter and the storage space of the electric energy meter respectively when the electric energy meter is powered on again, so as to recover the information corresponding to the abnormal event.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of a method for managing abnormal events of an electric energy meter as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for managing abnormal events of an electric energy meter as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Control device and control method of electronic equipment and advertisement putting equipment

    CN111487954A

  • Power failure monitoring method and device, electronic equipment and computer readable storage medium

    CN112256499A