EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Problem with NTP configuration
From: Francisco Ramos via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Mon, 13 Jun 2022 16:12:12 -0400
Hello Community,
 
   First of all, I wanted to thank you because you have always been very helpful in solving the doubts and problems we have been having with EPICS 7 and RTEMS 5.

   This time I am writing to you because we are trying to deploy an IOC with EPICS 7 and RTEMS 5 on the mvme2307 LCU and we want to configure also the NTP protocol. Looking at the source code, line 307 of the /libcom/RTEMS/setBootConfigFromNVRAM.c file, we see that the NTP server is indicated in the NVRAM parameter "ServerIPAddress" (see code extract below).

rtems_bsdnet_config.name_server[0] =
    rtems_bsdnet_config.ntp_server[0] =
      rtems_bsdnet_bootp_server_name = addr(server, nvram.ServerIPAddress);
    rtems_bsdnet_bootp_server_address.s_addr = nvram.ServerIPAddress;

    When we start the LCU and before starting the IOC startup script, we see that there is communication with the NTP service of the server. We check this by using the command on the server ntpdc -c monlist, where we can see that communication with the service takes place and is logged in the command output. What happens afterward is that we do not see a correct communication because the values of the columns (count, avgint lstint) do not reflect this. However, when booting an IOC with EPIC 3.14.8 and RTEMS4 using the same LCU, we see that the values are updated correctly.

    On the other hand, when we run generalTimeReport at the IOC prompt, in EPICS 3.14.8 version we see NTP as "Time Providers", but not in the case of EPICS 7 and RTEMS 5 (see the output of both commands at the end of the post).

     I have searched for information on this issue, but have not found anything relevant that would allow me to determine where the fault lies. So any suggestions or information would be of great help.

Regards, 

Francisco.   

Output of the generalTimeReport command with EPICS7
           Backwards time errors prevented 0 times.

Current Time Providers:
    "OS Clock", priority = 999
        Current Time is 2022-06-13 16:43:02.466312.

          Event Time Providers:
             No Providers registered.


Output of the generalTimeReport command with EPICS 3.14.8.
           > generalTimeReport
  Backwards time errors prevented 0 times.

 Current Time Providers:
    "NTP", priority = 100
        Current Time is 2022-06-13 16:34:26.449622.
    "OS Clock", priority = 999
        Current Time is 2022-06-13 16:34:26.456396.

           Event Time Providers:
              No Providers registered.




Replies:
Re: Problem with NTP configuration Matt Rippa via Tech-talk

Navigate by Date:
Prev: Re: Bus errors accessing VME with base 7.0.6.1 and latest synApps modules Till Straumann via Tech-talk
Next: Github and travis question Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Allowing localhost in access control files Ralph Lange via Tech-talk
Next: Re: Problem with NTP configuration Matt Rippa via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·