C-Gate not operating as Clock Master

Discussion in 'C-Bus Toolkit and C-Gate Software' started by glen_m, May 30, 2025.

  1. glen_m

    glen_m

    Joined:
    Jun 26, 2016
    Messages:
    20
    Likes Received:
    8
    Location:
    NZ
    This is probably digging up the past a bit, but my PAC recently failed, and to be honest, it did so little these days, it was hardly worth replacing. However one function it obviously used to do, was the role of the time master - I now see my DLT's & eDLT's clocks drifting out of time.... badly.

    I always had assumed that my cGate instance (running 24/7 on a Industrial-style PC), was the time master, but given the clocks slippage after the demise of the PAC, I can now see this was not the case. In terms of devices which are time capable, I have DLT's, eDLTs, and now only the c-Gate instance. I am running:
    • c-Gate version 3.4.0
    • Java: 11.0.24+8-LTS (Linux - x64)
    The following shows both by config dump, and the clock log entries on startup.
    Code:
    20250530-191828 300 sys dump config: clock.master=yes
    20250530-191828 300 sys dump config: clock.mastermode=primary
    20250530-191828 300 sys dump config: clock.update-interval=30
    20250530-191843 702 //FINLAYS/253/223 - [clock] loaded application
    20250530-192018 702 //FINLAYS/254/223 - [clock] loaded application
    
    When searching through the event logs, I never find any evidence of C-Gate sending a clock setting message. I have tried all the usual tricks as well. I know there are one or 2 physical-layer things which need to be checked in my network, especially given its age, however I am 99.99% certain that has nothing to do with this issue, given 2 things:
    • The DLT/eDLT times always were correct, when the PAC was still alive
    • And if I manually issue the command "clock time 254/223 system 0" via the c-Gate command console, all the DLT/eDLT clocks magically get set to the correct time
    But what is apparent, is the c-Gate instance NEVER actually broadcasts the time, neither at startup, or any other interval.

    I have also reviewed this thread in relation to a similar issue (and the rules for time master), but I have no PAC (nor Wiser or anything else), so all indications are c-Gate should be assuming that role.
    https://www.cbusforums.com/threads/setting-c-bus-date-and-time-from-c-gate-with-a-pac-present.7822/

    Any ideas/assistance would be appreciated.

    Cheers - Glen
     
    glen_m, May 30, 2025
    #1
  2. glen_m

    oracle

    Joined:
    Jan 18, 2010
    Messages:
    108
    Likes Received:
    6
    Location:
    NSW
    out of interest go to the edit and hopefully you have allowed the tools page and press bottom left and top right. set the time it will sync all devices like it was master time keeper and see if this prompts cgate to resume broadcasting at its default 30 minute interval you have set in cgate cfg. also in that t\thread you linked someone stated they commented out interval time and it resolved their issue?
     
    oracle, May 30, 2025
    #2
  3. glen_m

    glen_m

    Joined:
    Jun 26, 2016
    Messages:
    20
    Likes Received:
    8
    Location:
    NZ
    Thanks for the response. Setting the time via an eDLT was my only means of getting the time back (and also the post DST change) on all the units, after the PAC died, but since then all the eDLT/DLT clocks are drifting (in different directions too!!), so it doesn't look like cGate did anything with it. I will have another play and look at the logs to see what happens under the hood.

    Re commenting out the interval - I had tried that as well - The above log capture in the original post, was actually after I commented that line out, and restarted cGate - It just picked up the default value, and there was no change in behavior.
    Cheers
     
    glen_m, May 31, 2025
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.