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



_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to