Voltage qualified rate recording method and device of double-core intelligent electric meter

文档序号:632421 发布日期:2021-05-11 浏览:4次 中文

阅读说明:本技术 双芯智能电表的电压合格率记录方法和装置 (Voltage qualified rate recording method and device of double-core intelligent electric meter ) 是由 范小飞 尹仕红 赵雪松 郭兴林 安琪儿 潘深琛 陈佩茹 谢倩娴 于 2021-03-02 设计创作,主要内容包括:本申请涉及一种双芯智能电表的电压合格率记录方法、装置、双芯智能电表和存储介质。所述方法包括:双芯智能电表的管理单元从双芯智能电表的计量单元获取与待记录电压合格率的时间区间对应的实时电压数据;确定用于识别实时电压数据所处状态的电压状态识别条件;基于电压状态识别条件,获取电压超下限时长、电压超上限时长以及电压监测时长;对电压超下限时长与电压超上限时长进行求和处理,得到电压超限时长,并将电压超限时长与电压监测时长的比值作为电压超限率,根据电压超限率得到待记录电压合格率,并记录待记录电压合格率。采用本方法能够实现对双芯智能电表的电压合格率的准确记录。(The application relates to a voltage qualified rate recording method and device of a double-core intelligent electric meter, the double-core intelligent electric meter and a storage medium. The method comprises the following steps: the management unit of the double-core intelligent electric meter acquires real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from the metering unit of the double-core intelligent electric meter; determining a voltage state identification condition for identifying the state of the real-time voltage data; acquiring voltage exceeding lower limit time, voltage exceeding upper limit time and voltage monitoring time based on the voltage state identification condition; and summing the voltage over-limit time length and the voltage over-limit time length to obtain the voltage over-limit time length, taking the ratio of the voltage over-limit time length to the voltage monitoring time length as a voltage over-limit rate, obtaining a to-be-recorded voltage qualification rate according to the voltage over-limit rate, and recording the to-be-recorded voltage qualification rate. By adopting the method, the voltage qualified rate of the double-core intelligent electric meter can be accurately recorded.)

1. A voltage qualified rate recording method of a two-core intelligent electric meter is characterized by being applied to a management unit of the two-core intelligent electric meter, and comprises the following steps:

acquiring real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from a metering unit of the double-core intelligent electric meter;

determining a voltage state identification condition for identifying the state of the real-time voltage data;

acquiring voltage exceeding lower limit time, voltage exceeding upper limit time and voltage monitoring time based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state;

and summing the voltage over-limit time length and the voltage over-limit time length to obtain the voltage over-limit time length, taking the ratio of the voltage over-limit time length to the voltage monitoring time length as a voltage over-limit rate, obtaining the qualification rate of the voltage to be recorded according to the voltage over-limit rate, and recording the qualification rate of the voltage to be recorded.

2. The method of claim 1, wherein the voltage state identifies a condition comprising: a voltage qualified upper threshold and a voltage qualified lower threshold for identifying a qualified status of the real-time voltage data, and a voltage monitoring upper threshold and a voltage monitoring lower threshold for identifying a monitoring status of the real-time voltage data; wherein the voltage qualified upper threshold is smaller than the voltage monitoring upper threshold, and the voltage qualified lower threshold is larger than the voltage monitoring lower threshold;

the acquiring of the voltage exceeding lower limit time length, the voltage exceeding upper limit time length and the voltage monitoring time length comprises the following steps:

acquiring real-time voltage data which is smaller than the qualified lower limit threshold of the voltage and larger than the monitoring lower limit threshold of the voltage from the real-time voltage data, and taking the real-time voltage data as the real-time voltage data in the state of the voltage exceeding the lower limit; acquiring the data duration of the real-time voltage data in the voltage over-lower limit state as the voltage over-lower limit duration;

acquiring real-time voltage data which is greater than the voltage qualified upper limit threshold and less than the voltage monitoring upper limit threshold from the real-time voltage data, and taking the real-time voltage data as the real-time voltage data in the state that the voltage exceeds the upper limit; acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration;

acquiring voltage data which is smaller than the voltage monitoring upper threshold and larger than the voltage monitoring lower threshold from the real-time voltage data, and taking the voltage data as the real-time voltage data in the monitoring state; and acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration.

3. The method according to claim 2, wherein the obtaining of real-time voltage data corresponding to a time interval of a voltage yield to be recorded from a metering unit of the two-core smart meter comprises:

continuously acquiring a plurality of real-time voltage data corresponding to the time interval from the metering unit according to a preset time interval;

the acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration includes:

determining the first data number of the real-time voltage data in the voltage over-limit state, and determining the voltage over-limit duration according to the first data number and the time interval;

the acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration includes:

determining a second data number of the real-time voltage data in the voltage over-limit state, and determining the voltage over-limit duration according to the second data number and the time interval;

the acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration includes:

and determining the third data number of the real-time voltage data in the monitoring state, and determining the voltage monitoring duration according to the third data number and the time interval.

4. The method according to claim 3, wherein after the obtaining the plurality of real-time voltage data corresponding to the time interval from the metering unit at preset time intervals, the method further comprises:

acquiring real-time voltage peak values corresponding to the time intervals and peak time points corresponding to the real-time voltage peak values from the plurality of real-time voltage data, and recording the real-time voltage peak values and the peak time points;

acquiring real-time voltage valleys corresponding to the time intervals and valley time points corresponding to the real-time voltage valleys from the plurality of real-time voltage data, and recording the real-time voltage valleys and the valley time points;

and/or

And acquiring the voltage sum of the real-time voltage data and the total data number of the real-time voltage data, and taking the ratio of the voltage sum to the total data number as the average voltage corresponding to the time interval and recording the average voltage.

5. The method according to any one of claims 1 to 4, wherein the time interval is a plurality of consecutive time intervals; after the recording the qualified rate of the voltage to be recorded, the method further comprises the following steps:

and if the current time mark is detected to meet the updating condition of the time interval, taking the recorded qualified rate of the voltage to be recorded as the qualified rate of the voltage to be recorded of the previous time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualified rate of the voltage to be recorded corresponding to the current time interval.

6. The method of claim 5, further comprising:

if a power failure signal is detected, performing power failure storage on the qualified rate of the voltage to be recorded;

if the power-on signal is detected, reading the qualified rate of the voltage to be recorded stored in the power-down state, and acquiring the power-down time and the power-on time corresponding to the power-down signal and the power-on signal respectively;

