Movatterモバイル変換


[0]ホーム

URL:


CN107026703B - A kind of tandem type method for synchronizing time in hybrid network - Google Patents

A kind of tandem type method for synchronizing time in hybrid network
Download PDF

Info

Publication number
CN107026703B
CN107026703BCN201710357135.7ACN201710357135ACN107026703BCN 107026703 BCN107026703 BCN 107026703BCN 201710357135 ACN201710357135 ACN 201710357135ACN 107026703 BCN107026703 BCN 107026703B
Authority
CN
China
Prior art keywords
time
network
time synchronization
site
parent
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
CN201710357135.7A
Other languages
Chinese (zh)
Other versions
CN107026703A (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.)
China Academy of Launch Vehicle Technology CALT
Beijing Aerospace Automatic Control Research Institute
Original Assignee
China Academy of Launch Vehicle Technology CALT
Beijing Aerospace Automatic Control Research Institute
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 China Academy of Launch Vehicle Technology CALT, Beijing Aerospace Automatic Control Research InstitutefiledCriticalChina Academy of Launch Vehicle Technology CALT
Priority to CN201710357135.7ApriorityCriticalpatent/CN107026703B/en
Publication of CN107026703ApublicationCriticalpatent/CN107026703A/en
Application grantedgrantedCritical
Publication of CN107026703BpublicationCriticalpatent/CN107026703B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种混合网络中的级联式时间同步方法,包括如下步骤:(1)、父层网络的时间同步控制站点向共享适配站点发送时间同步消息;(2)、共享适配站点收到时间同步消息之后,进行解析得到当前时刻父层时间系统时间Tsyn,同时记录时间同步消息收到时刻的本地时间Tlocal_syn;(3)、共享适配站点根据自身的子层时间系统时间Tlocal,对子层网络中的其他站点进行时间同步;(4)、共享适配站点收到子层网络中的任意其他站点发送的带有子层时间系统时间标记tsub的时间标记消息之后,将tsub转换为父层网络中的时间值TafterSyn,反馈至父层网络实现混合网络之间的时间同步。本发明在不影响父层网络和子层网络时间同步的基础上,将两层通信网中的各个站点时间同步。

The invention discloses a cascaded time synchronization method in a hybrid network, comprising the following steps: (1), a time synchronization control site of a parent network sends a time synchronization message to a shared adaptation site; (2), shared adaptation After the site receives the time synchronization message, it parses to obtain the parent layer time system time Tsyn at the current moment, and simultaneously records the local time Tlocal_syn at the time the time synchronization message is received; (3), the shared adaptation site is based on its own sublayer time system Time Tlocal , time synchronization is performed on other stations in the sublayer network; (4), the shared adaptation station receives a time stamp message with the sublayer time system time mark tsub sent by any other station in the sublayer network Afterwards, tsub is converted into the time value TafterSyn in the parent layer network, and fed back to the parent layer network to achieve time synchronization between the hybrid networks. The invention synchronizes the time of each site in the two-layer communication network on the basis of not affecting the time synchronization of the parent-layer network and the sub-layer network.

Description

