CN104750903A - Team simulation time synchronization method based on time source - Google Patents

Team simulation time synchronization method based on time source Download PDF

Info

Publication number
CN104750903A
CN104750903A CN201410785390.8A CN201410785390A CN104750903A CN 104750903 A CN104750903 A CN 104750903A CN 201410785390 A CN201410785390 A CN 201410785390A CN 104750903 A CN104750903 A CN 104750903A
Authority
CN
China
Prior art keywords
time
entity
supvr
simulation
federation
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
CN201410785390.8A
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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201410785390.8A priority Critical patent/CN104750903A/en
Publication of CN104750903A publication Critical patent/CN104750903A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a team simulation time synchronization method based on a time source. According to the team simulation time synchronization method, an administrator entity participates into federation, time synchronization parameters, such as, simulation starting time, the time-advancing step length and simulation starting steps are initialized, then time starts to be advanced, and the simulation starting time is natural time; an ordinary simulation entity participates into the federation, receives the time synchronization parameters from the administrator entity and calculates the current simulation time; the administrator entity changes the time-advancing step length, the time is advanced according to the changed time advancing step length, and the time synchronization parameters are updated; meanwhile, a new time synchronization parameter group is sent to all ordinary simulation entities, and the ordinary simulation entities conduct the current time calculation and time advancing according to the new time synchronization parameters . According to the team simulation time synchronization method, the ordinary simulation entities can participate into and retreat from the federation at any time without affecting time advancing, and more flexibility is achieved; the required synchronization time consumption is less, the influence of network delay is less, the time synchronization error is less, and the method is more accurate.

Description

