I have a couple of dataloggers using the old IMP001 module. I’ve noticed some RTC drift in all of them; in the one I analyzed in detail just now, the RTC is ahead by about a minute (after running for maybe a year), which unfortunately messes up my readings.
Now from what I read, the imp is supposed to sync its clock when it connects to the agent, which happens roughly every hour with my devices. Clearly that’s not happening, but maybe it’s because I’m doing something wrong? I’m currently sending two messages to the agent, then going to sleep again in onidle(), the idea being to save as much power as possible, so I can get a few months of runtime on a battery charge.
I’ve noticed the clock does get synchronized when the device is powered down and back up, but not when deploying new firmware.
Anyway, is there something I can do to make sure the RTC gets synchronized properly?