Discussion:
[Linuxptp-devel] ptp4l use case
Drasko DRASKOVIC
2013-05-30 14:22:34 UTC
Permalink
Hi all,
can somebody please explain me how ptp4l should be used.

I have done following on one Pandaboard taht I want to use a
synchronization master :
***@panda_master:/linux-ptp# ./ptp4l -S -i eth0 -m -l5
ptp4l[109238.352]: port 1: get_ts_info not supported
ptp4l[109238.355]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[109238.356]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[109244.355]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES

and following on Pandaboard slave thet I want to synchronize to the
master board :
***@panda_slave:/linux-ptp# ./ptp4l -S -i wlan0 -s -m -l5
ptp4l[108953.633]: port 1: get_ts_info not supported
ptp4l[108953.636]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[108953.637]: port 0: INITIALIZING to LISTENING on INITIALIZE

But nothing further is happening.

No synchronization whatsoever, no message exchange. Nothing visible.

How ptp4l should be used ?

Best regards,
Drasko
Drasko DRASKOVIC
2013-05-30 14:54:44 UTC
Permalink
On Thu, May 30, 2013 at 4:44 PM, Richard Cochran
Post by Drasko DRASKOVIC
No synchronization whatsoever, no message exchange. Nothing visible.
This should work once you teach your MAC driver to time stamp on its
Tx path.
Actually, I just saw I did a mistake, listetning on the wrong
interface on the slave side. Putting eth0 instead of wlan0 :

***@speaker:/linux-ptp# ./ptp4l -S -i eth0 -s -m -l5
ptp4l[109513.813]: port 1: get_ts_info not supported
ptp4l[109513.817]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[109513.817]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[109514.583]: port 1: new foreign master 0e1851.fffe.028b34-1
ptp4l[109518.583]: selected best master clock 0e1851.fffe.028b34
ptp4l[109518.583]: foreign master not using PTP timescale
ptp4l[109518.583]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[109521.607]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED


Can somebody please give me information what does "UNCALIBRATED" and
"RS_SLAVE" means. Can you please clarify this line :
ptp4l[109521.607]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED

Is there a way to get some more log messages, and to see timestamps
sent/received for further debugging and examination ?

Kind regards,
Drasko
Jiri Benc
2013-05-30 16:02:29 UTC
Permalink
Post by Drasko DRASKOVIC
Can somebody please give me information what does "UNCALIBRATED" and
ptp4l[109521.607]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
Drasko, please ask on linuxptp-users list.

(Richard, sorry for the intervention but I think user questions should
be redirected to the linuxptp-users or a similar list. They are
starting to clutter this list and are not related to linuxptp
development.)

Thanks,

Jiri
--
Jiri Benc
Richard Cochran
2013-05-30 14:44:33 UTC
Permalink
Post by Drasko DRASKOVIC
No synchronization whatsoever, no message exchange. Nothing visible.
This should work once you teach your MAC driver to time stamp on its
Tx path.

HTH,
Richard
Loading...