[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104320237B - A kind of pulse per second (PPS) encodes setting means - Google Patents

A kind of pulse per second (PPS) encodes setting means Download PDF

Info

Publication number
CN104320237B
CN104320237B CN201410529692.9A CN201410529692A CN104320237B CN 104320237 B CN104320237 B CN 104320237B CN 201410529692 A CN201410529692 A CN 201410529692A CN 104320237 B CN104320237 B CN 104320237B
Authority
CN
China
Prior art keywords
node
time
pps
pulse per
whole pulse
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.)
Active
Application number
CN201410529692.9A
Other languages
Chinese (zh)
Other versions
CN104320237A (en
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.)
Ningbo Sanxing Smart Electric Co Ltd
Original Assignee
Ningbo Sanxing Smart Electric Co Ltd
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 Ningbo Sanxing Smart Electric Co Ltd filed Critical Ningbo Sanxing Smart Electric Co Ltd
Priority to CN201410529692.9A priority Critical patent/CN104320237B/en
Publication of CN104320237A publication Critical patent/CN104320237A/en
Application granted granted Critical
Publication of CN104320237B publication Critical patent/CN104320237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

A kind of pulse per second (PPS) encodes setting means, is related to a kind of distributed system time synchronized, and principle is host node control node level, and for reception state and rising edge interrupt processing is used to node level from node from node.Step A):Host node is in time t0Lifting section level point, while by communication bus master time t0It is broadcast to by way of whole pulse per second (PPS) all described from node;Step B):Described triggers interruption from node when level is driven high, and retains current from node time t1;Step C):It is described that the t that the host node is broadcast in a manner of whole pulse per second (PPS) is received from node0Afterwards, preserve now from node time t2, by the way that new lock in time t is calculatedIt is synchronous=t2+(t0‑t1).Compared with prior art, the present invention only need by communication bus by host node to from node transmit whole pulse per second (PPS) just can be accurate pair when, this method need not increase other communication hardwares, greatly reduce cost during synchronous pair of distributed system.

Description

