CN109752642A - A kind of clock module calibration method and its system, equipment, storage medium - Google Patents

A kind of clock module calibration method and its system, equipment, storage medium Download PDF

Info

Publication number
CN109752642A
CN109752642A CN201811592645.3A CN201811592645A CN109752642A CN 109752642 A CN109752642 A CN 109752642A CN 201811592645 A CN201811592645 A CN 201811592645A CN 109752642 A CN109752642 A CN 109752642A
Authority
CN
China
Prior art keywords
clock module
correcting time
error
time clock
module
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.)
Pending
Application number
CN201811592645.3A
Other languages
Chinese (zh)
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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics 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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN201811592645.3A priority Critical patent/CN109752642A/en
Publication of CN109752642A publication Critical patent/CN109752642A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention discloses a kind of clock module calibration method and its systems, equipment, storage medium, the present invention is by obtaining by multiple time errors of correcting time clock module and reference clock, and after rejecting the exceptional value in time error, it is compensated according to time error and by the compensation rate calculation formula acquisition compensation rate of correcting time clock module, overcome and clock module calibration exists in the prior art success rate is low and the technical problem with high costs of clock module, it realizes and clock module is calibrated, and due to eliminating exceptional value, improve calibration success rate, the cost of clock module can also be reduced.

Description

