Re: Getting time from a GPRS modem
- From: Stef <stef33d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Mar 2011 11:48:43 +0100
Bernhard Deny <a2973445@xxxxxxxxxxx> wrote:
Am 11.03.2011 12:47, schrieb Stef:
Is there a possibility to get current time (UTC preferred) from a
(connected) GPRS modem? I've been searching through the Telit AT
Commands Reference Guide, but only references to "time" are in
context of SMS. Not sure if it depends on the type of modem, but
a possible candidate is the Telit GE863.
In the past we have used NTP over the dataconnection to get time
on our device. But for a new device, I was hoping to skip the added
complexity of using NTP. Mainly to avoid having to set up a dedicated
NTP server or make arrangements with pool.ntp.org or another provider.
Forget about using NTP over GPRS Networks if you need to rely on
seconds. This won't work as expected because the latency is in the range
of 0.4 to 30 seconds and more, BTDT.
Using ntpd leads also to excessive data traffic, obviously NTP tries to
correct the errors with additional requests.
Being a few seconds off is not a problem. We have done NTP over GPRS
before and did not experience any problems with that. In that case we
had our own NTP server. We also implemented our own NTP client that
only sent out a single request during each communication attempt, so
no excessive data traffic.
Do you know of an alternative to get somewhat accurate time (lets say less
than 1 minute error) on a remote embedded device with no user interface and
only GPRS connectivity?
Stef (remove caps, dashes and .invalid from e-mail address to reply by mail)
I think... I think it's in my basement... Let me go upstairs and check.