On Thu, May 30, 2013 at 06:25:18PM +0200, Drasko DRASKOVIC wrote:
> Hi all,
> cam somebody please clarify me some ptp4l usage.
>
> I am using two pandaboards, one should be clock master to the other
> and my need is to have a minimal clock offset between them.
>
> I am starting on master (server) side :
> root@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 on slave (client) side :
>
> root@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
After this, you should see a one line synchronization report every
second, but only at log level 6 (LOG_INFO). You said, '-l5'.
> 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
These refer to the state machine from the IEEE 1588 standard. The
message shows state transitions and the event that triggered them. In
this case, "RS_SLAVE" means that the result of the Best Master Clock
algorithm was "recommended state slave".
> Is there a way to get some more log messages, and to see timestamps
> sent/received for further debugging and examination ?
To see all of the available messages, use: ptpt4l -l9
HTH,
Richard
|