A kind of tandem type method for synchronizing time in hybrid network
Technical field
The present invention relates to the tandem type method for synchronizing time in a kind of hybrid network, are mainly directed towards automatic industrial controlSystem keeps all devices in whole system equal for the time of each sub- equipment in synchronous intelligent equipment, large automatic systemIt is run with unified time reference.
Background technique
In the design of large-scale intelligent equipment or industrial automation system, the synchronism of usually each equipment work is to systemThe correctness of operation is particularly important.In order to enable each sub- equipment in system to transport according to same timeticksRow makes the movement sequencing of each equipment have certainty, while is comparable test data, needs in systemEach equipment carries out time synchronization.Modularization, the stratification design philosophy of system substantially increase the scalability of system, butDifficulty is brought to time synchronization process simultaneously.Time delay and the serial property of communication of communication process etc. can all influence synchronous essenceTrue property.
In homotype communication network, each Site synch in communication network can have the message of current system time value by broadcastingIt realizes, and in special-shaped communication network, time synchronization can not be carried out by the way of broadcast message.It is related to time synchronization at presentIn system, accordingly it will usually be desirable to synchronous website is directly articulated in bus, when bus station point quantity is restricted, such as 1553B bus,This bus form can only be just yielded, the high reliability of also 1553B bus abandoned of having to therewith.
Summary of the invention
Technology of the invention solves the problems, such as: overcome the deficiencies in the prior art, proposes the tandem type in a kind of hybrid networkMethod for synchronizing time, by solving the time synchronization problem of father's layer network and sublayer website in hybrid bus network, extensionFather's layer network can carry out the website quantity of time synchronization.
The technical solution of the invention is as follows: the tandem type method for synchronizing time in a kind of hybrid network, the hybrid networkNetwork includes father's layer network and sublayer network, independent according to its between internal each website between father's layer network and sublayer networkMode carries out time synchronization, and shared adaptation website is arranged between father's layer network and sublayer network, shares adaptation website simultaneouslyUsing father's layer network time system time and the system time timing of sublayer network time, any website is as the time in father's layer networkSynchronously control website includes as follows by the method that shared adaptation website and any other website of sublayer network carry out time synchronizationStep:
(1), the time synchronization control site of father's layer network is to shared adaptation website sending time synchronization message, the timeSynchronization message includes father's layer time system time T that the shared adaptation website estimated receives the time synchronization message momentsyn
(2), it after sharing adaptation website time of receipt (T of R) synchronization message, is parsed to obtain current time father's layer time systemTime Tsyn, while recording the local zone time T that time synchronization message receives the momentlocal_syn
(3), using shared adaptation website as sublayer network time synchronization control site, the son for being adapted to website according to itself is sharedLayer time system time Tlocal, time synchronization is carried out to other websites in sub- layer network;
(4), it shares adaptation website and receives when having sublayer time system of the transmission of other any websites in sublayer networkBetween mark tsubTime label message after, father's layer time system time T for being obtained using newestsynAnd its corresponding timeSynchronization message receives the local zone time T at momentlocal_syn, by tsubBe converted to the time value T in father's layer networkafterSyn, form fatherThe layer network time marks message, and is fed back to the time synchronization between father's layer network realization hybrid network.
Father's layer network is 1553B bus network.
When the time synchronization control site of father's layer network is BC, the time synchronization control site of father's layer network is to sharedIt is adapted to the real-time sending time synchronization message of website, shared adaptation website expects father's layer time when receiving the time synchronization messageSystem time TsynFor father's layer time system time current time recorded in time synchronization control site.
When the time synchronization control site of father's layer network and shared adaptation website are RT, the time of father's layer network is sameControl site is walked to shared adaptation website sending time synchronization message and shared adaptation time synchronization control of the website to father's layer networkWebsite processed sends father's layer network time synchronization message method particularly includes:
(1.1), sender is first by time synchronization message or corresponding transmission of father's layer network time synchronization message depositIn address;
(1.2), the specific subaddressing for defining each RT website in network is communication request subaddressing, and sender will communicateRequest message is put in communication request subaddressing, and the communication request message includes the address RT for sending data, needs to send messageTransmission subaddressing, the word number of transmission, receive data the address RT, receive subaddressing, received word number;
(1.3), BC carries out periodical inspection to the communication request subaddressing of each RT website in network, when BC is in inspectionWhen finding the request subaddressing of any one RT website in the process has new communication request message, it will be sent in communication request messageThe message that the corresponding needs for sending the corresponding word number of subaddressing of the RT of data are sent, which is forwarded in communication request message, receives numberAccording to the corresponding reception subaddressing of RT in.
The shared adaptation website expects father's layer time system time T when receiving the time synchronization messagesynFor futureCorresponding father's layer time system time at the last BC inspection RT communication request subaddressing moment.
The sublayer time system time T for being adapted to website according to itself is shared in the step (3)local, in sub- layer networkOther websites carry out time synchronization method particularly includes: adaptation website as time synchronization control site in sublayer networkTo other website broadcast transmission time synchronization message reset frames at the time of ground series bus network timer starts to start timing;SoAfterwards, the sublayer time system time T for being adapted to website at itself is sharedlocalEach of whole moment second, the website into sublayer networkSending time synchronization message non-reset frame, the time synchronization message non-reset frame include the sublayer time system of shared adaptation websiteUnite time TlocalSecond place value, i.e. TlocalTime value after casting out millisecond value;Sublayer website is multiple in time of receipt (T of R) synchronization messageAfter the frame of position, then local sublayer network time is reset, sublayer network timer starts timing, time of receipt (T of R) synchronization message non-resetAfter frame, local seconds value is set, is allowed to synchronous with the shared adaptation sublayer network time seconds value of website, and portion of local millisecond timeZero is distinguished, local sublayer network timer continues timing since the seconds value, realizes network time synchronization.
It is Tr that father's layer network time is marked and is converted into the conversion operation of sublayer network time label expression way by definition(t), sublayer network time label is converted into father's layer network time and mark the conversion operation of expression way for Tr-1(t), by tsubTurnThe time value T being changed in father's layer networkafterSynMethod particularly includes:
TafterSyn=Tsyn+Tr-1(tsub-Tlocal_syn)。
The beneficial effect of the present invention compared with the existing technology is:
(1), the method for the invention realizes each website in hybrid network by the method for being embedded in time stratificationTime synchronization, this method preferably improve the scalability of clock synchronization system, can also save system bus website quantity, mentionHigh time synchronization efficiency;
(2), independent clock synchronization system is respectively established between father's layer network and sublayer network of the present invention, any one netThe deviation of network time system does not influence another network, and each localized network equipment can be according to itself function needs, certainlyIt adapts to define local accuracy of timekeeping;
(3), the present invention is by the time system of father's layer network and sublayer network, the conversion when shared adaptation website swapsAt unified time form of calculation, it is adapted to a variety of timing modes;
(4), the present invention receives sublayer network time label in shared fit point and then is carried out according to the most time of receipt (T of R) sameStep, then is converted to the time value in father's layer network for sublayer network time, relative to when often receiving the primary system time and just carrying outBetween for synchronous method, computing resource is greatly saved, exchange between grids time difference calculated result is consolidated network time systemRelative value, absolute value is smaller, and higher precision may be implemented;
(5), the present invention is directed to 1553B bus, proposes one kind without using mode command, total in 1553BAny RT website on line realizes a kind of method of active communication, avoid settling mode bring using mode command due toSignal interference, which generates illegal instruction, causes such as RT to close serious bus failure.
Detailed description of the invention
Fig. 1 is the network connection topology schematic diagram of the embodiment of the present invention.
Specific embodiment
Below in conjunction with Figure of description and specific embodiment, the present invention is described in detail.
The present invention provides the tandem type method for synchronizing time in a kind of hybrid network, the hybrid network includes father's layer netNetwork and sublayer network, the method use the thought of time synchronization localization, time synchronization process are divided into father's layer network and sonThe synchronizing process of two localized networks of layer network, father's layer network and sublayer network possess the time synchronization control site of oneself, fatherTime synchronization, father's layer net are carried out according to its mode independent between internal each website between layer network and sublayer networkShared adaptation website is set between network and sublayer network, and shared adaptation website uses father's layer network time system time and son simultaneouslyLayer network time system time timing, any website is used as time synchronization control site in father's layer network, passes through shared adaptation and standsPoint carries out time synchronization with any other website of sublayer network.Sublayer network is using shared adaptation website as time synchronization control stationPoint is responsible for the local zone time by each Site synch of sublayer network internal for it, and time synchronization process is confined to sublayer networkInside, while the time synchronization control site of sublayer network is articulated in father's layer network, when individually carrying out father's layer network systemBetween it is synchronous, so that father's layer network and sublayer network form tandem type time synchronizing method, the time in sublayer network is by sharedAdaptation website is converted, to obtain the time value in father's layer network.This method preferably improves clock synchronization systemScalability, while the independence of his father's layer network and sublayer network time synchronization ensure that each localized network equipment can rootIt is needed according to itself function, it is adaptive to define local accuracy of timekeeping, while system bus website quantity can be also saved, it is same to improve the timeWalk efficiency.
The above method specifically comprises the following steps:
(1), the time synchronization control site of father's layer network is to shared adaptation website sending time synchronization message, the timeSynchronization message includes the shared adaptation website estimated father's layer time system time for receiving the time synchronization message moment estimatedTsyn
(2), it after sharing adaptation website time of receipt (T of R) synchronization message, is parsed to obtain current time father's layer time systemTime Tsyn, while recording the local zone time T that time synchronization message receives the momentlocal_syn
(3), using shared adaptation website as sublayer network time synchronization control site, the son for being adapted to website according to itself is sharedLayer time system time Tlocal, time synchronization is carried out to other websites in sub- layer network;
(4), it shares adaptation website and receives when having sublayer time system of the transmission of other any websites in sublayer networkBetween mark tsubTime label message after, father's layer time system time T for being obtained using newestsyn, and the time is same accordinglyStep message receives the local zone time T at momentlocal_syn, by tsubBe converted to the time value T in father's layer networkafterSyn, form father's layerNetwork time marks message, and will feed back to the time synchronization between father's layer network realization hybrid network.Below with 1553B networkAs upper layer network, for serial bus network is as the mixed form network of lower layer's network, the present invention is described in detail.
Embodiment
As shown in Figure 1, in the site network topology connection figure of the embodiment of the present invention, RT1 RTmaster, i.e. conductThe website of time synchronization behavior is initiated in 1553B bus, RT7 is shared adaptation website, and RT7 receives the 1553B bus synchronous of RT1Information, while RT7 is as Uartmaster, as the control site of serial bus network, it is responsible for synchronous serial bus network.RT7As a 1553B bus network website, when can receive the information of RT1, while can receive the band in serial bus networkBetween the information that marks, and time therein label is converted into the time value in 1553B bus network.Have two inside RT7Independent timer, one with 1553B bus network time synchronization, another and serial bus network time synchronization.EmbodimentIn universal serial bus select RS485 universal serial bus.
Using RT1 in 1553B network as time synchronization control site, with the website time synchronization in serial bus networkMethod include the following steps:
(1), for RT1 to RT7 sending time synchronization message, the time synchronization message includes that the shared adaptation website estimated is receivedTo father's layer time system time T at the time synchronization message momentsyn
RT1 is primary to 1553B Site synch per minute, since 1553B bus is that typical time-devision system command/response formula is moreRoad multiplexed data bus, each RT website need to carry out messaging service by application BC for it to complete.
When the time synchronization control site RT1 of father's layer network is BC, RT1 directly transmits time synchronization message to RT7,RT7 expects father's layer time system time T when receiving the time synchronization messagesynFor recorded in RT1 current time father layer whenBetween system time.
When the time synchronization control site RT1 of father's layer network and shared adaptation website RT7 are RT, father's layer networkTime synchronization control site RT1 to shared adaptation website RT7 sending time synchronization message method particularly includes:
(1.1), time synchronization message is first stored in corresponding transmission subaddressing by RT1, and the time synchronization message includesThe RT7 estimated receives father's layer time system time T at the time synchronization message momentsyn;;
(1.2), define network in each RT website specific subaddressing be communication request subaddressing (such as: subaddressing30) communication request message that, RT1 is referred to as time synchronization request message is put in communication request subaddressing, and the time synchronization is askedAsk message format as follows:
Word 1Word 2Word 3
Send command wordReceive command wordCyclic redundancy check
Wherein, the communication subaddressing that command word 1 defines RT7 sending time synchronization message, the data word for needing to communicate are sentNumber, while Self address is informed into BC, and receive command word 2 and then define the address for receiving RT1 and subaddressing and needsThe data word word number of communication.It is as follows that this two command words are specifically defined format:
Bit15Bit10~Bit14Bit5~Bit9Bit0~Bit4
It is left 0Transmission/reception addressTransmission/reception subaddressingData word number
When RT needs to send a message to BC, command word zero setting is received, sending command word indicates to send the address of RT and son groundThe data word number of location and the BC of being sent to.
(1.3), BC carries out periodical inspection to the communication request subaddressing of each RT website in network, when BC is in inspectionWhen finding the request subaddressing of any one RT website in the process has new communication request message, it will be sent in communication request messageThe message that the corresponding needs for sending the corresponding word number of subaddressing of the RT of data are sent, which is forwarded in communication request message, receives numberAccording to the corresponding reception subaddressing of RT in.
RT1 can also send the every other website in bus, including website RT7 by 1553B bus broadcast messageTime synchronization message, the time synchronization message definition are as follows:
In this way, the shared adaptation website RT7 expects father's layer time system time when receiving the time synchronization messageTsynFor corresponding father's layer time system time at following the last time BC inspection RT1 communication request subaddressing moment.The RT1 hairSend the interval of time synchronization message that should be longer than twice of value in period of BC inspection communication request subaddressing.
When remaining all website of entire 1553B network time synchronization control site RT1 periodically into network is sentBetween synchronization message, and after remaining website time of receipt (T of R) synchronization message, after correct to the CRC code verification in message, when obtaining currentCarve father's layer time system time Tsys, the time synchronization control station that local father's layer network time is changed in time synchronization messageThe spot net time, be allowed to time synchronization control site time synchronization, to realize father's layer network time synchronization.
(2), the website RT7 in 1553B bus receives father's layer network time synchronization message and to the CRC code school in messageAfter testing correctly, current time father's layer time system time T is obtainedsyn, and the local that time synchronization message receives the moment is recorded simultaneouslyTime Tlocal_syn
(3), using RT7 as sublayer network time synchronization control site, RT7 is according to itself sublayer time system timeTlocal, time synchronization is carried out to other websites in sub- layer network.
Time control site of the RT7 as universal serial bus, by broadcasting the message to other websites in serial bus networkTime synchronization is carried out, is the time with the local serial bus network time synchronization of RT7 by the time unification of serial bus networkMethod particularly includes: RT7 is opened as time synchronization control site in serial bus network in local serial bus network timerBegin starting timing at the time of to other website broadcast transmission time synchronization message reset frames, it is then, whole each of then runningSecond moment, serially the website sending time synchronization message non-reset frame in bus network, the time synchronization message non-resetFrame includes second place value of the time synchronization control site in local serial bus network timer;Serial bus network website is receivingAfter time synchronization message reset frame, then the local serial bus network time being reset, serial bus network timer starts timing,After time of receipt (T of R) synchronization message non-reset frame, local seconds value is set, is allowed to and the shared sublayer network time for being adapted to website secondValue synchronizes, and local millisecond time portion is reset, and local serial bus network timer continues timing since the seconds value, realExisting network time synchronization.
Such as: RT7 is after being powered on and initialized local hardware, the serially website U in network1, U2, U3Send a frameTime synchronization message reset frame, the reset command attribute field of the time synchronization message reset frame are 0xAA, in serial networkWebsite U1, U2, U3After receiving that message, temporal is reset, and starts timing.Then, when RT7 is according to itself sublayerBetween system time Tlocal, every 1s moment, serially network sent a time synchronization message non-reset frame, and time synchronization message is multiplePosition frame and time synchronization message reset frame message format definition are as follows:
Website U in serial network1, U2, U3After receiving synchronization message, after check frame number, check code are errorless, knowOther flag of frame is time synchronization frame, then checks whether reset command mark is 0xAA, if so, thinking that the frame data are that the time is sameMessage reset frame is walked, local zone time is reset, time synchronization information is recognized if reset command mark is 0x55 next time for waitingIt is time synchronization message non-reset frame for the frame data, local seconds value is set according to 4~byte of byte 7, and when local millisecondBetween zero out portions.
(4), the sublayer time system time that has that RT7 receives the transmission of other any websites in sublayer network marks tuartTime label message after, father's layer time system time T for being obtained using newestsyn, and time synchronization message receives accordinglyThe local zone time T at momentlocal_syn, by tsubBe converted to the time value T in father's layer networkafterSyn, form father's layer network time markRemember message, and the time synchronization between father's layer network realization hybrid network will be fed back to.
Since RS485 universal serial bus belongs to exclusive type bus, i.e., can only at a time there be a website to send message, thereforeU1, U2, U3Message transmitting process dispatched and complete by RT7, in embodiment, RT7 dispatches U by I/O signal1, U2, U3InformationIt sends.The every 50ms of RT7 sends a pulse by I/O signal to gate a universal serial bus website, U1, U2, U3Detecting stringWhen row bus gating signal, send on a frame data to universal serial bus.When RT7 want sending time synchronization message reset frame andWhen time synchronization message non-reset frame, then preferential sending time synchronization message reset frame and time synchronization message non-reset frame give itHis three websites continue the universal serial bus website that gating needs to gate at next 50ms moment.Due to U1, U2, U3It replies toThe information of RT7 gates each website by RT7 and realizes, therefore, reply message in can there is no receiving station address indication field.But can be communicated with each other to each website in universal serial bus, then reply message in also should include receiving station address labelShow field.
Work as U1, U2, U3Returned message band having time label when, it is believed that the website using the time after being synchronized by RT7 asTime label returns to band time label t to RT7uartNet between time synchronization message, time synchronization message field is fixed between the netJustice are as follows:
It is assumed that definition father's layer network time mark be converted into sublayer network time mark expression way conversion operation beTr (t), sublayer network time label are converted into father's layer network time and marks the conversion operation of expression way for Tr-1(t).This implementationIn example, form when time value date Hour Minute Second millisecond meter in the 1553B bus network, that is, be expressed as Year,Month, Day, Hour, Minute, Second, Millisecond } structural body, the 1553B bus network time mark to milliThe time value of second unit indicates that the serial network time is indicated as unit of ms.Definition is to indicate shape with date Hour Minute Second millisecondThe time value of formula is converted to the conversion operation of the time value of millisecond unit as Tr (t): Tr (t)=(((((t.Year × 12+t.Month)×30+t.Day)×24+t.Hour)×60+t.Minute)×60+t.Second)×1000+t.Millisecond
Date Hour Minute Second millisecond is converted into as the conversion operation of the time value of representation using the time value of millisecond unitFor Tr-1(t) then, Tr-1(t) it can indicate are as follows:
Tr-1(t) [t/ (86400 × 30 × 12 × 1000)] .Year=,
Tr-1(t) [(t% (86400 × 30 × 12 × 1000))/(86400 × 30 × 1000)] .Month=,
Tr-1(t) [(t% (86400 × 30 × 1000))/(86400 × 1000)] .Day=,
Tr-1(t) [(t% (86400 × 1000))/(3600 × 1000)] .Hour=,
Tr-1(t) [(t% (3600 × 1000))/(60 × 1000)] .Minute=,
Tr-1(t) [(t% (60 × 1000))/1000] .Second=,
Tr-1(t) .Millisecond=t%1000.
Wherein, brace " [] " indicates that downward rounding operation, percentage sign " % " indicate complementation.
If the time between the net that the website in serial bus network returns in time synchronization message is tsub, to millisecond listThe time value of position indicates, then the serial bus network time is converted into 1553B bus network time TafterSynMode it is as follows:
TafterSyn=Tsyn+Tr-1(tsub-Tlocal_syn)
Tr-1(tsub-Tlocal_syn) it is the exchange between grids time difference.
When RT7 sends the communication mode and RT1 that father's layer network time marks message feedback to father's layer network to RT7Between synchronization message mode it is identical.
Present invention could apply to the different types of network of N layer architecture, (such as the 1st layer network is Ethernet, layer 2 networkFor 1553B bus network, the 3rd layer be serial bus network etc.), N >=2 are top-down to be followed successively by 1~n-th layer netNetwork, time synchronization between each website inside every layer network, the time is mutually indepedent between each website between each layer network, i-th layer of netThere are a sharing site between network and i+1 layer network, i >=1, the sharing site is provided simultaneously with the i-th layer network and i+1Two independent timers of layer network, the method for synchronizing time using above-mentioned cascade method realize between each layer network whenBetween it is synchronous, every level-one includes adjacent two layers network, and any website is as time synchronization control site using in upper layer network, underWebsite time synchronization in layer network.
In order to guarantee timing tracking accuracy, each website in network layer locally has clocking capability, and accuracy of timekeepingFor Millisecond, i.e., each layer network internal time synchronization accuracy is Millisecond.
The present invention is not described in detail content and is known to the skilled person technology.

