Movatterモバイル変換


[0]ホーム

URL:


CN105281859A - GPS-based accurate time service method - Google Patents

GPS-based accurate time service method
Download PDF

Info

Publication number
CN105281859A
CN105281859ACN201410306188.2ACN201410306188ACN105281859ACN 105281859 ACN105281859 ACN 105281859ACN 201410306188 ACN201410306188 ACN 201410306188ACN 105281859 ACN105281859 ACN 105281859A
Authority
CN
China
Prior art keywords
gps
mcu microprocessor
time
synchronous calibration
clock
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
CN201410306188.2A
Other languages
Chinese (zh)
Other versions
CN105281859B (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.)
Fujian Jixing Intelligent Technology Co Ltd
Original Assignee
Fujian Jixing Intelligent 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 Fujian Jixing Intelligent Technology Co LtdfiledCriticalFujian Jixing Intelligent Technology Co Ltd
Priority to CN201410306188.2ApriorityCriticalpatent/CN105281859B/en
Publication of CN105281859ApublicationCriticalpatent/CN105281859A/en
Application grantedgrantedCritical
Publication of CN105281859BpublicationCriticalpatent/CN105281859B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention relates to a GPS-based accurate time service method, which is composed of a GPS module, an MCU microprocessor, a power supply module and a crystal oscillator. The interrupt priority level of an INT pin, which is in PPS signal connection with the GPS module, of the MCU microprocessor is set to be the highest; a synchronous calibration moment unit is arranged inside the MCU microprocessor, and controls an operation moment of an information terminal to conduct clock synchronous calibration; the synchronous calibration moment unit in seconds preserves calculation and conversion results after acquiring UTC time value of a GPS message, and the conversion formula is: 60-GPSUTC second time; and the operation moment of clock synchronous calibration is performed in a PPS signal interrupt service routine in the MCU microprocessor, hour, minute and second of the GPSUTC second time are assigned to hour, minute and second of RTC time through the operation, and zero clearing of milliseconds of the RTC time is operated. By adopting the GPS-based accurate time service method, the time error of hundreds of milliseconds caused by purely analyzing a UTC clock from the GPS message is overcome, and the synchronization of an RTC clock and a GPSUTC clock is achieved at a zero-second moment of each minute without adding other auxiliary equipment, and the accurate time service effect is achieved.

Description

