WO2018093046A1 - Utc time synchronization method of device using gps that improves abnormal operating situation - Google Patents

Utc time synchronization method of device using gps that improves abnormal operating situation Download PDF

Info

Publication number
WO2018093046A1
WO2018093046A1 PCT/KR2017/011249 KR2017011249W WO2018093046A1 WO 2018093046 A1 WO2018093046 A1 WO 2018093046A1 KR 2017011249 W KR2017011249 W KR 2017011249W WO 2018093046 A1 WO2018093046 A1 WO 2018093046A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
signal
value
module
utc
Prior art date
Application number
PCT/KR2017/011249
Other languages
French (fr)
Korean (ko)
Inventor
정한균
임기택
신대교
윤상훈
장수현
진성근
Original Assignee
전자부품연구원
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 전자부품연구원 filed Critical 전자부품연구원
Publication of WO2018093046A1 publication Critical patent/WO2018093046A1/en

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04CELECTROMECHANICAL CLOCKS OR WATCHES
    • G04C11/00Synchronisation of independently-driven clocks
    • G04C11/02Synchronisation of independently-driven clocks by radio
    • G04C11/026Synchronisation of independently-driven clocks by radio the time-piece preparing itself on set times on the reception of the sychronising signal
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • GPHYSICS
    • G04HOROLOGY
    • G04CELECTROMECHANICAL CLOCKS OR WATCHES
    • G04C11/00Synchronisation of independently-driven clocks
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS

Definitions

  • the present invention relates to a time synchronization method, and more particularly, to a method of mounting a global positioning system (GPS) module and synchronizing time of a device based thereon.
  • GPS global positioning system
  • UTC Universal Time Coordinated
  • UART Universal Asynchronous Receiver / Transmitter
  • CPU Central Processing Unit
  • NMEA National Marine Electronics Association
  • a time synchronization module (such as a software module that synchronizes the system clock to UTC time) can synchronize the system clock to UTC time by setting the UTC time value received from the GPS module to the system time.
  • the method has the following problems.
  • the UTC time value received from the GPS module has a value in seconds, so synchronization of less than seconds (milliseconds, microseconds, nanoseconds) is impossible.
  • Timing Error There may be a time difference between when the GPS module acquires the UTC time value and when it is output to the device, and the time synchronization module does not know the standard deviation of the time difference and time differences. Accurate synchronization is not possible.
  • Transmission delay occurs when the GPS module transmits data to the time synchronization module.
  • a processing delay occurs during the procedure where the time synchronization module processes the NMEA message data received from the GPS module to extract the UTC time value and set it to the system time. (When operating on a preemptive operating system, process scheduling introduces unpredictable delays.)
  • the unit of UTC time value provided by the GPS module is in the unit of second level, and there is an unpredictable error between the time when the GPS module first acquired the UTC time value and finally the time point when setting the system time. As such, there is a limit to the exact synchronization of the system clock to UTC time.
  • the present invention has been made to solve the above problems, and an object of the present invention is to provide a UTC time synchronization method for synchronizing to UTC time in nano to micro seconds in a specific device / system equipped with a GPS module. .
  • a time synchronization method includes: a first setting step of setting, by a processor, a time value in seconds of a system time using a first signal; And a second setting step of setting, by the processor, a time value equal to or less than a second of the system time by using the second signal when the reception time of the first signal and the generation time of the second signal satisfy a specific condition.
  • the processor may use the second signal to set a time value less than or equal to seconds of the system time. have.
  • the processor may set a time value equal to or less than a second of the system time by using the second signal.
  • the second signal is an interrupt signal, and the second setting step may be performed in an interrupt processing routine.
  • the first signal may be an NMEA message received from the GPS module
  • the second signal may be a PPS signal received from the GPS module.
  • the second setting step may further include storing a second signal generation time.
  • the first setting step may include: when a difference between the system time at which the first signal is received and the stored second signal generation time is greater than a reference value.
  • the first signal may set a time value in seconds of the system time.
  • the first setting step may include storing a second time value extracted from the first signal in an internal variable; When the second signal is received, setting the second unit time value + 1 stored in the internal variable as the second unit time value of the system time.
  • a system includes a module for generating a first signal and a second signal including time information; And setting a time value in seconds of the system time using the first signal received from the module, and using the second signal received from the module when the reception time of the first signal and the generation time of the second signal satisfy a specific condition. And a processor configured to set a time value equal to or less than a second of a system time.
  • FIG. 1 is a block diagram of a system to which the present invention is applicable
  • FIG. 2 is a diagram illustrating a normal operation timing situation
  • 3 is a diagram illustrating an abnormal operation timing situation
  • FIG. 4 is a flowchart provided to explain a time synchronization method according to an embodiment of the present invention.
  • FIG. 5 is a diagram illustrating a specific processing procedure in the time synchronization method illustrated in FIG. 4;
  • FIG. 8 is a flowchart provided to explain a time synchronization method according to another embodiment of the present invention.
  • FIG. 9 is a diagram illustrating in detail a processing procedure according to a time synchronization method according to another embodiment of the present invention.
  • FIG. 10 is a flowchart provided to explain a time synchronization method according to another embodiment of the present invention.
  • FIG. 11 is a diagram specifically illustrating a processing procedure according to a time synchronization method according to another embodiment of the present invention.
  • FIG. 1 is a block diagram of a system to which the present invention is applicable.
  • a system to which the present invention is applicable is constructed by connecting a Global Positioning System (GPS) module 110 to a central processing unit (CPU) 120.
  • GPS Global Positioning System
  • CPU central processing unit
  • NMEA National Marine Electronics Association
  • NMEA National Marine Electronics Association
  • the time synchronization module 130 which is a software module for synchronizing the system clock executed in the CPU 120 to Universal Time Coordinated (UTC) time, may receive and process an NMEA message to obtain a UTC time value.
  • UTC Universal Time Coordinated
  • the PPS signal pin of the GPS module 110 is connected to the interrupt input of the CPU 120 so that the interrupt processing routine can be called when the PPS signal is generated.
  • the PPS is a pulse output by the GPS module 110 every 1 second of UTC, and has an error of several nanoseconds from the actual UTC time.
  • GPS timing error is solved as follows.
  • the time synchronization module 130 may not know when to output the UTC time acquired by the GPS module 110.
  • the normal operation may be performed as shown in FIG. 2, but as shown in FIG. 3, the UTC time may be changed in units of 1 second.
  • the UTC second is changed while the GPS module 110 acquires the UTC time value and outputs it (abnormal operation timing), when the time synchronization module 130 acquires the UTC time value, the present time is 'Current UTC-1'. It will have a seconds value of.
  • FIG. 4 is a flowchart provided to explain a time synchronization method according to an embodiment of the present invention.
  • the time synchronization module 130 transmits the system time (Tcurrent) at the moment of receiving the received NMEA message including the UTC time value.
  • Tcurrent system time
  • Tpps PPS generation time
  • Tdiff Dmsg + Dgps
  • Dmsg Transmission delay required for NMEA message to be delivered from GPS module 110 to time synchronization module 130
  • Dgps the difference between the actual time generated inside the GPS module 110 and the time stored in the message
  • the time synchronization module 130 ignores the corresponding NMEA message (S260). That is, if the calculated time difference is short enough to cause a timing error, the UTC time in the corresponding NMEA message is ignored.
  • the transmission delay is about 25 msec.
  • the CPU 120 may calculate Dmsg differently based on the baudrate of the serial port. Dgps can be identified or guessed from the product datasheet. For example, it may be 5 msec depending on the product.
  • NMEA messages including UTC time values, at least xxZDA, xxRMC, xxGLL, and xxGGA, at least one message is received 25 msec after the PPS occurs.
  • the time synchronization module 130 sets the system time using the corresponding NMEA message (S250). That is, if the calculated time difference is longer than the interval where the timing error occurs, the UTC time in the corresponding NMEA message is used.
  • step S250 the time synchronization module 130 extracts the UTC time value from the NMEA message, stores the corresponding time in an internal variable (utcTime), and converts the utcTime + 1 second value to the system time in the next PPS interrupt processing routine. Set it.
  • FIG. 5 a process of '(Tcurrent-Tpps) > Tdiff' and '(Tcurrent-Tpps) > Tdiff' in the time synchronization method shown in FIG. 4 is illustrated in detail.
  • the following abnormal operation may occur.
  • Another embodiment of the present invention proposes a method for solving the abnormal operation by the "1)".
  • the time synchronization method according to another embodiment of the present invention adds the procedure shown in FIG. 8 between steps S220 and S230 shown in FIG. 4.
  • the time synchronization module 130 may be configured with the "system time of the received moment”. The difference in the stored "PPS generation time” is calculated (S222).
  • step S260 is performed to ignore the NMEA message.
  • step S230 is performed. For example, when the NMEA message reception time is not included in the time period before 990 msec elapses and 1 sec elapses from the previously stored "PPS generation time".
  • a method for solving the abnormal operation by "2)" is proposed.
  • the time synchronization method according to another embodiment of the present invention adds the procedure shown in FIG. 10 between steps S240 and S250 shown in FIG. 4.
  • the time synchronization module 130 calculates a difference between the "current time” and the "previous PPS generation time” before setting the system time (S242).
  • step S260 if the calculated time difference is more than 1 second (for example, more than 1.5 seconds) (S244-N), it is determined that the PPS interrupt is missing, and performs step S260, whereby the NMEA message is ignored.
  • step S250 is performed, whereby the system time is set.
  • FIG. 11 specifically illustrates a processing procedure according to a time synchronization method according to another embodiment of the present invention.
  • the system equipped with the GPS module 110 may synchronize the system clock in nano-microsecond units with UTC time.
  • a method of synchronizing a system clock in UTC to nanoseconds in UTC time in a system equipped with the GPS module 110 is proposed.
  • This technique can be applied to any system using a GPS module without limitation.
  • the inventive concept of the present invention can be applied to a WAVE vehicle terminal using GPS and other systems.
  • the technical idea of the present invention can be applied to a computer-readable recording medium containing a computer program for performing the functions of the apparatus and method according to the present embodiment.
  • the technical idea according to various embodiments of the present disclosure may be implemented in the form of computer readable codes recorded on a computer readable recording medium.
  • the computer-readable recording medium can be any data storage device that can be read by a computer and can store data.
  • the computer-readable recording medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical disk, a hard disk drive, or the like.
  • the computer-readable code or program stored in the computer-readable recording medium may be transmitted through a network connected between the computers.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