Claims (7)

Translated fromChinese
1.一种混合网络中的级联式时间同步方法,其特征在于所述混合网络包括父层网络和子层网络,父层网络和子层网络之间内部各站点之间按照其各自独立的方式进行时间同步,所述父层网络和子层网络之间设置共享适配站点,共享适配站点同时采用父层网络时间系统时间与子层网络时间系统时间计时,父层网络中任意站点作为时间同步控制站点,通过共享适配站点与子层网络任意站点进行时间同步的方法包括如下步骤:1. a cascaded time synchronization method in a hybrid network, is characterized in that the hybrid network comprises a parent layer network and a sublayer network, and between the parent layer network and the sublayer network, between each internal site according to its respective independent mode Time synchronization, a shared adaptation site is set between the parent network and the sub-layer network, and the shared adaptation site adopts the parent-level network time system time and the sub-layer network time system time at the same time, and any site in the parent-level network is used as a time synchronization control The method for synchronizing time with any site in the sub-layer network by sharing the adaptation site includes the following steps:(1)、父层网络的时间同步控制站点向共享适配站点发送时间同步消息,所述时间同步消息包括预估的共享适配站点收到所述时间同步消息时刻的父层时间系统时间Tsyn(1) The time synchronization control site of the parent network sends a time synchronization message to the shared adaptation site, where the time synchronization message includes the estimated parent time system time T at the moment when the shared adaptation site receives the time synchronization messagesyn ;(2)、共享适配站点收到时间同步消息之后,进行解析得到当前时刻父层时间系统时间Tsyn,同时记录时间同步消息收到时刻的本地时间Tlocal_syn(2), after the shared adaptation site receives the time synchronization message, it performs parsing to obtain the parent layer time system time Tsyn at the current moment, and simultaneously records the local time Tlocal_syn at the moment the time synchronization message is received;(3)、以共享适配站点为子层网络时间同步控制站点,共享适配站点根据自身的子层时间系统时间Tlocal,对子层网络中的站点进行时间同步;(3), taking the shared adaptation site as the sub-layer network time synchronization control site, the shared adaptation site performs time synchronization on the sites in the sub-layer network according to its own sub-layer time system time Tlocal ;(4)、共享适配站点收到子层网络中的任意站点发送的带有子层时间系统时间标记tsub的时间标记消息之后,采用最新得到的父层时间系统时间Tsyn,及其相应的时间同步消息收到时刻的本地时间Tlocal_syn,将tsub转换为父层网络中的时间值TafterSyn,形成父层网络时间标记消息,并将其反馈至父层网络实现混合网络之间的时间同步。(4) After receiving the time stamp message with the sub-layer time system time stamp tsub sent by any site in the sub-layer network, the shared adaptation station adopts the newly obtained parent-layer time system time Tsyn , and its corresponding The time synchronization message received is the local time Tlocal_syn , and tsub is converted into the time value TafterSyn in the parent network to form the parent network time stamp message, and feed it back to the parent network to realize the communication between the hybrid networks. time synchronization.2.根据权利要求1所述的一种混合网络中的级联式时间同步方法,其特征在于所述父层网络为1553B总线网络。2 . The cascaded time synchronization method in a hybrid network according to claim 1 , wherein the parent layer network is a 1553B bus network. 3 .3.根据权利要求2所述的一种混合网络中的级联式时间同步方法,其特征在于所述父层网络的时间同步控制站点为总线控制器BC时,父层网络的时间同步控制站点向共享适配站点实时发送时间同步消息,共享适配站点预计收到所述时间同步消息时的父层时间系统时间Tsyn为时间同步控制站点中记载的当前时刻父层时间系统时间。3. the cascaded time synchronization method in a kind of hybrid network according to claim 2, is characterized in that when the time synchronization control site of described parent network is bus controller BC, the time synchronization control site of parent network A time synchronization message is sent to the shared adaptation site in real time, and the parent time system time Tsyn when the shared adaptation site expects to receive the time synchronization message is the current parent time system time recorded in the time synchronization control site.4.根据权利要求2所述的一种混合网络中的级联式时间同步方法,其特征在于所述父层网络的时间同步控制站点和共享适配站点均为远程终端RT时,父层网络的时间同步控制站点向共享适配站点发送时间同步消息和共享适配站点向父层网络的时间同步控制站点发送父层网络时间标记消息的具体方法为:4. the cascaded time synchronization method in a kind of hybrid network according to claim 2, it is characterized in that when the time synchronization control site of described parent network and the shared adaptation site are remote terminal RT, parent network The specific methods for the time synchronization control site to send a time synchronization message to the shared adaptation site and the shared adaptation site to send the parent network time stamp message to the time synchronization control site of the parent network are as follows:(1.1)、发送方先将时间同步消息或者父层网络时间标记消息存入相应的发送子地址中;(1.1) The sender first stores the time synchronization message or the parent layer network time stamp message into the corresponding sending sub-address;(1.2)、定义网络中每一个远程终端RT站点的特定子地址为通信请求子地址,发送方将通信请求消息放于通信请求子地址,所述通信请求消息包括发送数据的远程终端RT地址、需要发送消息的发送子地址,发送的字个数,接收数据的远程终端RT地址、接收子地址,接收的字个数;(1.2), define the specific sub-address of each remote terminal RT site in the network as the communication request sub-address, the sender places the communication request message in the communication request sub-address, and the communication request message includes the remote terminal RT address of the data sent, The sending subaddress of the message to be sent, the number of words sent, the RT address of the remote terminal receiving data, the receiving subaddress, and the number of words received;(1.3)、总线控制器BC对网络中的各个远程终端RT站点的通信请求子地址进行周期性巡检,当总线控制器BC在巡检过程中发现任意一个远程终端RT站点的请求子地址有新的通信请求消息时,将通信请求消息中发送数据的远程终端RT对应的发送子地址相应字个数的需要发送的消息转发至通信请求消息中接收数据的远程终端RT对应的接收子地址中。(1.3) The bus controller BC periodically inspects the communication request sub-addresses of each remote terminal RT site in the network. When the bus controller BC finds that the request sub-address of any remote terminal RT site has When a new communication request message is sent, the message that needs to be sent in the corresponding number of words of the sending subaddress corresponding to the remote terminal RT that sends the data in the communication request message is forwarded to the receiving subaddress corresponding to the remote terminal RT that receives the data in the communication request message. .5.根据权利要求2所述的一种混合网络中的级联式时间同步方法,其特征在于所述共享适配站点预计收到所述时间同步消息时的父层时间系统时间Tsyn为未来最近一次总线控制器BC巡检远程终端RT通信请求子地址时刻对应的父层时间系统时间。5. The cascaded time synchronization method in a hybrid network according to claim 2, characterized in that the parent layer time system time Tsyn when the shared adaptation site expects to receive the time synchronization message is the future The last bus controller BC patrols the parent layer time system time corresponding to the sub-address time of the communication request of the remote terminal RT.6.根据权利要求1所述的一种混合网络中的级联式时间同步方法,其特征在于所述步骤(3)中共享适配站点根据自身的子层时间系统时间Tlocal,对子层网络中的其他站点进行时间同步的具体方法为:适配站点作为子层网络中时间同步控制站点在本地串行总线网络计时器开始启动计时的时刻向其他站点广播发送时间同步消息复位帧;然后,共享适配站点在自身的子层时间系统时间Tlocal的每个整秒时刻,向子层网络中的站点发送时间同步消息非复位帧,所述时间同步消息非复位帧包括共享适配站点的子层时间系统时间Tlocal秒位值,即Tlocal舍去毫秒值后的时间值;子层网络站点在收到时间同步消息复位帧后,则将本地子层网络时间清零,子层网络计时器开始计时,收到时间同步消息非复位帧后,设置本地的秒值,使之与共享适配站点的子层网络时间秒值同步,且本地毫秒时间部分清零,本地子层网络计时器从该秒值开始,继续计时,实现网络时间同步。6. the cascading time synchronization method in a kind of hybrid network according to claim 1 is characterized in that in the described step (3), the shared adaptation site according to its own sublayer time system time Tlocal , to the sublayer The specific method for time synchronization of other stations in the network is as follows: the adaptation station acts as a time synchronization control station in the sub-layer network to broadcast and send a time synchronization message reset frame to other stations at the moment when the local serial bus network timer starts timing; then , the shared adaptation station sends a time synchronization message non-reset frame to the station in the sublayer network at every full second of its own sublayer time system time Tlocal , and the time synchronization message non-reset frame includes the shared adaptation station The sub-layer time system time Tlocal second bit value, that is, the time value after Tlocal rounds off the millisecond value; after the sub-layer network station receives the time synchronization message reset frame, it clears the local sub-layer network time, and the sub-layer network station The network timer starts timing. After receiving the time synchronization message non-reset frame, the local second value is set to synchronize with the sublayer network time second value of the shared adaptation site, and the local millisecond time part is cleared, and the local sublayer network The timer starts from this second value and continues to count to achieve network time synchronization.7.根据权利要求1所述一种混合网络中的级联式时间同步方法,其特征在于:定义将父层网络时间标记转换成子层网络时间标记表达方式的转换操作为Tr(t),子层网络时间标记转换成父层网络时间标记表达方式的转换操作为Tr-1(t),将tsub转换为父层网络中的时间值TafterSyn的具体方法为:7. the cascading type time synchronization method in a kind of hybrid network according to claim 1 is characterized in that: the conversion operation that defines the parent layer network time stamp into the sublayer network time stamp expression mode is Tr(t), The conversion operation of converting the layer network time stamp into the expression of the parent layer network time stamp is Tr-1 (t), and the specific method of converting tsub to the time value TafterSyn in the parent layer network is:TafterSyn=Tsyn+Tr-1(tsub-Tlocal_syn)。TafterSyn =Tsyn +Tr-1 (tsub -Tlocal_syn ).
CN201710357135.7A2017-05-192017-05-19A kind of tandem type method for synchronizing time in hybrid networkActiveCN107026703B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710357135.7ACN107026703B (en)2017-05-192017-05-19A kind of tandem type method for synchronizing time in hybrid network

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710357135.7ACN107026703B (en)2017-05-192017-05-19A kind of tandem type method for synchronizing time in hybrid network

