I apologize for my ignorance but I'm not sure how to implement that all in
a single configuration file. I currently have two very generic
configuration files. The first is used on the primary interface as the 1588
slave:

*[global]*

*slaveOnly 1*

*time_stamping hardware*

*step_threshold 1.0*

*delay_mechanism Auto*

*network_transport UDPv4*


*[enp11s0]*

The second configuration file is the default automotive-master.cfg profile:
https://github.com/richardcochran/linuxptp/blob/master/configs/automotive-master.cfg

I run the primary configuration file like this: ptp4l -f <path_to_file>
For the other interfaces I run: *ptp4l -f /etc/automotive-master.cfg -i
<interface_name>*
I can add --boundary_clock_jbod to my automotive-master.cfg file and add
the automotive interfaces and a boundary clock is properly formed between
them. However, I don't know how to create a configuration file of
dissimilar PTP instances on different interfaces. I will keep investigating
and experimenting while I await a reply.

On Fri, Aug 11, 2023 at 9:24 PM Richard Cochran <richardcoch...@gmail.com>
wrote:

> On Fri, Aug 11, 2023 at 12:32:24PM -0600, John Koch via Linuxptp-users
> wrote:
> > I was wondering what the best way to configure ptp4l and phc2sys in the
> > following configuration would be.
> >
> > There is a 1588 IPv4 PTP master present on the network. My computer has
> > several NICs which have PTP hardware support, one of them is plugged into
> > the network with the 1588 IPv4 master. I also have multiple devices which
> > are 802.1AS automotive slaves that I want to synchronize with the rest of
> > the devices on the 1588 network. Currently I have connected each of the
> > 802.1AS automotive slaves to an individual NIC on my computer and run an
> > instance of ptp4l and phc2sys for each slave.
> >
> > Is there a better way of doing this? If so could someone provide some
> > guidance?
>
> You can run:
>
> - one ptp4l instance as a Boundary Clock with 1588 on the slave port
>   and gPTP on the master ports (using a configuration file)
>
> - one phc2sys in "automatic" (-a) mode with --boundary_clock_jbod
>
> That will make the gPTP clients synchronize to the 1588 IPv4 master.
>
> HTH,
> Richard
>
>
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to