A kind of precision time service method based on GPS
Technical field
The present invention relates to a kind of time service field, particularly a kind of precision time service method based on GPS.
Background technology
Along with the development of science and technology, the exact requirements of all trades and professions to the time is more and more higher, as Aero-Space, deep space communication, information superhighway, navigational communications, electric power transfer etc.GPS exports synchronous time mark PPS signal and NMEA-0813 protocol massages (containing the information such as UTC time, position in message) accurately by decode satellite signals, along with GPS integrated level is more and more higher, price is more and more lower, GPS is adopted to be the technological means that this area is commonly used as the technology path of information terminal precision time service, namely in the application scenario that required precision is not high, only resolve its NMEA-0813 protocol massages exported and obtain the UTC time (this scheme time error has hundreds of millisecond).
Usually, PPS signal accuracy can reach nanosecond, NMEA-0813 protocol massages is producing high level PPS signal and is exporting after keeping 100ms duration, requires higher application scenario at time service precision, often adopts and realizes precision time service in conjunction with PPS signal or other supplementary meanss etc.As patent 01134726.0 provides a kind of gps satellite time service telemetering seismograph, realize synchrodata measurement, record, synchronization timing detonates; In December, 2002, once auspicious monarch, Yin Xianggen, K.K.Li etc. delivered " gps clock on-line monitoring and modification method " at " Proceedings of the CSEE ", labor describes the influencing factor of gps clock error, and point out to promote the application of gps clock in essential industry field, need solve two problems: the Real-Time Monitoring of gps clock and error compensation, article proposes to adopt High Precision Crystal Oscillator to carry out monitoring and the simple and practical method corrected to gps clock, set up the measurement model of gps clock error, achieve a kind of production method of high precision clock; ZL200710180533.2 discloses a kind of high-accuracy data receiving time service instrument, the pulse per second (PPS) information of GPS and absolute time information is passed to admission control board the internal clocking of Corrective control plate, to meet required precision not higher than for 1 × 10-4second application scenario, provide asynchronous serial test interface and the true value equipment do not fixed higher than 38400bps, test frame length of traffic rate or equipment under test export the admission of data; Patent ZL200710176937.4 provides a kind of chip-scale time service based on GPS receiver and synchronous method and equipment thereof, to meet the requirement of low cost, an one embodiment when using ordinary temp to compensate crystal oscillator (0.5PPM), can realize the time service precision of 200ns rank and the synchronization accuracy of 50ns rank; ZL200810060615.8 provides a kind of based on the device of GPS technology to ammeter time service, for ensureing the precision of time service, utilize the time delay that fixing offset compensation MCU and ammeter call duration time produce, specifically adopt PPS signal triggered interrupts, the current time information of inside is all stored, to the time used of having decoded, the temporal information obtained decoding again after the message information that GPS is sent all decodes out can ensure that the clock of MCU inside and gps clock keep more consistent than height (error is within 1us) after adding and triggering.In recent years, document is had to disclose high accuracy time service solution based on the Big Dipper and GPS dual-mode, to meet the application demand of different industries successively.
Therefore, according to feature and the required precision of sector application, how to use lower cost to realize the time service of degree of precision, remain an of great value research.
Summary of the invention
The object of the invention is do not increasing under auxiliary equipment prerequisite, by adopting the PPS signal of GPS and NMEA-0813 message protocol, in conjunction with the RTC clock of MCU microprocessor and interrupt mechanism, realize the precise synchronization in zero second per minute moment, thus reach the low cost precision time service effect meeting sector application.
For achieving the above object, design technology project of the present invention is:
A kind of information terminal is made up of GPS module 101, MCU microprocessor 102, power module 103 and crystal oscillator 104, power module 103 is connected with GPS module 101, MCU microprocessor 102 respectively, MCU microprocessor 102 is connected with GPS module 101, crystal oscillator 104, wherein the PPS signal pins of GPS module 101 is connected with the INT pin that MCU microprocessor 102 has interrupt function, the UART pin of GPS module 101 and the UART pin of MCU microprocessor 102, the inner RTC module of MCU microprocessor 102 is connected with crystal oscillator 104.
Described MCU microprocessor, the INT pin interrupt priority level that it is connected with GPS module PPS signal is not set as the highest.
Described MCU microprocessor, there is a RTC time clock feature unit with interrupt function inside, and the signal source of RTC clock is from crystal oscillator 104.
The UART pin of described MCU microprocessor is connected with GPS module UART pin, and MCU microprocessor is its output of channel reception NMEA-0813 protocol massages thus.
Described MCU microprocessor, after receiving complete GPS module NMEA-0813 protocol massages, starts GPS message data and resolves, obtain the UTC time in message.
Described MCU microprocessor, there is a synchronous calibration moment unit inside, and control information terminal carries out the operation moment of clock synchronous calibration; This synchronous calibration moment unit, unit is second, preservation be resolve obtain GPS message UTC time value after calculate the result of conversion, conversion formula is: 60-GPSUTC time second.
The operation moment of described clock synchronous calibration carries out in PPS signal interruption service routine in MCU microprocessor, after MCU microprocessor enters PPS signal interruption service routine, first whether the data of inspection synchronous calibration moment unit are 0, when not being 0, the data that synchronous calibration moment unit is preserved are carried out subtracting an operation, whether the data judging this synchronous calibration moment unit are again 0, if be 0, operate the Hour Minute Second assignment of GPSUTC time to the Hour Minute Second of RTC time, the millisecond simultaneously operating the RTC time resets, thus realize time synchronized and precision time service.
Compared with prior art, the invention has the beneficial effects as follows: overcome the hundreds of milliseconds of time errors of resolving merely UTC clock and causing from GPS message, and under not needing to increase other auxiliary equipment prerequisites, zero second per minute moment realized RTC clock and GPSUTC clock synchronous, reached more accurate time service effect.
Object of the present invention, feature and advantage also will be described in detail by reference to the accompanying drawings by embodiment.
Accompanying drawing explanation
Fig. 1 is hardware platform structure chart of the present invention.
Fig. 2 is GPS message data process of analysis figure of the present invention.
Fig. 3 is PPS signal interruption service procedure figure of the present invention.
Fig. 4 is RTC break in service flow chart of the present invention.
Embodiment
In Fig. 1,101 is GPS module, and 102 is MCU microprocessors, and 103 is power modules, and 104 is crystal oscillators, and PPS pin, the UART pin of 101 are connected with INT, UART pin of 102 respectively, and the RTC pin of 102 is connected with 104, and 103 are connected with 101 and 102 respectively.
In order to describe in more detail the present invention, be described further below in conjunction with Fig. 2, Fig. 3 and Fig. 4.
Step 201:GPS message data is resolved and is started, and performs step 202;
Step 202: judge whether there is the UTC time in GPS message, if do not had, then performs step 205, if had, then performs step 203;
Step 203: resolve and obtain UTC Hour Minute Second data, perform step 204;
Step 204: by UTC number of seconds according to substitution conversion formula, calculate and obtain the synchronous calibration moment, conversion formula is: synchronous calibration moment unit=60-GPSUTC time second, then performs step 205;
Step 205:GPS message data is resolved and is terminated.
The service of step 301:PPS signal interruption starts, and performs step 302;
Step 302: whether the data judging synchronous calibration moment unit are 0, are 0, then perform step 306, otherwise be not 0, performs step 303;
Step 303: the data of synchronous calibration moment unit carry out subtracting an operation, performs step 304;
Step 304: whether the data judging synchronous calibration moment unit are 0, is not 0 and performs step 306, otherwise be 0, perform step 305;
Step 305: when performing clock synchronous calibration operation, by the date Hour Minute Second assignment of GPSUTC time to the date Hour Minute Second of RTC clock, RTC clock millisecond resets, and performs step 305;
The service of step 306:PPS signal interruption terminates.
Step 401:RTC break in service second starts, and performs step 402;
Step 402: judged whether PPS pps pulse per second signal, if had, then performs step 404, otherwise performs step 403;
Step 403: use RTC clock as the time, perform step 404.
Step 404:RTC break in service second terminates.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art should be appreciated that; specific embodiment described by us is illustrative; instead of for limiting the scope of the invention; anyly inspire the equivalence done to modify by the technology of the present invention route and change, all should be encompassed in scope that the claims in the present invention protect.