Publications (2)

Publication NumberPublication Date
CN107026703A CN107026703A (en)2017-08-08
CN107026703Btrue CN107026703B (en)2019-01-11

Family

ID=59529346

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710357135.7AActiveCN107026703B (en)2017-05-192017-05-19A kind of tandem type method for synchronizing time in hybrid network

Country Status (1)

CountryLink
CN (1)CN107026703B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106814596B (en)*2017-01-132019-06-21上海航天控制技术研究所A kind of Hardware-in-the-Loop Simulation in Launch Vehicle test ground installation method for synchronizing time
CN107819563A (en)*2017-08-302018-03-20悦享趋势科技(北京)有限责任公司The measuring system of time synchronism apparatus and pulse wave conduction speed
CN109165184B (en)*2018-09-292020-10-23中国科学院国家空间科学中心 A 1553B bus system based on dual bus transceivers
CN112003667B (en)*2019-05-272021-12-31华为技术有限公司 Timing management method, device and system
CN114050883A (en)*2021-10-282022-02-15北方天途航空技术发展(北京)有限公司Method for carrying out air route task accurate time synchronization by unmanned aerial vehicle
CN115529100B (en)*2022-09-302025-09-23北京神经元网络技术有限公司 A clock synchronization method, high-speed industrial bus system, device and storage medium
CN117792558B (en)*2024-02-232024-05-03吉咖智能机器人有限公司Method, apparatus, device and medium for integrating high precision time

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6069887A (en)*1997-05-282000-05-30Apple Computer, Inc.Method and system for synchronization in a wireless local area network
CN102118849A (en)*2011-03-022011-07-06重庆邮电大学Time synchronization method applicable to wireless sensor network
CN104468072A (en)*2014-12-042015-03-25中国航空工业集团公司第六三一研究所IMA platform clock synchronization method
CN105356990A (en)*2015-10-302016-02-24国网冀北电力有限公司信息通信分公司Time synchronization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6069887A (en)*1997-05-282000-05-30Apple Computer, Inc.Method and system for synchronization in a wireless local area network
CN102118849A (en)*2011-03-022011-07-06重庆邮电大学Time synchronization method applicable to wireless sensor network
CN104468072A (en)*2014-12-042015-03-25中国航空工业集团公司第六三一研究所IMA platform clock synchronization method
CN105356990A (en)*2015-10-302016-02-24国网冀北电力有限公司信息通信分公司Time synchronization method