determining a power failure interval according to the power failure time and the power-on time, and acquiring a power failure time scale corresponding to the power failure interval;

and if the power failure time mark is detected to meet the updating condition of the time interval, taking the qualified rate of the voltage to be recorded stored in the power failure as the qualified rate of the voltage to be recorded in the previous time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualified rate of the voltage to be recorded stored in the power failure.

7. The method according to claim 6, wherein the management unit of the two-core smart meter carries an event recording application;

after the power-on signal is detected, the method further comprises:

creating a voltage qualification rate recording thread for recording voltage qualification rate through a main thread of the event recording application;

the recording the qualified rate of the voltage to be recorded comprises the following steps:

and recording the qualified rate of the voltage to be recorded through the voltage qualified rate recording thread.

8. The utility model provides a two-core smart electric meter's voltage qualification rate recorder which characterized in that is applied to two-core smart electric meter's administrative unit, the device includes:

the real-time data acquisition module is used for acquiring real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from a metering unit of the double-core intelligent electric meter;

the identification condition determining module is used for determining a voltage state identification condition for identifying the state of the real-time voltage data;

the data duration acquisition module is used for acquiring voltage exceeding lower limit duration, voltage exceeding upper limit duration and voltage monitoring duration based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state;

and the qualification rate recording module is used for summing the voltage overrun time length and the voltage overrun time length to obtain the voltage overrun time length, taking the ratio of the voltage overrun time length to the voltage monitoring time length as the voltage overrun rate, obtaining the qualification rate of the voltage to be recorded according to the voltage overrun rate, and recording the qualification rate of the voltage to be recorded.

9. A two-core smart meter comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The application relates to the technical field of electric energy metering, in particular to a voltage qualification rate recording method and device of a double-core intelligent electric meter, the double-core intelligent electric meter and a storage medium.

Background

With the development of the electric energy metering technology, the intelligent electric meter which integrally designs the metering part and the non-metering part cannot meet the requirement that the running voltage state of the electric meter needs to be monitored in real time in the running process of the electric meter. Therefore, according to the IR46 standard, an electric energy meter with a management core and a measurement core separated from each other appears, wherein the measurement core is responsible for the measurement function of the electric energy meter, the management core is responsible for other non-measurement functions, and when power failure occurs or voltage exceeds an upper limit and a lower limit, the management core can also acquire and store real-time voltage data through interaction with the measurement core.

At present, the voltage qualification rate of the electric meter is recorded based on an integrated design intelligent electric meter, and for a double-core intelligent electric meter, the current voltage qualification rate recording method for the electric meter cannot be applied, so that the accurate recording of the voltage qualification rate of the double-core intelligent electric meter cannot be realized.

Disclosure of Invention

In view of the above, it is necessary to provide a voltage yield recording method and apparatus for a two-core smart meter, a two-core smart meter and a storage medium for the two-core smart meter.

A voltage qualified rate recording method of a double-core intelligent electric meter is applied to a management unit of the double-core intelligent electric meter, and comprises the following steps:

acquiring real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from a metering unit of the double-core intelligent electric meter;

determining a voltage state identification condition for identifying the state of the real-time voltage data;

acquiring voltage exceeding lower limit time, voltage exceeding upper limit time and voltage monitoring time based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state;

and summing the voltage over-limit time length and the voltage over-limit time length to obtain the voltage over-limit time length, taking the ratio of the voltage over-limit time length to the voltage monitoring time length as a voltage over-limit rate, obtaining the qualification rate of the voltage to be recorded according to the voltage over-limit rate, and recording the qualification rate of the voltage to be recorded.

In one embodiment, the voltage state identifies a condition comprising: a voltage qualified upper threshold and a voltage qualified lower threshold for identifying a qualified status of the real-time voltage data, and a voltage monitoring upper threshold and a voltage monitoring lower threshold for identifying a monitoring status of the real-time voltage data; wherein the voltage qualified upper threshold is smaller than the voltage monitoring upper threshold, and the voltage qualified lower threshold is larger than the voltage monitoring lower threshold; the acquiring of the voltage exceeding lower limit time length, the voltage exceeding upper limit time length and the voltage monitoring time length comprises the following steps: acquiring real-time voltage data which is smaller than the qualified lower limit threshold of the voltage and larger than the monitoring lower limit threshold of the voltage from the real-time voltage data, and taking the real-time voltage data as the real-time voltage data in the state of the voltage exceeding the lower limit; acquiring the data duration of the real-time voltage data in the voltage over-lower limit state as the voltage over-lower limit duration; acquiring real-time voltage data which is greater than the voltage qualified upper limit threshold and less than the voltage monitoring upper limit threshold from the real-time voltage data, and taking the real-time voltage data as the real-time voltage data in the state that the voltage exceeds the upper limit; acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration; acquiring voltage data which is smaller than the voltage monitoring upper threshold and larger than the voltage monitoring lower threshold from the real-time voltage data, and taking the voltage data as the real-time voltage data in the monitoring state; and acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration.

In one embodiment, the acquiring, from the metering unit of the two-core smart meter, real-time voltage data corresponding to a time interval of the voltage yield to be recorded includes: continuously acquiring a plurality of real-time voltage data corresponding to the time interval from the metering unit according to a preset time interval; the acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration includes: determining the first data number of the real-time voltage data in the voltage over-limit state, and determining the voltage over-limit duration according to the first data number and the time interval; the acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration includes: determining a second data number of the real-time voltage data in the voltage over-limit state, and determining the voltage over-limit duration according to the second data number and the time interval; the acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration includes: and determining the third data number of the real-time voltage data in the monitoring state, and determining the voltage monitoring duration according to the third data number and the time interval.

In one embodiment, after the continuously obtaining, at preset time intervals, a plurality of real-time voltage data corresponding to the time interval from the metering unit, the method further includes: acquiring real-time voltage peak values corresponding to the time intervals and peak time points corresponding to the real-time voltage peak values from the plurality of real-time voltage data, and recording the real-time voltage peak values and the peak time points; acquiring real-time voltage valleys corresponding to the time intervals and valley time points corresponding to the real-time voltage valleys from the plurality of real-time voltage data, and recording the real-time voltage valleys and the valley time points; and/or acquiring the voltage sum of the plurality of real-time voltage data and the total data number of the plurality of real-time voltage data, and taking the ratio of the voltage sum to the total data number as the average voltage corresponding to the time interval and recording the average voltage.

