From: Richard C. <ric...@gm...> - 2013-07-03 18:39:53
|
On Wed, Jul 03, 2013 at 05:46:04PM +0530, Aman Sharma wrote: > > When we start the PTP on both machine, for first time slave time syncs to > Master time. > But during runtime if we are changing time(manually changing System time) > of Master or Slave both are not syncing to each other. The master will not synchronize to the slave! Also, it does not make sense to change the time on the slave. That is the job of the ptp4l program. > We have to restart the PTP(i.e have to run command again) to make them sync > to each other. > > Please let us know the command or process, so that Master and Slave can > sync there time during run time As Jacob wrote, there is an option for jumping the clock. >From the man page: pi_offset_const The maximum offset the PI controller will correct by changing the clock frequency instead of stepping the clock. When set to 0.0, the controller will never step the clock except on start. The default is 0.0. If you set this to, say 1.0, then the slave will jump the clock whenever the offset exceeds one second. HTH, Richard |