Provided is a UTC time synchronization method of a device using a GPS that improves an abnormal operating situation. A time synchronization method according to an embodiment of the present invention comprises: a first setting step in which a processor sets a time value of a system time in seconds by using a first signal; and a second setting step in which, when the reception time of the first signal and the generation time of a second signal satisfy a specific condition, the processor sets the time value of the system time in seconds or less by using the second signal. Accordingly, it is possible to perform synchronization to UTC time in nanoseconds to microseconds, thereby improving the accuracy and performance of the device/system.

Description

비정상 동작 상황을 개선한 GPS를 이용하는 장치의 UTC 시간 동기 방법How to synchronize UTC time with a device using GPS that improves abnormal behavior
본 발명은 시간 동기 방법에 관한 것으로, 더욱 상세하게는 GPS(Global Positioning System) 모듈을 장착하고 이를 기반으로 장치의 시간을 동기화하는 방법에 관한 것이다.The present invention relates to a time synchronization method, and more particularly, to a method of mounting a global positioning system (GPS) module and synchronizing time of a device based thereon.
일반적으로 GPS 모듈은 GPS 위성으로부터 수신된 정보를 기반으로 UTC(Universal Time Coordinated) 시간 값을 획득(=GPS 모듈의 시계가 UTC 시간과 동기화됨)하며, 이를 UART(Universal Asynchronous Receiver/Transmitter) 등의 인터페이스를 통해 NMEA(National Marine Electronics Association) 메시지 형식으로 GPS 모듈에 연결된 장치의 CPU(Central Processing Unit) 등으로 전달한다.In general, the GPS module obtains a Universal Time Coordinated (UTC) time value based on the information received from the GPS satellites (= the GPS module's clock is synchronized with UTC time), which is a UART (Universal Asynchronous Receiver / Transmitter). Through the interface, it is delivered to the Central Processing Unit (CPU) of the device connected to the GPS module in the form of a National Marine Electronics Association (NMEA) message.
일반적인 장치 및 시스템에서, 시간 동기 모듈(예: 시스템 시계를 UTC 시간에 동기화시키는 소프트웨어 모듈)은 GPS 모듈로부터 수신된 UTC 시간 값을 시스템 시간으로 설정함으로써 시스템 시계를 UTC 시간에 동기화할 수 있는데, 이러한 방법에는 다음과 같은 문제점이 있다.In typical devices and systems, a time synchronization module (such as a software module that synchronizes the system clock to UTC time) can synchronize the system clock to UTC time by setting the UTC time value received from the GPS module to the system time. The method has the following problems.
- 낮은 분해능: GPS 모듈로부터 수신되는 UTC 시간 값은 초 단위의 값을 가지므로, 초 단위 미만(밀리초, 마이크로 초, 나노 초)의 동기화가 불가능하다.-Low resolution: The UTC time value received from the GPS module has a value in seconds, so synchronization of less than seconds (milliseconds, microseconds, nanoseconds) is impossible.
- GPS 전송타이밍 오차: GPS 모듈이 "UTC 시간 값을 획득한 시점"과 "장치로 출력하는 시점" 사이에 시간 차가 존재할 수 있으며, 시간 동기 모듈은 이 시간차 및 시간 차들의 표준편차를 알지 못하므로, 정확한 동기화가 불가능하다.-GPS Transmit Timing Error: There may be a time difference between when the GPS module acquires the UTC time value and when it is output to the device, and the time synchronization module does not know the standard deviation of the time difference and time differences. Accurate synchronization is not possible.
- 전송 지연: GPS 모듈이 시간 동기 모듈에 데이터를 전송하는 데 전송 지연이 발생한다.Transmission delay: A transmission delay occurs when the GPS module transmits data to the time synchronization module.
- 처리 지연: 시간 동기 모듈이 GPS 모듈로부터 전달받은 NMEA 메시지 데이터를 처리하여 UTC 시간 값을 뽑아내고 이를 시스템 시간으로 설정하는 절차 동안의 처리 지연이 발생한다. (선점형 운영체제 기반에서 동작 시, 프로세스 스케줄링으로 인해 예측할 수 없는 지연이 발생한다.)Processing Delay: A processing delay occurs during the procedure where the time synchronization module processes the NMEA message data received from the GPS module to extract the UTC time value and set it to the system time. (When operating on a preemptive operating system, process scheduling introduces unpredictable delays.)
위와 같이, GPS 모듈이 제공하는 UTC 시간 값의 단위는 초 단위 수준이고, GPS 모듈이 "최초로 UTC 시간 값을 획득한 시점"과 최종적으로 "시스템 시간을 설정하는 시점" 사이에는 예측할 수 없는 오차가 존재하므로, 시스템 시계를 UTC 시간에 정확히 동기화하는 데 한계가 있다.As above, the unit of UTC time value provided by the GPS module is in the unit of second level, and there is an unpredictable error between the time when the GPS module first acquired the UTC time value and finally the time point when setting the system time. As such, there is a limit to the exact synchronization of the system clock to UTC time.
본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, 본 발명의 목적은, GPS 모듈이 장착된 특정 장치/시스템에서 나노~마이크로 초 단위의 UTC 시간에 동기화하는 UTC 시간 동기 방법을 제공함에 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a UTC time synchronization method for synchronizing to UTC time in nano to micro seconds in a specific device / system equipped with a GPS module. .
상기 목적을 달성하기 위한 본 발명의 일 실시예에 따른, 시간 동기 방법은, 프로세서가, 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정하는 제1 설정 단계; 및 제1 신호의 수신 시각과 제2 신호의 발생 시각이 특정 조건을 만족하면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 제2 설정 단계;를 포함한다.According to an embodiment of the present invention, a time synchronization method includes: a first setting step of setting, by a processor, a time value in seconds of a system time using a first signal; And a second setting step of setting, by the processor, a time value equal to or less than a second of the system time by using the second signal when the reception time of the first signal and the generation time of the second signal satisfy a specific condition.
그리고, 제2 설정 단계는, 제1 신호의 수신 시각과 제2 신호의 발생 시각의 차이가 제1 시간 이하이면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정할 수 있다.In the second setting step, when the difference between the reception time of the first signal and the generation time of the second signal is less than or equal to the first time, the processor may use the second signal to set a time value less than or equal to seconds of the system time. have.
또한, 제2 설정 단계는, 시스템 시간과 제2 신호의 발생 시각의 차이가 제2 시간 이하이면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정할 수 있다.In addition, in the second setting step, when the difference between the system time and the generation time of the second signal is less than or equal to the second time, the processor may set a time value equal to or less than a second of the system time by using the second signal.
그리고, 제2 신호는, 인터럽트 신호이고, 제2 설정 단계는, 인터럽트 처리 루틴에서 수행될 수 있다.The second signal is an interrupt signal, and the second setting step may be performed in an interrupt processing routine.
또한, 제1 신호는, GPS 모듈로부터 수신되는 NMEA 메시지이고, 제2 신호는, GPS 모듈로부터 수신되는 PPS 신호일 수 있다.In addition, the first signal may be an NMEA message received from the GPS module, and the second signal may be a PPS signal received from the GPS module.
그리고, 제2 설정 단계는, 제2 신호 발생 시간을 저장하는 단계;를 더 포함하고, 제1 설정 단계는, 제1 신호가 수신된 시스템 시간과 저장된 제2 신호 발생 시간의 차가 기준 값 보다 크면, 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정할 수 있다.The second setting step may further include storing a second signal generation time. The first setting step may include: when a difference between the system time at which the first signal is received and the stored second signal generation time is greater than a reference value. The first signal may set a time value in seconds of the system time.
또한, 제1 설정 단계는, 제1 신호로부터 추출한 초 단위 시간 값을 내부 변수에 저장하는 단계; 제2 신호가 수신되면, 내부 변수에 저장된 초 단위 시간 값 + 1을 시스템 시간의 초 단위 시간 값으로 설정하는 단계;를 포함할 수 있다.The first setting step may include storing a second time value extracted from the first signal in an internal variable; When the second signal is received, setting the second unit time value + 1 stored in the internal variable as the second unit time value of the system time.
한편, 본 발명의 다른 실시예에 따른, 시스템은, 시간 정보를 포함하고 있는 제1 신호와 제2 신호를 발생시키는 모듈; 및 모듈로부터 수신한 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정하고, 제1 신호의 수신 시각과 제2 신호의 발생 시각이 특정 조건을 만족하면 모듈로부터 수신한 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 프로세서;를 포함한다.On the other hand, according to another embodiment of the present invention, a system includes a module for generating a first signal and a second signal including time information; And setting a time value in seconds of the system time using the first signal received from the module, and using the second signal received from the module when the reception time of the first signal and the generation time of the second signal satisfy a specific condition. And a processor configured to set a time value equal to or less than a second of a system time.
이상 설명한 바와 같이, 본 발명의 실시예들에 따르면, GPS 모듈이 장착된 특정 장치/시스템에서 나노~마이크로 초 단위의 UTC 시간에 동기화하는 것이 가능해지며, 이에 의해 장치/시스템의 정확도와 성능 향상이 가능해진다.As described above, according to embodiments of the present invention, it is possible to synchronize to UTC time in nano-microseconds in a specific device / system equipped with a GPS module, thereby improving the accuracy and performance of the device / system It becomes possible.
도 1은 본 발명이 적용 가능한 시스템의 블럭도,1 is a block diagram of a system to which the present invention is applicable;
도 2는 정상 동작 타이밍 상황을 나타낸 도면,2 is a diagram illustrating a normal operation timing situation;
도 3은 비정상 동작 타이밍 상황을 나타낸 도면,3 is a diagram illustrating an abnormal operation timing situation;
도 4는 본 발명의 일 실시예에 따른 시간 동기 방법의 설명에 제공되는 흐름도,4 is a flowchart provided to explain a time synchronization method according to an embodiment of the present invention;
도 5는, 도 4에 도시된 시간 동기 방법에서의 구체적인 처리 과정을 예시한 도면,FIG. 5 is a diagram illustrating a specific processing procedure in the time synchronization method illustrated in FIG. 4;
도 6 및 도 7은, 추가적인 비정상 동작 타이밍 상황들의 설명에 제공되는 도면들,6 and 7 are diagrams provided in the description of additional abnormal operating timing situations,
도 8은 본 발명의 다른 실시예에 따른 시간 동기 방법의 설명에 제공되는 흐름도,8 is a flowchart provided to explain a time synchronization method according to another embodiment of the present invention;
도 9는 본 발명의 다른 실시예에 따른 시간 동기 방법에 따른 처리 과정을 구체적으로 예시한 도면,9 is a diagram illustrating in detail a processing procedure according to a time synchronization method according to another embodiment of the present invention;
도 10은 본 발명의 또 다른 실시예에 따른 시간 동기 방법의 설명에 제공되는 흐름도, 그리고,10 is a flowchart provided to explain a time synchronization method according to another embodiment of the present invention, and
도 11은 본 발명의 또 다른 실시예에 따른 시간 동기 방법에 따른 처리 과정을 구체적으로 예시한 도면이다.11 is a diagram specifically illustrating a processing procedure according to a time synchronization method according to another embodiment of the present invention.
이하에서는 도면을 참조하여 본 발명을 보다 상세하게 설명한다.Hereinafter, with reference to the drawings will be described the present invention in more detail.
도 1은 본 발명이 적용 가능한 시스템의 블럭도이다. 도 1에 도시된 바와 같이, 본 발명이 적용 가능한 시스템은, CPU(Central Processing Unit)(120)에 GPS(Global Positioning System) 모듈(110)을 연결하여 구축한다. 구체적으로, GPS 모듈(110)의 NMEA(National Marine Electronics Association) 메시지 출력 핀과 PPS 신호 핀을 CPU(120)에 연결한다.1 is a block diagram of a system to which the present invention is applicable. As shown in FIG. 1, a system to which the present invention is applicable is constructed by connecting a Global Positioning System (GPS) module 110 to a central processing unit (CPU) 120. Specifically, the National Marine Electronics Association (NMEA) message output pin and the PPS signal pin of the GPS module 110 are connected to the CPU 120.
이에, CPU(120)에서 실행되는 시스템 시계를 UTC(Universal Time Coordinated) 시간에 동기화시키는 소프트웨어 모듈인 시간 동기 모듈(130)이 NMEA 메시지를 수신 및 처리하여 UTC 시간 값을 얻을 수 있도록 한다.Accordingly, the time synchronization module 130, which is a software module for synchronizing the system clock executed in the CPU 120 to Universal Time Coordinated (UTC) time, may receive and process an NMEA message to obtain a UTC time value.
또한, GPS 모듈(110)의 PPS 신호 핀을 CPU(120)의 인터럽트 입력으로 연결하여, PPS 신호 발생 시 인터럽트 처리 루틴이 호출될 수 있도록 한다. PPS는 GPS 모듈(110)이 정확한 UTC 1초 시점마다 출력하는 펄스로써, 실제 UTC 시간에서 수 나노 초 정도 수준의 오차를 가진다.In addition, the PPS signal pin of the GPS module 110 is connected to the interrupt input of the CPU 120 so that the interrupt processing routine can be called when the PPS signal is generated. The PPS is a pulse output by the GPS module 110 every 1 second of UTC, and has an error of several nanoseconds from the actual UTC time.
도 1에 도시된 시스템의 기본 동작은 다음과 같다.The basic operation of the system shown in FIG. 1 is as follows.
- Phase1: 시간 동기 모듈(130)이 GPS 모듈(110)로부터 수신한 NMEA 메시지에서 획득한 초 단위 UTC 시간 값을 내부 변수(=utcTime)에 저장해 둔다.Phase1: The time synchronization module 130 stores the UTC time value in seconds obtained from the NMEA message received from the GPS module 110 in an internal variable (= utcTime).
- Phase2: 이후, 시간 동기 모듈(130)은 GPS 모듈(110)로부터 PPS 신호가 수신되면, 인터럽트 처리 루틴에서 내부 변수(=utcTime)에 저장해 둔 초 단위 UTC 시간 값을 시스템 시간으로 설정하고, 마이크로 초 단위 시간 값을 0으로 설정한다.-Phase2: After receiving the PPS signal from the GPS module 110, the time synchronization module 130 sets the UTC time value in seconds, which is stored in an internal variable (= utcTime) in the interrupt processing routine, as the system time. Set the time value in seconds to zero.
이를 통해 앞서 기술된 문제점 중 아래 문제점들이 해결 가능하다.Through this, the following problems can be solved.
- 전송 지연: 전송 지연 자체는 그대로 존재하나, "전송 시점"과 "시스템 시간 설정 시점"이 각각 Phase1, Phase2로 분리되어 시스템 시간 설정 시점에 전송 지연이 누적되어 적용되지 않는다.-Transmission delay: The transmission delay itself exists, but "transmission time" and "system time setting time" are separated into phase1 and phase2, respectively, and the transmission delay is not applied at the system time setting time.
- 처리 지연: 처리 지연 자체는 그대로 존재하나, "NMEA 메시지 파싱 및 UTC 시간 값 획득시점"과 "시스템 시간 설정 시점"이 각각 Phase1, Phase2로 분리되어 시스템 시간 설정 시점에 처리 지연이 누적되어 적용되지 않으며, 시스템 시간 설정 동작을 인터럽트 처리 루틴에서 수행하므로, 타 프로세스에 의해 선점되지 않아 지연이 매우 작고 예측 가능하다.-Processing Delay: The processing delay itself remains intact, but "NMEA message parsing and UTC time value acquisition time" and "System time setting time" are separated into Phase1 and Phase2 respectively, so processing delays are accumulated and applied at the system time setting time In addition, since the system time setting operation is performed in the interrupt processing routine, the delay is very small and predictable because it is not preempted by another process.
- 낮은 분해능: PPS 인터럽트에서 마이크로 초 단위 시간을 0으로 설정하면, PPS 자체의 오차(수 나노 초 단위)와 인터럽트 처리 루틴의 지연(수~수십 나노 초 단위)을 고려하더라도 마이크로 초 단위의 시간을 동기화할 수 있다. 보다 높은 정확성을 위해서 0 마이크로 초 대신에 PPS 오차와 측정된 인터럽트 처리 루틴 지연을 적용한 나노 초 단위 값을 설정할 수 있다.Low resolution: If you set the microsecond time to 0 for PPS interrupts, the time in microseconds is taken into account even when the error in PPS itself (in nanoseconds) and the delay in the interrupt processing routine (in hundreds to tens of nanoseconds). Can be synchronized. For higher accuracy, you can set nanosecond values with PPS error and measured interrupt handling routine delays instead of zero microseconds.
위와 같은 방법을 통해 전송 지연, 처리 지연, 낮은 분해능 문제점을 해결할 수 있으며, GPS 타이밍 오차는 다음과 같이 해결된다.Through the above method, the problem of transmission delay, processing delay and low resolution can be solved. GPS timing error is solved as follows.
시간 동기 모듈(130)은 GPS 모듈(110)이 획득한 UTC 시간을 언제 출력하는지 알 수 없다. 또한 UTC 시간이 특정 타이밍에 출력되는 경우, 도 2에 도시된 바와 같이 정상 동작할 수 있지만, 도 3에 도시된 바와 같이 UTC 시간이 1초 단위로 틀어지는 현상이 발생할 수 있다.The time synchronization module 130 may not know when to output the UTC time acquired by the GPS module 110. In addition, when the UTC time is output at a specific timing, the normal operation may be performed as shown in FIG. 2, but as shown in FIG. 3, the UTC time may be changed in units of 1 second.
즉, GPS 모듈(110)이 UTC 시간 값을 획득한 후 이를 출력하는 도중에 UTC 초가 변경되면(비정상 동작 타이밍), 시간 동기 모듈(130)이 UTC 시간 값을 획득한 시점에는 '현재 UTC - 1'의 초 값을 가지게 된다.That is, if the UTC second is changed while the GPS module 110 acquires the UTC time value and outputs it (abnormal operation timing), when the time synchronization module 130 acquires the UTC time value, the present time is 'Current UTC-1'. It will have a seconds value of.
이를 위해, 도 4에 도시된 시간 동기 방법을 제시한다. 도 4는 본 발명의 일 실시예에 따른 시간 동기 방법의 설명에 제공되는 흐름도이다.To this end, the time synchronization method shown in FIG. 4 is presented. 4 is a flowchart provided to explain a time synchronization method according to an embodiment of the present invention.
도 4에 도시된 바와 같이, 먼저 시간 동기 모듈(130)은 PPS 발생 시마다, 현재의 시스템 시간 기준으로 "PPS 발생 시각"을 내부 변수(=utcTime)에 저장한다(S210).As shown in FIG. 4, first, the time synchronization module 130 stores the "PPS generation time" in an internal variable (= utcTime) every time PPS occurs, based on the current system time (S210).
그리고, GPS 모듈(110)로부터 UTC 시간 값이 포함된 NMEA 메시지를 수신하면(S220), 시간 동기 모듈(130)은 "UTC 시간 값이 포함된 NMEA 메시지를 수신 완료한 순간의 시스템 시각(Tcurrent)"과 내부 변수(=utcTime)에 저장해 둔 "PPS 발생 시각(Tpps)" 차이를 계산한다(S230).In addition, when receiving the NMEA message including the UTC time value from the GPS module 110 (S220), the time synchronization module 130 transmits the system time (Tcurrent) at the moment of receiving the received NMEA message including the UTC time value. The difference between the " and the " PPS generation time (Tpps) " stored in the internal variable (= utcTime) is calculated (S230).
시간 차이를 계산하는 것은 다음과 같은 타이밍 오차(Tdiff)를 방지하기 위한 것이다.Calculating the time difference is to prevent the following timing error (Tdiff).
Tdiff = Dmsg + Dgps Tdiff = Dmsg + Dgps
- Dmsg: NMEA 메시지가 GPS 모듈(110)로부터 시간 동기 모듈(130)까지 전달되는 데 소요되는 전송 지연Dmsg: Transmission delay required for NMEA message to be delivered from GPS module 110 to time synchronization module 130
- Dgps: GPS 모듈(110) 내부에서 발생하는 실제 시각과 메시지에 수납되는 시각의 차이Dgps: the difference between the actual time generated inside the GPS module 110 and the time stored in the message
(Tcurrent - Tpps) ≤ Tdiff 이면(S240-N), 시간 동기 모듈(130)은 해당 NMEA 메시지를 무시한다(S260). 즉, 계산된 시간 차이가 타이밍 오차가 발생할 만큼 짧은 경우, 해당 NMEA 메시지 내의 UTC 시간을 무시하는 것이다.If (Tcurrent-Tpps) ≤ Tdiff (S240-N), the time synchronization module 130 ignores the corresponding NMEA message (S260). That is, if the calculated time difference is short enough to cause a timing error, the UTC time in the corresponding NMEA message is ignored.
예를 들어, GPS 모듈(110)로부터 시리얼 포트를 통해 NMEA 메시지를 수신하며, baudrate가 9,600인 경우(가장 느린 속도), 약 30바이트 길이의 라인(대략적인 NMEA 라인 길이)을 수신한다고 가정하면, 전송 지연은 약 25msec 정도가 된다.For example, suppose that you receive an NMEA message from the GPS module 110 through the serial port, and if you have a baudrate of 9,600 (the slowest rate), you receive a line about 30 bytes long (approximately the NMEA line length). The transmission delay is about 25 msec.
이는, 시간 값이 전달되는 25msec + Dgps 사이에 PPS 인터럽트가 발생하면, 도 3에 도시된 비정상 동작 타이밍에 해당되게 된다. 따라서, 시간 동기 모듈(130)은 (Tcurrent - Tpps)가 (25msec(=Dmsg) + Dgps)보다 작으면 해당 메시지를 무시한다. 즉, 내부 변수인 utcTime을 업데이트 하지 않는다.This corresponds to an abnormal operation timing shown in FIG. 3 when a PPS interrupt occurs between 25msec + Dgps to which a time value is transmitted. Thus, the time synchronization module 130 ignores the message if (Tcurrent-Tpps) is less than (25 msec (= Dmsg) + Dgps). That is, it does not update the internal variable utcTime.
한편, baudrate가 115,200인 경우 전송 지연은 약 2msec 정도가 되므로, CPU(120)는 시리얼 포트의 baudrate를 기반으로 Dmsg를 다르게 계산할 수도 있다. Dgps는 제품의 데이터시트를 통해 확인 또는 추측할 수 있다. 예를 들어, 제품에 따라 5msec가 될 수도 있다.On the other hand, when the baudrate is 115,200, since the transmission delay is about 2 msec, the CPU 120 may calculate Dmsg differently based on the baudrate of the serial port. Dgps can be identified or guessed from the product datasheet. For example, it may be 5 msec depending on the product.
UTC 시간 값을 포함하는 NMEA 메시지는 최소 xxZDA, xxRMC, xxGLL, xxGGA 4가지이므로, 적어도 하나의 메시지는 PPS 발생시점으로부터 25msec 이후의 시점에 수신된다.Since there are four NMEA messages including UTC time values, at least xxZDA, xxRMC, xxGLL, and xxGGA, at least one message is received 25 msec after the PPS occurs.
반면, (Tcurrent - Tpps) > Tdiff 이면(S240-Y), 시간 동기 모듈(130)은 해당 NMEA 메시지를 사용하여, 시스템 시각을 설정한다(S250). 즉, 계산된 시간 차이가 타이밍 오차가 발생할 정도의 구간 보다 길면, 해당 NMEA 메시지 내의 UTC 시간을 사용하는 것이다.On the other hand, if (Tcurrent-Tpps)> Tdiff (S240-Y), the time synchronization module 130 sets the system time using the corresponding NMEA message (S250). That is, if the calculated time difference is longer than the interval where the timing error occurs, the UTC time in the corresponding NMEA message is used.
구체적으로 S250단계에서는, 시간 동기 모듈(130)이 NMEA 메시지에서 UTC 시간 값을 추출하여 내부 변수(utcTime)에 해당 시각을 저장하고, 다음 번 PPS 인터럽트 처리 루틴에서 utcTime + 1초 값을 시스템 시각으로 설정한다.Specifically, in step S250, the time synchronization module 130 extracts the UTC time value from the NMEA message, stores the corresponding time in an internal variable (utcTime), and converts the utcTime + 1 second value to the system time in the next PPS interrupt processing routine. Set it.
도 5에는, 도 4에 도시된 시간 동기 방법에서 '(Tcurrent - Tpps) ≤ Tdiff'인 경우와 '(Tcurrent - Tpps) > Tdiff'인 경우의 처리 과정을 구체적으로 예시하였다.In FIG. 5, a process of '(Tcurrent-Tpps) > Tdiff' and '(Tcurrent-Tpps) > Tdiff' in the time synchronization method shown in FIG. 4 is illustrated in detail.
도 4에 제시된 본 발명의 실시예에 따른 시간 동기 방법은 다음과 같은 비정상 동작이 발생할 수 있다.In the time synchronization method according to the embodiment of the present invention shown in FIG. 4, the following abnormal operation may occur.
1) 시간 동기 모듈(130)이 NMEA 메시지 수신 시에 수행하는 "저장된 이전 PPS 발생 시각 확인" 절차와 "내부 변수(=utcTime) 저장" 절차는 완벽히 원자적인 동작으로 묶여 있지 않으며, 따라서 도 6에 도시된 바와 같이, 두 절차 간의 사이에 PPS가 발생하게 되면 타이밍이 틀어질 여지가 있다.1) The "confirm stored time of previous PPS generation" procedure and the "store internal variable (= utcTime)" procedure performed by the time synchronization module 130 when receiving the NMEA message are not completely atomic operations, and thus, FIG. As shown, there is room for timing mismatch if PPS occurs between two procedures.
2) 도 7에 도시된 바와 같이, PPS 신호 수신(PPS 인터럽트)과 NMEA 메시지 획득 절차가 누락되면 타이밍이 틀어질 수 있다.2) As shown in FIG. 7, when the PPS signal reception (PPS interrupt) and the NMEA message acquisition procedure are omitted, timing may be incorrect.
이를 위해, 본 발명의 다른 실시예에서는, 위 "1)"에 의한 비정상 동작을 해소하기 위한 방안을 제시한다. 본 발명의 다른 실시예에 따른 시간 동기 방법은, 도 4에 도시된 S220단계와 S230단계 사이에, 도 8에 도시된 절차를 추가한다.To this end, another embodiment of the present invention, proposes a method for solving the abnormal operation by the "1)". The time synchronization method according to another embodiment of the present invention adds the procedure shown in FIG. 8 between steps S220 and S230 shown in FIG. 4.
구체적으로, 도 8에 도시된 바와 같이, GPS 모듈(110)로부터 UTC 시간 값이 포함된 NMEA 메시지를 수신하면(S220), 시간 동기 모듈(130)은 "수신한 순간의 시스템 시각"과 기존에 저장해 둔 "PPS 발생 시각" 차이를 계산한다(S222).Specifically, as shown in FIG. 8, when the NMEA message including the UTC time value is received from the GPS module 110 (S220), the time synchronization module 130 may be configured with the "system time of the received moment". The difference in the stored "PPS generation time" is calculated (S222).
S222단계에서 계산된 시간 차이가 타이밍 오차가 발생할 만큼 짧은 경우(S224-Y), S260단계가 수행되어 NMEA 메시지를 무시한다.If the time difference calculated in step S222 is short enough to cause a timing error (S224-Y), step S260 is performed to ignore the NMEA message.
시간 차이가 타이밍 오차가 발생할 만큼 짧은 경우는, 이를 테면, NMEA 메시지 수신 시각이 기저장된 "PPS 발생 시각"으로부터 990msec(=0.99sec)가 경과하고 1sec가 경과하기 전의 시구간에 포함된 경우로 설정할 수 있다.If the time difference is short enough to cause a timing error, for example, the time when the NMEA message reception time is included in the time period before 990 msec (= 0.99 sec) has elapsed from the previously stored "PPS occurrence time" and 1 sec has elapsed. have.
즉, 시간 차이가 1초에 많이 가까우면, PPS 타이밍이 겹칠 확률이 높기 때문에, 이를 피하기 위해 수신된 NMEA 메시지를 무시하는 것이다. In other words, if the time difference is very close to 1 second, since the PPS timing is likely to overlap, the received NMEA message is ignored to avoid this.
"990msec = 1sec - 10msec"의 관계로 결정된 것인데, "10msec"는 지터 등을 고려하여 다른 값으로 대체할 수 있다.It is determined by the relationship of "990msec = 1sec-10msec", "10msec" can be replaced by another value in consideration of jitter.
도 4의 S240단계에 의해 (Tcurrent - Tpps) ≤ Tdiff 인 경우에도 NMEA 메시지가 무시되므로, 본 발명의 실시예에 따르면 "PPS 발생 시각"으로부터 9990msec가 경과하고 "Tcurrent"로부터 Tdiff sec가 경과하기 전에 수신된 NMEA 메시지는 무시된다.Since the NMEA message is ignored even when (Tcurrent-Tpps) ≤ Tdiff in step S240 of FIG. Received NMEA messages are ignored.
한편, S222단계에서 계산된 시간 차이가 타이밍 오차가 발생할 만큼 짧지 않은 경우(S224-N), S230단계가 수행된다. 이를 테면, NMEA 메시지 수신 시각이 기저장된 "PPS 발생 시각"으로부터 990msec가 경과하고 1sec가 경과하기 전의 시구간에 포함되지 않은 경우이다.On the other hand, if the time difference calculated in step S222 is not short enough to cause a timing error (S224-N), step S230 is performed. For example, when the NMEA message reception time is not included in the time period before 990 msec elapses and 1 sec elapses from the previously stored "PPS generation time".
도 9에는, 본 발명의 다른 실시예에 따른 시간 동기 방법에 따른 처리 과정을 구체적으로 예시하였다.9 specifically illustrates a processing procedure according to a time synchronization method according to another embodiment of the present invention.
본 발명의 또 다른 실시예에서는, 위 "2)"에 의한 비정상 동작을 해소하기 위한 방안을 제시한다. 본 발명의 또 다른 실시예에 따른 시간 동기 방법은, 도 4에 도시된 S240단계와 S250단계 사이에, 도 10에 도시된 절차를 추가한다.In another embodiment of the present invention, a method for solving the abnormal operation by "2)" is proposed. The time synchronization method according to another embodiment of the present invention adds the procedure shown in FIG. 10 between steps S240 and S250 shown in FIG. 4.
구체적으로, 도 10에 도시된 바와 같이, 시간 동기 모듈(130)은 시스템 시각 설정 전에 "현재 시각"과 "이전 PPS발생 시각"의 차이를 산출한다(S242).Specifically, as shown in FIG. 10, the time synchronization module 130 calculates a difference between the "current time" and the "previous PPS generation time" before setting the system time (S242).
이때, 산출된 시간 차이가 1초를 훨씬 초과(이를 테면, 1.5초를 초과)하면(S244-N), PPS 인터럽트가 누락되었다고 판단하여, S260단계를 수행하며, 이에 의해 NMEA 메시지가 무시된다.At this time, if the calculated time difference is more than 1 second (for example, more than 1.5 seconds) (S244-N), it is determined that the PPS interrupt is missing, and performs step S260, whereby the NMEA message is ignored.
반면, 산출된 시간 차이가 1.5초 이하이면(S244-Y), PPS 인터럽트를 정상으로 판단하여, S250단계를 수행하며, 이에 의해 시스템 시각이 설정된다.On the other hand, if the calculated time difference is 1.5 seconds or less (S244-Y), the PPS interrupt is determined to be normal, and step S250 is performed, whereby the system time is set.
도 11에는, 본 발명의 또 다른 실시예에 따른 시간 동기 방법에 따른 처리 과정을 구체적으로 예시하였다.11 specifically illustrates a processing procedure according to a time synchronization method according to another embodiment of the present invention.
위와 같은 방법을 통해 GPS 모듈(110)이 장착된 시스템은 시스템 시계를 UTC 시간에 나노~마이크로 초 단위로 동기화할 수 있다.Through the above method, the system equipped with the GPS module 110 may synchronize the system clock in nano-microsecond units with UTC time.
지금까지, GPS를 이용하는 장치의 UTC 시간 동기 방법에 대해 바람직한 실시예를 들어 상세히 설명하였다.So far, the preferred embodiment of the UTC time synchronization method of the device using GPS has been described in detail.
본 발명의 실시예에서는, GPS 모듈(110)이 장착된 시스템에서 시스템 시계를 UTC 시간에 나노~마이크로 초 단위로 동기화하는 기법을 제시하였다.In an embodiment of the present invention, a method of synchronizing a system clock in UTC to nanoseconds in UTC time in a system equipped with the GPS module 110 is proposed.
이 기법은 GPS 모듈을 이용하는 시스템이라면 제한 없이 적용 가능하다. GPS를 이용하는 WAVE 차량용 단말은 물론, 그 밖의 다른 시스템에도 본 발명의 기술적 사상이 적용될 수 있다.This technique can be applied to any system using a GPS module without limitation. The inventive concept of the present invention can be applied to a WAVE vehicle terminal using GPS and other systems.
한편, 본 실시예에 따른 장치와 방법의 기능을 수행하게 하는 컴퓨터 프로그램을 수록한 컴퓨터로 읽을 수 있는 기록매체에도 본 발명의 기술적 사상이 적용될 수 있음은 물론이다. 또한, 본 발명의 다양한 실시예에 따른 기술적 사상은 컴퓨터로 읽을 수 있는 기록매체에 기록된 컴퓨터로 읽을 수 있는 코드 형태로 구현될 수도 있다. 컴퓨터로 읽을 수 있는 기록매체는 컴퓨터에 의해 읽을 수 있고 데이터를 저장할 수 있는 어떤 데이터 저장 장치이더라도 가능하다. 예를 들어, 컴퓨터로 읽을 수 있는 기록매체는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광디스크, 하드 디스크 드라이브, 등이 될 수 있음은 물론이다. 또한, 컴퓨터로 읽을 수 있는 기록매체에 저장된 컴퓨터로 읽을 수 있는 코드 또는 프로그램은 컴퓨터간에 연결된 네트워크를 통해 전송될 수도 있다.On the other hand, the technical idea of the present invention can be applied to a computer-readable recording medium containing a computer program for performing the functions of the apparatus and method according to the present embodiment. In addition, the technical idea according to various embodiments of the present disclosure may be implemented in the form of computer readable codes recorded on a computer readable recording medium. The computer-readable recording medium can be any data storage device that can be read by a computer and can store data. For example, the computer-readable recording medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical disk, a hard disk drive, or the like. In addition, the computer-readable code or program stored in the computer-readable recording medium may be transmitted through a network connected between the computers.
또한, 이상에서는 본 발명의 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안될 것이다.In addition, although the preferred embodiment of the present invention has been shown and described above, the present invention is not limited to the specific embodiments described above, but the technical field to which the invention belongs without departing from the spirit of the invention claimed in the claims. Of course, various modifications can be made by those skilled in the art, and these modifications should not be individually understood from the technical spirit or the prospect of the present invention.