Also Published As

Publication numberPublication date
CN107026703A (en)2017-08-08

Similar Documents

PublicationPublication DateTitle
CN107026703B (en)A kind of tandem type method for synchronizing time in hybrid network
CN110798276B (en) A time synchronization method and system for SDN network of intelligent substation
CN113315546B (en)Time synchronization method of low-voltage distribution room acquisition system based on HPLC carrier
CN105450384A (en)Synchronous clock time synchronization apparatus for communication module
CN103093059B (en)A kind of distributed semi-physical simulation system construction method of real-time high-efficiency
CN106254198B (en) Distributed system-level task synchronization method based on time-triggered
CN106961312B (en)A kind of structure of network instrument clock synchronization system and method
CN110650434B (en)Following positioning method based on UWB technology
CN103729661A (en)System and method for read-write operation of active electronic tags with ultra-low power consumption
CN108966125A (en)A kind of high precision wireless indoor orientation method based on ultra wide band
CN104468072A (en)IMA platform clock synchronization method
CN107423890A (en)Power grid regulation system and the fast distributed processing method of electrical power distribution automatization system
CN106953708A (en)A kind of clock synchronization system and its method of work based on industrial looped network
CN105471540A (en)Beidou GPS clock synchronization system based on wind power converter
CN108039933A (en)A kind of local Internet of Things time precise synchronization method
CN104978842A (en)Self-repair method of low-pressure concentrator clock
CN106327828A (en)Method to awaken several wireless water & gas meters synchronously for meter reading
CN103078401B (en)The system and method for transformer station's time synchronized and sample-synchronous
CN105554063A (en)Bluetooth intelligent school badge management platform and method
Chi et al.Implementation and study of a greenhouse environment surveillance system based on wireless sensor network
CN105068417B (en)Method when SpaceWire time calibration in network is with school
CN106814596B (en)A kind of Hardware-in-the-Loop Simulation in Launch Vehicle test ground installation method for synchronizing time
CN102510575B (en)Multilevel relay synchronization implementation method based on TDMA (time division multiple access)
CN205232242U (en)Big dipper GPS clock synchronization system based on wind power converter
CN212723685U (en)Multi-joint time synchronization device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp