The present invention relates to time and frequency transfer, and in particular, an encoding method and a decoding method for high-precision time transfer and an encoding device and a decoding device therefor.
High precision remote time transfer technology finds valuable and important applications in the fields of satellite navigation, scientific research and measurement, aeronautics and astronautics, deep space exploration, telecommunication, power industry, and finance. With the improvement of atomic clock and increased demand for time synchronization precision in various applications, requirement for time transfer precision gets more demanding. In high precision time transfer, it is generally required to implement synchronous transfer of one pulse per second (1 PPS) signals, time message and control message by means of encoding. Encoding and decoding method is one of the main factors in deciding time transfer precision, which again depends on the transfer precision of the front-edge of pulse per second signals. Two-way satellite time and frequency transfer (TWSTFT) implements remote time transfer at sub-nanosecond level via pseudo-random spread spectrum coding. However, the scheme thereof requires complicated coding modulation and decoding of modulated codes, and is therefore costly. IRIG-B is an internationally adopted standard scheme for time transfer encoding. Its upsides include simple implementation, large volume of messages, standard interfaces, and low cost. However, TRIG-B transmits codes just at the speed of 100 bit/second and requires modulation onto high speed carrier for remote transmission. Moreover, as it carries no time interval message, additional communication channels are required to transmit time interval messages for two-way time comparison adopting the time code. Further, optical fiber has low consumption and high bandwidth, and its potential for implementing higher precision time transfer has attracted great attention. Nevertheless, design of prior art time codes is directed at space channels and electric cables. Improvement and optimization thereof based on features of optical fiber transmission systems is in need.
An object of the present invention is to provide an encoding device and a decoding device for high precision time transfer and an encoding method and a decoding method therefor, which is realized by modifying the standard IRIG-B time code to increase the transmission rate of its code elements, to add more message fields, and to generate a modified IRIG-B time code for remote transmission, with the benefit of carrying more synchronous time messages, so as to overcome defects of the prior art.
The technical solution of the present invention is as follows:
The present invention firstly provides a format for a modified IRIG-B time code. The standard IRIG-B time pulse width coding rule is preserved, while the width of code elements is compressed to raise transmission rate with the addition of more message fields. The specific format for the modified IRIG-B time code is as follows:
(1) The first 99 code elements of each frame are standard IRIG-B code fields for carrying standard IRIG-B time codes;
(2) Time interval field starts at the 100th code element of each frame for carrying a time interval between the local time signal and the received time signal. The first code element of the field, that is, the 100th code element of said each frame, denotes time-advance or time-delay, while the other code elements denote the measured time interval in unit of picoseconds;
(3) The field subsequent to the time interval field is a user-defined or padded field, for carrying user-defined time and/or control messages, while the unused portions are padded with ‘1’ and/or ‘0’ code elements;
(4) The last code element is the ending code element which is fixed to be a ‘P’ code element.
Directed at the format of the modified IRIG-B time code, the present invention provides an encoding device and a decoding device and manipulation methods therefor for realizing exact synchronization between the on-times of an output encoded time code and an input time signal (such as one pulse per second signal) and between the on-times of an output decoded time signal (such as pulse per second signal) and an input time code:
An encoding method for high precision time transfer comprises the following steps:
{circle around (1)} a code generation module commencing counting at detecting a transmitted 1 PPS signal, obtaining the sequence of the current code element, selecting a corresponding code element for encoding based on the sequence number of the current code element, the current time message, and the time interval as measured locally, generating a non-synchronous modified TRIG-B time code, and transmitting the non-synchronous modified IRIG-B time code to a code synchronization module;
{circle around (2)} at counting to the Nth code element at its electric low-level, the code generation module triggering a time synchronization enabling signal with a pulse width smaller than that of the ‘P’ code element, and outputting the time synchronization enabling signal to a synchronization signal generation module, where N being the last code element;
{circle around (3)} the synchronization signal generation module Anding the 1 PPS signal with the time synchronization enabling signal to generate a synchronization signal which synchronizes with a rise edge of a local 1 PPS signal and whose pulse width is smaller than that of the ‘P’ code element, and outputting the synchronization signal to a code synchronization module;
{circle around (4)} the code generation module Oring the non-synchronous modified IRIG-B time code with the synchronization signal, and outputting an IRIG-B time code which synchronizes with the local 1 PPS signal.
A decoding method for high precision time transfer, comprising the following steps:
{circle around (1)} a reference marker identification module, at detecting a reference marker for timer message from a modified IRIG-B time code, that is, at detecting two consecutive reference code elements ‘P’, where the leading edge of the second ‘P’ code element being a 1 PPS timer reference, commencing counting, obtaining a sequence number of the current code element, restoring values of each code element subsequent to an identification bit of the reference marker based on the rule on pulse width coding, and transmitting said values to a metadata parser module;
{circle around (2)} the reference marker identification module, at counting to the Nth code element at its electric low-level, generating a mask signal with a pulse width smaller than that of the ‘P’ code element, and transmitting the mask signal to a pulse per second parser;
{circle around (3)} the metadata parser module, based on the definition of the message field of the modified TRIG-B time code, outputting the time and control message, the time interval message, and the user-defined message;
{circle around (4)} the pulse per second parser module Anding the signal of the received modified IRIG-B time code with the mask signal, and outputting a 1 PPS signal synchronous with the on-time of the received modified IRIG-B time code.
An encoding device for implementing an encoding method for high-precision time transfer comprises a code generating module for receiving transmitted 1 PPS signals, a time message input from an external clock, a time interval message measured by a local time interval counter, and a user-defined message, said code generating module is connected respectively with a synchronization signal generating module and a code synchronization module, and further, said transmitted 1 PPS signals are admissible in the synchronization signal generating module to be Anded with a synchronization enabling signal generated by the code generating module, the result thereof being inputted into the code synchronization module to generate a modified IRIG-B time code.
A decoding device for implementing the decoding method for high-precision time transfer comprises a reference marker identification module for receiving a modified IRIG-B time code, said reference marker identification module is connected respectively with a metadata parser and a pulse per second parsing module, and further, the modified IRIG-B time code is admissible in the pulse per second parsing module to be Anded with a mask signal generated by the reference marker identification module to output a synchronous 1 PPS signal.
The present invention has the following advantages over prior art:
(1) The modified IRIG-B time code implements the same pulse width coding method as the standard IRIG-B time code, but with a smaller pulse width and a higher transmission rate. Moreover, each frame thereof is comprised of standard IRIG-B code fields, a time interval field, a reserved or padded field, and an ending code element, with the capability of carrying more messages. A single channel is employed for transmission of timing messages and testing messages (such as time interval and control messages) of two-way time comparison, and therefore system structure is simplified and real-time capability is enhanced.
(2) The time encoding and decoding method and the device therefor realize exact synchronization between the on-time of an output encoded time code and that of a transmitted time signal (such as pulse per second signal) and between the on-time an output decoded time signal and that of an input time code. Fluctuation due to encoding and decoding manipulation and its correlation with working frequencies are reduced, and time transfer accuracy is increased.
(3) No spread spectrum or carrier is needed and hence implementation is comparatively simple by directly employing commercial optical fiber communication equipment and systems for realizing high-precision time transfer.
In combination with drawings and an embodiment hereunder provided, the present invention will be further expounded. The embodiment is based on the technical solution of the present invention and provides detailed implementations and procedures thereof, which are not meant to limit the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201310342084.2 | Aug 2013 | CN | national |
The subject application is a continuation of PCT international application PCT/CN2014/000549 filed on Jun. 3, 2014, which in turn claims priority on Chinese patent application No. CN 201310342084.2 filed on Aug. 7, 2013. The contents and subject matter of the PCT and Chinese priority applications are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/000549 | Jun 2014 | US |
Child | 14562000 | US |