CN109188335A - Clock of power meter offset detection system and method - Google Patents

Clock of power meter offset detection system and method Download PDF

Info

Publication number
CN109188335A
CN109188335A CN201810922809.8A CN201810922809A CN109188335A CN 109188335 A CN109188335 A CN 109188335A CN 201810922809 A CN201810922809 A CN 201810922809A CN 109188335 A CN109188335 A CN 109188335A
Authority
CN
China
Prior art keywords
count value
reference signal
electric energy
clock
energy meter
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.)
Granted
Application number
CN201810922809.8A
Other languages
Chinese (zh)
Other versions
CN109188335B (en
Inventor
于安源
刘刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Tongliyuan Electric Power Technology Co Ltd
Original Assignee
Sichuan Tongliyuan Electric Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Tongliyuan Electric Power Technology Co Ltd filed Critical Sichuan Tongliyuan Electric Power Technology Co Ltd
Priority to CN201810922809.8A priority Critical patent/CN109188335B/en
Publication of CN109188335A publication Critical patent/CN109188335A/en
Application granted granted Critical
Publication of CN109188335B publication Critical patent/CN109188335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Abstract

The invention belongs to electric energy meter technical field, a kind of clock of power meter offset detection system and method are provided.The system comprises: GPS module, for sending pulse per second (PPS) PPS reference signal to the control module;Crystal oscillator module, for sending non-oscillating reference signal to the control module;Control module, for within a preset period of time, the PPS reference signal is carried out counting to get the first count value, and carry out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter, the clock jitter of the electric energy meter is determined according to first count value and second count value.The present invention can be realized the clock jitter of quickly detection electric energy meter, and detection accuracy is high, reduce testing cost.

Description

Clock of power meter offset detection system and method
Technical field
The invention belongs to electric energy meter technical fields, are to be related to a kind of clock of power meter offset detection system more specifically And method.
Background technique
The construction dynamics of smart grid is continued to increase recently as country, the quantity explosive growth of intelligent electric energy meter, Therefore each manufacturer manufacturing shop faces greatly production and delivery pressure, and is electricity to the detection of the clock signal deviations of electric energy meter The key link of energy table factory testing.
Currently, each electric energy meter manufacturer mainly passes through frequency meter, state to the separate-blas estimation of the clock output signal of electric energy meter Requirement of family's power grid to clock of power meter error is to be less than 0.5S daily, and this requires the precision of frequency meter to have in 0.1PPM (Pulse Per minute, sectors punching) grade, but existing low end frequency meter is unable to satisfy the requirement of signal accuracy, to drop Low detection accuracy;And longer preheating time is needed when counter detects mostly, so that the detection time of electric energy meter is long, Reduce detection efficiency.
Summary of the invention
In consideration of it, the present invention provides a kind of clock of power meter offset detection system and method, it is intended to solve in the prior art The problem that the separate-blas estimation precision of electric energy meter is low and detection time is long.
The first aspect of the embodiment of the present invention provides a kind of clock of power meter offset detection system, comprising: GPS (Global Positioning System, global positioning system) module, crystal oscillator module and control module;
The GPS module, for sending pulse per second (PPS) PPS (Pulse Per Second, pulse per second (PPS)) to the control module Reference signal;
The crystal oscillator module, for sending non-oscillating reference signal to the control module;
The control module, within a preset period of time, carrying out counting to get the first counting to the PPS reference signal Value, and carry out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter, The clock jitter of the electric energy meter is determined according to first count value and second count value.
Optionally, the control module is specifically used for:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal;
Within a preset period of time, the PPS reference signal is carried out counting to get the first count value, and according to described One reference signal carries out counting to get the second count value to the clock output signal of the electric energy meter;
The clock jitter of the electric energy meter is determined according to first count value and second count value.
Optionally, the control module includes control unit, counting unit and judging unit;
Described control unit is counted in the preset time period for controlling the counting unit;
The counting unit, for carrying out counting to get the first count value to the PPS reference signal, and according to described Non-oscillating reference signal carries out counting to get the second count value to the clock output signal of the electric energy meter;
The judging unit, for according to first count value and second count value determine the electric energy meter when Clock deviation.
Optionally, the judging unit is specifically used for:
The clocking error of the electric energy meter is obtained according to first count value and second count value;
Judge whether the clocking error is above standard error range;
If the clocking error is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter.
Optionally, described that the clocking error of the electric energy meter is obtained according to first count value and second count value It specifically includes:
Wherein, E is the clocking error, and M is first count value, and N is second count value.
Optionally, the control module is also used to:
Obtain the pre-set count values counted to get in the preset time period to the PPS reference signal;
Judge whether the difference of the pre-set count values and standard count value is allowing in difference range;
If the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that described default Count value is first count value.
The second aspect of the embodiment of the present invention provides a kind of clock of power meter deviation detecting method, is suitable for including GPS The clock of power meter offset detection system of module, crystal oscillator module and control module, which comprises
The GPS module sends pulse per second (PPS) PPS reference signal to the control module;
The crystal oscillator module sends non-oscillating reference signal to the control module;
Within a preset period of time, the control module carries out counting to get the first count value to the PPS reference signal, with And it carries out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter;
The control module determines that the clock of the electric energy meter is inclined according to first count value and second count value Difference.
Optionally, described that the clock output signal of the electric energy meter is counted to get according to the non-oscillating reference signal Second count value specifically includes:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal;
Within a preset period of time, the clock output signal of the electric energy meter is counted according to first reference signal Obtain second count value.
Optionally, the clock jitter that the electric energy meter is determined according to first count value and second count value It specifically includes:
The clocking error of the electric energy meter is obtained according to first count value and second count value;
Judge whether the clocking error is above standard error range;
If the clocking error is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter.
Optionally, the method also includes:
The control module obtain the PPS reference signal is counted to get in the preset time period it is pre-designed Numerical value;
Judge whether the difference of the pre-set count values and standard count value is allowing in difference range;
If the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that described default Count value is first count value.
The beneficial effect of clock of power meter offset detection system and method compared with prior art exists in the embodiment of the present invention In: by the PPS reference signal of GPS module, high-precision checking signal is provided for the detection of electric energy meter, so that detection accuracy It is high;Crystal oscillator module does not need to preheat in advance, can directly provide non-oscillating reference signal, save detection clock of power meter deviation when Between, and reduce costs low;Last control module is believed according to the first count value of PPS reference signal and the clock output of electric energy meter Number the second count value determine the clock jitter of the electric energy meter, realize the clock jitter of quickly detection electric energy meter, improve detection Efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the structural schematic diagram for the clock of power meter offset detection system that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of clock of power meter deviation detecting method provided by Embodiment 2 of the present invention;
Fig. 3 is the specific implementation flow schematic diagram of step 203 in Fig. 2 provided by Embodiment 2 of the present invention;
Fig. 4 is the specific implementation flow schematic diagram of step 204 in Fig. 2 provided by Embodiment 2 of the present invention;
Fig. 5 is the implementation process signal of another clock of power meter deviation detecting method provided by Embodiment 2 of the present invention Figure.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
Referring to Fig. 1, a kind of clock of power meter offset detection system provided in an embodiment of the present invention, including GPS module 100, Crystal oscillator module 200 and control module 300.
Wherein, GPS module 100 is connect with control module 300, and crystal oscillator module 200 is connect with control module 300, controls mould Block 300 is connect by jockey with electric energy meter.
GPS module 100 is used to send pulse per second (PPS) PPS reference signal to control module 300.
Crystal oscillator module 200 is used to send non-oscillating reference signal to control module 300.
Control module 300 to the PPS reference signal within a preset period of time, carrying out counting to get the first counting Value, and carry out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter, The clock jitter of the electric energy meter is determined according to first count value and second count value.
Optionally, PPS reference signal can be 1PPS signal.Wherein, 1PPS=1Hz=1 times/second, i.e. 1PPS signal one It is second primary, then illustrate that the period of 1PPS signal is one second primary, but the present embodiment to the width of 1PPS signal without limitation, The width of 1PPS signal can be Millisecond or nanosecond pulse width.
In concrete application, after control module 300 is connect by jockey with electric energy meter, starting GPS is inputted according to user Module 100, crystal oscillator module 200 and control module 300.GPS module 100 sends pulse per second (PPS) PPS with reference to letter to control module 300 Number, crystal oscillator module 200 sends non-oscillating reference signal to control module 300, while electric energy meter is defeated to 300 tranmitting data register of control module Signal out.Then control module 300 carries out counting to get the first count value to the PPS reference signal within a preset period of time, Control module 300 within a preset period of time counts the clock output signal of the electric energy meter according to the non-oscillating reference signal Number obtains the second count value;Last control module 300 determines the electricity according to first count value and second count value The clock jitter of energy table.
Wherein, counting of the control module 300 to PPS reference signal and the counting of the clock output signal to electric energy meter can be with Be it is asynchronous, only need to period that PPS reference signal is counted with the clock output signal of electric energy meter is counted Period is the preset time period, and the clock jitter of detection electric energy meter is not just limited by signal synchronization in this way, when detection Between faster.
GPS module 100 is to be integrated with radio frequency chip, baseband chip and CPU (Central Processing Unit, center Processor), and add associated peripheral circuits and an integrated circuit forming, for satellite positioning and calibration aspect.GPS module The 100 PPS reference signals issued, can easily do the pulse width of 20nS rank, that is, 0.02PPM, be much higher than electric energy 0.1PPM needed for table clock detection, can be used as standard signal source;And GPS module 100 has in the case where signal is good There are good long-term frequency stability, almost without cumulative errors, and high-precision PPS reference signal can be provided, improves detection The precision of clock of power meter deviation.
Crystal oscillator module in the present embodiment is common active oscillator, does not need constant temperature processing.Common active oscillating Device starting speed is faster than constant-temperature crystal oscillator, has good short-term frequency stability, and then accelerate the deviation of detection electric energy meter Speed improves detection efficiency.
Above-mentioned clock of power meter offset detection system is the detection of electric energy meter by the PPS reference signal of GPS module 100 High-precision checking signal is provided, so that detection accuracy is high;Crystal oscillator module 200 does not need to preheat in advance, can directly provide oscillation Reference signal, saves the time of detection clock of power meter deviation, and reduces costs low;Last control module 300 is according to PPS Second count value of the clock output signal of the first count value and electric energy meter of reference signal determines that the clock of the electric energy meter is inclined Difference realizes the clock jitter of quickly detection electric energy meter, improves detection efficiency.
In another embodiment, GPS module 100 can be specific GPS chip, such as SYN100MHzGPS locking phase plate, Best performance, high sensitivity shorten the starting time, quickly enter application state.SYN100MHzGPS locking phase plate passes through first Serial line interface is connect with control module 300.
The specific chip structure of GPS module 100 without limitation, can also may be implemented to control mould in the present embodiment for other The GPS chip, such as GPS time service card etc. of the transmission PPS reference signal of block 100.
In another embodiment, control module 300 is MCU.
MCU is also known as one chip microcomputer (Single Chip Microcomputer) or single-chip microcontroller, is centre The frequency and specification for managing device (Central Process Unit, CPU) do appropriate reduction, and by memory (memory), counter (Timer), USB (Universal Serial Bus, universal serial bus), A/D (Analog/Digital, analog/digital) Conversion, UART (universal asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter), can Perimeter interfaces or even the LCD such as programmed logic controller, DMA (Direct Memory Access, direct memory access) (Liquid Crystal Display, liquid crystal display) driving circuit is integrated on a single chip, and the calculating of chip-scale is formed Machine does various combination control for different applications.
Optionally, control module 300 can be STM32F family chip.The STM32F family chip have high-performance, The characteristics of low cost, low-power consumption, reduces cost for clock of power meter detection device, improves the property of clock of power meter detection device Energy.
In another embodiment, control module 300 is specifically used for:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal.
In practical application, the non-oscillating reference signal that crystal oscillator module 200 is sent to control module 300 can not be directly to electric energy The clock output signal of table is counted, but after needing to carry out certain calibration, after meeting calibration frequency, after recycling calibration Reference signal the clock output signal of electric energy meter is counted.For example, the non-oscillating reference signal that crystal oscillator module 200 is sent Frequency may be too small, and the precision counted to the clock output signal of electric energy meter is inadequate, and control module 300 is when being counted It is likely to few note.
So the PPS reference signal that sends first with GPS module 100 of the present embodiment to the non-oscillating reference signal into Row calibration, control module 300 are calibrated the frequency of the non-oscillating reference signal to obtain the first reference signal, increase oscillation ginseng Examine what the frequency of signal, the precision of raising non-oscillating reference signal, and then increase counted the clock output signal of electric energy meter Accuracy.
Within a preset period of time, the PPS reference signal is carried out counting to get the first count value, and according to described One reference signal carries out counting to get the second count value to the clock output signal of the electric energy meter.
Illustratively, PPS reference signal is 1PPS signal, and the preset time period is 10 minutes, 300 pairs of institutes of control module It states 1PPS signal to carry out counting to get the first count value in 10 minutes, the 1PPS signal sends crystal oscillator module 200 at this time The non-oscillating reference signal calibrated to obtain the first reference signal, then control module 300 further according to it is described first reference Signal carries out counting to get the second count value in 10 minutes to the clock output signal of the electric energy meter.
Illustratively, PPS reference signal is 1PPS signal, and the preset time period is 5 minutes, 300 pairs of institutes of control module It states 1PPS signal to carry out counting to get the first count value in 5 minutes, then control module 300 is further according to the 1PPS signal to crystalline substance The non-oscillating reference signal that vibration module 200 is sent is calibrated, and obtains the first reference signal, last control module 300 root again The clock output signal of the electric energy meter is carried out counting to get the second count value in ten minutes according to first reference signal.
Illustratively, PPS reference signal is 1PPS signal, and the preset time period is 3 minutes, and control module 300 is first led to It crosses the non-oscillating reference signal that the 1PPS signal of GPS module 100 sends crystal oscillator module 200 to calibrate, obtains first with reference to letter Number, then control module 300 can carry out counting to get the first count value, Yi Jigen in 3 minutes to the 1PPS signal simultaneously The clock output signal of the electric energy meter is carried out counting to get the second count value in 3 minutes according to first reference signal.
Optionally, control module 300 is also used to store first count value and second count value.
Illustratively, when control module 300 counts to get the first count value to PPS reference signal progress preset time period Afterwards, first count value is stored, over time, after electric energy meter can be with tranmitting data register output signal, controls mould Block 300 is calibrated by the non-oscillating reference signal that PPS reference signal sends crystal oscillator module 200, obtains the first reference signal, Then the is counted to get to what the clock output signal of the electric energy meter carried out preset time period according to first reference signal Two count values store second count value.
Store first count value and second count value, may be implemented to PPS reference signal and electric energy meter when The asynchronous counting of clock output signal.For example, being carried out according to clock output signal of first reference signal to the electric energy meter After counting, stored first count value can be obtained again, then true by first count value and second count value The clock jitter of the fixed electric energy meter.
The clock jitter of the electric energy meter is determined according to first count value and second count value.
Illustratively, the size of first count value and second count value is big in first count value When second count value, determining the electric energy meter, there are clock jitters, are equal in first count value described When the second count value, then clock jitter is not present in the electric energy meter.For example, in 5 minutes, first count value is 300 times, Second count value is 290 times, and the first count value is greater than the second count value, determines that there are clock jitters for the electric energy meter;Example Such as, in 3 minutes, first count value is 180 times, and second count value is 200 times, and the first count value is less than the second meter Numerical value determines that there are clock jitters for the electric energy meter;For example, in 10 minutes, first count value is 600 times, described the Two count values are 600 times, and the first count value is equal to the second count value, then clock jitter is not present in the electric energy meter.
Illustratively, the difference for calculating first count value and second count value, judge the difference whether Allow in difference range, if the difference is allowing in difference range, clock jitter is not present in the electric energy meter, if the difference Value is not allowing to determine that there are clock jitters for the electric energy meter in difference range.For example, in 5 minutes, first count value It is 300 times, second count value is 290 times, and the difference of the first count value and the second count value is 10, the permission difference model It encloses for (- 5,5), it is determined that there are clock jitters for the electric energy meter;For example, first count value is 181 times in 3 minutes, Second count value is 185 times, and the difference of the first count value and the second count value is -4, the permissions difference range for (- 5, 5), it is determined that clock jitter is not present in the electric energy meter.
In another embodiment, control module 300 includes control unit 310, counting unit 320 and judging unit 330.
Control unit 310 is counted in the preset time period for controlling counting unit 320.
Counting unit 320 is used to carry out counting to get the first count value to the PPS reference signal, and according to the vibration It swings reference signal the clock output signal of the electric energy meter is carried out counting to get the second count value.
Judging unit 330 is used to determine the clock of the electric energy meter according to first count value and second count value Deviation.
Wherein, counting unit 320 includes at least two signal input parts, receives the PPS reference signal and described respectively The clock output signal of electric energy meter.The non-oscillating reference signal of 310 receiving crystal module 200 of control unit, and the oscillation is joined It examines signal and is sent to counting unit 320.
Optionally, control module 300 goes back the driving signal of the transmission of receiving crystal module 200, and control module 300 is according to described Driving signal controls control unit 310, counting unit 320 and judging unit 330 and works, i.e., crystal module 200 is also as control The source driving signal of module 300.
In another embodiment, counting unit 320 is specifically used for:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal.
Within a preset period of time, the PPS reference signal is carried out counting to get the first count value, and according to described One reference signal carries out counting to get the second count value to the clock output signal of the electric energy meter.
The other is judging unit 330 is specifically used in example:
The clocking error of the electric energy meter is obtained according to first count value and second count value.
In practical application, the first count value that the PPS reference signal is counted to get with to the electric energy meter The second count value majority that clock output signal is counted to get is to be not completely equivalent, if only relatively first counting merely The size of value and the second count value, the clock jitter of electric energy meter is concluded according to comparison result, may be such that large batch of electric energy Table is unqualified, increase false detection rate.Moreover, electric energy meter in practical application all can there is a certain error, as long as allowing to miss In poor range, electric energy meter is qualified.So erroneous detection can be reduced using the allowable error range of electric energy meter as Rule of judgment Rate.
Illustratively, first count value and second count value are subtracted each other, obtains difference, by the exhausted of the difference The clocking error is used as to value.For example, in 5 minutes, first count value is 300 times, second count value is 290 Secondary, the difference of the first count value and the second count value is 10, and the absolute value of the difference is 10, then 10 misses as the clock Difference;For example, in 3 minutes, first count value is 181 times, and second count value is 185 times, the first count value and the The difference of two count values is -4, and the absolute value of the difference is 4, then 4 is used as the clocking error.
Illustratively, the clocking error rate of electric energy meter is calculated according to the first count value and second count value, it will be described Clocking error rate is as the clocking error;I.e.Wherein, M is first meter Numerical value, N are second count value.For example, first count value is 180 times in 3 minutes, second count value is It is 200 times, described I.e. 10% is used as the clocking error;Example Such as, in 10 minutes, first count value is 610 times, and second count value is 600 times, described I.e. 1.33% is used as the clocking error.
Judge whether the clocking error is above standard error range.
Illustratively, first count value and second count value are subtracted each other, obtains difference, by the exhausted of the difference The clocking error is used as to value, then standard error may range from < 8.
Illustratively, the clocking error rate of electric energy meter is calculated according to the first count value and second count value, it will be described Clocking error rate is as the clocking error, then standard error may range from < 5%.
If the clocking error is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter.
Illustratively, first count value and second count value are subtracted each other, obtains difference, by the exhausted of the difference The clocking error is used as to value, then standard error may range from < 8, if the clocking error is more than the standard error model It encloses, it is determined that there are deviations for the clock of the electric energy meter.For example, in 5 minutes, first count value is 300 times, described the Two count values are 290 times, and the absolute value of the difference of the first count value and the second count value is 10, then 10 miss as the clock Difference, standard error range are < 8, it is known that, clocking error is above standard error range, it is determined that the clock of the electric energy meter exists Deviation;For example, in 3 minutes, first count value is 181 times, and second count value is 185 times, the first count value with The absolute value of second count value difference is 4, it is known that, clocking error is not above standard error range, it is determined that the electric energy meter Clock be not present deviation.
Illustratively, the clocking error rate of electric energy meter is calculated according to the first count value and second count value, it will be described Clocking error rate is as the clocking error, then standard error may range from < 5%, if the clocking error is more than the mark Quasi- error range, it is determined that there are deviations for the clock of the electric energy meter.For example, first count value is 180 in 3 minutes Secondary, second count value is 200 times, described Due to standard error Poor range < 5%, it is known that, clocking error is above standard error range, it is determined that there are deviations for the clock of the electric energy meter;For example, In 10 minutes, first count value is 610 times, and second count value is 600 times, and the clocking error is 1.33%, Know that clocking error is not above standard error range, it is determined that deviation is not present in the clock of the electric energy meter.
The other is in example, it is described that the electric energy meter is obtained according to first count value and second count value Clocking error specifically includes:
Wherein, E is the clocking error, and M is first count value, and N is second count value.
Illustratively, in 3 minutes, first count value is 180 times, and second count value is 200 times, when described Clock errorFor example, first count value is 610 times, second count value in 10 minutes It is 600 times, the clocking error
Illustratively, standard error range is set as < 0.05.For example, first count value is 180 times in 3 minutes, Second count value is 200 times, and the clocking error E is 0.1, since standard error range is set as < 0.05, it is known that clock misses Difference is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter;For example, in 10 minutes, described One count value is 610 times, and second count value is 600 times, and the clocking error is 0.013, it is known that clocking error does not surpass Cross the standard error range, it is determined that deviation is not present in the clock of the electric energy meter.
The clocking error of electric energy meter is determined above by the first count value and the second count value, can pass through the first count value Absolute value with the second count value difference can also be calculated as the clocking error according to the first count value and the second count value Error rate is obtained as the clocking error, it can also be according to formulaThe clocking error is obtained, than passing through Simple relatively the first count value and the second count value size judge that clock of power meter is more accurate with the presence or absence of deviation, reduce inspection The error rate of electric energy meter is surveyed, the detection accuracy of clock of power meter deviation is improved.
The other is control module 300 is also used in example:
Obtain the pre-set count values counted to get in the preset time period to the PPS reference signal.
In practical application, the PPS reference signal that GPS module 100 issues may be because of unstable in short-term, so that control mould Block 300 is abnormal to the counting of PPS reference signal, and the first obtained count value is excessive or too small, does not meet reality.In order to improve The control module 300 of the detection accuracy and accuracy rate of clock of power meter deviation, the present embodiment is first obtained to by PPS reference signal Counting carry out reasonability screening, exclude because of GPS error count caused by unstability in short-term, i.e., when first obtaining described default Between the pre-set count values that the PPS reference signal are counted to get in section, judge to the pre-set count values.
Judge whether the difference of the pre-set count values and standard count value is allowing in difference range.
If the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that described default Count value is first count value.
Illustratively, PPS reference signal can be 1PPS signal, and the preset time period can be 3 minutes, allow difference It may range from (- 8,8).3 minutes pre-set count values counted to get are carried out to 1PPS signal specifically, obtaining, such as default Count value is 175, and standard count value is 180, and the difference of pre-set count values and standard count value is -5, it is known that -5 are allowing difference In range, i.e., the current pre-set count values are first count value.
Illustratively, PPS reference signal is 1PPS signal, and the preset time period can be 2 minutes, allows difference range Can be (- 5,5).2 minutes pre-set count values counted to get, such as default counting are carried out to 1PPS signal specifically, obtaining Value is 128, and standard count value is 120, and the difference of pre-set count values and standard count value is 8, it is known that 8 are not allowing difference model In enclosing, i.e., the current pre-set count values are ineligible, exclude.
If the difference of the pre-set count values and standard count value is not in the permission difference range, control module 300 continue to obtain the second pre-set count values for counting to get the PPS reference signal in the preset time period.
Judge whether the difference of second pre-set count values and standard count value is allowing in difference range.
If the difference of second pre-set count values and standard count value is in the permission difference range, it is determined that described Second pre-set count values are first count value.That is, if the default counting counted to get to the PPS reference signal Value is unqualified always, then control module 300 can obtain always the pre-set count values in preset time period, and be judged, it is known that The difference of pre-set count values and standard count value is allowing to improve the precision and standard of detection clock of power meter deviation in difference range Exactness.
In above-described embodiment, by the PPS reference signal of GPS module 100, high-precision school is provided for the detection of electric energy meter Signal is tested, so that detection accuracy is high;Crystal oscillator module 200 does not need to preheat in advance, can directly provide non-oscillating reference signal, save The time of clock of power meter deviation is detected, and is reduced costs low;Last control module 300 is according to the first of PPS reference signal Second count value of the clock output signal of count value and electric energy meter determines the clock jitter of the electric energy meter, realizes quickly detection The clock jitter of electric energy meter improves detection efficiency.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Embodiment two
Corresponding to the clock of power meter offset detection system in embodiment one, a kind of clock of power meter is present embodiments provided Deviation detecting method.Referring to fig. 2, the implementation process schematic diagram of clock of power meter deviation detecting method is provided, details are as follows:
S201, GPS module send pulse per second (PPS) PPS reference signal to the control module.
S202, crystal oscillator module send non-oscillating reference signal to the control module.
S203, within a preset period of time, the control module carry out counting to get the first counting to the PPS reference signal Value, and carry out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter.
Wherein, counting of the control module to PPS reference signal and the counting of the clock output signal to electric energy meter can be It is asynchronous, only need to the period that PPS reference signal is counted with to the clock output signal of electric energy meter counted when Between section be the preset time period, in this way detection electric energy meter clock jitter just not by signal synchronization is limited, detection time Faster.
In another embodiment, referring to Fig. 3, according to the non-oscillating reference signal to the electric energy described in step S203 The specific implementation process that the clock output signal of table count to get the second count value includes:
S301 is calibrated to obtain the first reference according to frequency of the PPS reference signal to the non-oscillating reference signal Signal.
In practical application, non-oscillating reference signal that crystal oscillator module is sent to control module can not directly to electric energy meter when Clock output signal is counted, but the reference after needing to carry out certain calibration, after meeting calibration frequency, after recycling calibration Signal counts the clock output signal of electric energy meter.For example, the frequency for the non-oscillating reference signal that crystal oscillator module is sent may Too small, the precision counted to the clock output signal of electric energy meter is inadequate, and control module is likely to few note when being counted. So the present embodiment calibrates the non-oscillating reference signal first with the PPS reference signal that GPS module is sent, control Module is calibrated the frequency of the non-oscillating reference signal to obtain the first reference signal.
S302, within a preset period of time, according to first reference signal to the clock output signal of the electric energy meter into Row counts to get second count value.
The non-oscillating reference signal is calibrated first with the PPS reference signal that GPS module is sent, can be increased The frequency of non-oscillating reference signal improves the precision of non-oscillating reference signal, and then increases and carry out to the clock output signal of electric energy meter The accuracy of counting.
Optionally, control module is also used to store first count value and second count value.
Illustratively, when control module to PPS reference signal carry out after counting to get the first count value of preset time period, First count value is stored, over time, after electric energy meter can be with tranmitting data register output signal, control module is logical It crosses PPS reference signal to calibrate the non-oscillating reference signal that crystal oscillator module is sent, the first reference signal is obtained, then according to institute Second count value that counts to get that the first reference signal carries out preset time period to the clock output signal of the electric energy meter is stated, it is right Second count value is stored.
Store first count value and second count value, may be implemented to PPS reference signal and electric energy meter when The asynchronous counting of clock output signal.For example, being carried out according to clock output signal of first reference signal to the electric energy meter After counting, stored first count value can be obtained again, then true by first count value and second count value The clock jitter of the fixed electric energy meter.
S204, the control module according to first count value and second count value determine the electric energy meter when Clock deviation.
Referring to fig. 4, in another embodiment, according to first count value and second meter described in step S204 Numerical value determines that the specific implementation process of the clock jitter of the electric energy meter includes:
S401 obtains the clocking error of the electric energy meter according to first count value and second count value.
In practical application, the first count value that the PPS reference signal is counted to get with to the electric energy meter The second count value majority that clock output signal is counted to get is to be not completely equivalent, if only relatively first counting merely The size of value and the second count value, the clock jitter of electric energy meter is concluded according to comparison result, may be such that large batch of electric energy Table is unqualified, increase false detection rate.Moreover, electric energy meter in practical application all can there is a certain error, as long as allowing to miss In poor range, electric energy meter is qualified.So erroneous detection can be reduced using the allowable error range of electric energy meter as Rule of judgment Rate.
Illustratively, first count value and second count value are subtracted each other, obtains difference, by the exhausted of the difference The clocking error is used as to value.
Illustratively, the clocking error rate of electric energy meter is calculated according to the first count value and second count value, it will be described Clocking error rate is as the clocking error;I.e.Wherein, M is first meter Numerical value, N are second count value.
S402 judges whether the clocking error is above standard error range.
S403, if the clocking error is more than the standard error range, it is determined that the clock of the electric energy meter exists inclined Difference.
It is described that the electric energy meter is obtained according to first count value and second count value in another embodiment Clocking error specifically includes:
Wherein, E is the clocking error, and M is first count value, and N is second count value.
The clocking error of electric energy meter is determined above by the first count value and the second count value, can pass through the first count value Absolute value with the second count value difference can also be calculated as the clocking error according to the first count value and the second count value Error rate is obtained as the clocking error, it can also be according to formulaThe clocking error is obtained, than passing through Simple relatively the first count value and the second count value size judge that clock of power meter is more accurate with the presence or absence of deviation, reduce inspection The error rate of electric energy meter is surveyed, the detection accuracy of clock of power meter deviation is improved.
The other is in example, referring to Fig. 5, the method also includes:
S501, the control module, which obtains, to be counted to get the PPS reference signal in the preset time period Pre-set count values.
In practical application, the PPS reference signal that GPS module issues may be because of unstable in short-term, so that control module Abnormal to the counting of PPS reference signal, the first obtained count value is excessive or too small, does not meet reality.In order to improve electric energy The detection accuracy and accuracy rate of table clock jitter, the first counting to being obtained by PPS reference signal of the control module of the present embodiment Reasonability screening is carried out, excludes first to obtain in the preset time period because of error count caused by GPS in short-term unstability To the pre-set count values that the PPS reference signal is counted to get, judge to the pre-set count values.
S502, judges whether the difference of the pre-set count values and standard count value is allowing in difference range.
S503, if the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that institute Stating pre-set count values is first count value.
If the difference of the pre-set count values and standard count value not in the permission difference range, control module after It is continuous to obtain the second pre-set count values counted to get in the preset time period to the PPS reference signal.
Judge whether the difference of second pre-set count values and standard count value is allowing in difference range.
If the difference of second pre-set count values and standard count value is in the permission difference range, it is determined that described Second pre-set count values are first count value.That is, if the default counting counted to get to the PPS reference signal Value is unqualified always, then control module can obtain always the pre-set count values in preset time period, and be judged, it is known that default The difference of count value and standard count value is allowing in difference range, improves the precision of detection clock of power meter deviation and accurate Degree.
In above-described embodiment, by the PPS reference signal of GPS module, high-precision verification is provided for the detection of electric energy meter Signal, so that detection accuracy is high;Crystal oscillator module does not need to preheat in advance, can directly provide non-oscillating reference signal, save detection The time of clock of power meter deviation, and reduce costs low;Last control module according to the first count value of PPS reference signal and Second count value of the clock output signal of electric energy meter determines the clock jitter of the electric energy meter, realizes and quickly detects electric energy meter Clock jitter improves detection efficiency.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of clock of power meter offset detection system characterized by comprising global position system GPS module, crystal oscillator module And control module;
The GPS module, for sending pulse per second (PPS) PPS reference signal to the control module;
The crystal oscillator module, for sending non-oscillating reference signal to the control module;
The control module, within a preset period of time, carrying out counting to get the first count value to the PPS reference signal, And carry out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter, according to First count value and second count value determine the clock jitter of the electric energy meter.
2. clock of power meter offset detection system as described in claim 1, which is characterized in that the control module is specifically used In:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal;
Within a preset period of time, the PPS reference signal is carried out counting to get the first count value, and according to first ginseng It examines signal the clock output signal of the electric energy meter is carried out counting to get the second count value;
The clock jitter of the electric energy meter is determined according to first count value and second count value.
3. clock of power meter offset detection system as described in claim 1, which is characterized in that the control module includes control Unit, counting unit and judging unit;
Described control unit is counted in the preset time period for controlling the counting unit;
The counting unit counts to get the first count value for carrying out to the PPS reference signal, and according to the oscillation Reference signal carries out counting to get the second count value to the clock output signal of the electric energy meter;
The judging unit, for determining that the clock of the electric energy meter is inclined according to first count value and second count value Difference.
4. clock of power meter offset detection system as claimed in claim 3, which is characterized in that the judging unit is specifically used In:
The clocking error of the electric energy meter is obtained according to first count value and second count value;
Judge whether the clocking error is above standard error range;
If the clocking error is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter.
5. clock of power meter offset detection system as claimed in claim 4, which is characterized in that described to be counted according to described first The clocking error that value and second count value obtain the electric energy meter specifically includes:
Wherein, E is the clocking error, and M is first count value, and N is second count value.
6. such as clock of power meter offset detection system described in any one of claim 1 to 5, which is characterized in that the control mould Block is also used to:
Obtain the pre-set count values counted to get in the preset time period to the PPS reference signal;
Judge whether the difference of the pre-set count values and standard count value is allowing in difference range;
If the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that the default counting Value is first count value.
7. a kind of clock of power meter deviation detecting method, suitable for including the electric energy meter of GPS module, crystal oscillator module and control module Clock jitter detection system, which is characterized in that the described method includes:
The GPS module sends pulse per second (PPS) PPS reference signal to the control module;
The crystal oscillator module sends non-oscillating reference signal to the control module;
Within a preset period of time, the control module carries out counting to get the first count value, Yi Jigen to the PPS reference signal It carries out counting to get the second count value according to clock output signal of the non-oscillating reference signal to the electric energy meter;
The control module determines the clock jitter of the electric energy meter according to first count value and second count value.
8. clock of power meter deviation detecting method as claimed in claim 7, which is characterized in that described according to the non-oscillating reference Signal is carried out counting to get the second count value and be specifically included to the clock output signal of the electric energy meter:
It is calibrated to obtain the first reference signal according to frequency of the PPS reference signal to the non-oscillating reference signal;
Within a preset period of time, the clock output signal of the electric energy meter is counted to get according to first reference signal Second count value.
9. clock of power meter deviation detecting method as claimed in claim 7, which is characterized in that described to be counted according to described first Value and second count value determine that the clock jitter of the electric energy meter specifically includes:
The clocking error of the electric energy meter is obtained according to first count value and second count value;
Judge whether the clocking error is above standard error range;
If the clocking error is more than the standard error range, it is determined that there are deviations for the clock of the electric energy meter.
10. such as the described in any item clock of power meter deviation detecting methods of claim 7 to 9, which is characterized in that the method is also Include:
The control module obtains the default counting counted to get in the preset time period to the PPS reference signal Value;
Judge whether the difference of the pre-set count values and standard count value is allowing in difference range;
If the difference of the pre-set count values and standard count value is in the permission difference range, it is determined that the default counting Value is first count value.
CN201810922809.8A 2018-08-14 2018-08-14 System and method for detecting clock deviation of electric energy meter Active CN109188335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810922809.8A CN109188335B (en) 2018-08-14 2018-08-14 System and method for detecting clock deviation of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810922809.8A CN109188335B (en) 2018-08-14 2018-08-14 System and method for detecting clock deviation of electric energy meter

Publications (2)

Publication Number Publication Date
CN109188335A true CN109188335A (en) 2019-01-11
CN109188335B CN109188335B (en) 2022-03-15

Family

ID=64921476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810922809.8A Active CN109188335B (en) 2018-08-14 2018-08-14 System and method for detecting clock deviation of electric energy meter

Country Status (1)

Country Link
CN (1) CN109188335B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109709394A (en) * 2018-12-21 2019-05-03 深圳市航天泰瑞捷电子有限公司 A kind of system of detection clock of power meter output
CN111580379A (en) * 2020-05-11 2020-08-25 威胜集团有限公司 Time correction method, device and computer readable storage medium
CN112462591A (en) * 2020-12-07 2021-03-09 武汉中原电子信息有限公司 Object-oriented communication protocol-based time synchronization method for electricity utilization acquisition terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291169A (en) * 2011-09-09 2011-12-21 航天东方红卫星有限公司 Onboard high-accuracy time synchronization method for satellite
CN102510320A (en) * 2011-10-28 2012-06-20 桂林电子科技大学 Clock source device based on GPS (global positioning system) and constant-temperature crystal oscillator and synchronous control method
CN102566410A (en) * 2012-02-16 2012-07-11 北京华力创通科技股份有限公司 Method and device for calibrating local clock based on satellite time service
KR20130113247A (en) * 2012-04-05 2013-10-15 (주) 시스메이트 Apparatus and method for generating stable utc time data
CN103605138A (en) * 2013-07-26 2014-02-26 成都海亨利科技有限公司 Clock correction method and device for satellite navigation receiver
US20140203963A1 (en) * 2013-01-18 2014-07-24 Seiko Epson Corporation Timing signal generating device, electronic apparatus, moving object, method of generating timing signals, and method of controlling satellite signal receiver
EP2770340A1 (en) * 2013-02-21 2014-08-27 Astrium GmbH Positioning by using encrypted GNSS navigation signals
CN105446122A (en) * 2016-01-13 2016-03-30 国家电网公司 Electric energy meter clock calibration method
CN106130547A (en) * 2016-06-20 2016-11-16 大唐微电子技术有限公司 A kind of clock frequency calibration steps and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291169A (en) * 2011-09-09 2011-12-21 航天东方红卫星有限公司 Onboard high-accuracy time synchronization method for satellite
CN102510320A (en) * 2011-10-28 2012-06-20 桂林电子科技大学 Clock source device based on GPS (global positioning system) and constant-temperature crystal oscillator and synchronous control method
CN102566410A (en) * 2012-02-16 2012-07-11 北京华力创通科技股份有限公司 Method and device for calibrating local clock based on satellite time service
KR20130113247A (en) * 2012-04-05 2013-10-15 (주) 시스메이트 Apparatus and method for generating stable utc time data
US20140203963A1 (en) * 2013-01-18 2014-07-24 Seiko Epson Corporation Timing signal generating device, electronic apparatus, moving object, method of generating timing signals, and method of controlling satellite signal receiver
EP2770340A1 (en) * 2013-02-21 2014-08-27 Astrium GmbH Positioning by using encrypted GNSS navigation signals
CN103605138A (en) * 2013-07-26 2014-02-26 成都海亨利科技有限公司 Clock correction method and device for satellite navigation receiver
CN105446122A (en) * 2016-01-13 2016-03-30 国家电网公司 Electric energy meter clock calibration method
CN106130547A (en) * 2016-06-20 2016-11-16 大唐微电子技术有限公司 A kind of clock frequency calibration steps and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘峰 等: "时间同步性能评估指标及测试方法探讨", 《电信网技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109709394A (en) * 2018-12-21 2019-05-03 深圳市航天泰瑞捷电子有限公司 A kind of system of detection clock of power meter output
CN111580379A (en) * 2020-05-11 2020-08-25 威胜集团有限公司 Time correction method, device and computer readable storage medium
CN111580379B (en) * 2020-05-11 2021-10-08 威胜集团有限公司 Time correction method, device and computer readable storage medium
CN112462591A (en) * 2020-12-07 2021-03-09 武汉中原电子信息有限公司 Object-oriented communication protocol-based time synchronization method for electricity utilization acquisition terminal
CN112462591B (en) * 2020-12-07 2022-04-12 武汉中原电子信息有限公司 Object-oriented communication protocol-based time synchronization method for electricity utilization acquisition terminal

Also Published As

Publication number Publication date
CN109188335B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN109188335A (en) Clock of power meter offset detection system and method
CN102435975B (en) Clock calibration method of intelligent cost control electric energy meter
CN105142210B (en) A kind of real-time clock synchronous calibration method and sensor for wireless sense network
CN106054580B (en) The second signal calibration method of clock chip
US20180173269A1 (en) Navigation system and mouse device
CN202256438U (en) Hardware real time clock (RTC) error compensation system of intelligent electric energy meter
CN102331979A (en) Dynamic clock frequency calibration method applied to universal serial bus (USB) equipment
CN105790756B (en) A kind of method and device communicating calibration clock using UART
CN101247123A (en) Single-chip system clock calibration method
CN109407498A (en) A kind of clock of power meter test method and clock of power meter test device
CN110928176B (en) Multifunctional time service equipment supporting multiple time service technologies
CN102713648A (en) Method and device for monitoring a frequency signal
CN102210125A (en) Oscillator prescale calibration for harmonizing multiple devices with independent oscillators over an i2c bus interface
CN103092258B (en) Clock generation circuit self correcting system and bearing calibration thereof
CN108650663A (en) A kind of bluetooth module and its clock work method of low clock request
CN105656456A (en) High-speed and high-precision digital pulse generating circuit and pulse generating method
CN208984962U (en) Clock of power meter detection device and electric energy meter
CN113395069A (en) High-precision pilot frequency digital phase-locked loop system based on fuzzy area pulse detection
CN100595716C (en) Method and apparatus for synchronizing clock of distributed processing system
CN110007144A (en) A kind of frequency measurement method and associated component of input signal
CN207457344U (en) Equal precision frequency meter based on FPGA and its soft core
CN206251105U (en) For the VCXO soft-lock phase devices of base station
CN103513698B (en) A kind of clock signal calibration, device and electronic equipment
US8645742B2 (en) Semiconductor device operating according to an operation clock and having a serial communication interface performing external communications according to a unit transfer time based on the operation clock
CN108762468A (en) Low-power-consumptiocontrol control method and device

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