CN116243234B - Power failure detection method and system of multimode assembled electric energy meter and electric energy meter - Google Patents

Power failure detection method and system of multimode assembled electric energy meter and electric energy meter Download PDF

Info

Publication number
CN116243234B
CN116243234B CN202310524666.6A CN202310524666A CN116243234B CN 116243234 B CN116243234 B CN 116243234B CN 202310524666 A CN202310524666 A CN 202310524666A CN 116243234 B CN116243234 B CN 116243234B
Authority
CN
China
Prior art keywords
energy meter
electric energy
value
power
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310524666.6A
Other languages
Chinese (zh)
Other versions
CN116243234A (en
Inventor
张权
陈贺
王强
李峥
白明
李伟
张辉
亢立进
郭红梅
李科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shijiazhuang Kelin Electric Co Ltd
Original Assignee
Shijiazhuang Kelin Electric Co Ltd
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 Shijiazhuang Kelin Electric Co Ltd filed Critical Shijiazhuang Kelin Electric Co Ltd
Priority to CN202310524666.6A priority Critical patent/CN116243234B/en
Publication of CN116243234A publication Critical patent/CN116243234A/en
Application granted granted Critical
Publication of CN116243234B publication Critical patent/CN116243234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention provides a power failure detection method and system of a multi-mode assembled electric energy meter and the electric energy meter. Therefore, the electric energy meter can store metering data of the electric energy meter by reading the power supply state value stored in the power-down register. Compared with an external detection mode of 12V and VCC-5V, the method can directly detect the power supply voltage of the electric energy meter, avoids the transmission flow of voltage signals in a control circuit of the electric energy meter, is earlier and faster in detection time, realizes power-down detection on a software program by detecting the power supply state value stored by the power-down register, is shorter in detection time consumption, and improves the power-down detection speed, so that quick detection and quick storage of the multi-module electric energy meter in power down are realized. In addition, the invention does not need to supply power to the electric energy meter through a rechargeable battery or a super capacitor, and reduces the manufacturing and maintenance cost of the electric energy meter.

Description

Power failure detection method and system of multimode assembled electric energy meter and electric energy meter
Technical Field
The invention relates to the technical field of power grids, in particular to a power failure detection method and system of a multi-mode assembled electric energy meter and the electric energy meter.
Background
The electric energy metering is used as the most basic function of the electric energy meter, and is one of the key work of the electric energy meter operation. When a sudden power outage is encountered or a power outage is required for a particular situation, these important data stores are lost if mishandled, causing a loss to the utility company. The design scheme of the current electric energy meter generally adopts a detection mode of detecting external power failure detection (12V) or VCC (5V).
Because the multi-module electric energy meter has complex functions, the processing process is more when power is lost. The scheme of external power failure detection is long in time consumption, and in order to avoid electric energy loss, the rechargeable battery or the super capacitor is used for supplying power to the electric energy meter at present to delay the power failure time for data storage. The method is simple and effective, but has high cost, and increases the manufacturing and maintenance cost of the electric energy meter.
Therefore, how to improve the power failure detection efficiency and the data storage speed of the multi-module electric energy meter and reduce the cost is needed to be solved.
Disclosure of Invention
The embodiment of the invention provides a power failure detection method and system of a multi-module electric energy meter and the electric energy meter, which can improve the power failure detection efficiency and data storage speed of the multi-module electric energy meter and reduce the cost.
In a first aspect, an embodiment of the present invention provides a power failure detection method of a multimode assembled electric energy meter, where the method includes: detecting the power supply voltage of the electric energy meter; determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register; the power supply state value is used for representing the power supply state of the electric energy meter, and the power supply state comprises a power-on state and a power-off state; and reading the power supply state value stored in the power-down register, and storing metering data of the electric energy meter based on the power supply state value stored in the power-down register.
In one possible implementation manner, the detecting the supply voltage of the electric energy meter includes: interrupting a main program of the electric energy meter according to a first period, running a first interrupt program of the electric energy meter after interruption, and detecting the power supply voltage of the electric energy meter; correspondingly, reading the power supply state value stored in the power-down register includes: interrupting a main program of the electric energy meter according to a second period, and operating a second interrupt program of the electric energy meter after the interruption to read a power supply state value stored in the power-down register; wherein the first period is less than the second period.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the determining a power supply state value based on the power supply voltage of the electric energy meter comprises the following steps: detecting whether the effective value of the phase voltage of each phase at the input end of the electric energy meter is smaller than a first threshold value; if the effective value of the phase voltage of any phase at the input end of the electric energy meter is smaller than a first threshold value, determining the power supply state value as the first value; and if the effective value of the phase voltage of each phase at the input end of the electric energy meter is larger than or equal to the first threshold value, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the determining a power supply state value based on the power supply voltage of the electric energy meter comprises the following steps: calculating the ratio of the instantaneous value to the maximum value of the phase voltage of each phase at the input end of the electric energy meter, and determining the calculated ratio as the phase value of the corresponding phase at the input end of the electric energy meter; if the phase value of any phase at the input end of the electric energy meter is smaller than the reference phase and the error between the electric energy meter and the reference phase is larger than the set error, starting timing to obtain timing time length when the error is larger than the set error; if the timing time is longer than the set time, determining that the power supply state value is the first value; and if the timing duration is smaller than or equal to the set duration, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value, the first value indicates that the power supply state of the electric energy meter is a power-down state, and the metering data of the electric energy meter includes current electric quantity data of the electric energy meter; the storing the metering data of the electric energy meter based on the power supply state value stored in the power-down register includes: if the power supply state value is the first value, reading electric quantity increment data and a check value stored in an electric quantity increment register; the electric quantity increment data is the metering electric quantity of the electric energy meter in the current metering period; based on the verification value, verifying the electric quantity increment data; if the verification is successful, acquiring an original electric quantity value of the electric energy meter before the current metering period; accumulating the electric quantity of the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data of the electric energy meter; and storing the current electric quantity data.
In one possible implementation manner, the verifying the power increment data based on the verification value further includes: if the verification fails, setting the electric quantity increment data in the electric quantity increment register to zero, and acquiring an original electric quantity value of the electric energy meter before the current metering period; taking the original value of the electric quantity before the current metering period as current electric quantity data of the electric energy meter; and storing the current electric quantity data.
In one possible implementation manner, the storing the metering data of the electric energy meter based on the power supply state value stored in the power-down register further includes: and if the power-on instruction of the electric energy meter is detected, a power-down register and an electric quantity increment register of the electric energy meter are cleared.
In a second aspect, an embodiment of the present invention provides a power failure detection system of a multimode assembled electric energy meter, including: the power failure detection unit is used for detecting the power supply voltage of the electric energy meter; determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register; the power supply state value is used for representing the power supply state of the electric energy meter, and the power supply state comprises a power-on state and a power-off state; and the processing module is used for reading the power supply state value stored in the power-down register and storing the metering data of the electric energy meter based on the power supply state value stored in the power-down register.
In one possible implementation, the processing module includes a data transmission unit and a data storage unit; the data transmission unit is used for reading the power supply state value stored in the power-down register, and if the power supply state value is a first value, reading the electric quantity increment data stored in the electric quantity increment register and the original electric quantity value stored in the data storage unit before the current metering period; based on the original electric quantity value and the electric quantity increment data, accumulating the electric quantity to generate current electric quantity data; transmitting the current electric quantity data to the data storage unit; the data storage unit is used for receiving the current electric quantity data sent by the data transmission unit and storing the current electric quantity data.
In one possible implementation manner, the power failure detection unit is specifically configured to interrupt a main program of the electric energy meter according to a first period, and detect a supply voltage of the electric energy meter after the interruption of the operation of a first interrupt program of the electric energy meter; correspondingly, the data transmission unit is specifically configured to interrupt the main program of the electric energy meter according to a second period, and read the power supply state value stored in the power failure register after running the second interrupt program of the electric energy meter after the interruption; wherein the first period is less than the second period.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the power failure detection unit is specifically used for detecting whether the effective value of the phase voltage of each phase at the input end of the electric energy meter is smaller than a first threshold value; if the effective value of the phase voltage of any phase at the input end of the electric energy meter is smaller than a first threshold value, determining the power supply state value as the first value; and if the effective value of the phase voltage of each phase at the input end of the electric energy meter is larger than or equal to the first threshold value, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the power failure detection unit is specifically used for calculating the ratio of the instantaneous value to the maximum value of the phase voltage of each phase at the input end of the electric energy meter, and determining the calculated ratio as the phase value of the corresponding phase at the input end of the electric energy meter; if the phase value of any phase at the input end of the electric energy meter is smaller than the reference phase and the error between the electric energy meter and the reference phase is larger than the set error, starting timing to obtain timing time length when the error is larger than the set error; if the timing time is longer than the set time, determining that the power supply state value is the first value; and if the timing duration is smaller than or equal to the set duration, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value, the first value indicates that the power supply state of the electric energy meter is a power-down state, and the metering data of the electric energy meter includes current electric quantity data of the electric energy meter; the processing module is specifically configured to read the electric quantity increment data and the check value stored in the electric quantity increment register if the power supply state value is the first value; the electric quantity increment data is the metering electric quantity of the electric energy meter in the current metering period; based on the verification value, verifying the electric quantity increment data; if the verification is successful, acquiring an original electric quantity value of the electric energy meter before the current metering period; accumulating the electric quantity of the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data of the electric energy meter; and storing the current electric quantity data.
In one possible implementation manner, the processing module is specifically configured to, if the verification fails, zero the electric quantity increment data in the electric quantity increment register, and obtain an original electric quantity value of the electric energy meter before a current metering period; taking the original value of the electric quantity before the current metering period as current electric quantity data of the electric energy meter; and storing the current electric quantity data.
In one possible implementation manner, the power-down detection unit is further configured to empty a power-down register and an electric quantity increment register of the electric energy meter if the power-up indication of the electric energy meter is detected.
In a third aspect, an embodiment of the present invention provides a multi-modular electric energy meter, the multi-modular electric energy meter comprising a memory storing a computer program and a processor for invoking and running the computer program stored in the memory to perform the steps of the method as described in the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to the first aspect and any one of the possible implementations of the first aspect.
The embodiment of the invention provides a power failure detection method and system of a multi-mode assembled electric energy meter and the electric energy meter. Therefore, the electric energy meter can store metering data of the electric energy meter by reading the power supply state value stored in the power-down register. On one hand, compared with a voltage detection mode of 12V and 5V, the embodiment of the invention can directly detect the power supply voltage of the electric energy meter, avoids the transmission flow of a voltage signal in a control circuit of the electric energy meter, has earlier and faster detection time, and on the other hand, compared with an external detection mode of VCC and the like, the embodiment of the invention realizes power-down detection on a software program by detecting the power supply state value stored by a power-down register, has shorter detection time and improves the power-down detection speed, thereby realizing quick detection and quick storage of the multi-module electric energy meter when power is lost. In addition, the embodiment of the invention does not need to supply power to the electric energy meter through a rechargeable battery or a super capacitor, and reduces the manufacturing and maintenance cost of the electric energy meter.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a power failure detection method of a multimode assembled electric energy meter provided by an embodiment of the invention;
fig. 2 is a schematic structural diagram of a power failure detection system of a multimode assembled electric energy meter according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electric energy meter according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In the description of the present application, "/" means "or" unless otherwise indicated, for example, A/B may mean A or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. Further, "at least one", "a plurality" means two or more. The terms "first," "second," and the like do not limit the number and order of execution, and the terms "first," "second," and the like do not necessarily differ.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules but may, alternatively, include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In the related art, the problem of long time consumption, low efficiency and low data storage speed exists in the power failure detection of the multi-mode assembled electric energy meter, and the problem of long detection time consumption is solved by adding a battery and a super capacitor, so that the cost of the electric energy meter is increased.
In order to solve the technical problem, the embodiment of the invention provides a power failure detection method of a multi-mode assembled electric energy meter, which is characterized in that a power failure register is arranged in the electric energy meter and is used for storing the power supply state of the electric energy meter, the external hardware detection mode of the 12V power supply and the VCC power supply for power failure detection is changed into an internal detection mode read by the register, so that the reading efficiency is improved, the power failure detection efficiency is improved, and the electric energy meter is not required to be powered by a rechargeable battery or a super capacitor, so that the manufacturing and maintenance cost of the electric energy meter is reduced.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made with reference to the accompanying drawings of the present invention by way of specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a power failure detection method of a multimode assembled electric energy meter. The security monitoring method comprises steps S101-S103.
S101, detecting the power supply voltage of the electric energy meter.
In some embodiments, the supply voltage of the electric energy meter may be the voltage at the input of the electric energy meter. For example, the effective value of the phase voltage at the input, or the instantaneous value of the phase voltage at the input. As another example, the line voltage at the input.
As a possible implementation manner, the embodiment of the application can detect the power supply voltage of the electric energy meter according to the main program of the power-off energy meter in the first period and the first interrupt program of the electric energy meter after the interruption.
S102, determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register.
In the embodiment of the application, the power supply state value is used for representing the power supply state of the electric energy meter. The power supply state includes a power-on state and a power-off state.
In some embodiments, the power state value may be a first value, or may also be a second value.
Illustratively, the first value represents a power down state and the second value represents a power up state. Alternatively, the first value represents a power-up state, or the second value represents a power-down state.
For example, the second value may be 220, and the first value may be 110, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state. The application is not limited.
In some embodiments, the power-down register is a register in the CPU of the electric energy meter, and is used for storing the power supply state of the electric energy meter.
As a possible implementation manner, the embodiment of the present application may analyze the effective value of the phase voltage in the power supply voltage, and further determine the power supply state value.
For example, taking the first value to represent that the power supply state of the electric energy meter is a power failure state as an example, in this embodiment, for any phase of the input end of the electric energy meter, whether the effective value of the phase voltage of each phase is smaller than a first threshold value may be detected, if the effective value of the phase voltage of any phase is smaller than the first threshold value, it is indicated that the electric energy meter fails.
Still further exemplary, the second value indicates that the power state of the electric energy meter is a power-on state. For any phase of the input end of the electric energy meter, if the effective value of the phase voltage of each phase is larger than or equal to a first threshold value, the electric energy meter is powered on, and the embodiment of the application can determine that the power supply state value is a second value. The first threshold is a positive value smaller than 220V, assuming that the rated value of the phase voltage of the electric energy meter is 220V. For example, the first threshold may be 110V or 120V, which is not limited by the present application.
Therefore, the embodiment of the application can judge whether the electric energy meter is powered down or not based on the effective value of the phase voltage of the input end of the electric energy meter. Compared with the detection mode of the external power supply of the control circuit, the voltage effective value judgment mode provided by the embodiment of the application has the advantages of shorter detection duration and higher detection efficiency.
As another possible implementation manner, the embodiment of the present invention may further analyze the instantaneous value of the phase voltage in the power supply voltage, and determine the power supply state value through steps A1-A4.
A1, for any phase at the input end of the electric energy meter, calculating the ratio of the instantaneous value to the maximum value of the phase voltage of each phase, and determining the calculated ratio as the phase value of the corresponding phase at the input end of the electric energy meter.
A2, if the absolute value of the phase value of any phase is smaller than the reference phase and the error between the phase value and the reference phase is larger than the set error, starting timing, and obtaining timing time length with the error larger than the set error.
In some embodiments, the reference phase may be a phase value of the input phase voltage when the power supply state of the electric energy meter is a power-up state, that is, when power is normally supplied.
It should be noted that, the absolute value of the phase value is smaller than the reference phase, the instantaneous value of the phase voltage representing the phase is smaller than the instantaneous value of the phase voltage in the normal power supply, and considering the problem of voltage fluctuation, the embodiment of the invention adopts a mode of comparing the error threshold value and the time length to count the situation. When the error between the phase value and the reference phase is larger than the set error and the timing duration is longer than the set duration, the phase voltage at the input end of the electric energy meter is powered down, and the power supply state value is determined to be a first value. The setting error and the setting duration may be set according to practical situations, where the setting error is greater than an error between the phase value and the reference phase caused by voltage fluctuation.
A3, if the timing time is longer than the set time, determining that the power supply state value is a first value.
And A4, otherwise, determining the power supply state value as a second value.
For example, if the time duration is less than or equal to the set time duration, the power supply state value is determined to be the second value.
Compared with the mode of judging whether the power is lost or not by the phase voltage effective value, the embodiment of the invention can judge whether the power is lost or not by the phase voltage instantaneous value, can determine the power supply state in a half period, and has shorter detection time and higher efficiency.
And S103, reading the power supply state value stored in the power-down register, and storing metering data of the electric energy meter based on the power supply state value stored in the power-down register.
As a possible implementation manner, the embodiment of the invention can interrupt the main program of the electric energy meter according to the second period, and operate the second interrupt program of the electric energy meter after the interruption to read the power supply state value stored in the power failure register.
Wherein, the first period is smaller than the second period, and the first period and the second period can be set according to actual conditions, and an exemplary first period can be 10ms. The second period may be 100ms.
As a possible implementation manner, the metering data of the electric energy meter may include current electric quantity data of the electric energy meter, and the embodiment of the invention may store the metering data of the electric energy meter through steps B1-B6.
And B1, if the power supply state value is a first value, reading the electric quantity increment data and the check value stored in the electric quantity increment register.
The electric quantity increment data are metering electric quantity of the electric energy meter in the current metering period.
And B2, checking the electric quantity increment data based on the check value.
And B3, if the verification is successful, acquiring an original electric quantity value before the current metering period.
And B4, accumulating the electric quantity based on the original electric quantity value and the electric quantity increment data to generate current electric quantity data.
By way of example, the embodiment of the invention can sum the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data.
And B5, storing current electric quantity data.
The embodiment of the invention can verify the current electric quantity data in the storage process, and store the current electric quantity data into the memory after the verification is successful.
If the verification fails, setting the electric quantity increment data to zero, and acquiring an original electric quantity value before the current metering period; and storing the original value of the electric quantity before the current metering period as current electric quantity data.
Therefore, the embodiment of the invention can verify and store the electric quantity data, thereby improving the accuracy of the electric quantity data and further improving the accuracy of the metering of the electric energy meter.
The embodiment of the invention provides a power failure detection method of a multimode assembled electric energy meter. Therefore, the electric energy meter can store metering data of the electric energy meter by reading the power supply state value stored in the power-down register. On the one hand, compared with a voltage detection mode of 12V and 5V, the method can directly detect the power supply voltage of the electric energy meter, avoids the transmission flow of voltage signals in a control circuit of the electric energy meter, and is faster in detection time; on the other hand, compared with external detection modes such as VCC, the power supply state value stored by the power-down register is detected, so that the power-down detection on the software program is realized, the detection time is shorter, the power-down detection speed is improved, and the rapid detection and the rapid storage of the multi-module electric energy meter during power down are realized. In addition, the embodiment of the invention does not need to supply power to the electric energy meter through a rechargeable battery or a super capacitor, and reduces the manufacturing and maintenance cost of the electric energy meter.
As a possible implementation manner, after step S103, if a power-up instruction of the electric energy meter is detected, the embodiment of the present invention may further empty a power-down register and an increment register of the electric energy meter. Therefore, after power-on, the power-down register and the increment register of the electric energy meter are emptied, and the influence of data before power-down on metering data after power-on is avoided.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 2 shows a schematic structural diagram of a power failure detection system of a multimode assembled electric energy meter according to an embodiment of the present invention. The power down detection system 200 includes a power down detection unit 201 and a processing module 202.
A power failure detection unit 201, configured to detect a supply voltage of the electric energy meter; determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register; the power supply state value is used for representing the power supply state of the electric energy meter, and the power supply state comprises a power-on state and a power-off state.
The processing module 202 is configured to read the power supply status value stored in the power-down register, and store the metering data of the electric energy meter based on the power supply status value stored in the power-down register.
In one possible implementation, the processing module 202 includes a data transmission unit 2021 and a data storage unit 2022; the data transmission unit 2021 is configured to read a power supply status value stored in the power-down register, and if the power supply status value is a first value, read power increment data stored in the power increment register, and an original power value stored in the data storage unit before a current metering period; based on the original electric quantity value and the electric quantity increment data, accumulating the electric quantity to generate current electric quantity data; transmitting the current electric quantity data to the data storage unit; the data storage unit 2022 is configured to receive the current power data sent by the data transmission unit, and store the current power data.
In one possible implementation manner, the power failure detection unit 201 is specifically configured to interrupt a main program of the electric energy meter according to a first period, and detect a supply voltage of the electric energy meter after running a first interrupt program of the electric energy meter after the interruption; correspondingly, the data transmission unit 2021 is specifically configured to interrupt the main program of the electric energy meter according to a second period, and read the power supply status value stored in the power failure register after running the second interrupt program of the electric energy meter after the interruption; wherein the first period is less than the second period.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the power failure detection unit 201 is specifically configured to detect whether an effective value of a phase voltage of each phase at an input end of the electric energy meter is smaller than a first threshold; if the effective value of the phase voltage of any phase at the input end of the electric energy meter is smaller than a first threshold value, determining the power supply state value as the first value; and if the effective value of the phase voltage of each phase at the input end of the electric energy meter is larger than or equal to the first threshold value, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value and a second value, where the first value indicates that the power supply state of the electric energy meter is a power-down state, and the second value indicates that the power supply state of the electric energy meter is a power-up state; the power failure detection unit 201 is specifically configured to calculate a ratio of an instantaneous value to a maximum value of a phase voltage of each phase at an input end of the electric energy meter, and determine the calculated ratio as a phase value of the corresponding phase at the input end of the electric energy meter; if the phase value of any phase at the input end of the electric energy meter is smaller than the reference phase and the error between the electric energy meter and the reference phase is larger than the set error, starting timing to obtain timing time length when the error is larger than the set error; if the timing time is longer than the set time, determining that the power supply state value is the first value; and if the timing duration is smaller than or equal to the set duration, determining the power supply state value as the second value.
In one possible implementation manner, the power supply state value includes a first value, the first value indicates that the power supply state of the electric energy meter is a power-down state, and the metering data of the electric energy meter includes current electric quantity data of the electric energy meter; the processing module 202 is specifically configured to read the power increment data and the check value stored in the power increment register if the power supply status value is the first value; the electric quantity increment data is the metering electric quantity of the electric energy meter in the current metering period; based on the verification value, verifying the electric quantity increment data; if the verification is successful, acquiring an original electric quantity value of the electric energy meter before the current metering period; accumulating the electric quantity of the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data of the electric energy meter; and storing the current electric quantity data.
The data transmission unit 2021 is specifically configured to read the power increment data and the check value stored in the power increment register if the power status value is the first value; the electric quantity increment data is the metering electric quantity of the electric energy meter in the current metering period; based on the verification value, verifying the electric quantity increment data; if the verification is successful, acquiring an original electric quantity value of the electric energy meter before the current metering period; accumulating the electric quantity of the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data of the electric energy meter; and transmits the current power data to the data storage unit 2022. The data storage unit 2022 is specifically configured to receive the current power data sent by the data transmission unit 2021, and store the current power data.
In one possible implementation manner, the processing module 202 is specifically configured to, if the verification fails, zero the electric quantity increment data in the electric quantity increment register, and obtain an original electric quantity value of the electric energy meter before a current metering period; taking the original value of the electric quantity before the current metering period as current electric quantity data of the electric energy meter; and storing the current electric quantity data.
The data transmission unit 2021 is specifically configured to, if the verification fails, zero the power increment data in the power increment register, and obtain a power original value of the electric energy meter before a current metering period; taking the original value of the electric quantity before the current metering period as current electric quantity data of the electric energy meter; and transmits the current power data to the data storage unit 2022. The data storage unit 2022 is specifically configured to receive the current power data sent by the data transmission unit 2021, and store the current power data.
In one possible implementation manner, the power-down detection unit is further configured to empty a power-down register and an electric quantity increment register of the electric energy meter if the power-up indication of the electric energy meter is detected.
Fig. 3 is a schematic structural diagram of an electric energy meter according to an embodiment of the present invention. As shown in fig. 3, the electric energy meter 300 of this embodiment includes: a processor 301, a memory 302 and a computer program 303 stored in said memory 302 and executable on said processor 301. The steps of the method embodiments described above, such as steps S101-S103 shown in fig. 1, are implemented when the processor 301 executes the computer program 303. Alternatively, the processor 301 may implement the functions of the modules/units in the above-described device embodiments when executing the computer program 303, for example, the functions of the power failure detection unit 201 and the processing module 202 shown in fig. 2.
Illustratively, the computer program 303 may be partitioned into one or more modules/units that are stored in the memory 302 and executed by the processor 301 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program 303 in the electric energy meter 300. For example, the computer program 303 may be divided into the power down detection unit 201 and the processing module 202 shown in fig. 2.
The processor 301 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 302 may be an internal storage unit of the electric energy meter 300, such as a hard disk or a memory of the electric energy meter 300. The memory 302 may also be an external storage device of the electric energy meter 300, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electric energy meter 300. Further, the memory 302 may also include both an internal memory unit and an external memory device of the electric energy meter 300. The memory 302 is used for storing the computer program as well as other programs and data required by the terminal. The memory 302 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. The power failure detection method of the multimode assembled electric energy meter is characterized by comprising the following steps of:
interrupting a main program of the electric energy meter according to a first period, running a first interrupt program of the electric energy meter after interruption, and detecting the power supply voltage of the electric energy meter;
determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register; the power supply state value comprises a first value and a second value, wherein the first value represents that the power supply state of the electric energy meter is a power-down state, and the second value represents that the power supply state of the electric energy meter is a power-up state;
Interrupting a main program of the electric energy meter according to a second period, running the second interrupt program of the electric energy meter after interruption, reading a power supply state value stored in the power-down register, and storing metering data of the electric energy meter based on the power supply state value stored in the power-down register, wherein the first period is smaller than the second period;
the determining a power supply state value based on the power supply voltage of the electric energy meter comprises the following steps: calculating the ratio of the instantaneous value to the maximum value of the phase voltage of each phase at the input end of the electric energy meter, and determining the calculated ratio as the phase value of the corresponding phase at the input end of the electric energy meter; if the phase value of any phase at the input end of the electric energy meter is smaller than the reference phase and the error between the electric energy meter and the reference phase is larger than the set error, starting timing to obtain timing time length when the error is larger than the set error; if the timing time is longer than the set time, determining that the power supply state value is the first value; and if the timing duration is smaller than or equal to the set duration, determining the power supply state value as the second value.
2. The power failure detection method of a multi-module electric energy meter according to claim 1, wherein the power supply state value includes a first value, the first value indicates that the power supply state of the electric energy meter is a power failure state, and the metering data of the electric energy meter includes current electric quantity data of the electric energy meter;
The storing the metering data of the electric energy meter based on the power supply state value stored in the power-down register includes:
if the power supply state value is the first value, reading electric quantity increment data and a check value stored in an electric quantity increment register; the electric quantity increment data is the metering electric quantity of the electric energy meter in the current metering period;
based on the verification value, verifying the electric quantity increment data;
if the verification is successful, acquiring an original electric quantity value of the electric energy meter before the current metering period;
accumulating the electric quantity of the original electric quantity value and the electric quantity increment data to obtain the current electric quantity data of the electric energy meter;
and storing the current electric quantity data.
3. The power failure detection method of a multimode assembled electric energy meter according to claim 2, wherein the verifying the electric quantity increment data based on the verification value further comprises:
if the verification fails, setting the electric quantity increment data in the electric quantity increment register to zero, and acquiring an original electric quantity value of the electric energy meter before the current metering period; taking the original value of the electric quantity before the current metering period as current electric quantity data of the electric energy meter; and storing the current electric quantity data.
4. The power down detection method of a multi-module electric energy meter according to claim 1, wherein the storing the metering data of the electric energy meter based on the power supply state value stored in the power down register further comprises:
and if the power-on instruction of the electric energy meter is detected, a power-down register and an electric quantity increment register of the electric energy meter are cleared.
5. A power down detection system for a multimode, unitized power meter, comprising:
the power failure detection unit is used for interrupting a main program of the electric energy meter according to a first period, running a first interrupt program of the electric energy meter after interruption, and detecting the power supply voltage of the electric energy meter; determining a power supply state value based on the power supply voltage of the electric energy meter, and storing the power supply state value into a power-down register; the power supply state value comprises a first value and a second value, wherein the first value represents that the power supply state of the electric energy meter is a power-down state, and the second value represents that the power supply state of the electric energy meter is a power-up state;
the processing module is used for interrupting the main program of the electric energy meter according to a second period, running the second interrupt program of the electric energy meter after the interruption, reading the power supply state value stored in the power-down register, and storing the metering data of the electric energy meter based on the power supply state value stored in the power-down register, wherein the first period is smaller than the second period;
The processing module is specifically configured to calculate a ratio of an instantaneous value to a maximum value of a phase voltage of each phase at an input end of the electric energy meter, and determine the calculated ratio as a phase value of the corresponding phase at the input end of the electric energy meter; if the phase value of any phase at the input end of the electric energy meter is smaller than the reference phase and the error between the electric energy meter and the reference phase is larger than the set error, starting timing to obtain timing time length when the error is larger than the set error; if the timing time is longer than the set time, determining that the power supply state value is the first value; and if the timing duration is smaller than or equal to the set duration, determining the power supply state value as the second value.
6. The power down detection system of the multi-module electric energy meter according to claim 5, wherein the processing module comprises a data transmission unit and a data storage unit;
the data transmission unit is used for reading the power supply state value stored in the power-down register, and if the power supply state value is a first value, reading the electric quantity increment data stored in the electric quantity increment register and the original electric quantity value stored in the data storage unit before the current metering period; based on the original electric quantity value and the electric quantity increment data, accumulating the electric quantity to generate current electric quantity data; transmitting the current electric quantity data to the data storage unit;
The data storage unit is used for receiving the current electric quantity data sent by the data transmission unit and storing the current electric quantity data.
7. A multi-modular electric energy meter, characterized in that it comprises a memory in which a computer program is stored and a processor for calling and running the computer program stored in the memory to perform the steps of the method according to any of claims 1 to 4.
CN202310524666.6A 2023-05-11 2023-05-11 Power failure detection method and system of multimode assembled electric energy meter and electric energy meter Active CN116243234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310524666.6A CN116243234B (en) 2023-05-11 2023-05-11 Power failure detection method and system of multimode assembled electric energy meter and electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310524666.6A CN116243234B (en) 2023-05-11 2023-05-11 Power failure detection method and system of multimode assembled electric energy meter and electric energy meter

Publications (2)

Publication Number Publication Date
CN116243234A CN116243234A (en) 2023-06-09
CN116243234B true CN116243234B (en) 2023-08-11

Family

ID=86629938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310524666.6A Active CN116243234B (en) 2023-05-11 2023-05-11 Power failure detection method and system of multimode assembled electric energy meter and electric energy meter

Country Status (1)

Country Link
CN (1) CN116243234B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116338294B (en) * 2023-05-30 2023-08-01 深圳博浩远科技有限公司 Power grid power failure tailing detection method and photovoltaic energy storage system applying same
CN117405970A (en) * 2023-12-15 2024-01-16 石家庄科林电气股份有限公司 Accurate metering method and device for electric energy meter and electric energy meter

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005085879A1 (en) * 2004-03-03 2005-09-15 Rohm Co., Ltd. Current detecting circuit, load drive, and storage
CN108931756A (en) * 2018-06-12 2018-12-04 宁波三星智能电气有限公司 A kind of electric energy meter power failure detection method
CN109342806A (en) * 2018-11-28 2019-02-15 上海节卡机器人科技有限公司 The exchange wire breakage detector and method of robot
CN112505576A (en) * 2020-12-04 2021-03-16 厦门市爱维达电子有限公司 Power failure rapid detection method based on least square classifier
CN112816913A (en) * 2021-01-28 2021-05-18 厦门拓宝科技有限公司 Method and device for rapidly detecting power failure of single-phase alternating voltage signal, storage medium, program product and terminal equipment
CN114295887A (en) * 2021-12-22 2022-04-08 科德数控股份有限公司 Power failure detection method
CN114355236A (en) * 2021-11-29 2022-04-15 漳州科华技术有限责任公司 Detection method and device for rectification inverter circuit and uninterruptible power supply
CN114563753A (en) * 2021-04-12 2022-05-31 正泰集团研发中心(上海)有限公司 Power failure detection method, device and equipment for electric energy meter and computer readable storage medium
CN114689926A (en) * 2020-12-25 2022-07-01 青岛海尔电冰箱有限公司 Power failure detection method and device and electric equipment with same
CN114879911A (en) * 2022-05-19 2022-08-09 珠海趣印科技有限公司 Data storage method and device and electronic equipment
CN115188400A (en) * 2022-06-24 2022-10-14 威胜集团有限公司 Electric energy meter data loading method, device, equipment and computer readable storage medium
CN115436871A (en) * 2022-10-11 2022-12-06 石家庄科林电气股份有限公司 Method for preventing zero line missing electricity stealing of single-phase electric energy meter based on low power consumption

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10823777B2 (en) * 2018-04-16 2020-11-03 Schweitzer Engineering Laboratories, Inc. Detection and location of broken conductors for transmission lines
KR102063287B1 (en) * 2019-07-29 2020-01-08 제일전기공업 주식회사 Circuit Breaker Based on Phase Measurement and Arc Detection of Power Level and Method thereof

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005085879A1 (en) * 2004-03-03 2005-09-15 Rohm Co., Ltd. Current detecting circuit, load drive, and storage
CN108931756A (en) * 2018-06-12 2018-12-04 宁波三星智能电气有限公司 A kind of electric energy meter power failure detection method
CN109342806A (en) * 2018-11-28 2019-02-15 上海节卡机器人科技有限公司 The exchange wire breakage detector and method of robot
CN112505576A (en) * 2020-12-04 2021-03-16 厦门市爱维达电子有限公司 Power failure rapid detection method based on least square classifier
CN114689926A (en) * 2020-12-25 2022-07-01 青岛海尔电冰箱有限公司 Power failure detection method and device and electric equipment with same
CN112816913A (en) * 2021-01-28 2021-05-18 厦门拓宝科技有限公司 Method and device for rapidly detecting power failure of single-phase alternating voltage signal, storage medium, program product and terminal equipment
CN114563753A (en) * 2021-04-12 2022-05-31 正泰集团研发中心(上海)有限公司 Power failure detection method, device and equipment for electric energy meter and computer readable storage medium
CN114355236A (en) * 2021-11-29 2022-04-15 漳州科华技术有限责任公司 Detection method and device for rectification inverter circuit and uninterruptible power supply
CN114295887A (en) * 2021-12-22 2022-04-08 科德数控股份有限公司 Power failure detection method
CN114879911A (en) * 2022-05-19 2022-08-09 珠海趣印科技有限公司 Data storage method and device and electronic equipment
CN115188400A (en) * 2022-06-24 2022-10-14 威胜集团有限公司 Electric energy meter data loading method, device, equipment and computer readable storage medium
CN115436871A (en) * 2022-10-11 2022-12-06 石家庄科林电气股份有限公司 Method for preventing zero line missing electricity stealing of single-phase electric energy meter based on low power consumption

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
全电子式复费率电度表的设计;杨立才;《电子测量与仪器学报》;1-4 *

Also Published As

Publication number Publication date
CN116243234A (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN116243234B (en) Power failure detection method and system of multimode assembled electric energy meter and electric energy meter
JP7249431B2 (en) Detection method, device, electronic device and storage medium for power consumption behavior
Maitra Embedded Energy Meter-A new concept to measure the energy consumed by a consumer and to pay the bill
US10725519B1 (en) Power control based on power controller configuration records
CN110196404A (en) A kind of metering chip calibration method, device and the terminal device of charging pile
CN108931756B (en) Power failure detection method for electric energy meter
WO2013100981A1 (en) Performance monitoring resources programmed status
CN104238714A (en) Method for protecting computer systems after outage of uninterrupted power supply (UPS)
CN111122966A (en) Load identification module data transmission method, device and system
CN103852633A (en) Demand response judging device and demand response judging method thereof
CN115436871A (en) Method for preventing zero line missing electricity stealing of single-phase electric energy meter based on low power consumption
TWI497274B (en) Rack and power controlling method thereof
CN113777398A (en) Electric energy meter electric quantity recording method, electric energy meter and readable storage medium
CN105700656B (en) Standby abnormal power consumption detection system and method
CN115623464B (en) Fault processing method and device for Bluetooth module of electric energy meter and electric energy meter
KR20140146341A (en) Watt-hour meter and operating method thereof
CN112667643B (en) Power failure data storage method and device based on double-core intelligent ammeter
US20220123567A1 (en) Multi-bay charger with power monitoring for optimized charging
CN114418147A (en) Method and device for processing abnormity of main charging module, terminal and storage medium
CN112946562A (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
CN116203307B (en) Terminal Type-C interface foreign matter detection method, device and storage medium
CN202929707U (en) Electric vehicle data logger
CN118376974B (en) Fault monitoring method, device and equipment of electric energy meter and storage medium
CN117405970A (en) Accurate metering method and device for electric energy meter and electric energy meter
CN113224959B (en) Inverter control method and UPS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant