Hello,

> I'm not sure if phc2sys can help get the system clock synchronized with
GPS.

NTPD helps to synchronize the system clock to GPS, but it works with
accuracies in microsecond which is not sufficient.

The PPS-GPIO driver we are using detects it as an interrupt and thus
interrupt latencies come in the picture which is about 30us not stable with
Linux and AM335x ICEv2.

Does someone know how to synchronize the system clock with GPS with
accuracies in 10's of nanoseconds?

Are you aware of PRU( Programmable Real-Time Unit) in AM335x, and can help?

If yes how should we proceed?

Your help will be highly appreciated.

Thanks & Regards,

*JAIRAJ SOLANKI*




On Mon, Apr 6, 2020 at 10:28 PM Jacob Keller <jacob.e.kel...@intel.com>
wrote:

>
>
> On 4/6/2020 3:48 AM, Jairaj Solanki wrote:
> > Hello,
> >
> > I am working on a project in which I want to implement IEEE 1588 PTP
> > Grandmaster.  I am using linuxptp to implement IEEE 1588. Below are the
> > details of my project
> >
> > PTP Grandmaster with GPS Receiver
> > Hardware:   AM335x ICEv2 kit
> >
> > We have tested IEEE 1588 PTP as Grandmaster with hardware timestamping
> > on above-mentioned hardware. We have tried with below-mentioned ways
> >
> > 1) Using PRU's
> > 2) Using CPTS Timer
> >
> > We are getting pretty good results approx < 200ns Accuracy (With PPS) as
> > a Slave with above hardware and linuxptp but not getting the same
> > accuracy as PTP Grandmaster with the same Hardware.
> > We have applied below commands of linuxptp to implement IEEE 1588
> > Grandmaster.
> > 1) Ran ptp4l in layer 2 P2P configuration.
> > ptp4l -i eth0 -2 - P -m
> > 2) Run phc2sys with autoconfiguration.
> > phc2sys -a -r -r -m
> > 3) Run phc2sys to synchronize CLOCK_REALTIME to /dev/pps0
> > phc2sys -d /dev/pps0 -m
> >
>
> I'm not sure you need two instances of phc2sys running here, as this
> might cause conflict between clocks. You want to ensure that the network
> device PHC is synchronized with the system clock.
>
> I'm not sure if phc2sys can help get the system clock synchronized with
> GPS.
>
> Thanks,
> Jake
>
>
> _______________________________________________
> Linuxptp-users mailing list
> Linuxptp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxptp-users
>

-- 


 YouTube: *https://youtu.be/Sn2-cZ_Ln9E <https://youtu.be/Sn2-cZ_Ln9E>*
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to