A kind of pulse per second (PPS) encodes setting means
Technical field
It is particularly a kind of accurate same using whole pulse per second (PPS) coding the present invention relates to a kind of distribution type system time synchronous method Method during step pair.
Background technology
Under distributed system, each node disjoint, each self clock, time phase difference can be increasing between causing node.For The time consistency of guarantee each node in special time, it is necessary to make it that each node time is synchronous.During existing distributed system Between synchronous method be roughly divided into two kinds:One kind is that host node is based on ICP/IP protocol to partial node progress time service;Another kind is point Node increases the internal clocking that special clock circuit safeguards partial node, needs Ethernet if by ICP/IP protocol time service Support, if the special clock circuit of increase will cause hardware cost to increase.
The content of the invention
The present invention is directed to deficiency of the prior art, there is provided a kind of pulse per second (PPS) encodes setting means, it is only necessary to by logical Letter bus allow host node to from node transmit whole pulse per second (PPS) just can be accurate pair when, make host node synchronous with from node time, it is our Method need not increase other communication hardwares, greatly reduce cost during synchronous pair of distributed system.
In order to solve the above-mentioned technical problem, the present invention is addressed by following technical proposals:A kind of pulse per second (PPS) coding pair Shi Fangfa, it is characterised in that host node control node level is reception state from node and described is adopted from node to node level With rising edge interrupt processing, specifically comprising following steps:
Step A):Described host node is in time t0Lifting section level point, while by communication bus master time t0 It is broadcast to by way of whole pulse per second (PPS) all described from node;
Step B):Described triggers interruption from node when level is driven high, and retains current from node time t1
Step C):It is described that the t that the host node is broadcast in a manner of whole pulse per second (PPS) is received from node0Afterwards, preserve now From node time t2, by the way that new lock in time t is calculatedIt is synchronous=t2+(t0-t1)。
In above-mentioned technical proposal, it is preferred that it is described to be divided into whole number of seconds S, two sections of millisecond number MS from node time, with Symbol A:B forms represent that then current time is S:MS;When it is described receive whole pulse per second (PPS) from node when, if now Millisecond MS<500, it is S to set the time now:0, as now millisecond MS>500, it is S+1 to set the time now:0.
In above-mentioned technical proposal, it is preferred that t is transmitted in described whole pulse per second (PPS) in a manner of encoding0The UTC number of seconds of time, And by following coding:
Setting be encoded to 1 and 0 composition, when for 1 when transmit the whole pulse per second (PPS), when for 0 when do not transmit the whole pulse per second (PPS), Transmit t0Temporal information needs 70 bits data altogether, and both described host node transmitted t by the whole pulse per second (PPS)0Temporal information Needed altogether from node 70 seconds to described, t0Coding is as follows respectively:
Frame head length 4bits, is encoded to 0111;
Time span 64bits, UTC time, which is converted into after 2 systems, needs 32bits, and the code 1 in 32bits data is with 01 Represent, code 0 represents with 10, both now each bit come with 2 bits it is encoded translated, then from the past high position sequence of low level;
Even parity check length 2bits, 1 is represented with 01 in the even parity check that UTC time is 32, and 0 is represented with 10.
In above-mentioned technical proposal, it is preferred that the t0Time when time is first bit (value is 0) for transmitting frame head.
In above-mentioned technical proposal, it is preferred that it is described to be decoded since when node receives continuous three whole pulse per second (PPS)s, and Using first received whole pulse per second (PPS) time+1s as t1Time.
In above-mentioned technical proposal, it is preferred that the whole pulse per second (PPS) time received from node when even parity check to the end encodes For t2Time, both transmit t0Time during last bit of time encoding.
The lock in time of this method is defined by host node, while respectively from node also in the independence maintenance time, and each node is inclined Difference is within 100ppm (the most deviation 0.1ms of 1s).This method is by temporal information (t0) after coding by way of whole pulse per second (PPS) It is broadcast to from node.Temporal information coding using Binary Zero, 1 represent, and assert when for 1 when transmit the whole pulse per second (PPS), when For 0 when do not transmit the whole pulse per second (PPS).The 32bits follow-up code of sequeling of UTC time binary code is obtained, is 01,0 for 10 with 1 Temporal information is extended for 64bits binary code, and it is because continuous three are not present in 64bits temporal informations so to set 111 codings, and frame head 4bits is encoded to 0111, so can is learnt after three whole pulse per second (PPS)s are continuously received from node What is received is frame head, so as to start to decode.The time t for the temporal information for receiving frame head is preserved from node1With received even school Test temporal information t2, by calculating t2+(t0-t1) lock in time to the end.Whole temporal information stream has 70bits, passes through Whole pulse per second (PPS) transfer mode needs to cause after 70s all synchronous with master time from node.Simultaneously first is received from node When whole pulse per second (PPS), if now millisecond MS<500, it is S to set the time now:0, as now millisecond MS>500, this is set When time be S+1:0, due to receiving after first whole pulse per second (PPS) just so that millisecond number is changed into 0 so that in synchronous phase Number of seconds will not changed.By this set, the whole pulse per second (PPS) of host node transmitting can be each received from node, with for the moment Carried out in section time calibration, the same deadline at time point is synchronous.Again because whole pulse per second (PPS) is precise and stable, by this method Synchronous time deviation rate is low, and accuracy is high, does not have to extra communication device again, both reduces hardware cost, also reduce because For time synchronized deviation caused by communication delay.
Compared with prior art, the beneficial effects of the invention are as follows:Only need by communication bus by host node to from node Whole pulse per second (PPS) is transmitted when just can be accurate pair, makes host node synchronous with from node time, it is hard that this method need not increase other communications Part, greatly reduce cost during synchronous pair of distributed system.
Embodiment
The present invention is described in further detail with reference to embodiment.
Embodiment:It is all from node that host node determines that transmission time information is broadcast to when UTC time is 1399583471, Then UTC time 1399583471 is t0Time, 1399583471 conversion binary systems are 11110111010011111101011011001010, common 32bits.It 01,0 is 10 to be converted to continue 1 to be 01010101100101011001101001010101010110011001011001011010 01100110, common 64bits.It is even 1 is verified as, into 01 after changing, common 2bits;Frame head 0111, common 4bits.Total coding is 01110101010110010101100110100101010101011001100101100101 10100110011001, altogether 70bits.Whole pulse per second (PPS) is sent when being wherein 1, is not sent when being 0, (both frames after continuous three whole pulse per second (PPS)s are received from node It is first 0111) to start to decode, while the whole pulse per second (PPS) reception time+1s of record first is t1, both in frame head first code 0 hair Send the time;The whole pulse per second (PPS) time that record receives when even parity check to the end encodes is t2Time, obtain t1、t2And t0Afterwards from node By calculating t2+(t0-t1) with regard to the time synchronous with host node can be obtained.