Claims (2)

CN201410306188.2A2014-07-012014-07-01A kind of precision time service method based on GPSActiveCN105281859B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410306188.2ACN105281859B (en)2014-07-012014-07-01A kind of precision time service method based on GPS

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410306188.2ACN105281859B (en)2014-07-012014-07-01A kind of precision time service method based on GPS

Publications (2)

Publication NumberPublication Date
CN105281859Atrue CN105281859A (en)2016-01-27
CN105281859B CN105281859B (en)2018-03-23

Family

ID=55150270

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410306188.2AActiveCN105281859B (en)2014-07-012014-07-01A kind of precision time service method based on GPS

Country Status (1)

CountryLink
CN (1)CN105281859B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105700343A (en)*2016-04-072016-06-22飞亚达(集团)股份有限公司Long duration monitoring device and method for reference UTC time source
CN106163026A (en)*2015-03-252016-11-23福建吉星智能科技股份有限公司Quick control implementation method is dodged in the synchronization of a kind of modulator
CN106341879A (en)*2016-05-242017-01-18北京动量科技有限责任公司GPS time reference-based multi-point synchronous communication method and device
CN106773985A (en)*2016-12-292017-05-31西北核技术研究所A kind of high accuracy sequence control unit and method for remote multiparty control
CN107947886A (en)*2017-11-242018-04-20上海机电工程研究所System calibration method based on time-code and quasi- second
CN108375898A (en)*2018-03-152018-08-07福建师范大学A kind of computer high-precision time service control method
CN109117410A (en)*2018-08-072019-01-01国网上海市电力公司A kind of high-precision time synchronization method based on generic asynchronous serial communication interface
CN110515294A (en)*2018-05-222019-11-29福建师范大学 A fast and high-precision timing method for embedded GPS terminals
CN110601785A (en)*2019-09-192019-12-20福建师范大学Rapid high-precision synchronization method for satellite time service
CN111860604A (en)*2020-06-242020-10-30国汽(北京)智能网联汽车研究院有限公司Data fusion method, system and computer storage medium
CN112433536A (en)*2020-10-272021-03-02一飞(海南)科技有限公司PPS second pulse clock calibration method, processor, storage medium and unmanned aerial vehicle
CN112558685A (en)*2020-12-112021-03-26南京四方亿能电力自动化有限公司Time synchronization method for power distribution terminal modules
CN112711043A (en)*2020-12-302021-04-27上海歌诺助航灯光技术有限公司GPS-based accurate time service method and electronic equipment
CN112821974A (en)*2020-11-232021-05-18北京经纬恒润科技股份有限公司High-precision time synchronization method and device for vehicle-mounted ECU
CN113129474A (en)*2020-01-162021-07-16浙江吉利汽车研究院有限公司Method, device and equipment for using time information and storage medium
CN113259035A (en)*2020-03-262021-08-13安徽智芯能源科技有限公司Clock synchronization method
CN114089293A (en)*2021-11-012022-02-25西安电子工程研究所GPS time error correction method based on radar reception
CN114501609A (en)*2022-03-302022-05-13东集技术股份有限公司Communication networking method, device, storage medium and computer equipment
CN115096154A (en)*2022-06-202022-09-23上海芯飏科技有限公司Digital electronic detonator detonation controller and cascade synchronization method and system thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070183486A1 (en)*2006-02-032007-08-09Cheng MingqiangMethod for GPS positioning in a weak signal environment
CN101242231A (en)*2008-03-032008-08-13电子科技大学 Clock synchronization device for synchrophasor measurement in power system
CN101261494A (en)*2008-04-212008-09-10杭州普维光电技术有限公司Method and its device for time service based on GPS technology
CN101488016A (en)*2009-02-132009-07-22国网电力科学研究院PLC module-grade time-setting method based on GPS
CN101923138A (en)*2010-07-232010-12-22南京国电南自轨道交通工程有限公司AT (Autotransformer) line fault ranging system with built-bin GPS (Global Positioning System) module
CN103441811A (en)*2013-09-052013-12-11天津理工大学AIS time-slot synchronization triggering system based on UTC
CN103760763A (en)*2013-12-272014-04-30航天科工深圳(集团)有限公司GPS clock synchronization system and method and distribution terminal unit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070183486A1 (en)*2006-02-032007-08-09Cheng MingqiangMethod for GPS positioning in a weak signal environment
CN101242231A (en)*2008-03-032008-08-13电子科技大学 Clock synchronization device for synchrophasor measurement in power system
CN101261494A (en)*2008-04-212008-09-10杭州普维光电技术有限公司Method and its device for time service based on GPS technology
CN101488016A (en)*2009-02-132009-07-22国网电力科学研究院PLC module-grade time-setting method based on GPS
CN101923138A (en)*2010-07-232010-12-22南京国电南自轨道交通工程有限公司AT (Autotransformer) line fault ranging system with built-bin GPS (Global Positioning System) module
CN103441811A (en)*2013-09-052013-12-11天津理工大学AIS time-slot synchronization triggering system based on UTC
CN103760763A (en)*2013-12-272014-04-30航天科工深圳(集团)有限公司GPS clock synchronization system and method and distribution terminal unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邹红艳: "电力系统GPS同步授时装置设计及综合校时方案研究", 《东南大学硕士学位论文》*

