Design and implementation of time synchronization system based on GPS signal Liu bin, Shuling Guo, Shasha Ma

Similar documents
Design of Control System of GPS-based Tower Clock

Specifying GPS Disciplined Oscillators

T200, PTP/IEEE 1588 Grandmaster Clock and

The Application of Clock Synchronization in the TDOA Location System Ziyu WANG a, Chen JIAN b, Benchao WANG c, Wenli YANG d

SA-320 Installation Guide SA-320. Installation Guide. Date: Nov., 2004 Version: 1.0. All Rights Reserved

Key Modules For Your Success SKYTRAQ. GPS Module MG-ST1315. UUser s Manual Ver 展得國際有限公司

CONDOR C1722 GPS RECEIVER MODULE technical notes

CONDOR C1919 GPS RECEIVER MODULE technical notes GENERAL OVERVIEW

SA-320 Installation Guide SA-320. Installation Guide. Date: Mar, 2011 Version: 2.5. All Rights Reserved

GPS/GNSS Receiver Module

POXA GPS Module Data Sheet. Copyright 2013 ACTE A/S. All Rights Reserved.

GPS Engine Board USB Interface

GPS SMART ANTENNA (GWG4287SX)

The Hardware Design of Power Quality Online Monitoring Device Based. on MCU

SA-320 Installation Guide SA-320. Installation Guide. Date: June, 2007 Version: 2.2. All Rights Reserved

Mitigate Effects of Multipath Interference at GPS Using Separate Antennas

SKYTRAQ. GPS Module MG-ST1315S. UUser s Manual Ver 1.01

Open Access On Improving the Time Synchronization Precision in the Electric Power System. Qiang Song * and Weifeng Jia

GR-87 GPS Receiver Module

裕筌電子 ( 深圳 ) 有限公司. GPS Receiver. GPS, GALILEO, QZSS: L MHz, C/A code BEIDOU: B MHz. Support 99 channels (33 Tracking, 99 Acquisition)

TCG 02-G FULL FEATURED SATELLITE CLOCK KEY FEATURES SUPPORTS

T108, GPS/GLONASS/BEIDOU Time Server

Datasheet of stand-alone GPS smart antenna module, LS20037

TCG 02-G FULL FEATURED SATELLITE CLOCK KEY FEATURES SUPPORTS

MN5020HS Smart GPS Antenna Module

GPS-001 GPS Module Manual

Part Number Weblink for the part Description Unit Price. Hardware interfacing to the Freescale 9S12C32 MCU on board the CSM-12C32 module

GPS & GLONASS Receiver Module

Brian Hanna Meteor IP 2007 Microcontroller

GPS-41EBR GPS-41EBF. GPS Receiver Module GPS-41EB. Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module FEATURES. Ordering Information

WSPR VCXO Controller

YIC9 Series. GPS & BDS Receiver Module. 1. Product Information 1.1 Product Name: YIC91612EBFGB-U Product Description: Product Features:

SkyNav GM10 GPS Receiver Module

GPS based data acquisition system for mobile applications

CONDOR C1216 GPS RECEIVER MODULE technical notes ZELIA INTEGRATES ANTENNA, GPS RECEIVER, RTC AND LNA

GPS Receiver. UT-41R (DB9 and PS2 cable) Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Receiver. Features

GM-270. CF GPS Receiver. User s Guide

GU93030S Series. GPS/GNSS Receiver (G-Mouse) Product Description: GU93030S(M) is a compact, high performance, and low power consumption G-Mouse.

GPS-41SMDR GPS-41SMDF. Embedded GPS Module GPS-41SMD. Fast-Acquisition Enhanced-Sensitivity 16-Channel SMD GPS Receiver Module FEATURES

GLOBALSAT GPS Engine Board

EB-500A/AL. Ultimate TRANSYSTEM INC. EB-500A/AL Data Sheet

CONDOR C1216 GPS RECEIVER MODULE technical notes GENERAL OVERVIEW

EB-600. Ultimate TRANSYSTEM INC. EB-600 Data Sheet

MC-1612 Hardware Design Guide

Document Number: 400 GPS 080

EB-500/ EB-500L. Ultimate TRANSYSTEM INC. EB-500 Series Data Sheet

GPS / GNSS Receiver (G-Mouse) GT-901 is a compact, high performance, and low power consumption G-Mouse.

Positioning Performance Study of the RESSOX System With Hardware-in-the-loop Clock