A kind of clock module calibration method and its system, equipment, storage medium
Technical field
The present invention relates to clock domain, especially a kind of clock module calibration method and its system, equipment, storage medium.
Background technique
The abbreviation of real-time clock is RTC (Real_Time Clock).RTC is integrated circuit, commonly referred to as clock chip.
With the progress of mankind's science and technology, miscellaneous electronic product has come into huge numbers of families.And in these types In numerous electronic products, clock circuit is one of essential module.Such as the electric energy meter in electric instrument industry, Collector, terminal and concentrator devices.And real-time timepiece chip is the consumer electronics being most widely used in daily life One of product.It provides accurate real-time time for people, or provides accurate time reference for electronic system, in real time at present Clock chip mostly uses greatly the higher crystal oscillator of precision as clock source.Some clock chips are in order in main power source power down When, it can also work, external battery is needed to power.But the core of any real-time clock is all crystal oscillator, crystal oscillator frequency is 32768Hz.It provides the accurately real base signal with low-power consumption for frequency counter.It can be used for generating the second, point, when, day Etc. information.In order to ensure the long-term accuracy of clock, crystal oscillator must be worked normally, and be not adequately protected against interference.The crystal oscillator of RTC divides again Are as follows: external crystal-controlled oscillation and built-in crystal oscillator.But the characteristic --- -- temperature compensation curve no matter which kind of crystal oscillator has its exclusive is in factory Preceding and correct time is set time.Usual producer is that point carries out modified R TC clock chip on the basis of temperature is 23 degrees Celsius Exact value.
At present there are two types of the calibration methods of clock chip:
One, the clock chip being calibrated directly is bought, is welded in instrument, it is with high costs.
Two, the module chip circuit pin to school is accessed in standard time clock error metric source, waits dozens of instrument to be measured After the Watch Error period (- 40 seconds or so about 20 seconds times), offset is calculated by standard clock source, it is then soft by computer The value is read compensation in by school instrument by part control.The dozens of meters under test error period why is waited, is because logical Normal crystal oscillator frequency is 32768Hz, and this crystal oscillator advantage is cheap, and small power consumption, and the disadvantage is that frequency is excessively slow, it needs to compensate Number is more to be can be only achieved accurately.And according to the Lap Time of the fixed tested instrument of sampling, pass through common apparatus clocking error instrument It calculates, return error value.It is accurate that this method requires the equipment clock circuit module being calibrated to stablize, and there can be no the busts that jumps Value, and requirement of the such case obviously to civilian instrumentation is excessively high.Often by calibration equipment by itself embedded software program With the limitation of hardware circuit, once it will appear maximum and minimum in varying numbers in the period of school.Cause finally to count The result of calculation will be overproof, and this mistake is just found when instrument is by subsequent detection, is largely influenced in this way Production efficiency.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.For this purpose, of the invention One purpose is to provide a kind of clock module calibration method and its system, equipment, storage medium, for calibrating clock module, with Calibration success rate is improved, cost is reduced.
The technical scheme adopted by the invention is that:
In a first aspect, the present invention provides a kind of clock module calibration method, comprising the following steps:
Error obtaining step is obtained by multiple time errors of correcting time clock module and reference clock;
Different value rejects step, rejects the exceptional value in the time error;
Offset obtaining step is obtained according to described by the compensation rate calculation formula of correcting time clock module and the time error The compensation rate by correcting time clock module;
Calibration steps, according to the compensation rate to it is described compensated by correcting time clock module it is described by correcting time clock mould to calibrate Block.
Further, the offset obtaining step specifically includes:
Obtain the average value of multiple time errors;
It is obtained according to the average value and the compensation rate calculation formula by correcting time clock module described by correcting time clock module Compensation rate.
Second aspect, the present invention provide a kind of clock module calibration system, comprising:
Error acquiring unit, for obtaining multiple time errors by correcting time clock module and reference clock;
Different value culling unit, for rejecting the exceptional value in the time error;
Offset acquiring unit, for according to the compensation rate calculation formula and the time error by correcting time clock module Obtain the compensation rate by correcting time clock module;
Calibration unit, for according to the compensation rate to it is described compensated by correcting time clock module with calibrate it is described by school when Clock module.
Further, the error acquiring unit is clocking error instrument, the clocking error instrument and described by correcting time clock mould Block connection.
Further, the clock module calibration system further includes serial server, and the clocking error instrument passes through described Serial server described is connect with multiple by correcting time clock module.
Further, described to be arranged by correcting time clock module in electric energy meter, concentrator, data collector or distribution transformer In.
Further, described by correcting time clock module includes 7406RTC single module, 7406RTC Dual module or 8990RTC mould Block.
Further, the different value culling unit, the offset acquiring unit, the calibration unit are computer.
The third aspect, the present invention provide a kind of clock module calibrator (-ter) unit, comprising:
At least one processor;And the memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the clock module calibration method.
Fourth aspect, the present invention provide a kind of computer readable storage medium, the computer-readable recording medium storage There are computer executable instructions, the computer executable instructions are used to that computer to be made to execute the clock module calibration side Method.
The beneficial effects of the present invention are:
The present invention is by obtaining by multiple time errors of correcting time clock module and reference clock, and in rejecting time error Exceptional value after, according to time error and by correcting time clock module compensation rate calculation formula obtain compensation rate compensate, overcome Clock module calibration exists in the prior art, and success rate is low and the technical problem with high costs of clock module, realizes to clock Module is calibrated, and due to eliminating exceptional value, improves calibration success rate, moreover it is possible to reduce the cost of clock module.
In addition, the present invention is also connect with multiple by correcting time clock module by using serial server, it can be simultaneously to multiple It is calibrated by correcting time clock module, improves calibration efficiency.
Detailed description of the invention
Fig. 1 is an a kind of specific embodiment flow chart of clock module calibration method in the present invention;
Fig. 2 is an a kind of specific embodiment structural schematic diagram of clock module calibration system in the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.
Embodiment 1
It is an a kind of specific embodiment flow chart of clock module calibration method, Yi Zhongshi in the present invention with reference to Fig. 1, Fig. 1 Clock modular calibration method, comprising the following steps:
Error obtaining step is obtained by multiple time errors of correcting time clock module and reference clock;
Different value rejects step, rejects the exceptional value in multiple time errors, weed out because equipment poor contact or by Unreasonable time error value caused by correcting time clock module performance is bad;
Offset obtaining step, according to by the compensation rate calculation formula and time error (excluding outlier of correcting time clock module Time error afterwards) it obtains by the compensation rate of correcting time clock module;Specifically, the average value for obtaining multiple time errors, according to meter It obtained average value and is obtained by the compensation rate calculation formula of correcting time clock module by the compensation rate of correcting time clock module;
Calibration steps is compensated according to compensation rate to by correcting time clock module to calibrate by correcting time clock module.
It is realized by above-mentioned calibration method and clock module is calibrated, due to eliminating exceptional value, improve clock The calibration success rate of module, improves the quality of clock module, does not need to buy the high clock module of calibrated good price, when reduction The cost of clock module overcomes and clock module calibration exists in the prior art success rate is low and the skill with high costs of clock module Art problem.
Embodiment 2
It is proposed that embodiment 2, embodiment 2 provide a kind of clock module calibration system based on embodiment 1, comprising:
Error acquiring unit, for obtaining multiple time errors by correcting time clock module and reference clock;
Different value culling unit, for rejecting the exceptional value in time error;
Offset acquiring unit, for obtaining according to by the compensation rate calculation formula and time error of correcting time clock module by school The compensation rate of clock module;
Calibration unit, for being compensated according to compensation rate to by correcting time clock module to calibrate by correcting time clock module.
It is an a kind of specific embodiment structural schematic diagram of clock module calibration system in the present invention with reference to Fig. 2, Fig. 2, accidentally Poor acquiring unit uses clocking error instrument, and different value culling unit, offset acquiring unit, calibration unit are computer, computer It is connect with clocking error instrument, computer, clocking error instrument are connect with by correcting time clock module.Include by correcting time clock module 7406RTC single module, 7406RTC Dual module or 8990RTC module.Program when being stored with the school RTC in computer, and support more The concurrent communication modes (UDP/IP, serial ports) of kind.The RTC backoff algorithm of different clocks module is different, i.e., different clock modules Compensation rate calculation formula is different.Clock compensation is targetedly carried out according to different clock modules, is avoided to clocking error The excessively high dependence of instrument.It can be and be arranged in electric energy meter, concentrator, data collector or distribution transformer by correcting time clock module In clock module.In addition, clock module calibration system further includes serial server (not shown), clocking error instrument passes through serial ports Server is connect with multiple by correcting time clock module.It is connect with multiple by correcting time clock module by using serial server, Ke Yitong When calibrated to multiple by correcting time clock module, improve calibration efficiency.
With reference to Fig. 2, during actual alignment, according to the time error data that clocking error instrument provides, computer selects automatically It takes the time error value for participating in offset operation to obtain compensation rate, is compensated further according to compensation rate to by correcting time clock module. Operating process when specific multi-clock module school is as follows:
1, it reads by the address of correcting time clock module
2, the parameter information of clocking error instrument, such as number of channel, bus address, meter constant, worst error value, error are set Lap Time.Here different with traditional method to be, error Lap Time is that fixation writes 1, rather than writes 30 or bigger number.
3, calculate the error finally to be compensated: computer controls the cycle operation of clocking error instrument 30 times, and clocking error instrument obtains The time error by correcting time clock module and reference clock is taken, number is more, calibrates timeliness that is more accurate, but considering production operation Property, generally according to clock module the characteristics of, can just calibrate completely for the operation of clocking error instrument 20 times.Get 20 times mistakes After difference, the software of computer weed out because equipment poor contact or by correcting time clock module performance it is bad caused by it is unreasonable Time error value, then carry out remaining time error value that final offset is calculated.Specifically, when calculating remaining Between error amount mean value, then the compensation rate calculation formula according to different by correcting time clock module calculate compensation rates.Such as 7406RTC The compensation rate calculation formula of single module is (tValue*32768*20) %0xFF, and the compensation rate of 7406RTC Dual module calculates public affairs Formula is (tValue*32768*336) %0xFF, and the compensation rate calculation formula of another 8990RTC module is tValue* 86400/-0.08, wherein tValue is the mean value of the time error after excluding outlier.
Embodiment 3
A kind of clock module calibrator (-ter) unit, comprising:
At least one processor;And the memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out the clock module calibration method.Clock module school The specific descriptions of quasi- method are repeated no more referring to the description of embodiment 1.
Embodiment 4
A kind of computer readable storage medium, the computer-readable recording medium storage have computer executable instructions, The computer executable instructions are used to that computer to be made to execute the clock module calibration method.Clock module calibration method The description referring to embodiment 1 is specifically described, is repeated no more.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.

