Re: [Linuxptp-users] PTP master slewing to other network time
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Miroslav L. <mli...@re...> - 2013-08-21 11:29:50
|
On Wed, Aug 21, 2013 at 11:23:41AM +0100, Dave Craig wrote: > There's already a process on each device that gets the current time via NTP > or HTTP and so I'd like to make it so that the PTP master accepts times > from this process and slews/steps it's clock appropriately. Devices which > are currently slaves would simply ignore/discard the attempts to set their > time and stay locked to the master. > Is there already a mechanism I can use to do this that I've missed, or > should I try adding one to ptp4l or possibly phc2sys? Is that with hw or sw time stamping? You can check if the local PTP port is in the master state with pmc -u -b 0 'GET PORT_DATA_SET'. If the hw time stamping is used, you will need to also synchronize the PTP hardware clock from the system clock with the phc2sys program. -- Miroslav Lichvar |