LOCOSYS Technology Inc.

Ct-G551. Connectec. SiRF V GPS Module. Specifications Sheet V0.1. Features: Ct-G551 V0.1 Specification Sheet

LAX016 Series Logic Analyzer User Guide

UniTraQ OEM Module. GT-310F (Flash version) Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module. Features

EITF40 Digital and Analogue Projects - GNSS Tracker 2.4

STUDY OF A NEW PHASE DETECTOR BASED ON CMOS

Key Modules For Your Success. ANTARIS 4 SuperSense. GPS Module. User s Manual Ver 展得國際有限公司

Design and FPGA Implementation of a High Speed UART. Sonali Dhage, Manali Patil,Navnath Temgire,Pushkar Vaity, Sangeeta Parshionikar

EM-401. GPS ENGINE BOARD with Active Antenna PRODUCT GUIDE. Globalsat Technology Corporation (Taiwan)

Design of Removable Guardrail System Based on ZigBee Network

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

A Compiler Design Technique for EMS Test CS115

GPS Receiver. User s Guide. Dec Rev. A

GPS-41MLR GPS-41MLF. GPS Receiver Module GPS-41ML. Fast Acquisition Enhanced Sensitivity 12 Channel GPS Sensor Module FEATURES. Ordering Information

PPS usable by timing applications via serial port emulation

GPS Module AGP3363. Product Datasheet & Design Guide <V1.0>

GPS & GLONASS Antenna Module

Design of intelligent vehicle control system based on machine visual

EB-230. Ultimate TRANSYSTEM INC. EB-230 Data Sheet

MC-1010 Hardware Design Guide

GPS/GNSS Antenna Module. YIC51513PGM-37 is a compact, high performance, and low power consumption GPS/GNSS Antenna Module.

GAM-2107-MTR GPS Antenna Module. General Description. The Gotop GAM-2107-MTR is a complete. GPS engine module that features super sensitivity,

GLOBALSAT GPS Module

MN8010 GPS Receiver Module

GPS Firmware A1080 A description of the standard NMEA GPS firmware provided on Tyco Electronics GPS module A1080 User s Manual Version 3.

New Real Time Clock Combines Ensemble of Input Clocks and Provides a more Stable Output than Any of the Input Clocks

SUP500F8. Low-Power High-Performance Low-Cost 167 Channel GPS Smart Antenna Module. Features. Applications

GT-720F (Flash version) Fast Acquisition Enhanced Sensitivity 65 Channel GPS Sensor Module

GLOBALSAT GPS+BDS Engine Board

SkyNav SKG25B Ultra High Sensitivity and Low Power GPS Receiver Module

GNSS 5 click PID: MIKROE-2670

EB-54X. EB-54X Datasheet

GPS Time and Frequency Reference Receiver

UART GPS NEO-6M User Manual

TD_485 Transceiver Modules Application Guide 2017

Non-Packet Time-of-Day Distribution

GT-321R-RS232 Fast Acquisition Enhanced Sensitivity 65 Channels GPS Sensor Receiver

Design of double loop-locked system for brush-less DC motor based on DSP

thinkstar GPS Module Document Revision: v1.0 Document Release: July 25, 2010

Smart Design Technology Co., Ltd.

GPS & GLONASS Antenna Module

66-Channel GPS Module GP-3711

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

GP-2117 GPS&GLONASS Antenna Module

DS1307ZN. 64 X 8 Serial Real Time Clock

GPS Module Datasheet

YIC5 Series. GPS/GNSS Receiver Module. 1. Product Information 1.1 Product Name: YIC51612EB Product Description YUECHUNG INTERNATIONAL CORP.

Design of Testing System Based on the DRFM

EB-500/ EB-500L. Ultimate TRANSYSTEM INC. EB-500 Series Data Sheet

Design of Adaptive RFID Reader based on DDS and RC522 Li Yang, Dong Zhi-Hong, Cong Dong-Sheng

C3-470B Jnavi SPECSHEET

Cleaning Robot Working at Height Final. Fan-Qi XU*

Transcription:

