40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Wed Jan 15 08:55:14 2020, gautam, Update, CDS, Yearly DAQD fix DCerrors_fixed.png
    Reply  Thu Jan 6 12:52:49 2022, Anchal, Update, CDS, Yearly DAQD fix 2022! 
       Reply  Thu Jan 6 13:54:28 2022, Koji, Update, CDS, Yearly DAQD fix 2022! Screenshot_2022-01-06_13-57-40.png
Message ID: 15122     Entry time: Wed Jan 15 08:55:14 2020     Reply to this: 16546
Author: gautam 
Type: Update 
Category: CDS 
Subject: Yearly DAQD fix 

Summary:

Every new year (on Dec 31 or Jan 1), all of the realtime models will report a "0x4000" error. This happens due to an offset to the GPStime driver not being updated. Here is how this can be fixed (slightly modified version of what was done at LASTI).

Steps to fix the DC errors:

  1. ssh into FB machine. 
  2. Edit the file /opt/rtcds/rtscore/release/src/include/drv/spectracomGPS.c:
    • Look for the code block with a text string that reads something like
      /* 2019 had 365 days and no leap seconds */
                   pHardware->gpsOffset += 31536000;
    • Copy and paste the above string for the appropriate number of years of offset you are adding, and edit the comment string appropriately!.
  3. Navigate to /opt/rtcds/rtscore/release/src/drv/symmetricom. Run the following commands:
    sudo make
    sudo make install
  4. Stop all the daqd processes and reload symmetricom:
    sudo systemctl daqd_* stop
    sudo modprobe -r symmetricom
    sudo modprobe symmetricom
  5. Re-start the daqd processes:
    sudo service daqd_* start

Independent of this, there is a 1 second offset between the gpstimes reported by /proc/gps and gpstime. However, this doesn't seem to drift. We had effected a static offset to correct for this in the daqd config files, and it looks like these do not need to be updated on a yearly basis. All the daqd indicators are now green, see Attachment #1.

Attachment 1: DCerrors_fixed.png  23 kB  | Hide | Hide all
DCerrors_fixed.png
ELOG V3.1.3-