Claims (10)

1. a kind of clock module calibration method, which comprises the following steps:
Error obtaining step is obtained by multiple time errors of correcting time clock module and reference clock;
Different value rejects step, rejects the exceptional value in the time error;
Offset obtaining step, according to described described in the compensation rate calculation formula of correcting time clock module and time error acquisition By the compensation rate of correcting time clock module;
Calibration steps, according to the compensation rate to it is described compensated by correcting time clock module it is described by correcting time clock module to calibrate.
2. clock module calibration method according to claim 1, which is characterized in that the offset obtaining step specifically wraps It includes:
Obtain the average value of multiple time errors;
According to the average value and described the benefit by correcting time clock module is obtained by the compensation rate calculation formula of correcting time clock module The amount of repaying.
3. a kind of clock module calibration system characterized by comprising
Error acquiring unit, for obtaining multiple time errors by correcting time clock module and reference clock;
Different value culling unit, for rejecting the exceptional value in the time error;
Offset acquiring unit, for being obtained according to described by the compensation rate calculation formula of correcting time clock module and the time error The compensation rate by correcting time clock module;
Calibration unit, for according to the compensation rate to it is described compensated by correcting time clock module it is described by correcting time clock mould to calibrate Block.
4. clock module calibration system according to claim 3, which is characterized in that the error acquiring unit is clock mistake Poor instrument, the clocking error instrument are connect with described by correcting time clock module.
5. clock module calibration system according to claim 4, which is characterized in that the clock module calibration system is also wrapped Include serial server, the clocking error instrument described is connect by the serial server with multiple by correcting time clock module.
6. according to the described in any item clock module calibration systems of claim 3 to 5, which is characterized in that described by correcting time clock mould Block is arranged in electric energy meter, concentrator, data collector or distribution transformer.
7. according to the described in any item clock module calibration systems of claim 3 to 5, which is characterized in that described by correcting time clock mould Block includes 7406RTC single module, 7406RTC Dual module or 8990RTC module.
8. according to the described in any item clock module calibration systems of claim 3 to 5, which is characterized in that the different value is rejected single First, the described offset acquiring unit, the calibration unit are computer.
9. a kind of clock module calibrator (-ter) unit characterized by comprising
At least one processor;And the memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out such as the described in any item clock module calibrations of claim 1 to 2 Method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer can It executes instruction, the computer executable instructions are for making computer execute such as the described in any item clock moulds of claim 1 to 2 Block calibration method.
CN201811592645.3A 2018-12-20 2018-12-20 A kind of clock module calibration method and its system, equipment, storage medium Pending CN109752642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811592645.3A CN109752642A (en) 2018-12-20 2018-12-20 A kind of clock module calibration method and its system, equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811592645.3A CN109752642A (en) 2018-12-20 2018-12-20 A kind of clock module calibration method and its system, equipment, storage medium