In one embodiment, the time interval is a plurality of consecutive time intervals; after the recording the qualified rate of the voltage to be recorded, the method further comprises the following steps: and if the current time mark is detected to meet the updating condition of the time interval, taking the recorded qualified rate of the voltage to be recorded as the qualified rate of the voltage to be recorded of the previous time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualified rate of the voltage to be recorded corresponding to the current time interval.

In one embodiment, the method further comprises: if a power failure signal is detected, performing power failure storage on the qualified rate of the voltage to be recorded; if the power-on signal is detected, reading the qualified rate of the voltage to be recorded stored in the power-down state, and acquiring the power-down time and the power-on time corresponding to the power-down signal and the power-on signal respectively; determining a power failure interval according to the power failure time and the power-on time, and acquiring a power failure time scale corresponding to the power failure interval; and if the power failure time mark is detected to meet the updating condition of the time interval, taking the qualified rate of the voltage to be recorded stored in the power failure as the qualified rate of the voltage to be recorded in the previous time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualified rate of the voltage to be recorded stored in the power failure.

In one embodiment, the management unit of the double-core intelligent electric meter carries an event record application; after the power-on signal is detected, the method further comprises: creating a voltage qualification rate recording thread for recording voltage qualification rate through a main thread of the event recording application; the recording the qualified rate of the voltage to be recorded comprises the following steps: and recording the qualified rate of the voltage to be recorded through the voltage qualified rate recording thread.

The utility model provides a two-core smart electric meter's voltage qualification rate recorder, is applied to two-core smart electric meter's administrative unit, the device includes:

the real-time data acquisition module is used for acquiring real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from a metering unit of the double-core intelligent electric meter;

the identification condition determining module is used for determining a voltage state identification condition for identifying the state of the real-time voltage data;

the data duration acquisition module is used for acquiring voltage exceeding lower limit duration, voltage exceeding upper limit duration and voltage monitoring duration based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state;

and the qualification rate recording module is used for summing the voltage overrun time length and the voltage overrun time length to obtain the voltage overrun time length, taking the ratio of the voltage overrun time length to the voltage monitoring time length as the voltage overrun rate, obtaining the qualification rate of the voltage to be recorded according to the voltage overrun rate, and recording the qualification rate of the voltage to be recorded.

A double-core intelligent ammeter comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the method when executing the computer program.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.

According to the voltage qualification rate recording method and device of the double-core intelligent electric meter, the double-core intelligent electric meter and the storage medium, real-time voltage data corresponding to the time interval of the voltage qualification rate to be recorded are acquired from the metering unit of the double-core intelligent electric meter through the management unit of the double-core intelligent electric meter; determining a voltage state identification condition for identifying the state of the real-time voltage data; acquiring voltage exceeding lower limit time, voltage exceeding upper limit time and voltage monitoring time based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state; and summing the voltage over-limit time length and the voltage over-limit time length to obtain the voltage over-limit time length, taking the ratio of the voltage over-limit time length to the voltage monitoring time length as a voltage over-limit rate, obtaining a to-be-recorded voltage qualification rate according to the voltage over-limit rate, and recording the to-be-recorded voltage qualification rate. According to the voltage state identification method and device, the management unit of the double-core intelligent electric meter can identify conditions according to the set voltage state, the time length of the corresponding voltage state is determined according to the real-time voltage data obtained from the metering unit of the double-core intelligent electric meter, and therefore accurate recording of the voltage qualified rate of the double-core intelligent electric meter is achieved.

Drawings

FIG. 1 is a diagram illustrating an exemplary embodiment of a voltage qualification recording method for a two-core smart meter;

FIG. 2 is a schematic flow chart illustrating a voltage yield recording method of the two-core smart meter according to an embodiment;

FIG. 3 is a schematic diagram of a process for obtaining a voltage overrun period, and a voltage monitoring period in one embodiment;

FIG. 4 is a signal waveform illustrating real-time voltage data according to one embodiment;

FIG. 5 is a block diagram of a voltage qualification rate statistic of a two-core smart meter in an application example;

FIG. 6 is a schematic diagram illustrating a process for implementing voltage qualification rate statistics of a two-core smart meter in an application example;

FIG. 7 is a block diagram of a voltage qualification recording apparatus of the two-core smart meter in one embodiment;

fig. 8 is an internal structural view of the two-core smart meter in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The voltage qualification rate recording method of the double-core intelligent electric meter can be applied to the application environment shown in fig. 1. The management unit 101 of the two-core smart meter is in communication connection with the metering unit 102. Specifically, the metering unit 102 may meter the voltage data in real time and provide the resulting real-time data to the management unit 101. The management unit 101 may obtain the voltage overrun duration and the voltage monitoring duration based on the real-time voltage data measured by the measurement unit 102 and the voltage state identification condition pre-stored by the management unit 101, and obtain the voltage overrun rate and the corresponding voltage qualification rate according to the ratio of the voltage overrun duration to the voltage monitoring duration. The management unit 101 may be a management core of a two-core smart meter, and the metering unit 102 may be a metering core of the two-core smart meter.

In one embodiment, as shown in fig. 2, a voltage yield recording method for a two-core smart meter is provided, which is described by taking the management unit 101 of the two-core smart meter in fig. 1 as an example, and includes the following steps:

in step S201, the management unit 101 obtains real-time voltage data corresponding to a time interval of the qualification rate of the voltage to be recorded from the metering unit 102 of the two-core smart meter.

The voltage yield to be recorded refers to the voltage yield that the management unit 101 needs to record, and the time interval refers to the interval corresponding to the voltage yield that needs to be recorded, for example, the voltage yield corresponding to real-time voltage data in a day needs to be recorded, and the time interval is in units of days, and if the voltage yield corresponding to real-time voltage data in a month needs to be recorded, the time interval may be in units of months.

Specifically, the metering unit 102 of the two-core smart meter may read voltage data of a time interval of the voltage qualification rate to be recorded in real time, and then push the obtained voltage data to the management unit 101 in a communication manner with the management unit 101, and the management unit 101 may determine, from the obtained voltage data, voltage data corresponding to the time interval of the voltage qualification rate to be recorded as real-time voltage data. For example, the management unit 101 needs to record the voltage qualification rate of the date a, the voltage data of the date a can be acquired from the metering unit 102 as the real-time voltage data.

In step S202, the management unit 101 determines a voltage state identification condition for identifying the state where the real-time voltage data is located.