Claims (5)

1. a kind of pulse per second (PPS) encodes setting means, it is characterised in that host node control node level, from node be reception state and Described to use rising edge interrupt processing to node level from node, t is transmitted in whole pulse per second (PPS) in a manner of encoding0The UTC seconds of time Number, and by following coding:Setting is encoded to 1 and 0 composition, when for 1 when transmit the whole pulse per second (PPS), when for 0 when do not transmit it is described Whole pulse per second (PPS), transmit t0Temporal information needs 70 bits data altogether, i.e. described host node transmits t by the whole pulse per second (PPS)0 Temporal information needs 70 seconds altogether to described from node, t0Coding is as follows respectively:Frame head length 4bits, is encoded to 0111;Time is grown 64bits is spent, UTC time, which is converted into after 2 systems, needs 32bits, and the code 1 in 32 bits data represents that code 0 is used with 01 10 represent, i.e., now each bit with 2 bits come it is encoded translated, then from low level toward a high position sequence;Even parity check length 2bits, 1 is represented with 01 in the even parity check that UTC time is 32, and 0 is represented with 10;Specifically include following steps:Step A):Described Host node is in time t0Lifting section level point, while by communication bus master time t0It is wide by way of whole pulse per second (PPS) It is multicast to all described from node;Step B):Described triggers interruption from node when level is driven high, retain it is current from Node time t1;Step C):It is described that the t that the host node is broadcast in a manner of whole pulse per second (PPS) is received from node0Afterwards, this is preserved When from node time t2, by the way that new lock in time t is calculatedIt is synchronous =t2+(t0- t1).
A kind of 2. pulse per second (PPS) coding setting means according to claim 1, it is characterised in that it is described can from node time It is divided into whole number of seconds S, two sections of millisecond number MS, with symbol A:B forms represent that then current time is S:MS;When described from section When point receives whole pulse per second (PPS), if now millisecond MS<500, it is S to set the time now:0, as now millisecond MS>500, It is S+1 to set the time now:0.
A kind of 3. pulse per second (PPS) coding setting means according to claim 1, it is characterised in that the t0Time is transmission frame The time during bit of first of head.
4. a kind of pulse per second (PPS) coding setting means according to claim 1, it is characterised in that described to be received from node Start to decode during continuous three whole pulse per second (PPS)s, and first to receive whole pulse per second (PPS) time+1s is t1Time.
5. a kind of pulse per second (PPS) coding setting means according to claim 1, it is characterised in that described to be received most from node Whole pulse per second (PPS) time when even parity check encodes afterwards is t2Time, that is, transmit t0Time during last bit of time encoding.
CN201410529692.9A 2014-10-10 2014-10-10 A kind of pulse per second (PPS) encodes setting means Active CN104320237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410529692.9A CN104320237B (en) 2014-10-10 2014-10-10 A kind of pulse per second (PPS) encodes setting means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410529692.9A CN104320237B (en) 2014-10-10 2014-10-10 A kind of pulse per second (PPS) encodes setting means

Publications (2)

Publication Number Publication Date
CN104320237A CN104320237A (en) 2015-01-28
CN104320237B true CN104320237B (en) 2017-12-12

Family

ID=52375412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410529692.9A Active CN104320237B (en) 2014-10-10 2014-10-10 A kind of pulse per second (PPS) encodes setting means

Country Status (1)

