Hi Graham,
On 2011-11-21 [email protected] wrote:
> When using the EPICS_TS_NTP_INET environment variable on a vxWorks 3.14.10
> IOC, issuing the command NTPTime_Report(1) I see the NTP server I am
> synchronised to as my boot server rather than the one specified in
> EPICS_TS_NTP_INET.
>
> If I then issue an osdNTPInit command, I see NTPTime_Report(1) show correct
> NTP synchronisation with my desired NTP server from EPICS_TS_NTP_INET.
>
> So, who is responsible for issuing osdNTPInit? Is it called automatically
> during iocInit somehow, or should I be calling it explicitly in my startup
> file?
It is called automatically from a C++ static constructor, so it looks at the
value of the EPICS_TS_NTP_INET variable at the time when the vxWorks ld
command gets run. If you want it to tell it to use a non-default NTP server
you will need to have set the environment variable before your .munch file
gets loaded. We can't wait until iocInit() since other routines such as
driver or device support initialization, dbLoadDatabase() or dbLoadRecords()
need to know the time before then.
HTH,
- Andrew
--
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham
- References:
- vxWorks NTP Sync graham.cox
- Navigate by Date:
- Prev:
undefined symbol when loading EPICS IOC on vxWorks 王林
- Next:
Software controls position available at W.M. Keck Observatory Kevin Tsubota
- 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
2022
2023
2024
- Navigate by Thread:
- Prev:
vxWorks NTP Sync graham.cox
- Next:
undefined symbol when loading EPICS IOC on vxWorks 王林
- 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
2022
2023
2024
|