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

Syncing time on nRF52832 from an Android smartphone using BLE SIG Current Time Service (CTS)

Hi,

We are trying to develop a wearable device that needs to sync time over a BLE connection and write the time to the internal RTC. We are using the nRF52832 for development.

We need pointers as to how to achieve this using the BLE GATT profile's Current Time Service.

Does the example in the SDK do this? We tried running the code and pairing with an Android smartphone. Although the device is visible, we are unable to pair with it. We have trouble understanding how the code works, since its very different compared to all other services such as Battery service, Heart rate service, etc.

I have read other queries regarding the CTS but they don't seem to be very helpful, Could anyone please point me in the right direction.

Thanks

Parents
  • Hi

    The current time application implements the Current Time Service to read the current time and prints it over UART. It is designed to connect to and read from a central example by default, but it should not be very hard to make it compliant with an Android phone instead. As is, the implementation requires security to be established before service discovery. What exact issues are you seeing when you try connecting using an Android device? Are you using the nRF Connect app for Android or another app/the settings menu for scanning/connecting?

    Best regards,

    Simon

Reply
  • Hi

    The current time application implements the Current Time Service to read the current time and prints it over UART. It is designed to connect to and read from a central example by default, but it should not be very hard to make it compliant with an Android phone instead. As is, the implementation requires security to be established before service discovery. What exact issues are you seeing when you try connecting using an Android device? Are you using the nRF Connect app for Android or another app/the settings menu for scanning/connecting?

    Best regards,

    Simon

Children
Related