CN112578662A - Method for realizing millisecond timing by using GPS second pulse synchronization system time - Google Patents

Method for realizing millisecond timing by using GPS second pulse synchronization system time Download PDF

Info

Publication number
CN112578662A
CN112578662A CN202011397619.2A CN202011397619A CN112578662A CN 112578662 A CN112578662 A CN 112578662A CN 202011397619 A CN202011397619 A CN 202011397619A CN 112578662 A CN112578662 A CN 112578662A
Authority
CN
China
Prior art keywords
time
millisecond
counting
gps
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011397619.2A
Other languages
Chinese (zh)
Inventor
吴晶晶
芮功兵
秦兆均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
715th Research Institute of CSIC
Original Assignee
715th Research Institute of CSIC
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 715th Research Institute of CSIC filed Critical 715th Research Institute of CSIC
Priority to CN202011397619.2A priority Critical patent/CN112578662A/en
Publication of CN112578662A publication Critical patent/CN112578662A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • 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
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • 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
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/66Sonar tracking systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Acoustics & Sound (AREA)
  • Electric Clocks (AREA)

Abstract

The invention provides a method for realizing millisecond timing by using GPS second pulse synchronization system time for the first time in China, and the method is realized in a display and control console of a surface ship sonar system for the first time. The computer system time is generally realized by a hardware timing chip, and the time keeping precision of the computer system time is mainly determined by the precision of a crystal oscillator of the timing chip. In the case of no external timing, the computer system always has accumulated deviation after a long period of time. In addition, the computer system time does not provide the millisecond timing function, and the millisecond counting error realized by software is large, so that the method cannot be applied to a precise timing system. The method takes GPS second pulse as an external synchronizing signal and realizes the functions of time synchronization and millisecond accurate timing of a computer system by matching with GPS time service. The invention has better application prospect in the embedded computer real-time control system.

Description

Method for realizing millisecond timing by using GPS second pulse synchronization system time
Technical Field
The invention relates to the field of computer peripheral interface application, in particular to a method for realizing millisecond timing by using GPS second pulse synchronization system time.
Background
In the sonar system, the target is calibrated accurately in time, and the target position prediction and tracking during weapon striking are facilitated. Therefore, synchronization of sonar system time with external system (e.g., weapon system) time is very important. The time synchronization of two or more systems can be realized by adopting GPS time service. The sonar system adopts GPS time code to synchronize system time, utilizes the pulse per second signal to realize accurate millisecond timing, is convenient for carrying out accurate time calibration on sonar targets, and is beneficial to accurately striking the targets by a weapon system.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method for realizing millisecond timing by using GPS second pulse synchronous system time. The GPS time code is used for presetting system time (year, month, day, hour, minute and second), the GPS second pulse signal is used for controlling millisecond counting, the synchronization of the system time and the GPS is realized, and the system time and the GPS have a millisecond accurate timing function.
The object of the present invention is achieved by the following technical means. A method for realizing millisecond timing by using GPS second pulse synchronization system time is a new method for synchronizing computer system time in an embedded real-time control system, and meets the requirement of carrying out accurate time calibration on a target in a sonar system.
The method comprises the following steps:
(1) receiving a time code of a GPS through a standard interface, and synchronously presetting year, month, day, hour, minute and second input registers of the system under the control of a write control signal;
(2) a GPS second pulse signal is accessed through a standard interface and is used as a zero clearing signal of the millisecond timer to control the counting of the millisecond counter to return to zero;
(3) tracking and frequency locking are carried out on oscillation signals output by the high-precision constant-temperature crystal oscillator, and then a high-stability millisecond clock is output by counting frequency division; the millisecond clock is used as an input signal of a millisecond counter to realize millisecond counting;
(4) the millisecond counting carry signal drives a second counter to realize second counting;
(5) the second counting carry signal drives a sub-counter to realize sub-counting;
(6) a time counter driven by the count carry signal to count in real time;
(7) the time counting carry signal drives a day counter to count the day under the judgment of leap year and big and small month;
(8) the month counter is driven by the day counting carry signal, and month counting is realized under the judgment of leap years;
(9) the carry signal drives the year counter during the month counting to realize the year counting;
(10) synchronously reading the year, month, day, hour, minute, second and millisecond values in the output register through a standard interface under the control of a read control signal; as system time.
And (3) implementing logic of controlled counting of the year, month, day, time, minute, second and millisecond counters in the steps (2) to (9).
The invention has the beneficial effects that:
(1) the method can realize the time synchronization of two or more systems and realize the time unification;
(2) the method can make the computer have the function of millisecond accurate timing.
Drawings
Fig. 1 is a schematic diagram of the present invention.
FIG. 2 is a schematic process flow diagram of the present invention.
Detailed Description
The invention will be described in detail below with reference to the following drawings:
the invention is illustrated by the following example, which can be generalized to nanosecond timing.
(1) Receiving GPS time code information through a standard interface (such as RS232, Ethernet and the like), and synchronously presetting a year, month, day, hour, minute and second input register of the system under the control of a write control signal;
(2) the GPS second pulse signal is accessed through a digital IO interface and is used as a zero clearing signal of the millisecond timer after being shaped, and the counting of the millisecond counter is controlled to be zero
(3) Tracking and frequency locking are carried out on the output signal of the crystal oscillator, and then a millisecond clock is output by counting and frequency division; the millisecond clock is used as an input signal of a millisecond counter to realize millisecond counting;
(4) the millisecond counting carry signal drives the second counting; the second counting carry signal drives the sub-counting; counting when the counting carry signal is driven; the time counting carry signal drives a day counter to count the day under the judgment of leap year and big and small month; the month counter is driven by the day counting carry signal, and month counting is realized under the judgment of leap years; carrying signals drive year counting when the month is counted;
(5) through standard interfaces (such as PCI, PCIE and other bus interfaces), under the control of the read control signal, the year, month, day, hour, minute, second and millisecond values in the output register are synchronously read out and used as the system time.
The invention provides a method for realizing millisecond timing by using GPS second pulse synchronization system time for the first time in China, and the method is realized in a display and control console of a surface ship sonar system for the first time. The computer system time is generally realized by a hardware timing chip, and the time keeping precision of the computer system time is mainly determined by the precision of a crystal oscillator of the timing chip. In the case of no external timing, the computer system always has accumulated deviation after a long period of time. In addition, the computer system time does not provide the millisecond timing function, and the millisecond counting error realized by software is large, so that the method cannot be applied to a precise timing system. The method takes GPS second pulse as an external synchronizing signal and realizes the functions of time synchronization and millisecond accurate timing of a computer system by matching with GPS time service. The invention has better application prospect in the embedded computer real-time control system.
It should be understood that equivalent substitutions and changes to the technical solution and the inventive concept of the present invention should be made by those skilled in the art to the protection scope of the appended claims.

