I have a question related to the question below. If you use a boundary clock between gPTP and PTP, does the PHC have to be shared by both NICs? What I mean is the PHC is shared by both NICs while each NIC independently timestamps PTP frames using the same PTP hardware clock.
If each NIC has an independent PHC I think phy2sys has to be used two synchronized two instances ptp4l but I am not sure how this configuration could work as a boundary clock. Eric Decker -----Original Message----- From: Richard Cochran <richardcoch...@gmail.com> Sent: Tuesday, May 16, 2023 9:42 AM To: Fueloep, Tamas <tamas.fuel...@siemens.com> Cc: linuxptp-users@lists.sourceforge.net Subject: Re: [Linuxptp-users] gPTP and PTP on the same computer On Tue, May 16, 2023 at 08:35:36AM +0000, Fueloep, Tamas via Linuxptp-users wrote: > Dear LinuxPTP mailing list participants, > > First of all, thank you very much for this amazing software - it > really makes life easier and it is fun to use. 🙂 "fun to use?" hahaha that is new! > I would have a question, because I can't get a grasp on something. I > have a setup, where multiple sensors are connected to the same > computer, each of the sensors are connected to a dedicated network > interface. Some of the sensors are only compatible with gPTP and some > of them are only with PTP. The default configuration files that come > with the ptp4linux installation are working perfectly independently, > but I cannot make the sensors work in a parallel way. I have tried to > run multiple ptp4l instances and for the PTP I've used the > 'default.cfg' and for the gPTP the 'automotive-master.cfg'. Obviously > this does not work as expected, but I am a bit lost on figuring out > what would be the ideal setup in this case. > Could you please help me what is the right concept to use in this situation? You can run ptp4l as a Boundary Clock on multiple interfaces at once, and you can freely mix and match profiles on the different ports. For example: ptp4l -m -q -i eth0 -i eth1 or in a configuration: [global] # ... [eth0] # eth0 options... [eth1] # eth1 options... The only thing I'm uncertain of is the Automotive Profile. Most of the configuration options are per-port, but you will probably not set the global option inhibit_delay_req. See the man page and/or config.c to learn which options are per-port. Thanks, Richard _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users CAUTION: This email originated from outside of TORC's email system. DO NOT click links or open attachments unless you recognize the sender and know the content is safe. Email is NOT a secure means of communication. Handle potentially sensitive information with care. Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users