This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 AT+CCLK response time does not take into account the time zone difference

hello.

Running the serial_lte_modem example on the nRF9160 DK board, I get a problematic response to AT+CCLK

[2021-08-12 15:14:55.852] [00:01:05.883,000] INF MODEM_FSM : process_cmd_response cmd 26, length 31, response : +CCLK: "21/08/12,12:14:55+12"

As you can see, our local time is 15:14:55, and the modem response with "12:14:55+12". It should have written "15:14:55+12" instead.

That is the behavior from other LTE modems we use, and also here is another link that reflects this.

Parents
  • Previous reply from Nordic support described that there were 2 ways to implement the response. One that adds the timezone difference to the time value, and one that does not. At the time, both were acceptable under the protocol definition, so technically this is not a bug.

    So if the time is 12:14:55 UTC, and you're at a +3 time zone, 12:14:55+12 and 15:14:55+12 are both considered valid. Test your modem once, to see what the developers selected...

Reply
  • Previous reply from Nordic support described that there were 2 ways to implement the response. One that adds the timezone difference to the time value, and one that does not. At the time, both were acceptable under the protocol definition, so technically this is not a bug.

    So if the time is 12:14:55 UTC, and you're at a +3 time zone, 12:14:55+12 and 15:14:55+12 are both considered valid. Test your modem once, to see what the developers selected...

Children
  • Hello,

    We are having an issue with the time value reported when we use the modeminfo command to acquire the time from the cellular network.  The time that we get from the cellular network is shown below:

    date 23/03/21,16:54:06+00 (UTC)
    Local date-time: 03/21/2023 16:54:06

    The date is correct, but the time of 16:54:06+00 (UTC) is not correct.

    We are in the US eastern time zone and expect the time value reported back to be 16:54:06-16 (UTC).

    We see this behavior when using a Verzion SIM card and when connected to the Verizon network.

    Note that our modem is configured for LTE-M.  We are using modem firmware version 1.3.1.  We also get the same response when using modem firmware version 1.3.4.

    When we switch to a Soracom SIM card we get the following time data for the network which is correct.

    date 23/03/21,17:01:06-16 (UTC)
    Local date-time: 03/21/2023 13:01:06

    Can anyone provide help on why we the time is different between the two SIM cards.

    Note that when we first started testing about 1 year ago with both the Verizon and Soracom SIM cards, we did not see this problem.

    Any and all help would be greatly appreciated in resolving this problem.

  • It seems cellular providers can interpret the UTC format requirement at will, using any format as their default.
    But maybe there is a way to ask the modem for a specific time response format, other than the default. 

  • Hi ,

    Could you open a new ticket, with modem traces showing the difference between the two SIM cards?

    Best regards,

    Didrik

Related