Cited By (29)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106163026A (en)*2015-03-252016-11-23福建吉星智能科技股份有限公司Quick control implementation method is dodged in the synchronization of a kind of modulator
CN106163026B (en)*2015-03-252018-11-20福建吉星智能科技股份有限公司A kind of synchronous quick control method of sudden strain of a muscle of modulator
CN105700343A (en)*2016-04-072016-06-22飞亚达(集团)股份有限公司Long duration monitoring device and method for reference UTC time source
CN105700343B (en)*2016-04-072018-06-29飞亚达(集团)股份有限公司Benchmark UTC time source long duration monitoring device and its method
CN106341879A (en)*2016-05-242017-01-18北京动量科技有限责任公司GPS time reference-based multi-point synchronous communication method and device
CN106773985A (en)*2016-12-292017-05-31西北核技术研究所A kind of high accuracy sequence control unit and method for remote multiparty control
CN107947886A (en)*2017-11-242018-04-20上海机电工程研究所System calibration method based on time-code and quasi- second
CN107947886B (en)*2017-11-242019-08-23上海机电工程研究所System calibration method based on time-code and quasi- second
CN108375898A (en)*2018-03-152018-08-07福建师范大学A kind of computer high-precision time service control method
CN108375898B (en)*2018-03-152023-04-14福建师范大学 A computer high-precision timing control method
CN110515294A (en)*2018-05-222019-11-29福建师范大学 A fast and high-precision timing method for embedded GPS terminals
CN109117410A (en)*2018-08-072019-01-01国网上海市电力公司A kind of high-precision time synchronization method based on generic asynchronous serial communication interface
CN110601785A (en)*2019-09-192019-12-20福建师范大学Rapid high-precision synchronization method for satellite time service
CN113129474A (en)*2020-01-162021-07-16浙江吉利汽车研究院有限公司Method, device and equipment for using time information and storage medium
CN113259035A (en)*2020-03-262021-08-13安徽智芯能源科技有限公司Clock synchronization method
CN111860604A (en)*2020-06-242020-10-30国汽(北京)智能网联汽车研究院有限公司Data fusion method, system and computer storage medium
CN111860604B (en)*2020-06-242024-02-02国汽(北京)智能网联汽车研究院有限公司Data fusion method, system and computer storage medium
CN112433536A (en)*2020-10-272021-03-02一飞(海南)科技有限公司PPS second pulse clock calibration method, processor, storage medium and unmanned aerial vehicle
CN112821974B (en)*2020-11-232023-01-24北京经纬恒润科技股份有限公司 A high-precision time synchronization method and device for a vehicle-mounted ECU
CN112821974A (en)*2020-11-232021-05-18北京经纬恒润科技股份有限公司High-precision time synchronization method and device for vehicle-mounted ECU
CN112558685A (en)*2020-12-112021-03-26南京四方亿能电力自动化有限公司Time synchronization method for power distribution terminal modules
CN112558685B (en)*2020-12-112024-05-10南京四方亿能电力自动化有限公司Method for synchronizing time between power distribution terminal modules
CN112711043A (en)*2020-12-302021-04-27上海歌诺助航灯光技术有限公司GPS-based accurate time service method and electronic equipment
CN114089293A (en)*2021-11-012022-02-25西安电子工程研究所GPS time error correction method based on radar reception
CN114089293B (en)*2021-11-012024-05-24西安电子工程研究所GPS time error correction method based on radar reception
CN114501609B (en)*2022-03-302022-07-22东集技术股份有限公司Communication networking method, device, storage medium and computer equipment
CN114501609A (en)*2022-03-302022-05-13东集技术股份有限公司Communication networking method, device, storage medium and computer equipment
CN115096154A (en)*2022-06-202022-09-23上海芯飏科技有限公司Digital electronic detonator detonation controller and cascade synchronization method and system thereof
CN115096154B (en)*2022-06-202023-08-18上海芯飏科技有限公司Digital electronic detonator initiation controller and cascade synchronization method and system thereof