Claims (8)

  1. 프로세서가, 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정하는 제1 설정 단계; 및A first setting step of the processor setting a time value in seconds of the system time by using the first signal; And
    제1 신호의 수신 시각과 제2 신호의 발생 시각이 특정 조건을 만족하면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 제2 설정 단계;를 포함하는 것을 특징으로 하는 시간 동기 방법.And a second setting step of setting, by the processor, a time value equal to or less than a second of system time by using the second signal when the reception time of the first signal and the generation time of the second signal satisfy a specific condition. Time synchronization method.
  2. 청구항 1에 있어서,The method according to claim 1,
    제2 설정 단계는,The second setting step is
    제1 신호의 수신 시각과 제2 신호의 발생 시각의 차이가 제1 시간 이하이면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 것을 특징으로 하는 시간 동기 방법.And if the difference between the reception time of the first signal and the generation time of the second signal is less than or equal to the first time, the processor sets a time value less than or equal to seconds of system time using the second signal.
  3. 청구항 1에 있어서,The method according to claim 1,
    제2 설정 단계는,The second setting step is
    시스템 시간과 제2 신호의 발생 시각의 차이가 제2 시간 이하이면, 프로세서가 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 것을 특징으로 하는 시간 동기 방법.And if the difference between the system time and the generation time of the second signal is less than or equal to the second time, the processor sets a time value less than or equal to seconds of the system time by using the second signal.
  4. 청구항 1에 있어서,The method according to claim 1,
    제2 신호는, 인터럽트 신호이고,The second signal is an interrupt signal,
    제2 설정 단계는, 인터럽트 처리 루틴에서 수행되는 것을 특징으로 하는 시간 동기 방법.The second setting step is performed in an interrupt processing routine.
  5. 청구항 4에 있어서,The method according to claim 4,
    제1 신호는, GPS 모듈로부터 수신되는 NMEA 메시지이고,The first signal is an NMEA message received from the GPS module,
    제2 신호는, GPS 모듈로부터 수신되는 PPS 신호인 것을 특징으로 하는 시간 동기 방법.The second signal is a time synchronization method, characterized in that the PPS signal received from the GPS module.
  6. 청구항 1에 있어서,The method according to claim 1,
    제2 설정 단계는,The second setting step is
    제2 신호 발생 시간을 저장하는 단계;를 더 포함하고,Storing a second signal generation time;
    제1 설정 단계는,The first setting step is
    제1 신호가 수신된 시스템 시간과 저장된 제2 신호 발생 시간의 차가 기준 값 보다 크면, 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정하는 것을 특징으로 하는 시간 동기 방법.And setting a time value in seconds of the system time by using the first signal when the difference between the received system time and the stored second signal generation time is greater than the reference value.
  7. 청구항 6에 있어서,The method according to claim 6,
    제1 설정 단계는,The first setting step is
    제1 신호로부터 추출한 초 단위 시간 값을 내부 변수에 저장하는 단계;Storing the second time value extracted from the first signal in an internal variable;
    제2 신호가 수신되면, 내부 변수에 저장된 초 단위 시간 값 + 1을 시스템 시간의 초 단위 시간 값으로 설정하는 단계;를 포함하는 것을 특징으로 하는 시간 동기 방법.And when the second signal is received, setting the second time value + 1 stored in the internal variable as the second time value of the system time.
  8. 시간 정보를 포함하고 있는 제1 신호와 제2 신호를 발생시키는 모듈; 및A module for generating a first signal and a second signal including time information; And
    모듈로부터 수신한 제1 신호를 이용하여 시스템 시간의 초 단위 시간 값을 설정하고, 제1 신호의 수신 시각과 제2 신호의 발생 시각이 특정 조건을 만족하면 모듈로부터 수신한 제2 신호를 이용하여 시스템 시간의 초 단위 이하의 시간 값을 설정하는 프로세서;를 포함하는 것을 특징으로 하는 시스템.Set a time value in seconds of the system time using the first signal received from the module, and if the reception time of the first signal and the generation time of the second signal satisfy a specific condition, use the second signal received from the module. And a processor configured to set a time value equal to or less than a second of the system time.
