Re: [Linuxptp-users] Dynamically sync clocks with phc2sys depending on master/slave
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Peter B. <pe...@be...> - 2021-10-14 08:07:18
|
Hi Vincius, On 2021-10-14 01:44, Vinicius Costa Gomes wrote: > One thing that could be missing is for phc2sys to use the same config > file as ptp4l, this should be more convenient, something like this: > > $ ./phc2sys -a -r -r -q -m -f /etc/linuxptp/gPTP.cfg sure it can be more convenient but I think I have to check all settings then at make sure they work for both applications. The man page for phc2sys has a quite clear warning about this, probably for a reason: WARNING Be cautious when the same configuration file is used for both ptp4l and phc2sys. Keep in mind, that values specified in the configuration file take precedence over their default values. If a certain option, which is common to ptp4l and phc2sys, is specified to a non- default value in the configuration file (p.e., for ptp4l), then this non-default value applies also for phc2sys. This might be not what is expected. It is recommended to use seperate configuration files for ptp4l and phc2sys in order to avoid any unexpected behavior. But along the road when I get full control of the applications this can probably be a good solution. Thanks, /Peter |