cancel
Showing results for 
Search instead for 
Did you mean: 

$PSTMGETRTCTIME status and Validity description

PCu1
Senior

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 REPLY 1
Francesco Virlinzi
ST Employee

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