Command to get the date and hours

Hello everyone,

I'm using the NRF9160 as a slave and I'm communicating with it through AT command. My master is a µc how do not as connectivity and I would like to know at any time, what time it is.

Do you know if there is any AT command that return date and time (or at least hour and minute) ? I can't find one on the list

I know that the GPS return the position and the time. But I'm interesting only on the date and time not on the position.

Best regards,

Alban

Parents
  • Hello Alban, 

    Do you know if there is any AT command that return date and time (or at least hour and minute) ? I can't find one on the list

    In what list did you look in? The AT Command Proprietary clock %CCLK can read the current time and daylight saving time. The time can be requested using the read command, but not all networks provide the information, nor can the highest accuracy requirements be guaranteed, either.

    AT%CCLK?
    %CCLK: "02/05/07,14:08:17+00",2
    OK

    Kind regards,
    Øyvind

Reply
  • Hello Alban, 

    Do you know if there is any AT command that return date and time (or at least hour and minute) ? I can't find one on the list

    In what list did you look in? The AT Command Proprietary clock %CCLK can read the current time and daylight saving time. The time can be requested using the read command, but not all networks provide the information, nor can the highest accuracy requirements be guaranteed, either.

    AT%CCLK?
    %CCLK: "02/05/07,14:08:17+00",2
    OK

    Kind regards,
    Øyvind

Children
Related