My 2 IMP projects rely heavily on time-stamps, sleeping and logging data to a Linux host. I've done extensive testing of time-stamp logging and the time from the device itself is always way off from real time, ie: agent and Linux.
I've done many MANY things to try and get the IMP to sync with the agent but nothing seems to work. I've even gone as far as putting in an agent.send() to a dummy function as the very first thing from a wake-up, to try to force a sync, but no luck.
I don't know what other tricks to try. On one project, I've seen the time off as much a 90 seconds, with 1 hour sleeps. This project below is more around 5 seconds off, with 1 minute sleeps, but the really odd thing is that, so far, the device is always in the future. If it was lagging the agent, I would say it was time to fire-up the WiFi and such.
Anyone else experience this?? or am I the only one with such a strict time requirement? Should we not rely on the IMP for time-stamps? Should I wire in an external RTC chip.?
Device: Tue Jan 24 15:27:03 EST 2017 (Imp)
Agent: Tue Jan 24 15:26:57 EST 2017 (Agent)
Host: Tue Jan 24 15:26:57 EST 2017 (Linux Host)