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

CTS_C Read Time

Hello,

i implement the CTS_C example in my application. I get the correct time Output in the UART.

Is this time the running in the Background? How can i check if is today a monday or witch time is now. And compare with a variable.

Thanks

  • No the time isn't running in the background, if you read the notes on the example you're talking about, it tells you that the time service runs on the central and the nRF chip just reads it and then prints it back out again. The time comes from the PC you're running the master control panel on.

    There is no wall-time clock on the nRF series chips, nothing which does day, date or calendar arithmetic or keeps 'real' time. The best you can do is run a timer to count elapsed time, get an initial real time (perhaps from a clock service) and then work out yourself what the current time is by adding one to the other.

    Or build your board with a cheap, full featured, low power realtime clock chip on it.

  • Hi

    I am running the ble_app_ctc_c example from nrf52 sdk 11.0.0.I am not able to read the current time of my application (tablet device ) over UART. I am getting comment on UART as "Current time server not found on server".

    what is meaning of this? does it require any specific arrangement? I am not modifying the code i am simply executing example of SDK.

Related