Claims (2)

1. A method for realizing millisecond timing by using GPS second pulse synchronous system time is characterized in that: the method comprises the following steps:
(1) receiving a time code of a GPS through a standard interface, and synchronously presetting year, month, day, hour, minute and second input registers of a value system under the control of a write control signal;
(2) a GPS second pulse signal is accessed through a standard interface and is used as a zero clearing signal of the millisecond timer to control the counting of the millisecond counter to return to zero;
(3) tracking and frequency locking are carried out on oscillation signals output by the high-precision constant-temperature crystal oscillator, and then a high-stability millisecond clock is output by counting frequency division; the millisecond clock is used as an input signal of a millisecond counter to realize millisecond counting;
(4) the millisecond counting carry signal drives a second counter to realize second counting;
(5) the second counting carry signal drives a sub-counter to realize sub-counting;
(6) a time counter driven by the count carry signal to count in real time;
(7) the time counting carry signal drives a day counter to count the day under the judgment of leap year and big and small month;
(8) the month counter is driven by the day counting carry signal, and month counting is realized under the judgment of leap years;
(9) the carry signal drives the year counter during the month counting to realize the year counting;
(10) synchronously reading the year, month, day, hour, minute, second and millisecond values in the output register through a standard interface under the control of a read control signal; as system time.
2. The method of claim 1 for synchronizing system time with GPS seconds to achieve millisecond timing, wherein: and (3) implementing logic of controlled counting of the year, month, day, time, minute, second and millisecond counters in the steps (2) to (9).
CN202011397619.2A 2020-12-04 2020-12-04 Method for realizing millisecond timing by using GPS second pulse synchronization system time Pending CN112578662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011397619.2A CN112578662A (en) 2020-12-04 2020-12-04 Method for realizing millisecond timing by using GPS second pulse synchronization system time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011397619.2A CN112578662A (en) 2020-12-04 2020-12-04 Method for realizing millisecond timing by using GPS second pulse synchronization system time

Publications (1)

Publication Number Publication Date
CN112578662A true CN112578662A (en) 2021-03-30

Family

ID=75126905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011397619.2A Pending CN112578662A (en) 2020-12-04 2020-12-04 Method for realizing millisecond timing by using GPS second pulse synchronization system time

Country Status (1)

