nrf9160 - Date and time

Hi Support, we are using custom hardware and the follwoing versions:

1. modem - 1.3.4

2. nrf-sdk - 1.9.0

3. Zephyr - v2.7.99

Our application is based on the gnss sample.

Our device operates on a battery, hence always have power.

What I have noticed is that the date and time in a few records have been set to zero.

In the "date_time_evt_handler", the date and time is obtained by "DATE_TIME_OBTAINED_MODEM".

If the unit is backup by battery, and there is a reset and we are unable to obtain the datetime from the MODEM, does the datetime get cleared?
Should not the last datetime still be valid, maybe some drift, but still valid.
Why does the driver clear the datetime.
Is there a way for me to prevent the driver from clearing the datetime?

Thanks

Parents
  • Hello and sorry for the delays.

    I took over the case and I am looking into it.

    If the unit is backup by battery, and there is a reset and we are unable to obtain the datetime from the MODEM, does the datetime get cleared?

    I think so. The issue is that it the datetime should be kept in RAM, or else it would cause unnecessary wear on flash.

    Is there a way for me to prevent the driver from clearing the datetime?

    You could save it manually in the persistent memory, but like said before, the wear is an issue. I assume that the resets are random and not done manually/expected to happen?

    Best regards,

    Michal

Reply
  • Hello and sorry for the delays.

    I took over the case and I am looking into it.

    If the unit is backup by battery, and there is a reset and we are unable to obtain the datetime from the MODEM, does the datetime get cleared?

    I think so. The issue is that it the datetime should be kept in RAM, or else it would cause unnecessary wear on flash.

    Is there a way for me to prevent the driver from clearing the datetime?

    You could save it manually in the persistent memory, but like said before, the wear is an issue. I assume that the resets are random and not done manually/expected to happen?

    Best regards,

    Michal

Children
Related