International Conference on Automation, Mechanical Control and Computational Engineering (AMCCE 2015) Design and implementation of time synchronization system based on GPS signal Liu bin, Shuling Guo, Shasha Ma 1Northwest Industrial Group Co.,Ltd.,Happiness South Road Lane 2Northwest Industrial Group Co.,Ltd.,Happiness South Road Lane 3Xi an, Shaanxi Province,710043,China Keywords: GPS signal; time synchronization; time calibration. Abstract. The GPS synchronization system can provide accurate time reference to system testing. To improve the accuracy and stability of the synchronous timer in GPS, this paper presents a new method to implement highly accurate and stable clock by the synchronization of crystal oscillator clock with GPS clock, which is based on the complement of the characteristics between GPS and crystal oscillator. And it can ensure the system performing normal testing by local time running under the circumstance of invalid GPS signal. Introduction The high accurate time reference of Global Positioning System (GPS) has become one of the basic guarantee platforms for industrial control, communications, radio and television and other fields. For its excellent timing performance, all-weather and all-time positioning and navigation services, GPS is widely used in many areas, such as computers on the internet, CDMA base station etc. which need to coordinate and synchronize with local needs. Capitalizing on the excellent features of GPS, the time synchronization device realized through the double research and development has several advantages which traditional timing mode was incomparable [1]. In this paper, using the excellent characteristics and the periphery interface features of GPS OEM timing mode, the author has designed a completely automatic time synchronization system, which was composed of hardware interface circuit and corresponding software. GPS timing principle A new type of timing applications product GPS OEM, formed on the newest high accuracy GPS positioning module, can simultaneously receive 4~11 satellites signals within the range of its vision, and output timing and positioning information format conforming to the regulation, thus to complete time service. Under normal GPS signal circumstances, there will be outputting two kinds of timing signals: ⅰ)1PPS signals with a second interval. Its synchronization error between its pulse front edge and UTC absolute time outputted from serial port does not exceed 1us. ⅱ)Signals included in the RS232 serial output information in the UTC (Coordinate Universal Time) absolute time, corresponded with second pulse, as it is shown in the figur1. 1PPS 1 2 3 4 GPS Receiver RS232 Time Code Fig.1: Relationship between the second pulse and UTC standard time data of GPS 2015. The authors - Published by Atlantis Press 2186

The GPS receiver outputs1pps signal with 1 second interval, which corresponds to a rising edge of the accurate UTC time [2]. Therefore, the rising edge can be used to trigger and control other equipment, thus to achieve the accurate time when second pulse comes, and complete time synchronization work. However, it is difficult to receive satellite signals when the GPS service module used in the places Such as the room, tunnel and shelter or electromagnetic interference environment, in which signal coverage is weak. During this time, timing signal will appear short disorder or unstable situation [3]. So, in order to ensure the test precision of the system, it is necessary to design a perfect timekeeping program. Design of GPS time synchronization system The time calibration method of GPS synchronization clock GPS timing module itself provides the very accurate time information, but in which way to calibrate the system has become the key issue to ensure the accuracy of time synchronization. The timing method of GPS synchronous clock mainly has the following three: ⅰ)Time calibration of serial communication Time calibration of serial communication refers to that serial port outputs time information by the way of string data stream, and every base station receives time information with fixed update rate when calibrating. In this process, interrupting mode was used to send and receive serial data. Therefore, the time of CPU will be occupied by the interrupt handler of both parties, and the length of time is related to the interrupt priority settings of both serial ports. In addition, data byte is transmitted bit-by-bit by certain baud rate. So the bus transmission will also have a certain time delay, which can be accurately calculated, mainly related to the amount of data transmission and the serial baud rate. Whereas other factor affecting the time calibration such as interrupt processing delay can only be made at a rough estimate. Therefore, the above factors should be taken into consideration to make sure the precision of time calibration when using serial communication, thus to make a compensation though a given modified value. ⅱ)Time calibration of pulse interruption Time calibration of pulse interrupt refers to the GPS timing module is used to output a precise synchronous pulse signal at a certain interval, in which the system was calibrated to remove its accumulated errors of local clock when CPU has received the pulse. During this way, although the signal transmission, isolation and response and processing of interrupt program will be delayed, the whole delay time is about tens of microseconds [4]. So the accuracy can meet the demands of the system, even if the time correction was not made. ⅲ) Comprehensive time calibration When being considered of the calibration mode of serial communication and pulse interrupt, if only the former was used, the accuracy is far from the demands of testing system because of the time of data transmitted and dealt in the bus will accumulate to millisecond level. Therefore, it s vital to make time calibration. And the size of correction value must depend on the specific situation to the scene, which brings great inconveniences to users. While if only the latter was used, it is comparatively easier but corresponding time and positioning information were not acquired and system were unable to effectively test. Thus, these two ways can be properly combined to offer accurate and reliable timekeeping service for the system. The design of complete timekeeping system GPS receiver could output high accuracy, safe and reliable timing signal under the normal GPS signal. But in some extreme circumstances such as continuous rainy days and places where signal coverage is weaker, the GPS signal may not be well received by antenna. Therefore, the condition of invalid GPS must be considered to ensure the timing accuracy of output signal. When the GPS receiver emerges transient asynchrony or unstable output, the timing accuracy of synchronous system mainly depends on local clock, from which reference signal was generated for travel time. The Oven Controlled Crystal Oscillator (OCXO) belongs to precision temperature control device, from which crystal was always made to work near the zero-temperature coefficient point through constant 2187