A kind of team's simulation time synchronous method based on time source
Technical field
The invention belongs to Distributed Time simultaneous techniques field, be specifically related to a kind of team's simulation time synchronous method based on time source.
Background technology
In team's simulation training system, each entity advances the time according to same clock to need time synchronized function to ensure, otherwise can cause between entity the observation of Time and place and inconsistent on understanding.Simultaneously, team's simulation training system requires can change time step when time synchronized, this is mainly because participant is often only interested in certain the several part in emulation, but that several part only continues the of short duration time, and be dull very long wait between which, this just requires to advance simulation time as early as possible waiting to bide one's time.
Synchronous point itself be for distributed application program between synchronous operation and arrange, but the purposes of synchronous point technology is relatively extensive, and HLA provides the correlation function of relative synchronous point, therefore, the method for application of synchronized point can carry out time synchronized.Concrete mode registers a synchronous point after some artificial physicals add federation or when preparing change step-length, other artificial physical arrives this synchronous point after adding federation or after completing required change step-length operation, after all artificial physicals all arrive synchronous point, time synchronization process completes.
But for team's simulation training system, the method for synchronizing time based on synchronous point also has following two problems to solve:
The first, the method for synchronizing time based on synchronous point just will complete synchronously after all artificial physicals all arrive synchronous point, therefore requires that the total number of artificial physical is fixing.Freely add so artificial physical cannot be completed based on the method for synchronizing time of synchronous point and exit federal demand.In the process that simulated program runs, if there are the situations such as entity goes offline also can affect the synchronous of federation, the method for synchronizing time based on synchronous point also cannot avoid this problem.
The second, when changing time stepping method step-length, if be adjusted to less time stepping method step-length by larger time stepping method step-length, adopt the method for synchronizing time efficiency based on synchronous point then can be lower.If advance step-length difference too large, the time of wait can will be then insufferable.
In sum, obviously there is inconvenience and defect, so be necessary to be improved in the method for synchronizing time of existing team simulation training system.
Summary of the invention
For the defect of prior art, the invention provides a kind of team's simulation time synchronous method based on time source, common artificial physical can add at any time and exit federation, and influence time does not advance, more flexibly; Required lock in time consumes less, and the impact by network delay is less, and the error of time synchronized is less, more accurate.
A kind of team simulation time synchronous method, is specially:
Supvr's entity adds federation, and it is initialization emulation initial time, time stepping method step-length and emulate initial step number first, then starts to advance the time;
Common artificial physical adds federation, it is from supvr's entity time of reception synchronization parameter, time synchronized parameter comprises emulation initial time, time stepping method step-length and emulates initial step number, calculates the current simulation time of oneself, then start to advance the time according to time synchronized parameter;
Supvr's entity change time stepping method step-length, time stepping method is carried out according to the time stepping method step-length after change, update time, synchronization parameter was about to corresponding emulation step number when the initial step number of emulation is updated to change time stepping method step-length, and emulation initial time was updated to the current simulation time of supvr's entity; Meanwhile, the time synchronized population of parameters after upgrading is issued common artificial physical, and common artificial physical carries out current time calculating and time stepping method according to time synchronized parameter.
Further, described common artificial physical at any time can exit federation, just can exit federation when supvr's entity no longer exists common artificial physical in federation.
Further, described supvr's entity adds federal specific implementation process and is:
11) judge whether federation sets up, if so, then illustrate now there is supvr's entity, terminate, otherwise, set up federal by supvr's entity;
12) supvr's entity initialization time synchronized parameter, time synchronized parameter comprises emulation initial time, advances step-length and emulate initial step number;
13) supvr's entity start monitor other entity add situation;
14) once there be common artificial physical to add federation, then carry out the calculating of current simulation time according to time synchronized parameter and start the timer propelling time, and sending time synchronized parameter to common artificial physical.
Further, described common artificial physical adds federal specific implementation process and is:
21) judge whether federation sets up, do not set up if federal, terminate, otherwise, enter step 22);
22) common artificial physical adds federation, and it is from supvr's entity time of reception synchronization parameter;
23) common artificial physical calculates the current simulation time of oneself according to time synchronized parameter and starts the timer propelling time.
Technique effect of the present invention is embodied in:
The present invention just starts to advance the time after supvr's entity adds federation, at this moment the adding and exit the federal propelling not affecting this time completely of other entity, therefore more flexible.The present invention adopts mutual mode to carry out the mode of time synchronized instead of synchronous point, and the current simulation time of each entity directly calculates according to time parameter to get, therefore required lock in time consumes less, impact by network delay is less, and the error of time synchronized is less, more accurate.
Accompanying drawing explanation
Fig. 1 is method for synchronizing time process flow diagram of the present invention;
Fig. 2 is supvr's entity initialization of the present invention constitutional diagram;
Fig. 3 is common artificial physical Entered state figure of the present invention;
Fig. 4 is the synchronous flow process after regulating simulation time step-length.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only explain the present invention, be not intended to limit the present invention.
The invention provides a kind of team's simulation time synchronous method based on time source, the artificial physical of team's simulation training is divided into supvr's entity and common artificial physical.
Supvr's entity: should have in each team simulation training and only have supvr's entity, the certain operations of primary responsibility federation management, time source entity simultaneously or in whole emulation, need in simulations first add federation, made the time synchronized of whole federation by mass-sending time management message, and regulate the propelling time step in whole analogue system.
Common artificial physical: the common entity of participating in training in team's simulation training system all belongs to common artificial physical, completes team training function.
Fig. 1 is entity relationship diagram of the present invention, and what the present invention is based on the method for synchronizing time of time source is that the time source being standard with supvr's entity carries out time synchronized, and supvr's entity controls the time of common artificial physical by the method for transmitting time synchronization parameter.
Fig. 2 is time synchronized process flow diagram of the present invention, and detailed process is as follows:
Supvr's entity adds federation, and initialization emulates initial time, time stepping method step-length and emulates initial step number, then starts to advance the time;
Common artificial physical adds federation, it is from supvr's entity time of reception synchronization parameter, time synchronized parameter comprises emulation initial time, time stepping method step-length and emulates initial step number, calculates the current simulation time of oneself, then start to advance the time according to time synchronized parameter;
Supvr's entity change time stepping method step-length, time stepping method is carried out according to the time stepping method step-length after change, update time, synchronization parameter was about to corresponding emulation step number when the initial step number of emulation is updated to change time stepping method step-length, and emulation initial time was updated to the current simulation time of supvr's entity; Meanwhile, the time synchronized population of parameters after upgrading is issued other common artificial physical, other common artificial physical carries out current time calculating and time stepping method according to time synchronized parameter;
Common artificial physical at any time can exit federation, just can exit federation when supvr's entity no longer exists common artificial physical in federation.
Fig. 2 adds federal process flow diagram for supvr's entity, and in the present invention, supvr's entity is responsible for setting up federal, and will ensure that each federation only has supvr's entity.Concrete steps are as follows:
11) judge whether federation sets up, if so, then illustrate now there is supvr's entity, terminate, otherwise, set up federal by supvr's entity;
12) supvr's entity initialization time synchronized parameter, time synchronized parameter comprises emulation initial time, advances step-length and emulate initial step number; Advance when can be set to, in minute, second one of step-length, corresponding numerical value is 3600,60,1, emulation initial time according to emulation need be set to a concrete time value, such as on April 26th, 2012 9:00:00, emulate initial step number initial value and be set to 0;
13) supvr's entity starts the situation of reaching the standard grade monitoring other entity;
14) once there be common artificial physical to add federation, then carry out the calculating of current simulation time according to time synchronized parameter and start the timer propelling time, and sending time synchronized parameter to common artificial physical.
The current simulation time computing formula of supvr's entity is:
Current simulation time=emulation initial time+(current emulation step number-emulate initial step number) * advances step-length.
Supvr's entity adds federal step to be completed.
Fig. 3 is that common artificial physical adds federal process flow diagram, and after supvr's entity adds federation, common artificial physical just can add federation.Concrete steps are as follows:
21) judge whether federation sets up, do not set up if federal, then illustrate that supvr's entity does not also add federation, terminate, otherwise, enter step 22);
22) common artificial physical adds federation, it is from supvr's entity time of reception synchronization parameter, comprise propelling step-length, emulate initial time and emulate these three parameters of initial step number, if send successfully, continue, otherwise continue to send, if send three times all unsuccessful; cannot be synchronous, terminate.
23) common artificial physical calculates the current simulation time of oneself according to time synchronized parameter and starts the timer propelling time.
The current simulation time computing formula time of common artificial physical:
Current simulation time=emulation initial time+(current emulation step number-emulate initial step number) * advances step-length
Common artificial physical adds federal step to be completed.
Fig. 4 is the synchronous flow process after regulating simulation time step-length, regulates simulation time step-length to be started by supvr's entity.Concrete steps are as follows:
31) the propelling step parameter of supvr's entity change self is new value, gets current simulation time, and is updated to emulation initial time, get current emulation step number, and is updated to the initial step number of emulation.
32) supvr's entity sends time synchronized parameter now to all common artificial physicals in federation, if sends successfully, continues, otherwise continues to send, if transmission three times is all unsuccessful, cannot be synchronous, and end.
33) common artificial physical receives the time synchronized parameter after renewal, carries out current time calculating and time stepping method according to time synchronized parameter.
Common artificial physical simulation time is now:
Current simulation time=emulation initial time+(current emulation step number-emulate initial step number) * advances step-length
Simulation time step-length is regulated to terminate.
Introduce the example of a complete time synchronized below.
According to flow process above, first, supvr's entity adds federation, and parameters is as follows: propelling step-length is second, and emulation initial time is 9:00:00 on April 26th, 2012, and emulating initial step number is 0, then starts to advance the time.Suppose when the current emulation step number of supvr's entity is 5, common artificial physical logins federation, the current simulation time that now can calculate supvr's entity is 9:00:05 on April 26th, 2012, time parameter now sends to by supvr's entity newly logins federal common artificial physical, newly login federal common artificial physical and call service acquisition that HLA provides to current emulation step number, assuming that the current emulation step number obtained also is 5, the current simulation time so newly logining federal common artificial physical is also 9:00:05 on April 26th, 2012, then time synchronized completes, start to advance the time.Suppose when the current emulation step number of supvr's entity is 10, when current simulation time is 19:00:00 on the 26th April in 2012, carry out the operation regulating simulation time step-length, by propelling step-length by hour changing to second.Now, supvr's entity setting up parameter is as follows: propelling step-length is second, and emulation initial time is 19:00:00 on April 26th, 2012, and emulating initial step number is 10.After setting, supvr's entity is by propelling step-length now, emulation initial time and these three parameter values of emulation step number are mass-sended to all artificial physicals in federation, after other emulation examination question receives these three parameters, current simulation time is gone out according to these three parameter value calculation, now in federation, all entities reach time synchronized, regulate simulation time step-length to complete.Supposing that emulation step number is now 12, is so 19:00:02 on April 26th, 2012 according to the formula current simulation time that can calculate now, and simulation step length present is as seen by be adjusted to second hour.
In sum, the present invention proposes the method for synchronizing time of a kind of team simulation training based on time source.Based on time source method for synchronizing time be that the time source being standard with supvr's entity carries out time synchronized, supvr's entity controls the time of common artificial physical by the method for transmitting time synchronization parameter.This synchronous method is more flexible, and synchronous error is less, can meet the needs of team's simulation training well.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (4)

