Thread: Re: [Linuxptp-devel] linuxptp on ubuntu 14.04 (Page 2)
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Andrei P. <and...@kl...> - 2014-06-17 15:00:58
|
I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both machines and I still don't see too much output: ptp4l[532989.495]: ioctl SIOCETHTOOL failed: No such device ptp4l[532989.495]: selected /dev/ptp1 as PTP clock ptp4l[532989.495]: port 2: get_ts_info not supported ptp4l[532989.495]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[532989.497]: ioctl SIOCGIFHWADDR failed: No such device ptp4l[532989.499]: ioctl SIOCGIFINDEX failed: No such device ptp4l[532989.499]: port 2: INITIALIZING to FAULTY on INITIALIZE ptp4l[532989.499]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[532990.051]: port 1: new foreign master 00e04b.fffe.3b5762-1 ptp4l[532996.749]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[532996.749]: selected best master clock 002590.fffe.f2c1e4 ptp4l[532996.749]: assuming the grand master role ptp4l[532996.749]: assuming the grand master role and on the other one: ptp4l[371191.004]: ioctl SIOCETHTOOL failed: No such device ptp4l[371191.005]: selected /dev/ptp0 as PTP clock ptp4l[371191.005]: port 2: get_ts_info not supported ptp4l[371191.005]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[371191.012]: ioctl SIOCGIFHWADDR failed: No such device ptp4l[371191.015]: ioctl SIOCGIFINDEX failed: No such device ptp4l[371191.015]: port 2: INITIALIZING to FAULTY on INITIALIZE ptp4l[371191.015]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[371191.747]: port 1: new foreign master 002590.fffe.f2c1e4-1 ptp4l[371195.749]: selected best master clock 002590.fffe.f2c1e4 ptp4l[371195.749]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE but that is about it....so I still can't tell weather it's all working fine or not yet Thanks, Andrei On Tue, Jun 17, 2014 at 3:51 PM, Richard Cochran <ric...@gm...> wrote: > On Tue, Jun 17, 2014 at 03:20:42PM +0100, Andrei Perietanu wrote: > > > > Does this look right to you? > > Yes. > > Did you use the -m and -q options? If not, then the messages are sent > to the syslog. > > HTH, > Richard > -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. |
|
From: Andrei P. <and...@kl...> - 2014-06-18 11:38:08
|
I'm running wireshark on the master ptp4l -v 1.4 Regards, Andrei On Wed, Jun 18, 2014 at 12:32 PM, Richard Cochran <ric...@gm...> wrote: > On Wed, Jun 18, 2014 at 12:12:58PM +0100, Andrei Perietanu wrote: > > > > Announce Messages are send every 7-8 messages. Is this right? > > Yes, that is normal. > > Are you running wireshark on the slave or on the master? > > What is the output of the following command? > > ptp4l -v > > Thanks, > Richard > -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. |
|
From: Richard C. <ric...@gm...> - 2014-06-18 11:51:48
|
On Wed, Jun 18, 2014 at 12:37:46PM +0100, Andrei Perietanu wrote: > I'm running wireshark on the master Please try it on the slave, to see if the Sync messages are arriving. Thanks, Richard |
|
From: Miroslav L. <mli...@re...> - 2014-06-17 15:33:53
|
On Tue, Jun 17, 2014 at 04:00:36PM +0100, Andrei Perietanu wrote: > I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both > machines > and I still don't see too much output: I think that should be -l9, not -i9. -- Miroslav Lichvar |
|
From: Andrei P. <and...@kl...> - 2014-06-17 15:39:51
|
On Tue, Jun 17, 2014 at 04:00:36PM +0100, Andrei Perietanu wrote: > I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both > machines > and I still don't see too much output: >I think that should be -l9, not -i9. Well that's what I initially thought but there is no -l9 (1-7 are valid values) On Tue, Jun 17, 2014 at 4:33 PM, Miroslav Lichvar <mli...@re...> wrote: > On Tue, Jun 17, 2014 at 04:00:36PM +0100, Andrei Perietanu wrote: > > I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both > > machines > > and I still don't see too much output: > > I think that should be -l9, not -i9. > > -- > Miroslav Lichvar > -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. |
|
From: Andrei P. <and...@kl...> - 2014-06-18 12:13:49
|
I tried running wireshark on both nodes and I see the exact same wireshark output on both of them, so sync messages are being received by the slave. On Wed, Jun 18, 2014 at 12:51 PM, Richard Cochran <ric...@gm...> wrote: > On Wed, Jun 18, 2014 at 12:37:46PM +0100, Andrei Perietanu wrote: > > I'm running wireshark on the master > > Please try it on the slave, to see if the Sync messages are arriving. > > Thanks, > Richard > -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. |
|
From: Richard C. <ric...@gm...> - 2014-06-18 14:33:24
|
On Wed, Jun 18, 2014 at 01:13:27PM +0100, Andrei Perietanu wrote: > I tried running wireshark on both nodes and I see the exact same wireshark > output on both of them, so sync messages are being received by the slave. Okay, then something very strange is happening, and I can't imagine what is going on. The one difference between wireshark and ptp4l is that wireshark uses promiscuous mode, while ptp4l joins the multicast group. Here are two things to try. 1. Easy: run ptp4l with the '-2' (L2 transport) flag 2. Harder: try a vanilla kernel Sorry, Richard |
|
From: Andrei P. <and...@kl...> - 2014-06-17 15:45:40
|
anyway running the command with -l7 option *sudo ptp4l -i eth1 -l7 -f /etc/ptp4l.conf -m -q* I get: ptp4l[535940.417]: selected /dev/ptp1 as PTP clock ptp4l[535940.417]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 ptp4l[535940.417]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[535940.417]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[535942.634]: port 1: setting asCapable ptp4l[535942.634]: port 1: new foreign master 00e04b.fffe.3b5762-1 ptp4l[535946.639]: selected best master clock 00e04b.fffe.3b5762 ptp4l[535946.639]: assuming the grand master role ptp4l[535946.639]: port 1: LISTENING to GRAND_MASTER on RS_GRAND_MASTER ptp4l[535946.640]: port 1: master tx announce timeout ptp4l[535947.639]: port 1: master sync timeout ptp4l[535948.640]: port 1: master tx announce timeout ptp4l[535948.641]: port 1: master sync timeout ptp4l[535949.641]: port 1: master sync timeout ptp4l[535950.641]: port 1: master tx announce timeout ptp4l[535950.641]: port 1: master sync timeout ptp4l[535951.641]: port 1: master sync timeout ptp4l[535952.642]: port 1: master tx announce timeout ptp4l[535952.642]: port 1: master sync timeout ptp4l[535953.642]: port 1: master sync timeout ptp4l[535954.643]: port 1: master tx announce timeout ptp4l[535954.643]: port 1: master sync timeout ptp4l[535955.644]: port 1: master sync timeout and the other node prints out "port1: delay timeout " repeatedly So something is still no right... Thanks for any suggestions, Andrei On Tue, Jun 17, 2014 at 4:39 PM, Andrei Perietanu < and...@kl...> wrote: > On Tue, Jun 17, 2014 at 04:00:36PM +0100, Andrei Perietanu wrote: > > I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both > > machines > > and I still don't see too much output: > > >I think that should be -l9, not -i9. > > Well that's what I initially thought but there is no -l9 (1-7 are valid > values) > > > > > On Tue, Jun 17, 2014 at 4:33 PM, Miroslav Lichvar <mli...@re...> > wrote: > >> On Tue, Jun 17, 2014 at 04:00:36PM +0100, Andrei Perietanu wrote: >> > I tried now *sudo ptp4l -i eth1 -i9 -f /etc/ptp4l.conf -m -q* on both >> > machines >> > and I still don't see too much output: >> >> I think that should be -l9, not -i9. >> >> -- >> Miroslav Lichvar >> > > -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. |
|
From: Richard C. <ric...@gm...> - 2014-06-17 17:05:32
|
On Tue, Jun 17, 2014 at 04:45:18PM +0100, Andrei Perietanu wrote: > ptp4l[535954.643]: port 1: master sync timeout > ptp4l[535955.644]: port 1: master sync timeout > > > and the other node prints out "port1: delay timeout " repeatedly > > So something is still no right... Some of the messages are getting through, because the second node does become a slave. Looks like the Sync messages are not being received by the slave. You can check that with wireshark on the second node. Maybe you a have a firewall that is dropping PTP event messages? Is there a router or switch in between the two nodes? Thanks, Richard |