The voltage state refers to a state of the real-time voltage data acquired by the management unit 101, for example, if the current voltage is in a normal size interval, the real-time voltage data may be in a normal operation state, and if the voltage exceeds a certain upper limit or a certain lower limit, the real-time voltage data may be in an overrun operation state. The voltage status recognition condition refers to a condition for determining the status of the real-time voltage data, and the condition may be an upper limit and a lower limit set for determining whether the real-time voltage data is in an overrun operation state, or an interval endpoint value of a normal size interval in which the voltage is determined, and the like, and the voltage status recognition condition may be stored in the management unit 101 in advance, and when the management unit 101 needs to count the voltage qualification rate, the voltage status recognition condition may be read to determine the voltage status of the real-time voltage data.

Step S203, the management unit 101 acquires voltage exceeding lower limit duration, voltage exceeding upper limit duration and voltage monitoring duration based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state.

The voltage exceeding lower limit duration refers to data duration of real-time voltage data when the voltage is in a voltage exceeding lower limit state, the voltage exceeding upper limit duration refers to data duration of the real-time voltage data when the voltage is in the voltage exceeding upper limit state, and the voltage monitoring duration refers to data duration of the real-time voltage data when the real-time voltage data is in a monitoring state. Specifically, the management unit 101 may determine real-time voltage data respectively belonging to the voltage over-limit state, and the monitoring state according to the set voltage state identification condition, and obtain the corresponding voltage over-limit duration, and voltage monitoring duration, respectively.

Step S204, the management unit 101 sums the voltage exceeding time limit and the voltage exceeding time limit to obtain the voltage exceeding time limit, and uses the ratio of the voltage exceeding time limit to the voltage monitoring time limit as the voltage exceeding rate, obtains the qualified rate of the voltage to be recorded according to the voltage exceeding rate, and records the qualified rate of the voltage to be recorded.

The voltage overrun duration is the sum of the voltage overrun duration and the voltage overrun duration, the management unit 101 may sum the voltage overrun duration and the voltage overrun duration obtained in step S203, so as to calculate a corresponding voltage overrun duration, calculate a ratio of the voltage overrun duration to the voltage monitoring duration as a voltage overrun rate, obtain a to-be-recorded voltage qualification rate to be recorded based on the voltage overrun rate, and record the to-be-recorded voltage qualification rate.

Specifically, the voltage overrun may be determined by the formula: the voltage overrun rate (voltage overrun duration + voltage overrun duration) × 100%/voltage monitoring duration is obtained, and the voltage qualification rate can be obtained by the formula: and calculating the voltage qualified rate as 1-voltage overrun rate.

In the voltage qualification rate recording method of the double-core intelligent electric meter, a management unit 101 of the double-core intelligent electric meter acquires real-time voltage data corresponding to a time interval of the voltage qualification rate to be recorded from a metering unit 102 of the double-core intelligent electric meter; determining a voltage state identification condition for identifying the state of the real-time voltage data; acquiring voltage exceeding lower limit time, voltage exceeding upper limit time and voltage monitoring time based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state; and summing the voltage over-limit time length and the voltage over-limit time length to obtain the voltage over-limit time length, taking the ratio of the voltage over-limit time length to the voltage monitoring time length as a voltage over-limit rate, obtaining a to-be-recorded voltage qualification rate according to the voltage over-limit rate, and recording the to-be-recorded voltage qualification rate. According to the method and the device, the management unit 101 of the double-core intelligent electric meter can identify conditions according to the set voltage state, the time length of the corresponding voltage state is determined according to the real-time voltage data obtained from the metering unit 102 of the double-core intelligent electric meter, and therefore accurate recording of the voltage qualified rate of the double-core intelligent electric meter is achieved.

In one embodiment, the voltage state identifies a condition comprising: the voltage qualified upper threshold and the voltage qualified lower threshold are used for identifying the qualified state of the real-time voltage data, and the voltage monitoring upper threshold and the voltage monitoring lower threshold are used for identifying the monitoring state of the real-time voltage data; the voltage qualified upper threshold is smaller than the voltage monitoring upper threshold, and the voltage qualified lower threshold is larger than the voltage monitoring lower threshold; as shown in fig. 3, step S203 may further include:

step S301, the management unit 101 acquires real-time voltage data which is smaller than a voltage qualified lower limit threshold and larger than a voltage monitoring lower limit threshold from the real-time voltage data, and the real-time voltage data is used as real-time voltage data in a voltage exceeding lower limit state; and acquiring the data duration of the real-time voltage data in the voltage exceeding lower limit state as the voltage exceeding lower limit duration.

The voltage state identification condition may include a voltage qualified upper threshold and a voltage qualified lower threshold for identifying a qualified state of the real-time voltage data, and a voltage monitoring upper threshold and a voltage monitoring lower threshold for identifying a monitoring state of the real-time voltage data, where the voltage monitoring upper threshold is set to a value greater than the voltage qualified upper threshold, and the voltage monitoring lower threshold may be set to a value less than the voltage qualified lower threshold.

Specifically, the management unit 101 may select, from the real-time voltage data, real-time voltage data that satisfies a condition that is smaller than a voltage qualified lower-limit threshold and larger than a voltage monitoring lower-limit threshold, as the real-time voltage data in the voltage exceeding lower-limit state, and count a data duration of the real-time voltage data in the voltage exceeding lower-limit state, as the voltage exceeding lower-limit duration.

Step S302, the management unit 101 acquires real-time voltage data which is greater than the voltage qualified upper threshold and less than the voltage monitoring upper threshold from the real-time voltage data as real-time voltage data in a voltage over-upper-limit state; acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration;

step S303, the management unit 101 acquires, from the real-time voltage data, voltage data smaller than the upper threshold of voltage monitoring and larger than the lower threshold of voltage monitoring as real-time voltage data in a monitoring state; and acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration.

Similarly, the management unit 101 may also select, from the real-time voltage data, real-time voltage data that satisfies the voltage qualified upper threshold and is smaller than the voltage monitoring upper threshold, as the real-time voltage data in the voltage over-upper limit state, and count the data duration of the real-time voltage data in the voltage over-upper limit state, as the voltage over-upper limit duration. The management unit 101 may further use voltage data that is smaller than the upper voltage monitoring threshold and larger than the lower voltage monitoring threshold as real-time voltage data in the monitoring state, and count data duration of the real-time voltage data in the monitoring state as voltage monitoring duration.