1. team's simulation time synchronous method, is characterized in that, is specially:
Supvr's entity adds federation, and it is initialization emulation initial time, time stepping method step-length and emulate initial step number first, then starts to advance the time;
Common artificial physical adds federation, it is from supvr's entity time of reception synchronization parameter, time synchronized parameter comprises emulation initial time, time stepping method step-length and emulates initial step number, calculates the current simulation time of oneself, then start to advance the time according to time synchronized parameter;
Supvr's entity change time stepping method step-length, time stepping method is carried out according to the time stepping method step-length after change, update time, synchronization parameter was about to corresponding emulation step number when the initial step number of emulation is updated to change time stepping method step-length, and emulation initial time was updated to the current simulation time of supvr's entity; Meanwhile, the time synchronized population of parameters after upgrading is issued common artificial physical, and common artificial physical carries out current time calculating and time stepping method according to time synchronized parameter.
2. the team's simulation time synchronous method based on time source according to claim 1, it is characterized in that, described common artificial physical at any time can exit federation, just can exit federation when supvr's entity no longer exists common artificial physical in federation.
3. the team's simulation time synchronous method based on time source according to claim 1, is characterized in that, described supvr's entity adds federal specific implementation process and is:
11) judge whether federation sets up, if so, then illustrate now there is supvr's entity, terminate, otherwise, set up federal by supvr's entity;
12) supvr's entity initialization time synchronized parameter, time synchronized parameter comprises emulation initial time, advances step-length and emulate initial step number;
13) supvr's entity start monitor other entity add situation;
14) once there be common artificial physical to add federation, then carry out the calculating of current simulation time according to time synchronized parameter and start the timer propelling time, and sending time synchronized parameter to common artificial physical.
4. the team's simulation time synchronous method based on time source according to claim 1, is characterized in that, described common artificial physical adds federal specific implementation process and is:
21) judge whether federation sets up, do not set up if federal, terminate, otherwise, enter step 22);
22) common artificial physical adds federation, and it is from supvr's entity time of reception synchronization parameter;
23) common artificial physical calculates the current simulation time of oneself according to time synchronized parameter and starts the timer propelling time.
CN201410785390.8A 2014-12-16 2014-12-16 Team simulation time synchronization method based on time source Pending CN104750903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410785390.8A CN104750903A (en) 2014-12-16 2014-12-16 Team simulation time synchronization method based on time source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410785390.8A CN104750903A (en) 2014-12-16 2014-12-16 Team simulation time synchronization method based on time source