PCT/KR2017/011249 2016-11-15 2017-10-12 Utc time synchronization method of device using gps that improves abnormal operating situation WO2018093046A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2016-0151629 2016-11-15
KR1020160151629A KR101967027B1 (en) 2016-11-15 2016-11-15 Improved UTC Time Synchronization Method for a Device using GPS Module in Abnormal Operation Condition

Publications (1)

Publication Number Publication Date
WO2018093046A1 true WO2018093046A1 (en) 2018-05-24

Family

ID=62145615

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2017/011249 WO2018093046A1 (en) 2016-11-15 2017-10-12 Utc time synchronization method of device using gps that improves abnormal operating situation

Country Status (2)

Country Link
KR (1) KR101967027B1 (en)
WO (1) WO2018093046A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106814601A (en) * 2017-03-24 2017-06-09 厦门九华通信设备厂 A kind of Noise Filter method of signal specific

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068165B (en) * 2020-09-04 2023-01-17 北京航空航天大学 High-precision time performance indirect detection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020012538A (en) * 1999-02-26 2002-02-16 파리스,사덱,엠 Globally time synchronized systems, devices, and methods
KR20050108812A (en) * 2004-05-13 2005-11-17 주식회사 이노와이어리스 Apparatus and method for providing time information
KR20100045818A (en) * 2008-10-24 2010-05-04 한국표준과학연구원 Global positioning system time synchronization system and time synchronization method thereof
KR20110017929A (en) * 2008-06-23 2011-02-22 닛본 덴끼 가부시끼가이샤 Time synchronizer
KR20130113247A (en) * 2012-04-05 2013-10-15 (주) 시스메이트 Apparatus and method for generating stable utc time data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4468089B2 (en) * 2004-06-29 2010-05-26 セイコープレシジョン株式会社 Time data acquisition device, computer program, and server
JP2011122983A (en) * 2009-12-11 2011-06-23 Toshiba Corp Time synchronization device and method for time synchronization correction
KR20130134458A (en) * 2012-05-31 2013-12-10 주식회사 디에스텍 An apparatus for synchronizing measure time and a method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020012538A (en) * 1999-02-26 2002-02-16 파리스,사덱,엠 Globally time synchronized systems, devices, and methods
KR20050108812A (en) * 2004-05-13 2005-11-17 주식회사 이노와이어리스 Apparatus and method for providing time information
KR20110017929A (en) * 2008-06-23 2011-02-22 닛본 덴끼 가부시끼가이샤 Time synchronizer
KR20100045818A (en) * 2008-10-24 2010-05-04 한국표준과학연구원 Global positioning system time synchronization system and time synchronization method thereof
KR20130113247A (en) * 2012-04-05 2013-10-15 (주) 시스메이트 Apparatus and method for generating stable utc time data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106814601A (en) * 2017-03-24 2017-06-09 厦门九华通信设备厂 A kind of Noise Filter method of signal specific
CN106814601B (en) * 2017-03-24 2019-06-04 厦门九华通信设备厂 A kind of Noise Filter method of signal specific