For example, the waveforms of the real-time voltage data may be as shown in fig. 4, where the upper voltage check limit and the lower voltage check limit may be the upper voltage monitoring threshold and the lower voltage monitoring threshold of the voltage state identification condition in this embodiment, and the upper voltage check limit and the lower voltage check limit may be the upper voltage qualified threshold and the lower voltage qualified threshold of the voltage state identification condition, it can be seen that the upper voltage check limit is smaller than the upper voltage check limit, and the lower voltage check limit is larger than the lower voltage check limit, that is, the upper voltage qualified threshold in this embodiment is smaller than the upper voltage monitoring threshold, and the lower voltage qualified threshold is larger than the lower voltage monitoring threshold. Therefore, the voltage monitoring time period can include time periods t1-t4 and t5-t6, the voltage over-limit time period is a time period t1-t2, and the voltage over-limit time period is a time period t3-t4 and t5-t 6.

Further, step S201 may further include: the management unit 101 continuously acquires a plurality of real-time voltage data corresponding to the time interval from the metering unit 102 according to a preset time interval; step S301 may further include: the management unit 101 determines a first data number of the real-time voltage data in the voltage over-limit state, and determines the voltage over-limit duration according to the first data number and the time interval; step S302 may further include: the management unit 101 determines a second data number of the real-time voltage data in the voltage over-limit state, and determines the voltage over-limit duration according to the second data number and the time interval; step S303 may further include: the management unit 101 determines a third data number of the real-time voltage data in the monitoring state, and determines a voltage monitoring duration according to the third data number and the time interval.

The preset time interval refers to a time interval during which the management unit 101 reads the real-time voltage data from the metering unit 102, and in this embodiment, the real-time voltage data read by the management unit 101 is not a continuous piece of real-time voltage data, but is composed of a plurality of discrete real-time voltage data, for example, a plurality of real-time voltage data may be continuously read from the metering unit 102 at a certain time interval by setting a timer. Then, the management unit 101 may respectively determine the data state of each real-time voltage data according to the voltage state identification condition, and respectively count the data number of the real-time voltage data in the voltage over-lower limit state as the first data number, the data number of the real-time voltage data in the voltage over-upper limit state as the second data number, and count the data number of the real-time voltage data in the monitoring state as the third data number, and finally respectively obtain the voltage over-lower limit duration, the voltage over-upper limit duration, and the voltage monitoring duration based on the time interval and the first data number, the second data number, and the third data number.

For example, the preset time interval may be 1s, and after the management unit 101 counts the first data number of the real-time voltage data in the voltage over-limit state, the number of the real-time voltage data may be 50, so that the management unit 101 may determine that the voltage over-limit duration is 50 s.

In addition, after the management unit 101 continuously acquires a plurality of real-time voltage data corresponding to the time interval from the metering unit 102 at preset time intervals, the method may further include: the management unit 101 acquires a real-time voltage peak value corresponding to the time interval and a peak time point corresponding to the real-time voltage peak value from the plurality of real-time voltage data, and records the real-time voltage peak value and the peak time point; the management unit 101 acquires real-time voltage valleys corresponding to time intervals and valley time points corresponding to the real-time voltage valleys from the real-time voltage data, and records the real-time voltage valleys and the valley time points; the management unit 101 obtains the sum of voltages of the plurality of real-time voltage data and the total number of data of the plurality of real-time voltage data, and records the ratio of the sum of voltages to the total number of data as the average voltage corresponding to the time interval.

Specifically, the management unit 101 may also find real-time voltage data with the largest value from the plurality of real-time voltage data as a real-time voltage peak value and a time point corresponding to the real-time voltage peak value, i.e., a peak time point. For example, the management unit 101 may store the read maximum voltage value and the time corresponding to the voltage value at any time during the process of continuously reading the real-time voltage data from the metering unit 102 at time intervals, and if the real-time voltage data larger than the maximum voltage value is read, the real-time voltage data may be used as the updated maximum voltage value, and the time corresponding to the real-time voltage data may be recorded as a new real-time voltage peak value and a new peak time point, respectively, until the reading of all the real-time voltage data within the time interval is completed, so as to obtain the corresponding real-time voltage peak value and peak time point.

In addition, similar to the way of recording the real-time voltage peak value and the peak time point, the management unit 101 may also find the real-time voltage data with the smallest value from the plurality of real-time voltage data as the real-time voltage valley value and the time point corresponding to the real-time voltage valley value, i.e., the valley time point. In the process of continuously reading the real-time voltage data according to the time interval through the management unit 101, the read minimum voltage value and the time corresponding to the voltage value are stored at any time, and if the real-time voltage data smaller than the minimum voltage value is read, the real-time voltage data can be used as the updated minimum voltage value, and the time corresponding to the real-time voltage data is recorded and respectively used as a new real-time voltage valley value and a new valley value time point until the reading of all real-time voltage data in the time interval is completed, so that the corresponding real-time voltage valley value and the corresponding valley value time point are obtained.

For recording the average voltage, the management unit 101 may read all the real-time voltage data in the time interval and the data number of the real-time voltage data, that is, the total data number, and obtain the average voltage in the time interval by using the sum of all the real-time voltage data, that is, the voltage sum and the total data number, and record the average voltage. In the process of continuously reading the real-time voltage data from the metering unit 102 at time intervals, the management unit 101 may continuously add the newly read real-time voltage data to the pre-stored voltage sum to realize no matter whether the voltage sum is updated, and simultaneously continuously increase the counted voltage count value, that is, continuously increase the total number of data, so as to obtain and record the average voltage corresponding to the time interval.

In the above embodiment, the management unit 101 may accurately determine the voltage state of the real-time voltage data according to the set upper limit threshold and the lower limit threshold of the voltage, and the upper limit threshold and the lower limit threshold of the voltage monitoring, so as to improve the accuracy of the obtained voltage state determination, and the real-time voltage data may be acquired according to discrete data obtained at a preset time interval, and when the time duration of the voltage state is determined, the time duration may be determined according to the number of the voltage data and the time interval, so as to improve the accuracy of the time duration determination of the voltage state. In addition, the management unit 101 may also count the real-time voltage peak and peak time points, the real-time voltage valley and valley time points, and the average voltage within the time interval, so as to ensure the integrity of the real-time voltage data record.