Publications (1)

Publication Number Publication Date
CN104750903A true CN104750903A (en) 2015-07-01

Family

ID=53590586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410785390.8A Pending CN104750903A (en) 2014-12-16 2014-12-16 Team simulation time synchronization method based on time source

Country Status (1)

Country Link
CN (1) CN104750903A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279335A (en) * 2015-10-30 2016-01-27 南京河海南自水电自动化有限公司 Simulation method of variable speed simulator based on time scaling of operating system
CN106683513A (en) * 2016-12-06 2017-05-17 中广核工程有限公司 Method and system of realizing analog machine simulation clock displaying in nuclear power station
CN108629102A (en) * 2018-04-27 2018-10-09 北京航空航天大学 Digital aircraft synchronizes and time stepping method source code artificial intelligence Writing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265622A (en) * 2000-03-23 2001-09-28 Toshiba Corp Rti wrapper
CN102201907A (en) * 2011-03-04 2011-09-28 于辉 Method for realizing distributed simulation synchronization
CN102664954A (en) * 2012-04-25 2012-09-12 清华大学 HLA-based (High Level Architecture-based) distributed simulation support platform and implementation method thereof
CN103763377A (en) * 2014-01-24 2014-04-30 北京仿真中心 Synchronizing method for distributed simulation time advance and information transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001265622A (en) * 2000-03-23 2001-09-28 Toshiba Corp Rti wrapper
CN102201907A (en) * 2011-03-04 2011-09-28 于辉 Method for realizing distributed simulation synchronization
CN102664954A (en) * 2012-04-25 2012-09-12 清华大学 HLA-based (High Level Architecture-based) distributed simulation support platform and implementation method thereof
CN103763377A (en) * 2014-01-24 2014-04-30 北京仿真中心 Synchronizing method for distributed simulation time advance and information transmission

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤学达: "基于HLA的团队仿真训练支撑平台的关键技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279335A (en) * 2015-10-30 2016-01-27 南京河海南自水电自动化有限公司 Simulation method of variable speed simulator based on time scaling of operating system
CN105279335B (en) * 2015-10-30 2018-08-21 南京河海南自水电自动化有限公司 A kind of emulation mode of the speed change emulator based on operating system time-scaling
CN106683513A (en) * 2016-12-06 2017-05-17 中广核工程有限公司 Method and system of realizing analog machine simulation clock displaying in nuclear power station
CN108629102A (en) * 2018-04-27 2018-10-09 北京航空航天大学 Digital aircraft synchronizes and time stepping method source code artificial intelligence Writing method