Country Link
CN (1) CN112578662A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115268570A (en) * 2022-08-05 2022-11-01 江苏云涌电子科技股份有限公司 IRIG-B code time synchronization system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202545A (en) * 2007-11-13 2008-06-18 中国人民解放军63891部队 High-accuracy data receiving time service instrument
CN101834599A (en) * 2009-03-13 2010-09-15 华东电网有限公司 Synchronizing unit and method for synchronizing distributed wave recording devices
CN101930211A (en) * 2010-08-24 2010-12-29 西安交通大学 Clock source device based on GPS second pulse and control method thereof
CN202008583U (en) * 2010-12-30 2011-10-12 安徽工程大学 Clock source of synchronous phasor measuring device
CN103152117A (en) * 2012-09-14 2013-06-12 南京航空航天大学 Embedded-type high-precision network time server system
CN103454905A (en) * 2013-09-13 2013-12-18 烟台东方英达康自动化技术有限公司 Method for synchronizing time
CN103731145A (en) * 2013-12-31 2014-04-16 中国国土资源航空物探遥感中心 Time scale signal generator based on standard time pulse signals
CN109617641A (en) * 2018-12-04 2019-04-12 中国航空工业集团公司西安航空计算技术研究所 A kind of adjustable accuracy time obtaining method based on pulse per second (PPS)
CN110515294A (en) * 2018-05-22 2019-11-29 福建师范大学 A kind of quick high accuracy time service method of Embedded GPS terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202545A (en) * 2007-11-13 2008-06-18 中国人民解放军63891部队 High-accuracy data receiving time service instrument
CN101834599A (en) * 2009-03-13 2010-09-15 华东电网有限公司 Synchronizing unit and method for synchronizing distributed wave recording devices
CN101930211A (en) * 2010-08-24 2010-12-29 西安交通大学 Clock source device based on GPS second pulse and control method thereof
CN202008583U (en) * 2010-12-30 2011-10-12 安徽工程大学 Clock source of synchronous phasor measuring device
CN103152117A (en) * 2012-09-14 2013-06-12 南京航空航天大学 Embedded-type high-precision network time server system
CN103454905A (en) * 2013-09-13 2013-12-18 烟台东方英达康自动化技术有限公司 Method for synchronizing time
CN103731145A (en) * 2013-12-31 2014-04-16 中国国土资源航空物探遥感中心 Time scale signal generator based on standard time pulse signals
CN110515294A (en) * 2018-05-22 2019-11-29 福建师范大学 A kind of quick high accuracy time service method of Embedded GPS terminal
CN109617641A (en) * 2018-12-04 2019-04-12 中国航空工业集团公司西安航空计算技术研究所 A kind of adjustable accuracy time obtaining method based on pulse per second (PPS)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115268570A (en) * 2022-08-05 2022-11-01 江苏云涌电子科技股份有限公司 IRIG-B code time synchronization system

Similar Documents

Publication Publication Date Title
CN101430372A (en) Low-cost time service and synchronization method and equipment for global positioning system receiver
CN202008583U (en) Clock source of synchronous phasor measuring device
CN102291169B (en) Onboard high-accuracy time synchronization method for satellite
CN202256438U (en) Hardware real time clock (RTC) error compensation system of intelligent electric energy meter
CN102866621A (en) High-precision GPS (Global Positioning System) 1pps (1 Pulse Per Second) timer and timing method of spacecraft
CN103795522B (en) The punctual compensation circuit of pulse per second (PPS) and method
CN112578662A (en) Method for realizing millisecond timing by using GPS second pulse synchronization system time
CN112653533B (en) Intelligent time service management method for complex system
CN108957494A (en) A kind of satellite-based high-precision continuous time acquisition methods
CN111130510B (en) Method and device for outputting second pulse signal
CN105319567B (en) A kind of laser gyro position attitude system method for synchronizing time
CN103219997B (en) Many spectral coverages multi-focal-plane splicing Infrared Detectors controls and signal sample circuit
CN102937819B (en) On-board computer time label output system
CN102540866B (en) Multimode multi-machine X-channel programmable pulse synchronization control method and device
CN106383438B (en) One kind taming and dociling clock method based on sliding window time extension high-precision
CN113391333B (en) Beidou high-precision time synchronization chip based on different-frequency group quantization phase processing
CN106444351A (en) Multi-source decoding timing system and working method thereof
CN109001769B (en) DCLS time deviation monitoring method and system based on Beidou satellite
CN107643116B (en) Water meter rotating speed calibration method, system and device
CN106444966B (en) A kind of real-time clock RTC adjustment device and method
CN107300688A (en) A kind of clock frequency Calibration Method in multipoint location system
US6894953B2 (en) Circuit for measuring time of arrival of an asynchronous event
CN105045087A (en) High-precision satellite time calibration method
CN108375898B (en) Computer high-precision time service control method
CN109581917B (en) GNSS second pulse smooth output control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210330