In an embodiment, the time intervals are a plurality of consecutive time intervals, and after step S204, the method may further include: if it is detected that the current time scale meets the update condition of the time interval, the management unit 101 uses the qualified rate of the recorded voltage to be recorded as the qualified rate of the voltage to be recorded of the previous time interval corresponding to the current time interval, and performs zero clearing processing on the qualified rate of the voltage to be recorded corresponding to the current time interval.

The time interval may be a plurality of continuous intervals, for example, the management unit 101 may be configured to count the voltage qualification rate for several consecutive days, and then the time interval may be composed of a plurality of continuous time intervals in units of days, and meanwhile, the management unit 101 may further detect a current time scale, and if the current time mark meets an update condition of the time interval, for example, when the current time can be displayed as a zero point by the time scale, the voltage qualification rate to be recorded currently recorded by the management unit 101 may be used as the voltage qualification rate to be recorded in a previous time interval corresponding to the current time interval, and the previously recorded voltage qualification rate to be recorded is cleared.

For example: when the time interval is in units of days, the continuous multiple time intervals can be continuous multiple different days, the updating condition of the time interval can be set to be whether the time scale reaches zero, if the current time scale is detected to reach zero, namely the updating condition of the time interval is met, the qualified rate of the voltage to be recorded at the moment can be used as the last time interval, namely the qualified rate of the voltage to be recorded at the last day, and the qualified rate of the voltage to be recorded at the current day is subjected to zero clearing processing. And if the time interval takes a month as a unit, the change of the month time scale can be set as the updating condition of the time interval, and when the month time scale is detected to be updated, the qualified rate of the voltage to be recorded at the moment can be used as the qualified rate of the voltage to be recorded in the previous month, and the qualified rate of the voltage to be recorded in the current month is reset.

Further, the voltage yield recording method of the double-core intelligent electric meter can further comprise the following steps: if a power failure signal is detected, the management unit 101 performs power failure storage on the qualified rate of the voltage to be recorded; if the power-on signal is detected, reading the qualified rate of the voltage to be recorded stored in the power-down state, and acquiring the power-down time and the power-on time corresponding to the power-down signal and the power-on signal respectively; determining a power failure interval according to the power failure time and the power-on time, and acquiring a power failure time scale corresponding to the power failure interval; and if the power failure time mark meets the updating condition of the time interval, taking the qualification rate of the voltage to be recorded stored in the power failure as the qualification rate of the voltage to be recorded in the last time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualification rate of the voltage to be recorded stored in the power failure.

And if the management unit 101 detects a power failure signal, the power failure storage can be performed on the qualified rate of the voltage to be recorded, and the reading can be performed when the reply of the power-on signal is detected, meanwhile, the management unit 101 can also respectively read the power failure time and the power-on time of the power failure signal and the power-on signal, determine the power failure interval of the dual-core intelligent electric meter and a plurality of power failure time scales included in the power failure interval according to the power failure time and the power-on time, and if the power failure time scales in the power failure interval meet the updating condition of a certain time interval, the qualified rate of the voltage to be recorded stored in the power failure can be used as the qualified rate of the voltage to be recorded in the last time interval corresponding to the current time interval, and the qualified rate.

For example, when the time interval is in units of days, it is detected that the power down time of the dual-core smart meter is 23 points of the previous day, the power up time of the dual-core smart meter is 1 point of the current day, the power down interval is from 23 points to 1 point, and a certain power down time scale included in the power down time scale, for example, a zero time scale included in the power down time scale, meets the update condition of the time interval in units of days, at this time, the management unit 101 may use the voltage qualification rate stored in the power down as the voltage qualification rate of the previous day, and perform zero clearing processing on the current power down stored voltage qualification rate to be recorded.

In addition, the management unit 101 of the double-core intelligent electric meter carries an event record application; after the management unit 101 detects the power-on signal, the method further includes: the management unit 101 creates a voltage yield recording thread for recording the voltage yield through a main thread of an event recording application; step S204 may further include: the management unit 101 records the qualified rate of the voltage to be recorded through a voltage qualified rate recording thread.

The event recording application is an application program used for performing certain actions or generating certain faults to record data in the operation process of the double-core intelligent electric meter. The event recording application can be implemented in the management unit 101, and interacts with the metering unit 102 and other applications of the management unit 101 to implement the action recording of each module function of each meter application. After the management unit 101 detects the power-on signal, the main thread of the event recording application may create a voltage qualification rate recording thread dedicated for recording the voltage qualification rate through the main thread, and when the voltage qualification rate to be recorded needs to be recorded, the management unit 101 may complete recording of the voltage qualification rate by using the voltage qualification rate recording thread instead of directly performing recording of the voltage qualification rate through the main thread.

In the above embodiment, when the management unit 101 detects that the current time scale satisfies the update condition of the time interval, it may implement automatic unloading of the qualification rate of the voltage to be recorded in the previous time interval, and can realize the power-down storage of the voltage qualification rate after detecting the power-off signal, can read after detecting the power-on signal again, thereby ensuring that the data of the voltage qualification rate is not lost, and simultaneously, determining whether the power-down interval has a power-down time mark meeting the updating condition of the time interval according to the power-down time and the power-up time, if so, the automatic transfer of the qualification rate of the voltage to be recorded stored in the power failure can be realized, the accuracy of the qualification rate of the voltage stored in the power failure can be ensured, meanwhile, the voltage qualification rate recording thread created by the main thread of the event recording application is adopted to realize the voltage qualification rate recording, so that the program thread resource can be saved, and the recording function of the voltage qualification rate is optimized.

In an application example, the method for realizing the voltage qualification rate statistics of the double-core intelligent ammeter management unit is further provided, the voltage qualification rate belongs to the voltage monitoring function of an application layer of an ammeter management unit software system, has the functions of daily and monthly voltage qualification rate statistics, voltage measurement and calculation and the like, can interact with a metering management service module of a middle layer, and can perform statistics on the daily and monthly voltage qualification rates, and the content comprises the steps of recording voltage monitoring time, voltage qualification rate, voltage overrun time, voltage overrun lower limit time, maximum voltage and occurrence time, minimum voltage and occurrence time and average voltage, recording daily voltage qualification rate statistical data of 92 days (3 months), and recording monthly voltage qualification rate statistical data of 12 months. The main functions of the specific implementation can include: the daily and monthly voltage qualification rates are counted, the content comprises recording voltage monitoring time, voltage qualification rate, voltage overrun time, maximum voltage and occurrence time, minimum voltage and occurrence time and average voltage, recording daily voltage qualification rate statistical data of 92 days, and recording monthly voltage qualification rate statistical data of 12 months.

