Re: GSM network time
- From: Paul Gotch <paulg@xxxxxxxxxxxxxxxxx>
- Date: 18 Jul 2007 15:44:26 +0100 (BST)
Anze <anzenews@xxxxxxxxx> wrote:
Now I know my nokia GSM has an option to get the time from network so it can
be done - but how do I tell TC65 it should do it every once in a while?
Does it syncronize the time automatically?
As far as I know GSM can only synchronise the timezone to the network and
there is no sync of realtime between the base station and the handset.
Should I use AT+CCLK to set the time to the one I get from my server on the
Internet (GPRS)?
Network time is a can of worms, the best you will probably be able to do
(unless your phone runs Linux and can run an NTPd) is forcibly reset the
time if it is too far out. However you can't just ask your server what the
time is as that doesn't take into account the network latency, NTP takes all
of this into account.
Another thing: is the time on RTC always UTC? I will be using J2ME
Date.getTime() to get the number of milliseconds from epoch... Will the
time be exact or should I worry about it?
Again hard. It should return milliseconds since epoch however it may not
dependant on host environment. I would not be at all surprised if WinCE
based handsets moved the position of the epoch to deal with daylight saving
time as desktop based versions of Windows do.
I just need the accurate UTC time. :)
Mandate a phone with a GPS in it :p
-p
--
"Unix is user friendly, it's just picky about who its friends are."
- Anonymous
--------------------------------------------------------------------
.
- Follow-Ups:
- Re: GSM network time
- From: Anze
- Re: GSM network time
- References:
- GSM network time
- From: Anze
- GSM network time
- Prev by Date: Re: ADSP BF538_Board Bring Up Query
- Next by Date: Re: Jungo WinDriver to replace CyUSB.sys - any experience?
- Previous by thread: GSM network time
- Next by thread: Re: GSM network time
- Index(es):
Relevant Pages
|