On Fri, Jan 22, 2021 at 04:39:55AM +0000, Nikhil Gupta wrote:
> I am facing problem in running ts2phc on ubuntu 18.04 with linuxptp .

This question really should be asked on the linuxptp-users list
instead.

BTW, 18.04 is really old -- better check that your PHC kernel driver
really supports time stamping of external inputs.

> Steps :
> compiled gpsd on target
> # git clone https://gitlab.com/gpsd/gpsd.git
> # cd gpsd
> # scons --config=force && scons install

Um, that has nothing to do with this project!  The ts2phc program
works (or should work) all by itself.

> Command :
> ts2phc -f ts2phc.cfg -m -s generic

> ts2phc[503.770]: poll returns zero, no events
> ts2phc[505.772]: poll returns zero, no events
> ts2phc[507.774]: poll returns zero, no events
> ts2phc[509.776]: poll returns zero, no events

The PHC is not time stamping any edges at all.  This is a problem.

> [global]
> first_step_threshold 0.00002
> step_threshold 0.00002
> ts2phc.pulsewidth 990000000

The pulse width is 990 milliseconds?  Really?

> ts2phc.nmea_serialport /dev/ttyAMA2

Once you solve the missing pulses, you might also verify the RMC
messages on this port using minicom or screen.

HTH,
Richard


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

Reply via email to