temperature devices. The OCXO has very high frequency accuracy and stability, whose performance is almost close to the level of atomic clock. It performs well in aging rate, temperature stability etc. and even better than the atomic clock in the short-term stability. So, the OCXO was used in this paper to achieve local timekeeping function. The system diagram has been shown in the figure2. 10MHZ Crystal oscillator counter INT0 1PPS signal external terminal MCU UART 4 RS232 GPS Receiver Power and Reset USATR1 Fig.2: Principle diagram of time synchronization system In order to ensure that the time synchronization of testing system was at the same time level, the control port should firstly be initialized when system was powered. Before test was started, valid GPS_1PPS second pulse signal should be received at least once, during which the counting processing is still continued. Local clock was refreshed from zero when the GPS_1PPS second pulse signal is valid, in the same meaning of resetting the local second counter, and signal generated at next second will be synchronized with GPS_1PPS second pulse signal. Design and implementation of time synchronization system The design and realization of hardware ⅰ)Design of GPS receiving module circuit The high performance LEA-6T time module of Switzerland U-blox was selected as the GPS_OEM board, which the first positioning time is less than 1 second. In the static operation, accurate time could be output even if the GPS signal is worse and sky visibility in poor circumstances, and also remove the timing error. Its precision can be as high as 15ns by using the quantization error to compensate the error of time pulse particles. A variety of data outputted from GPS_OEM serial port were received by system CPU, and the UTC data was distracted by designing corresponding software, which was also converted into Beijing time. In addition, CPU is also responsible for receiving the second pulse from GPS_OEM and performs local travel time by internal counter, as is shown in the figure3. Fig.3: Working circuit of GPS_OEM LEA-6T serial communication baud rate can be selected by setting 4800bps, 9600bps on the CFG_COM1 port. TIMEPULSE and TIMEPULSE2 pin can provide with 1PPS second pulse signal corresponding to UTC time, in which the pulse rising edge is corresponded to positive second moment. The UART port supports 7messages (GSV, RMC, GSA, GGA, GLL, VTG, TXT) transmission of NMEA-0183 protocol, of which the VCC power is 3.3V. To improve the stability of power, two 0.1uF bypass capacitors were paralleled. The standby voltage is 3.3V. The UART charges 2188

and discharges the battery by two diodes D8 D9. And UART1 is responsible for uploading time information or downloading initialization procedure for GPS. ⅱ)Design of clock circuit The basic function of the clock circuit is to keep track of time information, which instead of GPS travels time in case GPS is out of step. It requires better clock accuracy in the whole system, because the time error resulted from timing rate of clock will have impacts on the results of time synchronization, while the errors of ordinary passive in-line crystal is greater due to the influence of temperature, humidity, air pressure and other factors. So OCXO constant temperature crystal oscillator of 10MHZ has been used in this design, of which the accuracy is 0.1ppm and daily timekeeping stability is only tens of milliseconds. The clock circuit is shown in the figure4. Fig.4: Clock circuit The design and realization of software ⅰ)Extraction of GPS module information GPS timing module will continuously send received satellites signals after which were processed to processor as long as it is in the working condition. Because suffering from several errors like ionosphere error, troposphere error, satellite clock error, multipath error and few number of tracking satellite, GPS often cannot enter the location condition. Therefore, it is extracting the valid GPS information to judge that became the effective and reliable measures to determine the GPS information. 7 messages of NMEA-0183 protocol outputted from GPS, of which GPS positioning condition, time, date and other fundamental factors are offered, while current number of visible satellites and status information of various satellites are contained in the $GPGSV. The criterion for judgment of the reliability of GPS information is that it can be considered current outputting GPS is valid, when met the demands of positioning state information and several satellites tracked, otherwise it will be considered invalid. 8 hours were added to the UTC (Universal Time Coordinated) from GPS and then it is converted to Beijing time. GPS message is extracted by comma as a separator, in which the two characters after the third comma of $GPGSV message indicate the number of satellites. GPS positioning state is extracted by comma as a separator, in which the first character after the second comma. A represents successful positioning and V the failed position. Extraction of GPS is as follows: Time information is described as the first to sixth character after the first comma of $GPRMC message, while date information is described as the first to sixth character after the ninth comma of $GPRMC message. ⅱ)The counter module Counting part uses internal timer or counter of processor as the constitution of local timing suit. Counting pulse can be obtained by the local 10MHz oscillator frequency. The cycle is 1us when counting pulse is 10 dividing frequency of system clock signal. Internal 16 bit timer or counter of MCU implements the clock by counting the 1MHZ signal, which is divided into real time counter and microsecond counter. When the second pulse does work, the local counter is reset by GPS second pulse and restarted, and the synchronization between local clock and standard GPS second pulse is implemented the next moment. When the GPS signal is out of step, the local 1PPS second pulse can be used as a short time standard second time signal to realize local travel time. 2189

