First of all, it looks like the offset is really, really high between your embedded board and your laptop. You can probably use "chrony" to sync them: <a href="http://chrony.tuxfamily.org/">http://chrony.tuxfamily.org/</a><br>
<br>ntp_monitor.py checks against both the remote host, and the computer. If either one of these commands fails, then ntp_monitor.py won't work. I wrote a ticket, so I can disable this call in a future release: <a href="https://code.ros.org/trac/wg-ros-pkg/ticket/4277">https://code.ros.org/trac/wg-ros-pkg/ticket/4277</a><br>
<br>The exact command ntp_monitor.py runs is against the hostname of the computer, not the IP.<br><br>Can you try:<br>$ python<br>> import socket<br>> socket.gethostname()<br>MY_HOSTNAME<br>$ ntpdate -q MY_HOSTNAME<br>
<br>Can you post the output from that command, and the return code (from "echo $?"). Thanks.<br><br>Kevin<br><br><br><br><br><div class="gmail_quote">On Wed, May 5, 2010 at 10:41 AM, Enea Scioni <span dir="ltr"><<a href="mailto:enea.scioni@student.unife.it">enea.scioni@student.unife.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Sure!<br>
On my laptop the output is:<br>
$ ntpdate -q 127.0.0.1<br>
server 127.0.0.1, stratum 3, offset -0.000012, delay 0.02565<br>
 5 May 19:22:28 ntpdate[5000]: adjust time server 127.0.0.1 offset -0.000012<br>
sec<br>
<br>
and<br>
<br>
$ ntpdate -q 134.58.255.1<br>
server 134.58.255.1, stratum 2, offset -0.000195, delay 0.02599<br>
 5 May 19:22:57 ntpdate[5001]: adjust time server 134.58.255.1 offset<br>
-0.000195 sec<br>
<br>
where 134.58.255.1 is the server ip.<br>
<br>
Instead, on embedded board:<br>
$ ntpdate -q 127.0.0.1<br>
server 127.0.0.1, stratum 0, offset 0.000000, delay 0.00000<br>
 1 Jan 01:08:09 ntpdate[1535]: no server suitable for synchronization found<br>
<br>
(expected, because there isn't the ntp deamon running on embedded board),<br>
and<br>
$ ntpdate -q 10.8.30.30<br>
server 10.8.30.30, stratum 3, offset 1273079765.187633, delay 0.02666<br>
 1 Jan 01:09:58 ntpdate[1541]: step time server 10.8.30.30 offset<br>
1273079765.187633 sec<br>
<br>
where 10.8.30.30 is the ip assigned at my pc on LAN.<br>
<br>
Enea Scioni<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://ros-users.122217.n3.nabble.com/ntp-and-multi-machines-tp765453p779546.html" target="_blank">http://ros-users.122217.n3.nabble.com/ntp-and-multi-machines-tp765453p779546.html</a><br>

</font><div><div></div><div class="h5">Sent from the ROS-Users mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@lists.sourceforge.net">ros-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ros-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/ros-users</a><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>