Publications (1)

Publication Number Publication Date
CN109752642A true CN109752642A (en) 2019-05-14

Family

ID=66403921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811592645.3A Pending CN109752642A (en) 2018-12-20 2018-12-20 A kind of clock module calibration method and its system, equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109752642A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958071A (en) * 2019-10-30 2020-04-03 中国电力科学研究院有限公司 Electronic transformer clock error self-calibration system and method based on 4G module
CN111665431A (en) * 2020-04-26 2020-09-15 江西联智集成电路有限公司 Method, device, equipment and medium for calibrating clock source in chip
CN114138056A (en) * 2021-11-04 2022-03-04 珠海格力节能环保制冷技术研究中心有限公司 Display terminal clock calibration method and device and display terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1413054A (en) * 2001-10-19 2003-04-23 Lg电子株式会社 Time error compensation device and method for terminal
CN1874566A (en) * 2005-11-25 2006-12-06 凯明信息科技股份有限公司 Method and equipment for calibrating clock
CN101030777A (en) * 2006-03-02 2007-09-05 中颖电子(上海)有限公司 Apparatus and method for calibrating realtime clock source
CN102013933A (en) * 2010-11-12 2011-04-13 石家庄科林自动化有限公司 Method for realizing synchronous sampling by local area extension sets in smart grid
CN102323742A (en) * 2011-04-19 2012-01-18 上海众人网络安全技术有限公司 Clock calibration system and method for dynamic password token
CN102455656A (en) * 2010-10-22 2012-05-16 比亚迪股份有限公司 Automobile clock calibration system and calibration method
CN106054580A (en) * 2016-07-04 2016-10-26 华立科技股份有限公司 Second signal software calibration method of clock chip
CN106454421A (en) * 2016-10-08 2017-02-22 广东欧珀移动通信有限公司 Clock adjusting method, device and terminal thereof, and multimedia synchronization playing system
CN107396438A (en) * 2017-08-25 2017-11-24 哈尔滨工业大学 Communication port construction method, method for synchronizing time and structure health monitoring method based on smart mobile phone WLAN
CN108037656A (en) * 2017-11-13 2018-05-15 深圳还是威健康科技有限公司 Real-time timepiece chip calibration method, device and terminal device
CN108227468A (en) * 2017-12-26 2018-06-29 北方智能装备有限公司 A kind of electric energy meter error of time of day calibration method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1413054A (en) * 2001-10-19 2003-04-23 Lg电子株式会社 Time error compensation device and method for terminal
CN1874566A (en) * 2005-11-25 2006-12-06 凯明信息科技股份有限公司 Method and equipment for calibrating clock
CN101030777A (en) * 2006-03-02 2007-09-05 中颖电子(上海)有限公司 Apparatus and method for calibrating realtime clock source
CN102455656A (en) * 2010-10-22 2012-05-16 比亚迪股份有限公司 Automobile clock calibration system and calibration method
CN102013933A (en) * 2010-11-12 2011-04-13 石家庄科林自动化有限公司 Method for realizing synchronous sampling by local area extension sets in smart grid
CN102323742A (en) * 2011-04-19 2012-01-18 上海众人网络安全技术有限公司 Clock calibration system and method for dynamic password token
CN106054580A (en) * 2016-07-04 2016-10-26 华立科技股份有限公司 Second signal software calibration method of clock chip
CN106454421A (en) * 2016-10-08 2017-02-22 广东欧珀移动通信有限公司 Clock adjusting method, device and terminal thereof, and multimedia synchronization playing system
CN107396438A (en) * 2017-08-25 2017-11-24 哈尔滨工业大学 Communication port construction method, method for synchronizing time and structure health monitoring method based on smart mobile phone WLAN
CN108037656A (en) * 2017-11-13 2018-05-15 深圳还是威健康科技有限公司 Real-time timepiece chip calibration method, device and terminal device
CN108227468A (en) * 2017-12-26 2018-06-29 北方智能装备有限公司 A kind of electric energy meter error of time of day calibration method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958071A (en) * 2019-10-30 2020-04-03 中国电力科学研究院有限公司 Electronic transformer clock error self-calibration system and method based on 4G module
CN111665431A (en) * 2020-04-26 2020-09-15 江西联智集成电路有限公司 Method, device, equipment and medium for calibrating clock source in chip
CN114138056A (en) * 2021-11-04 2022-03-04 珠海格力节能环保制冷技术研究中心有限公司 Display terminal clock calibration method and device and display terminal
CN114138056B (en) * 2021-11-04 2024-05-17 珠海格力节能环保制冷技术研究中心有限公司 Display terminal clock calibration method and device and display terminal

