Re: [Linuxptp-users] gPTP and PTP on the same computer
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Fueloep, T. <tam...@si...> - 2023-05-16 14:21:39
|
Hi Richard,
Thanks for the prompt reply.
Yeah, maybe I am a bit insane, but I find it fun hahaha
I will try what you suggested and report back if it worked. Maybe that's a useful info for others as well.
Thanks,
Tamas
________________________________
From: Richard Cochran <ric...@gm...>
Sent: Tuesday, May 16, 2023 15:42
To: Fueloep, Tamas (SMO SDT TEC SPA TPQ) <tam...@si...>
Cc: lin...@li... <lin...@li...>
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
|