Country Link
CN (1) CN104320237B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111211855B (en) * 2020-01-03 2022-04-12 中国船舶重工集团公司第七0七研究所 Mixed clock synchronization method for distributed processing system
CN113259045B (en) * 2021-07-14 2021-09-28 四川腾盾科技有限公司 Remote control real-time transmission processing method for large unmanned aerial vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398666A (en) * 2007-09-30 2009-04-01 郑州威科姆技术开发有限公司 Big dipper satellite synchronizing clock time signal B code generating method and apparatus
CN101420269A (en) * 2008-12-02 2009-04-29 华为技术有限公司 Method, device and system for time synchronization
CN101515831A (en) * 2008-02-22 2009-08-26 杭州华三通信技术有限公司 Method, system and device for time synchronous transfer
CN101710849A (en) * 2009-11-04 2010-05-19 中国电力科学研究院 Single signal wire synchronous clock transfer method
CN103345457A (en) * 2013-06-06 2013-10-09 北京空间飞行器总体设计部 Method for ensuring high-precision sending of satellite auxiliary data through 1553B bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398666A (en) * 2007-09-30 2009-04-01 郑州威科姆技术开发有限公司 Big dipper satellite synchronizing clock time signal B code generating method and apparatus
CN101515831A (en) * 2008-02-22 2009-08-26 杭州华三通信技术有限公司 Method, system and device for time synchronous transfer
CN101420269A (en) * 2008-12-02 2009-04-29 华为技术有限公司 Method, device and system for time synchronization
CN101710849A (en) * 2009-11-04 2010-05-19 中国电力科学研究院 Single signal wire synchronous clock transfer method
CN103345457A (en) * 2013-06-06 2013-10-09 北京空间飞行器总体设计部 Method for ensuring high-precision sending of satellite auxiliary data through 1553B bus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高精度IRIG-B的数字方法实现;李军华;《中国优秀硕士学位论文全文数据库信息科技辑》;20071115;正文第2.1节,第2.3-2.4节,第3.1-3.3节 *

Also Published As

Publication number Publication date
CN104320237A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US10848257B2 (en) Apparatus and method for timestamping of data packets
US10511406B1 (en) Power saving in a twisted wire pair communication network
US9300421B2 (en) Methods to achieve accurate time stamp in IEEE 1588 for system with FEC encoder
US20230118809A1 (en) Method and apparatus for sending and receiving multiframe, device, system, and storage medium
US8255779B2 (en) System and method for accelerated forward error correction (FEC) synchronization
US9277515B2 (en) Precise time tagging of events over an imprecise link
US20090110055A1 (en) Method for transmitting moving image data and communication apparatus
RU2009134145A (en) REDUCING THE INFLUENCE OF LOSS OF PACKAGES IN VIDEO TRANSMISSIONS
WO2008151566A1 (en) Time synchronization method, equipment and network communication system
AU2017437863A1 (en) Clock synchronization method and apparatus
CN104320237B (en) A kind of pulse per second (PPS) encodes setting means
CN109644120B (en) Method and apparatus for time synchronization
CN101478385B (en) Method for sending, receiving time clock and apparatus for transferring time clock
US9942027B2 (en) Synchronization and ranging in a switching system
US9594719B2 (en) Seamless addition of high bandwidth lanes
BR112021026535A2 (en) Image encoding/decoding method, apparatus and method for transmitting bit stream using maximum chroma transformation block size limitation
US20220303109A1 (en) Physical layer transceiver with reduced variation in packet latency
CN106059711B (en) A kind of digital fountain code power distribution method based on counter
CN104320216B (en) A kind of pulse per second (PPS) code compression method
CN110740011B (en) Coding and decoding method and coder-decoder
CN111181677B (en) Time synchronization method, network device and storage medium
EP2341649B1 (en) Frequency synchronization method and system in a communication network
US9438379B2 (en) Communication device, communication program, communication method, and information processing device
CN100455016C (en) Transmission method for video encoding signal
US11888587B2 (en) Tolerant PCS for accurate timestamping in disaggregated network elements and synchronization method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: NINGBO SANXING INTELLIGENT ELECTRIC CO., LTD.

Free format text: FORMER OWNER: NINGBO SANXING ELECTRIC CO., LTD.

Effective date: 20150618

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150618

Address after: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant after: Ningbo Samsung intelligent electric company limited

Address before: No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District

Applicant before: Ningbo Sanxing Electric Co., Ltd.

GR01 Patent grant
GR01 Patent grant