Get uptime

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Post Reply
jvandenbroek
Starting Member
Starting Member
Posts: 3
Joined: Wed Mar 12, 2014 10:34 am

Get uptime

Post by jvandenbroek »

Hi,

Is there somehow a way to get the gateway uptime? If not, consider this as a feature request :) It would convenient to see when the gateway has been reset.
Thanks.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Get uptime

Post by hvxl »

The gateway doesn't have a very good sense of time for longer time frames. It can accurately time events in the order of a millisecond. For seconds it's normally off by about 0.1%, and for a minute the deviation is already more than 5%.

Fortunately these longer timings don't have to be too accurate for the current needs. They are used for flashing a LED, sending the next OT message, or discarding outdated SC data. However, for keeping track of uptime, a deviation of 5% (an hour a day) is a bit much.

It would also require at least 4 bytes of memory to hold an uptime of more than a few days. The PIC only has a very limited amount of RAM, so 4 spare bytes are not that easy to come by.

In other words, this feature is unlikely to be implemented. If you want to keep track of the uptime, watch for unsolicited "OpenTherm Gateway X.Y" reports on the serial interface to know when the gateway has reset.
Schelte
Post Reply

Return to “Opentherm Gateway Forum”