Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 51:57:39 |
Calls: | 583 |
Files: | 1,139 |
Messages: | 111,513 |
Do cell phones get their time-of-day references from the
cellular network? GPS (adjusting for leap seconds)? Or both?
In the case of the cellular network, is a timestamp routinely
broadcast? Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
Do cell phones get their time-of-day references from the
cellular network? GPS (adjusting for leap seconds)? Or both?
In the case of the cellular network, is a timestamp routinely
broadcast? Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
I can't answer all your questions.
The phone has a GPS receiver the acts as an RTC (real time clock). If
there is a low BER (bit error rate) GPS satellite signal, the phone
will use GPS for displaying time. If the satellite signal is absent
or shows a high error rate, it will use the time from the cellular
network.
GPS use NMEA-0183 code to regularly deliver the time. The GPGGA
sentence includes the current UTC time. It's not really broadcasting
because none of the satellites transmit the current time. Instead,
the GPS receiver combines the data from at least 3 satellites and
computes the receiver location. <https://w3.cs.jmu.edu/bernstdh/web/common/help/nmea-sentences.php>
A connected device does NOT poll or query for NMEA-0183 data. The
receiver continuously sends NMEA-0183 data. Connected device filter
the data stream for the specific sentences (such as GPGGA) that it
wants, and uses that to provide time, location, etc.
I don't know what you mean by "timestamp". Are you referring to the standardized formatting of the data such as ISO 8601 ("YYYY-MM-DDThh:mm:ssZ")? <https://www.iso.org/iso-8601-date-and-time-format.html>
to make conversion to UTC easier? Otherwise, I haven't seen the term
used with GPS.
On 8/26/2025 10:03 PM, Jeff Liebermann wrote:
Do cell phones get their time-of-day references from the
cellular network?-a GPS (adjusting for leap seconds)?-a Or both?
In the case of the cellular network, is a timestamp routinely
broadcast?-a Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
I can't answer all your questions.
The phone has a GPS receiver the acts as an RTC (real time clock).-a If
there is a low BER (bit error rate) GPS satellite signal, the phone
will use GPS for displaying time.-a If the satellite signal is absent
or shows a high error rate, it will use the time from the cellular
network.
So, the phone (in this mode) is relying on broadcast data.
How often is this updated?-a 1Hz?
GPS use NMEA-0183 code to regularly deliver the time.-a The GPGGA
sentence includes the current UTC time.-a It's not really broadcasting
because none of the satellites transmit the current time.-a Instead,
the GPS receiver combines the data from at least 3 satellites and
computes the receiver location.
<https://w3.cs.jmu.edu/bernstdh/web/common/help/nmea-sentences.php>
A connected device does NOT poll or query for NMEA-0183 data.-a The
receiver continuously sends NMEA-0183 data.-a Connected device filter
the data stream for the specific sentences (such as GPGGA) that it
wants, and uses that to provide time, location, etc.
I don't know what you mean by "timestamp".-a Are you referring to the
standardized formatting of the data such as ISO 8601
("YYYY-MM-DDThh:mm:ssZ")?
<https://www.iso.org/iso-8601-date-and-time-format.html>
to make conversion to UTC easier?-a Otherwise, I haven't seen the term
used with GPS.
I had a phone that was displaying incorrect time.-a Despite being
configured to "automatically update the time".-a It continued to
do this for "a long time" (long enough for me to start researching
how it could be "wrong" and if there was anything I could do about it)
Eventually, I disabled the automatic update.-a Then, re-enabled it and noticed the time being correctly updated immediately.
So, either the phone issued a request for the time when I REenabled the autoupdate feature (and that request was honored in short order)-a *or*,
the time is broadcast at some high update rate so it is "available"
almost instantaneously, regardless of when you NEED it.-a Re-enabling
the auto update just triggered the daemon that watches for broadcast timestamps.
If the phone was responsible for REQUESTING the time, then the fact
that it was out-of-sync for such a long time suggested it didn't
feel the need to request an update.-a The daemon responsible for
maintaining it likely spent most of its time sleeping and only
infrequently re-issued such a request (how far can the local
RTC drift between update requests)
If the phone was constantly/periodically TOLD the current time,
then it was obviously ignoring those messages and sticking with
its incorrect knowledge of the current time.
On 27/08/2025 07:09, Don Y wrote:
So, either the phone issued a request for the time when I REenabled the
autoupdate feature (and that request was honored in short order)-a *or*,
the time is broadcast at some high update rate so it is "available"
almost instantaneously, regardless of when you NEED it.-a Re-enabling
the auto update just triggered the daemon that watches for broadcast
timestamps.
If the phone was responsible for REQUESTING the time, then the fact
that it was out-of-sync for such a long time suggested it didn't
feel the need to request an update.-a The daemon responsible for
maintaining it likely spent most of its time sleeping and only
infrequently re-issued such a request (how far can the local
RTC drift between update requests)
If the phone was constantly/periodically TOLD the current time,
then it was obviously ignoring those messages and sticking with
its incorrect knowledge of the current time.
How badly wrong was the phone?
Do cell phones get their time-of-day references from the
cellular network?-a GPS (adjusting for leap seconds)?-a Or both?
In the case of the cellular network, is a timestamp routinely
broadcast?-a Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
On 2025-08-27 04:00, Don Y wrote:
Do cell phones get their time-of-day references from the
cellular network?-a GPS (adjusting for leap seconds)?-a Or both?
In the case of the cellular network, is a timestamp routinely
broadcast?-a Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
In theory from the network, which should be the legal and correct time
for the country. But not all providers transmit it correctly. I have
seen some that do not send the time at all or it is totally incorrect.
I don't know how GPS time is integrated with that (in the phone). Then
there is also NTP.
-a-a-a Notice that GPS and NTP transmits UTC time, which would have to
-a-a-a be corrected for the estimated time zone, which is not necessarily
-a-a-a the legal time of the country.
The end result is that in most places the phone has a very correct time.
On 27/08/2025 11:27, Carlos E.R. wrote:
On 2025-08-27 04:00, Don Y wrote:It does look like a software bug or random memory corruption.-a An
Do cell phones get their time-of-day references from the
cellular network?-a GPS (adjusting for leap seconds)?-a Or both?
In the case of the cellular network, is a timestamp routinely
broadcast?-a Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
In theory from the network, which should be the legal and correct time
for the country. But not all providers transmit it correctly. I have
seen some that do not send the time at all or it is totally incorrect.
I don't know how GPS time is integrated with that (in the phone). Then
there is also NTP.
-a-a-a-a Notice that GPS and NTP transmits UTC time, which would have to
-a-a-a-a be corrected for the estimated time zone, which is not necessarily >> -a-a-a-a the legal time of the country.
The end result is that in most places the phone has a very correct time.
incorrect time zone offset from UTC would certainly give the
observed effect which would then persist until the phone rebooted.
Some places have offsets of 30 minutes and I think there may be
somewhere with a 15 minute offset from an integer number of hours.
I haven't come across an intentional offset of around 10 minutes.
On 2025-08-27 04:00, Don Y wrote:
Do cell phones get their time-of-day references from the
cellular network?-a GPS (adjusting for leap seconds)?-a Or both?
In the case of the cellular network, is a timestamp routinely
broadcast?-a Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
In theory from the network, which should be the legal and correct time for the
country. But not all providers transmit it correctly. I have seen some that do
not send the time at all or it is totally incorrect.
I don't know how GPS time is integrated with that (in the phone). Then there is
also NTP.
-a-a-a Notice that GPS and NTP transmits UTC time, which would have to
-a-a-a be corrected for the estimated time zone, which is not necessarily
-a-a-a the legal time of the country.
The end result is that in most places the phone has a very correct time.
On 8/26/2025 10:03 PM, Jeff Liebermann wrote:
Do cell phones get their time-of-day references from the
cellular network? GPS (adjusting for leap seconds)? Or both?
In the case of the cellular network, is a timestamp routinely
broadcast? Or, does the client query the network?
[My guess is network broadcast timestamps at some relatively
high rate]
I can't answer all your questions.
The phone has a GPS receiver the acts as an RTC (real time clock). If
there is a low BER (bit error rate) GPS satellite signal, the phone
will use GPS for displaying time. If the satellite signal is absent
or shows a high error rate, it will use the time from the cellular
network.
So, the phone (in this mode) is relying on broadcast data.
How often is this updated? 1Hz?
GPS use NMEA-0183 code to regularly deliver the time. The GPGGA
sentence includes the current UTC time. It's not really broadcasting
because none of the satellites transmit the current time. Instead,
the GPS receiver combines the data from at least 3 satellites and
computes the receiver location.
<https://w3.cs.jmu.edu/bernstdh/web/common/help/nmea-sentences.php>
A connected device does NOT poll or query for NMEA-0183 data. The
receiver continuously sends NMEA-0183 data. Connected device filter
the data stream for the specific sentences (such as GPGGA) that it
wants, and uses that to provide time, location, etc.
I don't know what you mean by "timestamp". Are you referring to the
standardized formatting of the data such as ISO 8601
("YYYY-MM-DDThh:mm:ssZ")?
<https://www.iso.org/iso-8601-date-and-time-format.html>
to make conversion to UTC easier? Otherwise, I haven't seen the term
used with GPS.
I had a phone that was displaying incorrect time.
Despite being
configured to "automatically update the time". It continued to
do this for "a long time" (long enough for me to start researching
how it could be "wrong" and if there was anything I could do about it)
Eventually, I disabled the automatic update. Then, re-enabled it and
noticed the time being correctly updated immediately.
So, either the phone issued a request for the time when I REenabled the >autoupdate feature (and that request was honored in short order) *or*,
the time is broadcast at some high update rate so it is "available"
almost instantaneously, regardless of when you NEED it. Re-enabling
the auto update just triggered the daemon that watches for broadcast >timestamps.
If the phone was responsible for REQUESTING the time, then the fact
that it was out-of-sync for such a long time suggested it didn't
feel the need to request an update. The daemon responsible for
maintaining it likely spent most of its time sleeping and only
infrequently re-issued such a request (how far can the local
RTC drift between update requests)
If the phone was constantly/periodically TOLD the current time,
then it was obviously ignoring those messages and sticking with
its incorrect knowledge of the current time.
On Tue, 26 Aug 2025 23:09:42 -0700, Don Y
So, the phone (in this mode) is relying on broadcast data.
How often is this updated? 1Hz?
Normally 1Hz. Some receivers can be set to update to 10Hz. Various NMEA-0183 sentences have different minimum output rates:
On Tue, 26 Aug 2025 23:09:42 -0700, Don Y
<blockedofcourse@foo.invalid> wrote:
So, the phone (in this mode) is relying on broadcast data.
How often is this updated? 1Hz?
Normally 1Hz. Some receivers can be set to update to 10Hz. Various >NMEA-0183 sentences have different minimum output rates:
The minimum NMEA sentence requirements matter. The most important is
that the GPGGA and GPRMC message output once per second.
GPGGA - must be once/second
GPRMC - must be once/second
GPZDA - must be once/second
NMEATime will use this sentence for time.
If not available, then NMEATIme will use GGA & RMC for time.
GPGSA - every two seconds
GPGSV - every two seconds