The overall structure of the voltage qualification rate statistics is shown in fig. 5, and mainly includes acquiring real-time data pushed by the metering management service every second, and performing the voltage qualification rate statistics according to the voltage value in the real-time data and the upper and lower voltage limit values.

Furthermore, in the application of the basic function, the communication module is responsible for analyzing the control code and the data identifier and calling a read-write operation interface provided by the event recording module.

Reading: the voltage qualification rate statistical data of the current day, the voltage qualification rate statistical data of the last 1 day to the last 92 days, the voltage qualification rate statistical data of the current month, the voltage qualification rate statistical data of the last 1 month to the last 12 months, the upper limit value of the voltage examination, the lower limit value of the voltage examination, the upper limit value of the voltage qualification and the lower limit value of the voltage qualification.

Setting: the voltage examination upper limit value, the voltage examination lower limit value, the voltage qualification upper limit value and the voltage qualification lower limit value.

The operation is as follows: and the event recording module is used for recording the total clearing of the events and clearing the sun-moon voltage qualification rate in terms of items.

In addition, as shown in fig. 6, the implementation process of the voltage yield statistics may specifically include:

step 1, after the electric energy meter is powered on, an event recording thread is established by a main thread;

step 2, after the event recording thread is started, judging and creating a working directory, and initializing relevant parameters (mainly threshold values and initial states of all events) of the event record

Step 3, waiting for a signal that the time-sharing metering module normally operates (when event recording processing needs to be carried out, the used real-time data is accurate and effective);

step 4, after obtaining the message that the time-sharing measurement has normally run, establishing a timer task (the time delay is 1 second for starting, the timer period is 1 second, the timer task sends a message to the event recording thread every second), sending a second message and waiting;

step 5, an event recording thread acquires a voltage value pushed by the metering management service every second;

and 6, in the range of the upper limit and the lower limit of the voltage check, comparing the upper limit and the lower limit of the qualified voltage, and counting the qualified voltage rate.

Wherein, the statistics of the voltage qualification rate in the step 6 is divided into three parts: initialization, normal operation and power failure storage, which are specifically as follows:

1. initialization: the data stored in power failure is read out completely. And judging whether the power failure is day-crossing or not, if so, transferring the read daily voltage qualified rate data into the last day of voltage qualified rate data statistics, and resetting the daily voltage qualified rate data. And judging whether the power failure spans the month or not, if so, transferring the read monthly voltage qualification rate data into the monthly voltage qualification rate data statistics, and resetting the monthly voltage qualification rate data.

2. And (4) normal operation: the voltage values are read once per second. And when the voltage value is within the upper and lower limit ranges of the voltage assessment value, performing voltage qualification rate statistics.

(1) Counting voltage monitoring time, voltage qualified time, voltage over-upper-limit time and voltage over-lower-limit time: the voltage monitoring time is 1 added to the second, and when the voltage monitoring time is 60 added, the voltage monitoring time is 1 added. When the voltage value is within the range of the upper limit and the lower limit of the voltage, adding 1 to the qualified voltage time second, and adding 1 to the qualified voltage time when adding 60. When the voltage value exceeds the upper limit voltage value, the voltage exceeding time is added by 1 in seconds, and when the voltage exceeding time is added by 60, the voltage exceeding time is added by 1 in minutes. When the voltage value is lower than the lower limit value of the voltage, adding 1 to the second of the voltage exceeding lower limit time, and when the voltage value is added to 60, adding 1 to the second of the voltage exceeding lower limit time.

(2) Counting the voltage qualification rate and the overrun rate

The voltage overrun rate is (voltage overrun time + voltage overrun time) 100%/voltage monitoring time, and the voltage pass rate is 1-voltage overrun rate.

(3) And (4) counting the highest voltage and the occurrence time, the lowest voltage and the occurrence time and the average voltage (the daily voltage qualification rate is only counted, and the monthly voltage qualification rate is not counted).

And when the read voltage value is smaller than the stored lowest voltage value, updating the lowest voltage value and the appearance time. The value of the sum of the voltages is added to the value of the read voltage and the voltage count value is added to 1. Average voltage is the sum of voltages/voltage count.

And when the time-sharing standard is detected to be updated, updating the voltage qualified rate statistical value of the current day and the current month. And when the time-of-day standard is updated, the voltage qualification rate statistics of the current day are transferred to the voltage qualification rate statistics of the last 1 day, and the statistical data of the voltage qualification rate of the current day are cleared. When the month time scale is detected to be updated, the voltage qualification rate statistics of the month are transferred to the voltage qualification rate statistics of the last 1 month, and the voltage qualification rate statistics data of the month are reset.

3. When a power failure signal exists, the voltage qualification rate data of the current day and the current month are all stored for recovery or dump during power supply.

According to the implementation method for the voltage qualification rate statistics of the double-core intelligent ammeter management unit, when the ammeter management unit operates, the voltage qualification rate statistics is carried out by acquiring real-time data pushed by the metering management service, checking the upper limit value and the lower limit value according to the voltage value in the real-time data, and checking the upper limit value and the lower limit value according to the voltage. Meanwhile, a method for realizing the statistics of the voltage qualification rate of the management unit is adopted, namely, the recorded voltage qualification rate data is stored in the management unit through an event thread. The event record is established by a main thread after the electric meter is electrified, the voltage qualification rate statistics is performed by establishing sub-threads, the timer task is established by judging signals of modules such as time-sharing measurement and the like to record the voltage qualification rate event, the program thread resource is saved, the judgment is performed in real time according to the upper limit value and the lower limit value when the voltage qualification rate is judged, and the accuracy and the real-time performance of the result are ensured.

It should be understood that, although the steps in the flowcharts of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed alternately or in alternation with other steps or at least some of the other steps or stages.

In one embodiment, as shown in fig. 7, there is provided a voltage qualification recording apparatus for a two-core smart meter, applied to a management unit of the two-core smart meter, including: a real-time data obtaining module 701, an identification condition determining module 702, a data duration obtaining module 703 and a qualification rate recording module 704, wherein:

the real-time data acquisition module 701 is used for acquiring real-time voltage data corresponding to a time interval of the qualified rate of the voltage to be recorded from a metering unit of the double-core intelligent electric meter;

an identification condition determining module 702, configured to determine a voltage state identification condition for identifying a state where the real-time voltage data is located;