Also Published As

Publication number Publication date
KR101967027B1 (en) 2019-04-09
KR20180054103A (en) 2018-05-24

Similar Documents

Publication Publication Date Title
US8325767B2 (en) Enhancement of IEEE 1588 synchronization using out-of-band communication path
CA2676117C (en) Server time protocol messages and methods
WO2012169687A1 (en) Device and method for detecting error in dual controller system
WO2018093046A1 (en) Utc time synchronization method of device using gps that improves abnormal operating situation
WO2008015492A1 (en) A method for receiving and processing frames and a device having frame receiving and processing capabilities
WO2020185008A1 (en) Time synchronization device and method based on global navigation satellite system
WO2012119385A1 (en) Method, device and system for performing time synchronization on pcie device
CN109981205B (en) Method and system for transmitting 1PPS + TOD signals
CN1337138A (en) Method for the time synchronisation of a computer network and computer network with time synchronisation
CN107786293A (en) Method for synchronizing time, clock equipment, from clockwork and clock synchronization system
CN109683567A (en) Based on system clock synchronizing method in RS485 network
CN112104366A (en) Four-channel high-speed synchronous FMC acquisition device
CN113419598B (en) Clock synchronization system and method for multi-SOC (system on chip)
CN109407752A (en) The synchronous GIS breaker on-line monitoring system of clock is realized in RS485 communication
EP2736179A2 (en) Module for a telecommunication equipment of a satellite receiver with a circuitry for receiving timing information from satellites for establishing a synchronization protocol
WO2013154284A1 (en) Apparatus and method for time synchronization of distribution control system
KR101965932B1 (en) UTC Time Synchronization Method for a Device using GPS Module
JP2002252606A (en) Synchronization correction circuit
EP1835646A1 (en) Data processing apparatus for synchronizing a plurality of CPU modules.
WO2017057794A1 (en) Method for time synchronization of communication network
WO2016000324A1 (en) Method and apparatus for implementing time synchronization
JPH025654A (en) Signal synchronizing system
WO2013154283A1 (en) Apparatus and method for synchronizing tasks in distribution control systems
WO2019059475A1 (en) Audio device and method for controlling audio device
KR100321003B1 (en) Apparatus for distributing synchronization signal using a digital trunk

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17871834

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17871834

Country of ref document: EP

Kind code of ref document: A1