Similar Documents

Publication Publication Date Title
CN109752642A (en) A kind of clock module calibration method and its system, equipment, storage medium
CN105388445A (en) Automatic meter calibration method for single-phase electric energy meter
CN107765760B (en) RTC module clock source dynamic calibration method and RTC module clock source dynamic calibration system in instrument sleep mode
CN106054580B (en) The second signal calibration method of clock chip
CN100395682C (en) 'Beidou No.1' satellite navigation system and GPS mutually preparing time service method and apparatus
CN101795019A (en) Soft core based merging unit of photoelectric current transformers
CN104297716A (en) Intelligent electric meter RTC calibrating method
CN105182273A (en) Calibration system used for verifying assembly line time value
CN115792776A (en) Remote calibration system and method for alternating current voltage source
CN108011631A (en) Work clock generation method, clock source and chip
CN108594160A (en) A kind of correction method of electric energy meter
CN106289328B (en) A kind of temperature and humidity value measures compensation method and system
CN105137751A (en) Calibration system for measuring production scheduling platform time value and calibration method thereof
CN113064114A (en) High-precision quick meter calibration method for multi-core electric energy meter
CN112737507B (en) Method for realizing RTC high precision based on temperature sensor
CN204086515U (en) For the multifunction timepiece tester that electric energy meter detects
CN103558571A (en) Calibration system of electronic transformer and merging unit
CN103383443B (en) Modularization three-phase instrument calibration device used for intelligent electric network
CN108761159B (en) Metering device detection system based on wide-area synchronous measurement electric energy meter
CN103439876B (en) Method for calibrating clocks of electric energy meter
CN102916654A (en) Crystal oscillator ageing compensation method
CN101252357A (en) Method and system for correcting parameter
WO2022057953A1 (en) Circuit for improving clock accuracy, and clock
CN112444671A (en) Electric energy metering method and device of electric energy meter based on instantaneous power and storage medium
CN104635193B (en) A kind of SOC real-time clock high-accuracy compensation method of ammeter

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190514