Test of time synchronization performance In order to test the time precision of time synchronous device, any two of GPS device were placed in the open area, and was connected with an external interrupt button through peripheral hardware circuit. The time information of interrupt arrival will be recorded respectively by GPS time synchronization device when the button is pressed. And this will be delivered to the PC port through data transmission module. Repeat the above steps in the room. By testing, the time error is within 5us when GPS signal is normal. But it will down to 0.1ms when the GPS signal is invalid after 2hours, thus to ensure the system stably and accurately output in a long time. Grid1 Testing data of GPS time synchronization device Table 1: Testing data of GPS time synchronization device Serial number DeviceⅠtrigger time DeviceⅡtrigger time Relative error 1 (GPSnormal) 10:16:12 779ms359µs 10:16:12 779ms360µs 1µs 2 (GPS normal) 10:21:46 560ms117µs 10:21:46 560ms119µs 2µs 3 (GPS normal) 11:25:09 676ms413µs 11:25:09 676ms417µs 4µs 4 (GPS normal) 11:26:11 224ms699µs 11:26:11 224ms701µs 2µs 5 (GPS invalid ) 13:31:05 452ms812µs 13:31:05 452ms838µs 26µs 6 (GPS invalid) 13:32:52 190ms023µs 13:32:52 190ms054µs 31µs Conclusions Aiming at the high accuracy and great reliability of testing system, this paper, utilizing the complementary characteristics between GPS time module and OCXO, has designed a new type of timekeeping device with good stability and high time precision, of which the time error is within 0.1ms. With the development of a number of large scale electronic information systems, it has a great significance to keep exploring ways of working on GPS timing signal. References [1]Chen Junyong. Toward the twenty-first century Global Positioning System and its Application[J].Journal of Surveying and mapping,1999, 28(1):6~10. [2]Zhang Chao, Zheng Yong. Research of Accurate Timing by Using GPS OEM Chip[J].Journal of Information Engineering University, 2001, 2(4):50~53. [3]Yang Yongbiao, Yang Xiaoyu and Zhou Jie. Realize Accurate Timing with FPGA during GPS syn Failure[J].Electric Power Automation Equipment, 2007,27(7):109~112. [4]Zhang Shouxin. Theory and application of GPS satellites positioning measurement [M].Changsha: National University of Defense Technology press, 1996. [5]YUAN Hai-bo. The Study on the Automatic Steering Method of UTC(NTSC) and the Design of Its Software[D]. Graduate University of Chinese Academy of Sciences(NTSC),2005. [6]He Hong-bing. The Research and Design of High Precision Time Synchronization System Based on GPS[D]. Sichuan University,2005. 2190

[7]Cadenas,O.;Megson,G.Pipelining Considerations for an FPGA case[a].proceedings of IEEE International Symposuim on Digital Systems Design[C],2001,276-285. [8]A Technical Tutorial on Digital Signal Synthesis[M].Analog Device Inc,USA,1999:45-58. [9]David Finkleman,Steve Allen.The Future of Time:UTC and the Leap ond[j].american Scientist,2011,99(4). [10]Moore P,Crossley P.GPS Applictions in Power System:I.introduction to GPS[J].Power Engineering Jounral,2011,99(4). 2191