a data duration obtaining module 703, configured to obtain a voltage exceeding lower limit duration, a voltage exceeding upper limit duration, and a voltage monitoring duration based on the voltage state identification condition; the voltage exceeding lower limit duration is the data duration of the real-time voltage data in the voltage exceeding lower limit state, the voltage exceeding upper limit duration is the data duration of the real-time voltage data in the voltage exceeding upper limit state, and the voltage monitoring duration is the data duration of the real-time voltage data in the monitoring state;

and the qualification rate recording module 704 is used for summing the voltage overrun time length and the voltage overrun time length to obtain the voltage overrun time length, taking the ratio of the voltage overrun time length to the voltage monitoring time length as the voltage overrun rate, obtaining the qualification rate of the voltage to be recorded according to the voltage overrun rate, and recording the qualification rate of the voltage to be recorded.

In one embodiment, the voltage state identifies a condition comprising: the voltage qualified upper threshold and the voltage qualified lower threshold are used for identifying the qualified state of the real-time voltage data, and the voltage monitoring upper threshold and the voltage monitoring lower threshold are used for identifying the monitoring state of the real-time voltage data; the voltage qualified upper threshold is smaller than the voltage monitoring upper threshold, and the voltage qualified lower threshold is larger than the voltage monitoring lower threshold; the data duration obtaining module 703 is further configured to obtain, from the real-time voltage data, real-time voltage data that is smaller than the voltage qualified lower threshold and larger than the voltage monitoring lower threshold, as the real-time voltage data in the voltage over-lower-limit state; acquiring the data duration of the real-time voltage data in the voltage over-lower limit state as the voltage over-lower limit duration; acquiring real-time voltage data which is greater than a voltage qualified upper limit threshold and less than a voltage monitoring upper limit threshold from the real-time voltage data, and taking the real-time voltage data as real-time voltage data in a voltage over upper limit state; acquiring the data duration of the real-time voltage data in the voltage over-limit state as the voltage over-limit duration; acquiring voltage data which is smaller than a voltage monitoring upper limit threshold and larger than a voltage monitoring lower limit threshold from the real-time voltage data, and taking the voltage data as the real-time voltage data in a monitoring state; and acquiring the data duration of the real-time voltage data in the monitoring state as the voltage monitoring duration.

In an embodiment, the real-time data obtaining module 701 is further configured to continuously obtain, from the metering unit, a plurality of real-time voltage data corresponding to a time interval according to a preset time interval; the data duration obtaining module 703 is further configured to determine a first data number of the real-time voltage data in the voltage exceeding lower limit state, and determine the voltage exceeding lower limit duration according to the first data number and the time interval; determining a second data number of the real-time voltage data in the voltage over-limit state, and determining the voltage over-limit duration according to the second data number and the time interval; and determining the third data number of the real-time voltage data in the monitoring state, and determining the voltage monitoring duration according to the third data number and the time interval.

In one embodiment, the voltage qualification rate recording device of the two-core smart electric meter further comprises: the real-time data recording module is used for acquiring a real-time voltage peak value corresponding to a time interval and a peak time point corresponding to the real-time voltage peak value from the plurality of real-time voltage data and recording the real-time voltage peak value and the peak time point; the real-time voltage data acquisition module is also used for acquiring real-time voltage valleys corresponding to time intervals and valley time points corresponding to the real-time voltage valleys from the plurality of real-time voltage data and recording the real-time voltage valleys and the valley time points; and the voltage sum is used for acquiring the voltage sum of the real-time voltage data and the total data number of the real-time voltage data, and the ratio of the voltage sum to the total data number is used as the average voltage corresponding to the time interval and is recorded.

In one embodiment, the time interval is a plurality of consecutive time intervals; two core smart electric meter's voltage qualification rate recorder still includes: and the first qualification rate unloading module is used for taking the qualified rate of the recorded voltage to be recorded as the qualified rate of the voltage to be recorded in the previous time interval corresponding to the current time interval and carrying out zero clearing treatment on the qualified rate of the voltage to be recorded corresponding to the current time interval if the current time scale is detected to meet the updating condition of the time interval.

In one embodiment, the voltage qualification rate recording device of the two-core smart electric meter further comprises: the second qualification rate unloading module is used for carrying out power-down storage on the qualification rate of the voltage to be recorded if a power-down signal is detected; if the power-on signal is detected, reading the qualified rate of the voltage to be recorded stored in the power-down state, and acquiring the power-down time and the power-on time corresponding to the power-down signal and the power-on signal respectively; determining a power failure interval according to the power failure time and the power-on time, and acquiring a power failure time scale corresponding to the power failure interval; and if the power failure time mark meets the updating condition of the time interval, taking the qualification rate of the voltage to be recorded stored in the power failure as the qualification rate of the voltage to be recorded in the last time interval corresponding to the current time interval, and carrying out zero clearing treatment on the qualification rate of the voltage to be recorded stored in the power failure.

In one embodiment, a management unit of the double-core intelligent electric meter carries an event record application; two core smart electric meter's voltage qualification rate recorder still includes: the recording thread creating module is used for creating a voltage qualified rate recording thread for recording the voltage qualified rate through a main thread of the event recording application; the qualification rate recording module 704 is further configured to record the qualification rate of the voltage to be recorded through a voltage qualification rate recording thread.

For specific limitations of the voltage yield recording device of the two-core smart meter, reference may be made to the above limitations of the voltage yield recording method of the two-core smart meter, and details thereof are not repeated herein. All modules in the voltage qualification rate recording device of the double-core intelligent electric meter can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a processor in the dual-core intelligent electric meter or independent of the processor in the dual-core intelligent electric meter in a hardware form, and can also be stored in a memory in the dual-core intelligent electric meter in a software form, so that the processor can call and execute the corresponding operation of the modules.

In one embodiment, a two-core smart meter is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The double-core intelligent electric meter comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein, the processor of the double-core intelligent electric meter is used for providing calculation and control capability. The memory of the double-core intelligent electric meter comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the double-core intelligent electric meter is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by the processor to realize the voltage qualification rate recording method of the double-core intelligent electric meter. The display screen of the double-core intelligent electric meter can be a liquid crystal display screen or an electronic ink display screen, the input device of the double-core intelligent electric meter can be a touch layer covered on the display screen, and can also be a key, a track ball or a touch pad arranged on the shell of the double-core intelligent electric meter, and can also be an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the two-core smart meter to which the present application is applied, and that a particular two-core smart meter may include more or fewer components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a two-core smart meter is further provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.

In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电能表异常检测设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!