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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Network time server for vxWorks booting from Darwin |
From: | [email protected] |
To: | "MarkRivers" <[email protected]> |
Cc: | [email protected] |
Date: | Mon, 15 Dec 2003 07:44:04 +0900 |
Hi, >ioc13lab> iocClockSyncWithNTPserver: sntpcTimeGet S_sntpcLib_TIMEOUT That error message problem was EPICS IOC dose not connected NTP Servers. First you must checking your NTP servers alive and it?s better synchronization with GPS time. Second route add, time zone, environment variable to boot script files. My startup script "st.cmd" files examples. #141.223.182.106 ? NTP server #141.223.48.99 ? EPICS IOC subnet routeAdd("141.223.182.106", "141.223.48.99") putenv("TIMEZONE=KST::-540:000000:000000") #KOREA zone putenv("EPICS_TS_MIN_WEST=-540") putenv("EPICS_TS_NTP_INET=141.223.182.106") #PLS NTP server IP # This comment helped Timo, who SLS Control people. # # Time stamp support software configuration: # # The parameters: # 1. master_indicator: 1=master timing IOC, 0=slave, default is slave. # 2. sync_rate_seconds: The clock sync rate in seconds, default 10 seconds. # 3. clock_rate_hz: The frequency in hertz of the clock. # Default 1000Hz for the event system # and IOC's internal clock rate when soft timing is used. # 4. master_port: The UDP port for a master to receive ts requests, # default 18323. # 5. slave_port: The UDP port for a slave to receive time stamps # from a master. # 6. time_out: UDP information request time out in milliseconds, default 250ms. # 7. Operation mode: 0=normal operation, 1=force soft timing. #more details read to EPICS IOC manuals TSconfigure(1, 10, 1000,18323,18322,0,0) and you type "date" again. ioc:#01->date Dec 15, 2003 07:40:41.320400198 value = 32 = 0x20 = ' ' Thanks, Kiman Ha, PLS Control Group > > > -----Original message----- > From: "MarkRivers" > To: [email protected] > Date: 12/15/2003(Mon)00:51 > Subject: Network time server for vxWorks booting from Darwin > > Folks, > > I am setting up an EPICS system where a vxWorks 5.4.2 IOC will boot from a Mac Darwin host. FTP and NFS are working fine, so the IOC boots OK. However, it then prints the message: > ioc13lab> iocClockSyncWithNTPserver: sntpcTimeGet S_sntpcLib_TIMEOUT > > which means that it was not able to get the time from the boot host. Typing "date" at the vxWorks prompt shows that indeed it has not set the date and time correctly. > > In the past I have successfully booted vxWorks IOCs from Windows systems by enabling the "timed" service provided by Hummingbird's inetd. > > I am confused about how to enable a time server on Darwin that the IOC can use. By default neither "ntpd" nor "timed" seem to be running (as judged from "ps -ax"). Manually starting "ntpd" and/or "timed" did not help, the IOC still does not get the time when it boots. > > Does anyone have an idea on what time server I should be running for vxWorks to be able to get the time, and how to correctly start that on Darwin? > > Thanks, > Mark Rivers > |