Similar Documents

Publication Publication Date Title
US10019333B2 (en) Methods, systems, and computer readable media for emulating network devices with different clocks
CN103093059B (en) A kind of distributed semi-physical simulation system construction method of real-time high-efficiency
MY192327A (en) Waste composition estimation device, system, program, method, and data structure
CN104750903A (en) Team simulation time synchronization method based on time source
CN103141039A (en) Method for time synchronization in a communications network
AR108142A1 (en) ESTIMATION OF ADJUSTMENT VALUES OF PLUVIAL PRECIPITATION
CN105468817B (en) A kind of multi-model real-time emulation system
JP2011193457A (en) System and method for performing time synchronization
JP2014096853A (en) Time synchronization device
CN110502310A (en) A kind of method for synchronizing time and device of virtual machine
CN104615478A (en) Simulation advance order error recognizing and correcting method used for distributed simulation
Ciraci et al. Synchronization algorithms for co-simulation of power grid and communication networks
US11281829B2 (en) Device, system, and method for adaptive simulation
Nguyen et al. Synchronization conditions and real-time constraints in co-simulation and hardware-in-the-loop techniques for cyber–physical energy system assessment
CN109716379A (en) Optimization method, device and the media advertising system of media advertisement clicking rate
CN102096376A (en) Mixed time sequence synchronous control method in physical simulation
WO2014195731A3 (en) Time synchronisation control apparatus and method
US9882705B2 (en) Communication apparatus, communication method, and computer readable medium using propagation delay for time synchronization
CN103763377A (en) Synchronizing method for distributed simulation time advance and information transmission
CN103441832B (en) Clock synchronizing method based on PTP, system and equipment
CN108021034A (en) A kind of accurate timing and the system and method for data synchronization
CN101867431A (en) Network clock synchronization method
CN106814596B (en) A kind of Hardware-in-the-Loop Simulation in Launch Vehicle test ground installation method for synchronizing time
CN106951026B (en) A kind of daylight-saving time implementation method based on single clock system
CN205657701U (en) Time synchronization system of mill

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150701