Skip to main content
PCu1
Senior
September 9, 2021
Question

$PSTMGETRTCTIME status and Validity description

  • September 9, 2021
  • 1 reply
  • 867 views

Hello,

I use the teseoLiv3 to get the current time with the $PSTMGETRTCTIME command.

From experience I wait for the response Time Validity=8(ACCURATE_TIME) to update my embedded RTC.

In the documentation there are no details about the different status:

0693W00000DmeqZQAR.jpg 

Are there more explanations ?

Thank you,

Pierre

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 28, 2023

    Here the status descriptions:

    • INVALID: it's the value on the first power-on/startup (where there is No VBAT ) and in the flash there is no valid saved timing data
    • STORED: when the time from RTC-IP is not valued but in flash it's found and reported a valid previus timing datal (take into account that on each FIX the evaluated timing data is saved in flash)
    • APPROXIMATE: when the RTC-IP seems valid and: (comaping the timing data from RTC-IP and the timing data on flash):
      • if RTC time >= stored time in flash than ==> APPROXIMATE
      • if RTC time  < stored time in flash than ==> INVALID