Also Published As

Publication numberPublication date
CN105281859B (en)2018-03-23

Similar Documents

PublicationPublication DateTitle
CN105281859A (en)GPS-based accurate time service method
CN104570717A (en)Time keeping system based on GPS /Beidou satellite and finite-state machine
CN102830611B (en)Time source
CN107505832B (en) A High Precision Timing System
CN103117742B (en)System tamed by GPS/ Big Dipper dual mode satellite clock crystal oscillator
CN103226324A (en)High-precision time-frequency source capable of being tamed to time-frequency standard in real time
CN103346852B (en)A kind of device that reference clock signal is provided
CN110928176A (en)Multifunctional time service equipment supporting multiple time service technologies
CN110413042A (en)A kind of clock server, punctual frequency compensation method and device
KR100744326B1 (en) Method and apparatus for synchronizing APS module time using system time information in mobile terminal
CN101090547A (en)Method and device for calibrating sleep clock of TD-SCDMA terminal
CN205880528U (en)High -precision synchronization sampling device based on FPGA
CN102510327A (en)Method and device for improving synchronous precision of long-range two-way time comparison modulator-demodulator
CN102436172A (en)Multifunctional watt-hour meter and GPS timing system
CN111948471A (en) A kind of intelligent substation secondary equipment timing accuracy performance detection method and system
CN116722821A (en)Clock signal calibration circuit, calibration method, chip and electronic equipment
CN113794528B (en) A time-frequency synchronization evaluation device and method for power 5G network timing
CN116125782A (en) Multi-channel nanosecond-level time synchronization device for FPGA and usage method
CN102063055A (en)Redundant UTC (universal coordinated time) time synchronization server
CN201185428Y (en)Time synthesis measuring instrument
CN104935394A (en) Time signal generator and time tester
CN110928177B (en)Clock synchronization system and method
CN110908272B (en)1pps pulse signal timing method
CN220570541U (en)Dual-mode core time corrector based on GPS/BD communication
CN203708224U (en)Multipurpose serial time code decoder

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp