CPC G04R 20/04 (2013.01) [G01S 19/235 (2013.01); G01S 19/256 (2013.01); G04R 20/06 (2013.01)] | 11 Claims |
1. A method for global navigation satellite system time synchronization, comprising:
receiving a data packet of National Marine Electronics Association (NMEA) protocol, reading a valid Universal Time Coordinated (UTC) time from the data packet of NMEA protocol, and storing the read valid UTC time in a time synchronization controller;
receiving a pulse per second (PPS) signal, capturing a local time output by a local clock at a time when the PPS signal is generated, and storing the local time in the time synchronization controller;
reading a last local time stored before the current local time and reading the stored latest UTC time as a UTC time corresponding to the last local time when the time synchronization controller receives the current local time; and
determining, by the time synchronization controller, a local time correction amount according to the last local time and the UTC time corresponding to the last local time, and correcting the local clock according to the local time correction amount.
|