CN114879127B - Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter - Google Patents
Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter Download PDFInfo
- Publication number
- CN114879127B CN114879127B CN202210700890.1A CN202210700890A CN114879127B CN 114879127 B CN114879127 B CN 114879127B CN 202210700890 A CN202210700890 A CN 202210700890A CN 114879127 B CN114879127 B CN 114879127B
- Authority
- CN
- China
- Prior art keywords
- electric energy
- calibrated
- calibration
- energy meter
- rtc
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000004364 calculation method Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 11
- 230000000694 effects Effects 0.000 abstract description 2
- 238000005259 measurement Methods 0.000 description 10
- 238000012937 correction Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/04—Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
On one hand, the serial numbers of the calibration points and the output parameters of the table body are simultaneously transmitted to all electric energy meters to be calibrated in a broadcasting mode, and the meter calibration process is completed by an automatic meter calibration program in the meter, so that each electric energy meter to be calibrated can be calibrated at the same time, the consumed time for meter position switching is saved, and the meter calibration efficiency is improved. On the other hand, the calculation of the metering error and the compensation value of the register corresponding to the metering chip is automatically completed by the ammeter to be calibrated, so that the functional requirement of the meter calibrating table body is reduced, and the stability and the reliability of the meter calibrating table body are improved. In addition, the application also provides a metering self-calibration device, equipment and a readable storage medium based on the RTC of the electric energy meter, and the metering self-calibration device have the effects as above.
Description
Technical Field
The application relates to the field of intelligent electric meters, in particular to a metering self-calibration method, device, equipment and storage medium based on an electric energy meter RTC
Background
With the rapid development of national economy, electric power has become the most important energy source for the country. In the case of civil electric power, along with the enrichment of the living standard of people, the use requirement for electric power is larger and larger, the use requirement for an electric energy meter is also increased, and the production efficiency of an electric energy meter enterprise is also improved.
At present, the electric energy meter is required to calibrate the electric energy metering error before leaving the factory, the main meter calibrating method is to connect a pulse signal wire of a meter calibrating table body with a pulse port of the electric energy meter, the meter calibrating table body detects the output pulse interval of the electric energy meter, the power error is calculated according to the detected pulse interval, a meter calibrating system calculates a compensation value after reading the error, and the compensation value is sent to a corresponding electric meter to finish error calibration.
The above-mentioned method of calibrating the table has 3 problems: 1. after the compensation value is calculated, the meter calibrating system needs to send the compensation value to the corresponding electric energy meter, then the next meter position is switched to calculate and calibrate, and the simultaneous calibration of a plurality of meter positions cannot be realized, so that the meter calibrating efficiency is lower. 2. The meter calibrating table body needs to have a detection function for each epitope electric energy pulse, and calculates an error value, so that the meter calibrating table body has complex functions and high requirements. 3. The electric energy pulse signal line needs to be connected for error detection, such as wiring error or poor contact, so that the problem is checked, and the efficiency is reduced.
Disclosure of Invention
The application provides a metering self-calibration method, device and equipment for an RTC (real time clock) of an electric energy meter and a storage medium, and solves the problems that the traditional meter calibrating method in the prior art is low in meter calibrating efficiency and high in meter calibrating table body requirement.
In order to solve the technical problems, the application provides a metering self-calibration method based on an RTC of an electric energy meter, which comprises the following steps:
Transmitting a calibration starting command in a broadcasting mode, and controlling the electric energy meter to be calibrated to enter a calibration mode;
Controlling the electric energy meter to be calibrated to synchronize the RTC of the MCU and the counter of the timer, and calculating the increment value of the counter in the interrupt of the adjacent seconds of the RTC to obtain the time used by the single count value of the counter; wherein the counter is enabled to count from 0 when the RTC second signal is detected, and the counter is disabled to count when the next RTC second signal is detected, and the counter overflows during the period, the number of overflows is counted when the counter overflows After the count is stopped, the value of the counter is denoted as CNT 1, the value of the period register is denoted as PRD, and the reference time T 1 of the unit count value is calculated using the following formula:
;
Reading the output parameters of the table body and sending the output parameters of the table body and the serial numbers of the current calibration points to the electric energy meter to be calibrated in a broadcasting mode;
controlling the electric energy meter to be calibrated to measure the pulse interval of the electric energy pulse, starting a counter after the electric energy pulse is detected, stopping counting until the next electric energy pulse is detected, and calculating the pulse interval time according to the increment value of the counter between adjacent electric energy pulses and the time used by the single count value of the counter;
Controlling the electric energy meter to be calibrated to calculate a current power value according to a meter constant and the pulse interval time;
controlling the electric energy meter to be calibrated to calculate a metering error according to the current power value and the table body output parameter;
Controlling the electric energy meter to be calibrated to judge whether the metering error belongs to a preset range;
If not, controlling the electric energy meter to be calibrated to calculate a compensation value corresponding to a register according to the metering error and the register of the metering chip, writing the compensation value into the metering chip, entering the reading platform body output parameter, and sending the platform body output parameter and the current calibration point serial number to the electric energy meter to be calibrated in a broadcasting mode;
If so, determining that the current calibration point is completed.
As a preferred embodiment, after completing the current calibration point, the method further comprises:
judging whether the current calibration point and all the calibration points are calibrated;
if not, returning the read table body output parameters according to the current calibration point parameters and sending the table body output parameters and the current calibration point serial numbers to the electric energy meter to be calibrated in a broadcasting mode;
If yes, broadcasting and sending a calibration completion command to enable the electric energy meter to be calibrated to exit from a calibration mode, and completing calibration.
As a preferred embodiment, after the broadcasting sends a calibration completion command to make the electric energy meter to be calibrated exit from the calibration mode, the method further includes:
Polling the current calibration states of all the electric energy meters to be calibrated, and judging whether all the electric energy meters to be calibrated are in a calibration completion state;
If yes, returning to the step of judging whether the current calibration point and all the calibration points are calibrated;
And if not, returning to the step of reading the table body output parameters and sending the table body output parameters and the current calibration point serial numbers to the electric energy meter to be calibrated in a broadcasting mode.
As a preferred embodiment, the table output parameters include active power, voltage, current and power factor.
In order to solve the technical problem, the application also provides a metering self-calibration device based on the electric energy meter RTC, which corresponds to the metering self-calibration method based on the electric energy meter RTC, and comprises the following components:
the transmitting module is used for transmitting a calibration starting command in a broadcasting mode and controlling the electric energy meter to be calibrated to enter a calibration mode;
The first control calculation module is used for controlling the electric energy meter to be calibrated to synchronize the RTC of the MCU and the counter of the timer, and calculating the increment value of the counter in the adjacent second interruption of the RTC so as to obtain the time used by the single count value of the counter; wherein the counter is enabled to count from 0 when the RTC second signal is detected, and the counter is disabled to count when the next RTC second signal is detected, and the counter overflows during the period, the number of overflows is counted when the counter overflows After the count is stopped, the value of the counter is denoted as CNT 1, the value of the period register is denoted as PRD, and the reference time T 1 of the unit count value is calculated using the following formula:
;
the reading module is used for reading the output parameters of the table body and sending the output parameters of the table body and the serial numbers of the current calibration points to the electric energy meter to be calibrated in a broadcasting mode;
The second control calculation module is used for controlling the electric energy meter to be calibrated to measure the pulse interval of the electric energy pulse, starting the counter after the electric energy pulse is detected, stopping counting until the next electric energy pulse is detected, and calculating the pulse interval time according to the increment value of the counter between adjacent electric energy pulses and the time used by the single count value of the counter;
The third control calculation module is used for controlling the electric energy meter to be calibrated to calculate the current power value according to the meter constant and the pulse interval time;
The fourth control calculation module is used for controlling the electric energy meter to be calibrated to calculate a metering error according to the current power value and the table body output parameter;
The control judgment module is used for controlling the electric energy meter to be calibrated to judge whether the metering error belongs to a preset range;
if not, triggering a fifth control calculation module, starting the reading module, and if yes, triggering a determination module;
The fifth control calculation module is used for controlling the electric energy meter to be calibrated to calculate a compensation value corresponding to a register according to the metering error and the metering chip register and writing the compensation value into the metering chip;
And the determining module is used for determining that the current calibration point is finished.
In order to solve the technical problem, the application also provides a metering self-calibration device based on the electric energy meter RTC, which corresponds to the metering self-calibration method based on the electric energy meter RTC, and comprises the following components:
A memory for storing a computer program;
And the processor is used for executing the computer program to realize the steps of any metering self-calibration method based on the RTC of the electric energy meter.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the steps of the metering self-calibration method based on the RTC of the electric energy meter.
According to the metering self-calibration method based on the RTC of the electric energy meter, on one hand, the serial numbers of the calibration points and the output parameters of the table body are simultaneously transmitted to all electric energy meters to be calibrated in a broadcasting mode, and the meter calibration process is completed by an automatic meter calibration program in the meter, so that each electric energy meter to be calibrated can be calibrated at the same time, the consumed time for meter position switching is saved, and the meter calibration efficiency is improved. On the other hand, the calculation of the metering error and the compensation value of the register corresponding to the metering chip is automatically completed by the ammeter to be calibrated, so that the functional requirement of the meter calibrating table body is reduced, and the stability and the reliability of the meter calibrating table body are improved. In addition, the application also provides a metering self-calibration device, equipment and a readable storage medium based on the RTC of the electric energy meter, and the metering self-calibration device have the effects as above.
Drawings
For a clearer description of the technical solutions of the present application, the drawings that are required to be used in the embodiments will be briefly described, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without making any effort.
FIG. 1 is a flow chart of a metering self-calibration method based on an RTC of an electric energy meter according to an embodiment of the invention;
FIG. 2 is a flowchart of another metering self-calibration method based on an RTC of an electric energy meter according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a metering self-calibration device based on an RTC of an electric energy meter according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a metering self-calibration device based on an RTC of an electric energy meter according to an embodiment of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the following description will make clear and complete descriptions of the technical solutions of the embodiments of the present application with reference to the accompanying drawings.
The application provides a metering self-calibration method, device, equipment and storage medium for an RTC (real time clock) of an electric energy meter, which can solve the problems of low meter calibration efficiency and high meter calibration table body requirement of the traditional meter calibration method in the prior art.
Fig. 1 is a flow chart of a metering self-calibration method based on an RTC of an electric energy meter according to an embodiment of the present invention, and fig. 2 is a flow chart of another metering self-calibration method based on an RTC of an electric energy meter according to an embodiment of the present invention, as shown in fig. 1 to 2, the method includes the following steps:
S101: and sending a calibration starting command in a broadcasting mode, and controlling the electric energy meter to be calibrated to enter a calibration mode.
When calibration starts, the meter calibration system sends a calibration starting command to all the electric energy meters to be calibrated on the bus in a broadcasting mode through the RS485 bus, so that all the electric energy meters to be calibrated enter a calibration mode.
S102: and controlling the electric energy meter to be calibrated to synchronize the RTC of the MCU and the counter of the timer, and calculating the increment value of the counter in the interrupt of the adjacent seconds of the RTC so as to obtain the time used by the single count value of the counter.
The counter of the RTC and the timer of the MCU are synchronized, the counter is enabled to count from 0 after the RTC second signal is detected, the counter is stopped after the next RTC second signal is detected, during the period, if the counter overflows, the overflow number n 1 is increased by one, the value of the counter is recorded as CNT 1 after the counter is stopped, the value of the period register is recorded as PRD, and the reference time T 1 of the unit count value is calculated by using the following formula.
。
S103: reading the output parameters of the table body and sending the output parameters of the table body and the serial numbers of the current calibration points to the electric energy meter to be calibrated in a broadcasting mode;
Specifically, the output parameters (active power P, voltage U, current I, power factor PF) of the platform body are read, and the output parameters of the platform body and the serial numbers of the calibration points are sent to each electric energy meter to be calibrated in a broadcasting mode.
S104: and controlling the electric energy meter to be calibrated to measure the pulse interval of the electric energy pulse, starting the counter after the electric energy pulse is detected, stopping counting until the next electric energy pulse is detected, and calculating the pulse interval time according to the increment value of the counter between adjacent electric energy pulses and the time used by the single count value of the counter.
Measuring the pulse interval of the electric energy pulse, enabling a counter of a timer when the electric energy pulse signal is detected, stopping counting when the next electric energy pulse signal is detected, adding one to the overflow number n 2 during the period when the counter overflows, recording the value of the counter as CNT 2 after stopping counting, recording the value of a period register as PRD, and calculating the pulse interval time T 2 by using the following formula.
。
S105: and controlling the electric energy meter to be calibrated to calculate the current power value according to the meter constant and the pulse interval time.
。
The power value P 1 is calculated according to the following formula, where EC is the ammeter constant and T 2 is the S4 pulse interval time.
S106: and controlling the electric energy meter to be calibrated to calculate a metering error according to the current power value and the output parameter of the table body.
S107: controlling the electric energy meter to be calibrated to judge whether the metering error belongs to a preset range;
If not, go to step S108, if yes, go to step S109;
S108: controlling the electric energy meter to be calibrated to calculate a compensation value corresponding to a register according to the metering error and the register of the metering chip, writing the compensation value into the metering chip, and returning to S103;
s109: then the current calibration point is determined to be complete.
Calculating the metering error according to the S105 power value P 1 and the stage output power P by using the following formula. If the measurement error is within the required range, the register value corresponding to the current calibration point is saved, and the calibration completion state is positioned in parallel, so that the calibration of the current calibration point is completed.
If the measurement error is not within the preset range, the ATT7122 measurement chip is used for interpretation, the step calculates and writes the compensation value of the corresponding calibration register of the measurement chip according to the calibration point of S103 and the measurement error of S108, and the calculation and writing of the register value compensation value is then carried out to execute S103, and the following is a register compensation value calculation method. In the embodiment of the application, the calibration points at least comprise a first calibration point Un/Ib/1.0L and a second calibration point Un/Ib/0.5L, gain correction and phase correction are respectively carried out, and other calibration points can be added according to the precision requirement to carry out small signal offset correction and reactive power calibration.
When the calibration point is the first calibration point Un/Ib/1.0L, the compensation value of the GP1 power gain register is calculated and written according to the following formula, pgain represents the power gain and is used for saving the calibration parameters in the metering chip.
。
When the calibration point is the second calibration point Un/Ib/0.5L, the compensation value of the PHS phase correction register is calculated and written according to the following formula,Representing the phase error angle.
。
As a preferred embodiment, after determining that the current point calibration is completed, it further includes:
s110: judging whether the current calibration point and all the calibration points are calibrated;
if not, returning to S103 according to the current calibration point parameters;
if yes, go to step S111;
s111: and broadcasting and sending a calibration completion command to enable the electric energy meter to be calibrated to exit from a calibration mode, and completing calibration.
Specifically, the calibration point decision is performed, in this embodiment, two calibration points, namely, a first calibration point Un/Ib/1.0L and a second calibration point Un/Ib/0.5L, are used for interpretation, when the electric energy meter to be calibrated completes calibration of the calibration points, the calibration system starts to execute from the first calibration point, sequentially performs calibration of subsequent calibration points in sequence, and judges whether calibration is completed for all calibration points, if not, execution of S103 is shifted to, and if so, execution of S111 is shifted to.
As a preferred embodiment, after S111, further comprising:
S112: polling the current calibration states of all the electric energy meters to be calibrated, and judging whether all the electric energy meters to be calibrated are in a calibration completion state;
if yes, go to step S110; if not, the process advances to step S103.
When the meter calibrating system of the embodiment executes S101, the communication mode between the meter calibrating system and the electric energy meter to be calibrated can be data communication with bluetooth or infrared besides the RS485 bus. In addition, the number of the calibration points is not limited, and the calibration points can be defined according to the precision requirement, so that small signals and reactive power correction can be performed. According to the method, a singlechip counter is synchronized with an RTC clock, errors caused by crystal oscillator precision are reduced, the counter accuracy meets the requirement of metering errors, then the counter is used for measuring the interval time of electric energy pulses, and therefore the electric energy metering errors and corresponding register correction values are calculated, and the electric meter calibration is completed.
Fig. 3 is a schematic structural diagram of a metering self-calibration device based on an RTC of an electric energy meter according to an embodiment of the present invention, including: a transmitting module 201, a first control calculation module 202, a reading module 203, a second control calculation module 204, a third control calculation module 205, a fourth control calculation module 206, a control judgment module 207, a fifth control calculation module 208, and a determining module 209.
A transmitting module 201, configured to transmit a calibration start command in a broadcast manner, and control the electric energy meter to be calibrated to enter a calibration mode;
A first control calculation module 202, configured to control the electric energy meter to be calibrated to synchronize the RTC of the MCU with the counter of the timer, and calculate the time taken for the counter to count a single count value in the increased value of the counter in the interrupt of the RTC for adjacent seconds;
The reading module 203 is configured to read the table output parameter and send the table output parameter and the current calibration point serial number to the electric energy meter to be calibrated in a broadcast manner;
the second control calculation module 204 is configured to control the electric energy meter to be calibrated to measure a pulse interval of the electric energy pulse, start the counter after detecting the electric energy pulse, stop counting until detecting the next electric energy pulse, and calculate a pulse interval time according to the added value and a time used by a single count value of the counter;
The third control calculation module 205 is configured to control the electric energy meter to be calibrated to calculate a current power value according to a meter constant and a pulse interval time;
A fourth control calculation module 206, configured to control the electric energy meter to be calibrated to calculate a measurement error according to the current power value and the table output parameter;
A control judging module 207, configured to control the electric energy meter to be calibrated to judge whether the measurement error belongs to a preset range;
if yes, the fifth control calculation module 208 is triggered, and if no, the determination module 209 is triggered;
The fifth control calculation module 208 is configured to control the electric energy meter to be calibrated to calculate a compensation value corresponding to the register according to the measurement error and the register of the measurement chip, and write the compensation value into the measurement chip to calibrate the current calibration point;
a determining module 209 is configured to determine that the current calibration point is complete.
Fig. 4 is a schematic structural diagram of a metering self-calibration device based on an RTC of an electric energy meter according to an embodiment of the present invention, including a memory 301 and a processor 302, where the memory 301 is configured to store a computer program; a processor 302 for executing a computer program to implement the steps of the method for self-calibration of metering based on the RTC of the electric energy meter provided in any one of the embodiments described above.
A computer readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the steps of the method for self-calibration of metering based on an RTC of an electric energy meter provided by any one of the embodiments described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The embodiments of the present application described above do not limit the scope of the present application.
Claims (7)
1. The metering self-calibration method based on the RTC of the electric energy meter is characterized by comprising the following steps of:
Transmitting a calibration starting command in a broadcasting mode, and controlling the electric energy meter to be calibrated to enter a calibration mode;
controlling the electric energy meter to be calibrated to synchronize the RTC of the MCU and the counter of the timer, and calculating the increment value of the counter in the interrupt of the adjacent seconds of the RTC to obtain the time used by the single count value of the counter; wherein, when the RTC second signal is detected, the counter is enabled to start counting from 0, when the next RTC second signal is detected, the counting is stopped, during this period, if the counter overflows, the overflow number n 1 is increased by one, after stopping counting, the value of the counter is recorded as CNT 1, the value of the period register is recorded as PRD, and the reference time T 1 of the unit count value is calculated using the following formula:
;
Reading the output parameters of the table body and sending the output parameters of the table body and the serial numbers of the current calibration points to the electric energy meter to be calibrated in a broadcasting mode;
controlling the electric energy meter to be calibrated to measure the pulse interval of the electric energy pulse, starting a counter after the electric energy pulse is detected, stopping counting until the next electric energy pulse is detected, and calculating the pulse interval time according to the increment value of the counter between adjacent electric energy pulses and the time used by the single count value of the counter;
Controlling the electric energy meter to be calibrated to calculate a current power value according to a meter constant and the pulse interval time;
controlling the electric energy meter to be calibrated to calculate a metering error according to the current power value and the table body output parameter;
Controlling the electric energy meter to be calibrated to judge whether the metering error belongs to a preset range;
If not, controlling the electric energy meter to be calibrated to calculate a compensation value corresponding to a register according to the metering error and the register of the metering chip, writing the compensation value into the metering chip, entering the reading platform body output parameter, and sending the platform body output parameter and the current calibration point serial number to the electric energy meter to be calibrated in a broadcasting mode;
If so, determining that the current calibration point is completed.
2. The method for self-calibration of a meter RTC according to claim 1, characterized in that it further comprises, after completion of said current calibration point:
judging whether the current calibration point and all the calibration points are calibrated;
if not, returning the read table body output parameters according to the current calibration point parameters and sending the table body output parameters and the current calibration point serial numbers to the electric energy meter to be calibrated in a broadcasting mode;
If yes, broadcasting and sending a calibration completion command to enable the electric energy meter to be calibrated to exit from a calibration mode, and completing calibration.
3. The method for calibrating the calibration of the electric energy meter RTC according to claim 2, characterized in that after the broadcasting transmits a calibration completion command to cause the electric energy meter to be calibrated to exit from the calibration mode, further comprising:
Polling the current calibration states of all the electric energy meters to be calibrated, and judging whether all the electric energy meters to be calibrated are in a calibration completion state;
If yes, returning to the step of judging whether the current calibration point and all the calibration points are calibrated;
And if not, returning to the step of reading the table body output parameters and sending the table body output parameters and the current calibration point serial numbers to the electric energy meter to be calibrated in a broadcasting mode.
4. The method of calibrating a meter based on an RTC of an electric energy meter of claim 1, wherein the table output parameters include active power, voltage, current and power factor.
5. A metering self-calibration device based on an electric energy meter RTC, comprising:
the transmitting module is used for transmitting a calibration starting command in a broadcasting mode and controlling the electric energy meter to be calibrated to enter a calibration mode;
The first control calculation module is used for controlling the electric energy meter to be calibrated to synchronize the RTC of the MCU and the counter of the timer, and calculating the increment value of the counter in the adjacent second interruption of the RTC so as to obtain the time used by the single count value of the counter; wherein, when the RTC second signal is detected, the counter is enabled to start counting from 0, when the next RTC second signal is detected, the counting is stopped, during this period, if the counter overflows, the overflow number n 1 is increased by one, after stopping counting, the value of the counter is recorded as CNT 1, the value of the period register is recorded as PRD, and the reference time T 1 of the unit count value is calculated using the following formula:
;
the reading module is used for reading the output parameters of the table body and sending the output parameters of the table body and the serial numbers of the current calibration points to the electric energy meter to be calibrated in a broadcasting mode;
The second control calculation module is used for controlling the electric energy meter to be calibrated to measure the pulse interval of the electric energy pulse, starting the counter after the electric energy pulse is detected, stopping counting until the next electric energy pulse is detected, and calculating the pulse interval time according to the increment value of the counter between adjacent electric energy pulses and the time used by the single count value of the counter;
The third control calculation module is used for controlling the electric energy meter to be calibrated to calculate the current power value according to the meter constant and the pulse interval time;
The fourth control calculation module is used for controlling the electric energy meter to be calibrated to calculate a metering error according to the current power value and the table body output parameter;
The control judgment module is used for controlling the electric energy meter to be calibrated to judge whether the metering error belongs to a preset range;
if not, triggering a fifth control calculation module, starting the reading module, and if yes, triggering a determination module;
The fifth control calculation module is used for controlling the electric energy meter to be calibrated to calculate a compensation value corresponding to a register according to the metering error and the metering chip register and writing the compensation value into the metering chip;
And the determining module is used for determining that the current calibration point is finished.
6. A metering self-calibration device based on an electric energy meter RTC, comprising:
A memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for self-calibration of metering based on an electric energy meter RTC according to any one of claims 1 to 4.
7. A computer readable storage medium, characterized in that it has stored thereon a computer program to be executed by a processor to implement the steps of the method for self-calibration of metering based on an electric energy meter RTC according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210700890.1A CN114879127B (en) | 2022-06-20 | 2022-06-20 | Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210700890.1A CN114879127B (en) | 2022-06-20 | 2022-06-20 | Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114879127A CN114879127A (en) | 2022-08-09 |
CN114879127B true CN114879127B (en) | 2024-06-25 |
Family
ID=82681138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210700890.1A Active CN114879127B (en) | 2022-06-20 | 2022-06-20 | Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114879127B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117907924B (en) * | 2024-01-24 | 2024-07-02 | 国网山西省电力公司阳泉供电公司 | Wide area metering device with self-calibration function and measurement method thereof |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6304517B1 (en) * | 1999-06-18 | 2001-10-16 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for real time clock frequency error correction |
CN101799526B (en) * | 2009-02-06 | 2012-12-12 | 杭州中科微电子有限公司 | Method for calibrating high-precision RTC circuit in GPS receiver and module thereof |
US8446223B2 (en) * | 2009-05-22 | 2013-05-21 | CSR Technology, Inc. | Systems and methods for calibrating real time clock |
JP5554686B2 (en) * | 2010-11-09 | 2014-07-23 | 横河電機株式会社 | Electric energy measuring device and watt-hour meter calibration method using the same |
CN202256438U (en) * | 2011-08-02 | 2012-05-30 | 珠海中慧微电子有限公司 | Hardware real time clock (RTC) error compensation system of intelligent electric energy meter |
CN102590784B (en) * | 2012-03-14 | 2014-08-13 | 沈阳时尚实业有限公司 | Single-phase intelligent energy meter distributed correction method |
CN109738849A (en) * | 2019-03-08 | 2019-05-10 | 威胜集团有限公司 | Universal quick calibration method for single-phase electric energy meter |
CN113346881B (en) * | 2021-05-27 | 2023-08-18 | 珠海东之尼电子科技有限公司 | Digital clock calibration method, wireless remote controller and storage medium |
-
2022
- 2022-06-20 CN CN202210700890.1A patent/CN114879127B/en active Active
Non-Patent Citations (2)
Title |
---|
单板机控制电度表校验装置;张应斌 等;吉林大学学报(信息科学版);19860330(第01期);95-102 * |
电子式多功能电能表的校验及应用;邱召霞 等;《供用电》;20061217;第23卷(第06期);62-64 * |
Also Published As
Publication number | Publication date |
---|---|
CN114879127A (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102590784B (en) | Single-phase intelligent energy meter distributed correction method | |
CN101876693B (en) | Electric energy metering chip-based terminal calibration system | |
CN100575965C (en) | A kind of method of measuring frequency of single-chip | |
CN114879127B (en) | Metering self-calibration method, device, equipment and storage medium of RTC (real time clock) of electric energy meter | |
CN105388445A (en) | Automatic meter calibration method for single-phase electric energy meter | |
CN101799526B (en) | Method for calibrating high-precision RTC circuit in GPS receiver and module thereof | |
CN110196404A (en) | A kind of metering chip calibration method, device and the terminal device of charging pile | |
US11965919B2 (en) | Phase frequency detector-based high-precision feedback frequency measurement apparatus and method | |
CN100395682C (en) | 'Beidou No.1' satellite navigation system and GPS mutually preparing time service method and apparatus | |
WO2019140956A1 (en) | Electricity quantity metering accuracy detection method, device and computer storage medium | |
CN111157081B (en) | Calibration method of electronic gas meter | |
CN101995816A (en) | Automatic clock calibration method and automatic clock calibration device | |
CN101252357A (en) | Method and system for correcting parameter | |
CN113934257B (en) | System time calculation method, device, equipment and storage medium | |
CN101136627B (en) | Method for automatically setting high-stability constant temperature crystal oscillator parameter | |
CN110928172B (en) | Satellite watch crystal oscillator precision detection method, satellite watch crystal oscillator time keeping method and satellite watch | |
US20120036343A1 (en) | Electronic apparatus and meter operable during program updating | |
CN201091067Y (en) | Parameter correcting system | |
CN111638750A (en) | Writer and RTC correcting method | |
CN110333387A (en) | A kind of electric quantity metering method of electric energy meter | |
CN112286039A (en) | Clock calibration method and device and readable storage medium | |
CN112881968B (en) | Ammeter calibrating device and method | |
CN101493529B (en) | Method for enhancing measurement precision of proton magnetometer | |
CN208588932U (en) | Sync site measuring instrument | |
CN103326898B (en) | A kind of ether interface links detection system and the method for settling time |
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 |